Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 354419 - www-servers/tomcat-7.0.8 fails in configure phase without dev-python/pyxml in DEPEND
Summary: www-servers/tomcat-7.0.8 fails in configure phase without dev-python/pyxml in...
Status: RESOLVED DUPLICATE of bug 354421
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-10 21:28 UTC by Panagiotis Christopoulos (RETIRED)
Modified: 2011-02-12 20:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-02-10 21:28:58 UTC
<snip>
...
>>> Configuring source in /var/tmp/portage/www-servers/tomcat-7.0.8/work/apache-tomcat-7.0.8-src ...
Rewriting attributes
Rewriting ./webapps/ROOT/build.xml
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/xml-rewrite-3.py-2.7", line 240, in <module>
    outxml = processActions(options, f)
  File "/usr/lib/javatoolkit/bin/xml-rewrite-3.py-2.7", line 109, in processActions
    out_stream = doRewrite(rewriter, out_stream, rewriter.add_gentoo_classpath,classpath = newcp)
  File "/usr/lib/javatoolkit/bin/xml-rewrite-3.py-2.7", line 100, in doRewrite
    rewriter.write(out)
  File "/usr/lib/python2.7/site-packages/javatoolkit/xml/DomRewriter.py", line 81, in write
    from xml.dom.ext import PrettyPrint
ImportError: No module named ext
 * ERROR: www-servers/tomcat-7.0.8 failed (configure phase):
 *   xml-rewrite2 failed: ./res/deployer/build.xml
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
...
</snip>

If I read correctly the comments in the ebuild, it's in your TODO list or something. 
<snip>
# TODO: Fails to find PrettyPrint in with python 2.6 and xml-rewriter-3
# Find out why so
</snip>

I don't know if pushing pyxml is the right way, but it helped in my case.
Comment 1 Panagiotis Christopoulos (RETIRED) gentoo-dev 2011-02-10 21:30:32 UTC
(octave) gaia tomcat # emerge -pv tomcat && emerge --info

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-servers/tomcat-7.0.8  USE="doc examples source -test" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Portage 2.1.9.39 (default/linux/x86/10.0/desktop, gcc-4.5.2, glibc-2.13-r0, 2.6.28-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 10 Feb 2011 17:45:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1, 3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en_US en el"
MAKEOPTS="-j3"
PKGDIR="/opt/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" KERNEL="linux" LINGUAS="en_US en el" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

(octave) gaia tomcat # 

and part of the build.log: 

http://dev.gentoo.org/~pchrist/temp/10Feb11/tomcat_err.txt
Comment 2 Rafał Mużyło 2011-02-11 10:47:40 UTC
While your bug was earlier, I've address it in bug 354421.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2011-02-12 20:22:02 UTC

*** This bug has been marked as a duplicate of bug 35441 ***
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2011-02-12 20:22:20 UTC
wrong duplicate bug
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2011-02-12 20:22:30 UTC

*** This bug has been marked as a duplicate of bug 354421 ***