Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414807 - dev-java/javatoolkit requires python2.6 to build dev-java/glassfish-persistence due to changes in urllib.py
Summary: dev-java/javatoolkit requires python2.6 to build dev-java/glassfish-persisten...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-06 00:08 UTC by Michael Cordingley
Modified: 2012-06-10 08:30 UTC (History)
2 users (show)

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


Attachments
emerge --info =dev-java/glassfish-persistence-1.0 (emerge-info,5.30 KB, text/plain)
2012-05-06 00:10 UTC, Michael Cordingley
Details
Build log for the ebuild (build.log,9.71 KB, text/plain)
2012-05-06 00:10 UTC, Michael Cordingley
Details
emerge --info (info,5.81 KB, text/plain)
2012-06-01 22:46 UTC, Diane
Details
Dianes build log (dev-java:glassfish-persistence-1.0:20120601-224231.log,7.49 KB, text/plain)
2012-06-01 22:48 UTC, Diane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cordingley 2012-05-06 00:08:50 UTC
The ebuild fails part-way in.

Reproducible: Always

Steps to Reproduce:
1. emerge -1 dev-java/glassfish-persistence
Actual Results:  
Build fails

Expected Results:  
Package merged.

Looks like the ebuild is _old_.
Comment 1 Michael Cordingley 2012-05-06 00:10:12 UTC
Created attachment 310927 [details]
emerge --info =dev-java/glassfish-persistence-1.0
Comment 2 Michael Cordingley 2012-05-06 00:10:57 UTC
Created attachment 310929 [details]
Build log for the ebuild
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2012-05-06 12:19:34 UTC
(In reply to comment #0)
> [ snip ]
> Looks like the ebuild is _old_.

That shouldn't matter. :)

Works just fine for me. Maybe you need to run python-updater? Also try reinstalling the javatoolkit if the former doesn't help.
Comment 4 Michael Cordingley 2012-05-06 18:58:27 UTC
I ran revdep-rebuild and python updater, neither had anything to update.  Remerged javatoolkit.  Still having the same issue.
Comment 5 Michael Cordingley 2012-05-09 04:51:31 UTC
Synced and updated my system.  This issue appears to have gone away.  So... closing it.  Thanks!
Comment 6 Ralph Sennhauser (RETIRED) gentoo-dev 2012-05-09 14:35:38 UTC
Thanks for the follow up.
Comment 7 Diane 2012-06-01 22:46:50 UTC
Created attachment 313883 [details]
emerge --info
Comment 8 Diane 2012-06-01 22:47:25 UTC
I am having the same problem with this build failing.  I have re-synced and updated my system, run python-updater and re-emerged javatoolkit, with no success.

Here are my build files and emerge --info.
Comment 9 Diane 2012-06-01 22:48:07 UTC
Created attachment 313885 [details]
Dianes build log
Comment 10 Michael Cordingley 2012-06-01 22:54:26 UTC
Try using a different mirror for your packages.  That's ultimately what fixed it for me.  I'm using

GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo/"

for your reference.
Comment 11 Robert Förster 2012-06-03 19:17:28 UTC
this is still broken here, tried different mirrors, no dice, happens on a new system as on some other boxes.
Comment 12 Diane 2012-06-04 16:37:50 UTC
Using different mirrors doesnt work for me either.
Comment 13 Robert Förster 2012-06-07 07:01:39 UTC
whar works is:
1. install python2.6
2. eselect python set --python2 1 (while 1 is 2.6, check that with list before)
3. reemerge java-toolkit
4. emerge glassfish-persistence
5. eselect python set --python2 2 (or whatever was your last active python version)

so likely a py2.7 bug (or javatoolkit not completely compatible with it)
Comment 14 Florian Philipp 2012-06-09 12:21:10 UTC
Can someone please reopen this bug? We cannot rely on python-2.6 forever.

It seems to be a bug in javatoolkit. Has someone opened a report for this?
Comment 15 Ralph Sennhauser (RETIRED) gentoo-dev 2012-06-09 13:56:18 UTC
python 2.7 has a lovely new feature:

elif file[:2] == './':
    raise ValueError("local file url may start with / or file:. Unknown url of type: %s" % url)
Comment 16 Ralph Sennhauser (RETIRED) gentoo-dev 2012-06-10 08:30:53 UTC
Can't be fixed in javatoolkit, so fixing the input to not trigger this exception.

*glassfish-persistence-1.0-r1 (10 Jun 2012)

  10 Jun 2012; Ralph Sennhauser <sera@gentoo.org>
  +glassfish-persistence-1.0-r1.ebuild,
  +files/glassfish-persistence-1.0-python2.7-sax-parser.patch:
  Fix building without python2.6 installed. #414807
  Bump EAPI, fix HOMPAGE and QA issues.


Thanks for the report and Robert Förster for finding out what's going on here.