Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60185 - Emerging commons-cli fails with package org.apache.commons.lang not found
Summary: Emerging commons-cli fails with package org.apache.commons.lang not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-12 16:10 UTC by Tor Klingberg
Modified: 2004-08-23 14:48 UTC (History)
0 users

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 Tor Klingberg 2004-08-12 16:11:00 UTC
Trying to emerge dev-java/commons-cli-1.0-r4 I get this:

# emerge -v commons-cli
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/commons-cli-1.0-r4 to /
>>> md5 src_uri ;-) cli-1.0-src.tar.gz
>>> Unpacking source...
>>> Unpacking cli-1.0-src.tar.gz to /var/tmp/portage/commons-cli-1.0-r4/work
 * Applying commons-cli-1.0-gentoo.diff...                                [ ok ]>>> Source unpacked.
Buildfile: build.xml
 
jar:
    [mkdir] Created dir: /var/tmp/portage/commons-cli-1.0-r4/work/commons-cli-1.0/target/classes
    [javac] Compiling 18 source files to /var/tmp/portage/commons-cli-1.0-r4/work/commons-cli-1.0/target/classes
    [javac] /var/tmp/portage/commons-cli-1.0-r4/work/commons-cli-1.0/src/java/org/apache/commons/cli/TypeHandler.java:69: package org.apache.commons.lang does not exist
    [javac] import org.apache.commons.lang.NumberUtils;
    [javac]                                ^
    [javac] /var/tmp/portage/commons-cli-1.0-r4/work/commons-cli-1.0/src/java/org/apache/commons/cli/TypeHandler.java:178: cannot resolve symbol
    [javac] symbol  : variable NumberUtils
    [javac] location: class org.apache.commons.cli.TypeHandler
    [javac]             return NumberUtils.createNumber(str);
    [javac]                    ^
    [javac] 2 errors
 
BUILD FAILED
file:/var/tmp/portage/commons-cli-1.0-r4/work/commons-cli-1.0/build.xml:32: Compile failed; see the compiler error output for details.
 
Total time: 13 seconds
 
!!! ERROR: dev-java/commons-cli-1.0-r4 failed.
!!! Function src_compile, Line 35, Exitcode 1
!!! compilation failed


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




# emerge info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.8p1
Autoconf: sys-devel/autoconf-2.58
Automake: sys-devel/automake-1.7.5-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.pudas.net/gentoo ftp://mirror.pudas.net/gentoo
ftp://ftp.uninett.no/pub/linux/Gentoo http://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb cdr cjk crypt cups encode esd foomaticdb
gdbm gif gnome gpg gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod
motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png ppds
python quicktime readline sdl slang spell ssl svga tcpd tetex truetype usb x86
xml2 xmms xv zlib"
 

I have the following versions of commons-cli's dependencies:
dev-java/blackdown-jdk-1.4.1
dev-java/ant-1.5.4-r1
dev-java/commons-logging-1.0.3-r1
dev-java/junit-3.8.1
dev-java/commons-lang-2.0-r1
Comment 1 Tor Klingberg 2004-08-13 09:16:46 UTC
Looks like this guy has the same problem:
http://www.google.se/search?q=cache:lBtMyUHKhI0J:www.pcpchina.com/forum/forum_posts.asp%3FTID%3D10928%26PN%3D1+%22
Comment 2 Chris Aniszczyk (RETIRED) gentoo-dev 2004-08-23 14:48:39 UTC
output of `java-config -p commons-lang` , please :)

If you get no output for the location of commons-lang, 
     emerge -C commons-lang && emerge commons-lang

you can also try java-config -X to clear all classpath

I haven't been able to reproduce this bug yet, it seems that commons-lang isn't b eing found. I'll close this if I don't get a response soon ;)