Many java packages fail to merge in ROOT with a message similar to this one: --- Changing ignoresystemclasses to true for available tasks in /var/tmp/portage/dev-java/log4j-1.2.16/work/apache-log4j-1.2.16/build.xml Rewriting /var/tmp/portage/dev-java/log4j-1.2.16/work/apache-log4j-1.2.16/build.xml 'eselect python show' printed unrecognized value '' 'eselect python show' printed unrecognized value '' * Could not find valid -source/-target values --- Log attached. Reproducible: Always Portage 2.2.0_alpha26 (hardened/linux/ia64/server, gcc-4.4.5, glibc-2.11.3-r0, 2.6.27-openvz-repin.1 ia64) ================================================================= System uname: Linux-2.6.27-openvz-repin.1-ia64-31-with-gentoo-2.0.1 Timestamp of tree: Sat, 19 Mar 2011 18:45:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.6-r2, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) Repositories: gentoo sunrise local Installed sets: @system ACCEPT_KEYWORDS="ia64" ACCEPT_LICENSE="* -@EULA" CBUILD="ia64-unknown-linux-gnu" CFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize" CHOST="ia64-unknown-linux-gnu" CONFIG_PROTECT="/etc" 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" CXXFLAGS="-pipe -mtune=mckinley -O2 -ftree-vectorize" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--usepkg --buildpkg --binpkg-respect-use --with-bdeps y --keep-going" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--hash-style=gnu" MAKEOPTS="-j3" PKGDIR="/var/cache/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS=" --delete-excluded --exclude='/games*/' --exclude='/gnome*/' --exclude='/gnustep*/' --exclude='/gpe*/' --exclude='/kde*/' --exclude='/lxde*/' --exclude='/rox*/' --exclude='/xfce*/'" 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="/var/cache/portage/gentoo" PORTDIR_OVERLAY="/var/cache/portage/layman/sunrise /var/cache/portage/local" [...] Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS
Created attachment 266595 [details] build.log
Commandline was: "ROOT=/vz/private/123/ emerge -uDN @world" The packages fail when they are being build. Emerging binary packages, that were built without ROOT, succeeds.
(In reply to comment #0) > Many java packages fail to merge in ROOT with a message similar to this one: > --- > Changing ignoresystemclasses to true for available tasks in > /var/tmp/portage/dev-java/log4j-1.2.16/work/apache-log4j-1.2.16/build.xml > Rewriting > /var/tmp/portage/dev-java/log4j-1.2.16/work/apache-log4j-1.2.16/build.xml > 'eselect python show' printed unrecognized value '' > 'eselect python show' printed unrecognized value '' > * Could not find valid -source/-target values > --- > The eclasses run the binary depend-java-query and it doesn't seem that python is working with this setup. Assigning to python people as this seems their territory
I cannot reproduce the empty output from the commandline: # ROOT=/vz/private/123/ eselect python show python2.6 # eselect python show python2.6
Another try: # ROOT=/vz/private/123/ depend-java-query -l virtual/jdk-1.5 1.5 # depend-java-query -l virtual/jdk-1.5 1.5 Still no failure. How should this binary be called to reproduce the issue?
Any progress with this? Any interest in helping me figure out how to reproduce this outside of emerge?
I have implemented some changes, which might fix this bug. Please test my copy of python.eclass: http://dev.gentoo.org/~Arfrever/python.eclass Save this file as "/var/cache/portage/gentoo/eclass/python.eclass" (i.e. "${PORTDIR}/eclass/python.eclass"). Regenerate metadata cache: emerge --regen Reinstall dev-java/java-config in ROOT == "/". Next test installation of Java packages in ROOT != "/".
I have confirmed that this patch fixes this bug.
This is now fixed in python overlay. Please install dev-java/java-config and dev-java/javatoolkit from python overlay.
(In reply to comment #9) > This is now fixed in python overlay. > Please install dev-java/java-config and dev-java/javatoolkit from python > overlay. Has this fix been moved to the tree already?
(In reply to comment #10) Probably yes. (Python Overlay has been replaced by Progress Overlay.)
As far as I can tell, this is fixed. Closing.