Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] ant-core emerge problem with ibm-jdk-bin-1.6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 217
Location: Stockholm, Sweden

PostPosted: Tue May 26, 2009 11:02 pm    Post subject: [SOLVED] ant-core emerge problem with ibm-jdk-bin-1.6 Reply with quote

Anyone else having trouble upgrading ant-core with ibm-jdk?

I have a G4 with ibm-jdk installed
Code:
quicky ~ # java-config -L
The following VMs are available for generation-2:
1)   IBM JDK 1.4.2.13 [ibm-jdk-bin-1.4]
*)   IBM JDK 1.6.0.4 [ibm-jdk-bin-1.6]

No problems otherwise with the system, but since a few days ago, I haven't been able to upgrade dev-java/ant-core. When I do a regular world update and get:
Code:

[ebuild     U ] dev-java/ant-core-1.7.1-r4 [1.7.1-r2] USE="-doc -source" 0 kB [0]
[ebuild     U ] dev-java/jython-2.2.1-r1 [2.1-r11] USE="-doc -examples% -mysql% -oracle% -postgres% readline -servletapi% -source" 0 kB [?=>0]

I get the following in the ebuild log:
Code:
INFO: setup
Using: ibm-jdk-bin-1.6

INFO: prepare
Applying 1.7.1-pkg-info.patch ...
Applying 1.7.1-jdk4-javadoc.patch ...

ERROR: prepare
If the output above contains:
ImportError:
/usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so:
undefined symbol: PyUnicodeUCS2_DecodeUTF8
Try re-emerging dev-python/pyxml

ERROR: dev-java/ant-core-1.7.1-r4 failed.
Call stack:
              ebuild.sh, line   48:  Called src_prepare
            environment, line 4114:  Called java-ant_bsfix_one 'build.xml'
            environment, line 2147:  Called java-ant_bsfix_files 'build.xml'
            environment, line 2128:  Called _bsfix_die 'xml-rewrite2 failed: build.xml'
            environment, line  271:  Called die

I have tried re-emerging pyxml and expat. No luck. I don't have python2.4 installed (have been running python2.5 since it came out) and have always done the required "python-updater" after upgrades. The machine is entirely stable but for a few select packages. Any ideas?


Last edited by iMike on Wed May 27, 2009 8:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed May 27, 2009 2:43 am    Post subject: Reply with quote

You might want to run a "revdep-rebuild" and see if that finds any missing libraries. Barring that, do you by chance have the "build" use flag enabled in python? You may want to try re-emerging python in either case.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 217
Location: Stockholm, Sweden

PostPosted: Wed May 27, 2009 1:06 pm    Post subject: Reply with quote

Thanks for the response, JoseJX.

I've been using the "update" script at <https://forums.gentoo.org/viewtopic-t-546828-postdays-0-postorder-asc-start-0.html> for some years now, so I do a revdep-rebuild with every emerge (usually daily). Doing a "revdep-rebuild -ip" just now gives me nothing to rebuild.

I don't have the "build" flag set. For the single python on my system, I have:
Code:

dev-lang/python-2.5.4-r2
Installed versions:  2.5.4-r2(2.5)(10:35:48 AM 05/14/2009)(berkdb gdbm ipv6 ncurses readline sqlite ssl threads xml -build -doc -elibc_uclibc -examples -tk -ucs2 -wininst)


Is this a bug worth filing? I could try rebuilding all my java packages, but that seems a bit excessive and then I might not know where the real problem lies. I would have to rebuild:
Code:

quicky ~ # eix -I --only-names | grep jdk
dev-java/ibm-jdk-bin
virtual/jdk
quicky ~ # eix -I --only-names | grep java
dev-java/ant
dev-java/ant-antlr
dev-java/ant-apache-bcel
dev-java/ant-apache-bsf
dev-java/ant-apache-log4j
dev-java/ant-apache-oro
dev-java/ant-apache-regexp
dev-java/ant-apache-resolver
dev-java/ant-commons-logging
dev-java/ant-commons-net
dev-java/ant-core
dev-java/ant-jai
dev-java/ant-javamail
dev-java/ant-jdepend
dev-java/ant-jsch
dev-java/ant-junit
dev-java/ant-nodeps
dev-java/ant-swing
dev-java/ant-trax
dev-java/antlr
dev-java/avalon-framework
dev-java/avalon-logkit
dev-java/batik
dev-java/bcel
dev-java/bsf
dev-java/commons-io
dev-java/commons-logging
dev-java/commons-net
dev-java/eclipse-ecj
dev-java/fop
dev-java/gjdoc
dev-java/ibm-jdk-bin
dev-java/jakarta-oro
dev-java/jakarta-regexp
dev-java/java-config
dev-java/java-config-wrapper
dev-java/javacc
dev-java/javacup
dev-java/javatoolkit
dev-java/jdepend
dev-java/jsch
dev-java/junit
dev-java/jython
dev-java/jzlib
dev-java/libreadline-java
dev-java/log4j
dev-java/lucene
dev-java/rhino
dev-java/servletapi
dev-java/sun-jaf
dev-java/sun-jai-bin
dev-java/sun-javamail
dev-java/sun-jms
dev-java/xalan
dev-java/xalan-serializer
dev-java/xerces
dev-java/xjavac
dev-java/xml-commons-external
dev-java/xml-commons-resolver
dev-java/xmlgraphics-commons
java-virtuals/javamail
Back to top
View user's profile Send private message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 217
Location: Stockholm, Sweden

PostPosted: Wed May 27, 2009 4:53 pm    Post subject: Reply with quote

I read up a bit on python-updater and tried:
Code:
# python-updater -p -o 2.4 -eeclass
 * Starting Python Updater from 2.4 to 2.5 :
 * Couldn't find old libpython soname
 * Disabling soname check.
 *   Adding to list: =x11-libs/vte-0.17.4-r3
 *   Adding to list: =dev-libs/boost-1.35.0-r2

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

Calculating dependencies... done!
[ebuild   R   ] dev-libs/boost-1.35.0-r2  USE="expat -debug -doc -icu -mpi -tools" 0 kB
[ebuild   R   ] x11-libs/vte-0.17.4-r3  USE="opengl python -debug -doc" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
then went ahead and reinstalled them. It unfortunately made absolutely no difference.
Back to top
View user's profile Send private message
iMike
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 217
Location: Stockholm, Sweden

PostPosted: Wed May 27, 2009 8:22 pm    Post subject: Reply with quote

Solved as follows:
Code:
# qdepends dev-java/ant-core
dev-java/ant-core-1.7.1-r2: >=virtual/jdk-1.4 !dev-java/ant-tasks !dev-java/ant-tasks >=dev-java/java-config-2.1.6 >=sys-apps/portage-2.1.2.7 >=sys-apps/portage-2.1.2.7 >=dev-java/javatoolkit-0.3.0-r2

then
Code:
emerge -av1 =virtual/jdk-1.4.2 =virtual/jdk-1.6.0 dev-java/java-config portage javatoolkit

After that, not problems emerging ant-core.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum