Summary: | Java packages fail to build with ${ROOT} != "/" due to incorrect usage of Python configuration | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | [OLD] Java | Assignee: | Python Gentoo Team <python> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | java |
Priority: | Normal | Keywords: | InOverlay, InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | python-overlay | ||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Dennis Schridde
2011-03-20 07:28:24 UTC
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. |