Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33758 - ant crashes with java-config 1.1.6
Summary: ant crashes with java-config 1.1.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 31468
  Show dependency tree
 
Reported: 2003-11-18 07:21 UTC by Paul Pacheco
Modified: 2003-11-18 13:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Pacheco 2003-11-18 07:21:47 UTC
Last night, I upgraded java-config from 1.1.5, to 1.1.6, and now ant stopped 
working. I tried reemerging both java-config and ant, and I am still getting 
the same results. 

Reproducible: Always
Steps to Reproduce:
1. emerge -u java-config ant 
2. ant 
 
Actual Results:  
I get the following error: 
Traceback (most recent call last): 
  File "/usr/bin/java-config", line 96, in ? 
    run(do_me) 
  File "/usr/bin/java-config", line 45, in run 
    func(args) 
  File "/usr/lib/python2.2/site-packages/java_config/jc_options.py", line 318, 
in __call__ 
    print collect_packages(arg) 
  File "/usr/lib/python2.2/site-packages/java_config/jc_options.py", line 303, 
in collect_packages 
    return norm_cp(classpath) 
  File "/usr/lib/python2.2/site-packages/java_config/jc_options.py", line 286, 
in norm_cp 
    return new_cp 
NameError: global name 'new_cp' is not defined 
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/tools/ant/Main 
 

Expected Results:  
I would expect ant to search for build.xml file and perform the tasks listed 
there. 

Software I currently have installed that may be relevant. 
 
dev-java/java-sdk-docs-1.4.2  
dev-java/java-config-1.1.6  
dev-java/ant-1.5.4-r1  
dev-java/sun-jdk-1.4.2.02  
sys-devel/gcc-config-1.3.3-r1 
sys-devel/gcc-3.3.2-r2 
 
 
output of emerge info: 
 
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 
2.4.19-16mdkcustom) 
================================================================= 
System uname: 2.4.19-16mdkcustom i686 Pentium III (Coppermine) 
Gentoo Base System version 1.4.3.12 
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -march=pentium3 -pipe -mmmx " 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-O3 -march=pentium3 -pipe -mmmx " 
DISTDIR="/usr/portage/distfiles" 
FEATURES="sandbox autoaddcvs ccache distcc" 
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j7" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod 
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm 
berkdb slang readline arts tetex svga java X sdl gpm tcpd pam libwww ssl perl 
python esd imlib oggvorbis qt kde motif opengl acpi acpi4linux alsa amd apache2 
artswrappersuid autofs directfb dnd doc dvd emacs fbcon gd gd-external 
imagemagick mozilla mozsvg music mysql oci8 odbc php pic radeon rage128 samba 
sse tcltk type1 usb wmf wxwindows X509 xvid -gtk -gnome"
Comment 1 Jason A. Mobarak (RETIRED) gentoo-dev 2003-11-18 07:43:58 UTC
This was a small typo... fixed in 1.1.6-r1.
Comment 2 Haroon Rafique 2003-11-18 10:55:54 UTC
You must be referring to:

http://www.gentoo.org/cgi-bin/viewcvs.cgi/java-config/python/java_config/jc_options.py.diff?r1=1.12&r2=1.13&cvsroot=gentoo-src

It works for me (just to let you know). I didn't want to waste an "rsync" on a
1-line change, just so other people can know as well.
Comment 3 Paul Pacheco 2003-11-18 13:20:43 UTC
rsynced, updated and it works great now.
Thanks.