Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359591 - Java packages fail to build with ${ROOT} != "/" due to incorrect usage of Python configuration
Summary: Java packages fail to build with ${ROOT} != "/" due to incorrect usage of Pyt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard: python-overlay
Keywords: InOverlay, InVCS
Depends on:
Blocks:
 
Reported: 2011-03-20 07:28 UTC by Dennis Schridde
Modified: 2016-03-13 22:14 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,2.55 KB, text/plain)
2011-03-20 07:29 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2011-03-20 07:28:24 UTC
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
Comment 1 Dennis Schridde 2011-03-20 07:29:21 UTC
Created attachment 266595 [details]
build.log
Comment 2 Dennis Schridde 2011-03-20 07:31:18 UTC
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.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2011-03-20 10:33:58 UTC
(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
Comment 4 Dennis Schridde 2011-03-20 21:39:39 UTC
I cannot reproduce the empty output from the commandline:
# ROOT=/vz/private/123/ eselect python show
python2.6
# eselect python show
python2.6
Comment 5 Dennis Schridde 2011-03-20 21:47:13 UTC
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?
Comment 6 Dennis Schridde 2011-04-17 11:17:49 UTC
Any progress with this? Any interest in helping me figure out how to reproduce this outside of emerge?
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-05-02 14:33:54 UTC
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 != "/".
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-07 18:43:36 UTC
I have confirmed that this patch fixes this bug.
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-06-10 20:55:36 UTC
This is now fixed in python overlay.
Please install dev-java/java-config and dev-java/javatoolkit from python overlay.
Comment 10 Dennis Schridde 2012-02-18 18:29:13 UTC
(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?
Comment 11 Arfrever Frehtes Taifersar Arahesis 2012-02-18 18:35:48 UTC
(In reply to comment #10)

Probably yes. (Python Overlay has been replaced by Progress Overlay.)
Comment 12 James Le Cuirot gentoo-dev 2016-03-13 22:14:42 UTC
As far as I can tell, this is fixed. Closing.