<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>51082</bug_id>
          
          <creation_ts>2004-05-14 12:51 0000</creation_ts>
          <short_desc>Junit tests fail when emerging dev-java/commons-lang</short_desc>
          <delta_ts>2004-05-18 21:24:21 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>codemaestro@adelphia.net</reporter>
          <assigned_to>java@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>codemaestro@adelphia.net</who>
            <bug_when>2004-05-14 12:51:48 0000</bug_when>
            <thetext>When emerging dev-java/commons-lang-2.0-r1 with the &apos;junit&apos; USE flag set, the build failed because the junit library was not set correctly during the build


Reproducible: Always
Steps to Reproduce:
1. Set the junit USE flag
2. emerge dev-java/commons-lang-2.0-r1  (this may have been present in the previous versions)
3. During the test phase, the build fails with the output shown below.

Actual Results:  
The ebuild failed with the following output:
Buildfile: build.xml

init:
     [echo] -------- commons-lang 2.0 --------

prepare:
    [mkdir] Created dir:
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target
    [mkdir] Created dir:
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/classes
    [mkdir] Created dir:
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/conf
    [mkdir] Created dir:
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/tests

static:
     [copy] Copying 1 file to
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/conf
     [copy] Replacing: @name@ -&gt; commons-lang
     [copy] Replacing: @version@ -&gt; 2.0

compile:
    [javac] Compiling 57 source files to
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/classes
     [copy] Copying 7 files to
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/classes

jar:
    [mkdir] Created dir:
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/dist
    [mkdir] Created dir:
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/classes/META-INF
     [copy] Copying 1 file to
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/classes/META-INF
      [jar] Building jar:
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/dist/commons-lang-2.0.jar

init:
     [echo] -------- commons-lang 2.0 --------

prepare:

static:

compile:

compile.tests:
    [javac] Compiling 83 source files to
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/target/tests
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.

test.lang:
     [echo] Running lang package tests ...
     [java] Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError:
junit/textui/TestRunner



BUILD FAILED
/var/tmp/portage/commons-lang-2.0-r1/work/commons-lang-2.0-src/build.xml:134:
Java returned: 1

Total time: 8 seconds



Expected Results:  
Finished the execution of the unit tests for the software.

Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.6-rc1)
=================================================================
System uname: 2.6.6-rc1 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=athlon-xp -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse -mmmx
-m3dnow&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=athlon-xp -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse
-mmmx -m3dnow&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox&quot;
GENTOO_MIRRORS=&quot;http://open-systems.ufl.edu/mirrors/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo rsync://mirrors.tds.net/gentoo
http://gentoo.mirrors.pair.com/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;3dnow X X509 alsa antlr avi bcel berkdb cdr crypt cups dvd dvdr encode
foomaticdb gdbm gif gimpprint gtk gtk2 imap imlib imlib2 java javamail jpeg
junit libg++ libwww log4j mad mikmod mmx motif moznocompose moznoirc moznomail
mozxmlterm mpeg ncurses nls offensive oggvorbis opengl oss pam pdflib png ppds
python quicktime readline regexp sdl slang spell sse ssl svga tcltk tcpd tiff
transcode truetype unicode usb wxwindows x86 xerces xface xml2 xmms xv zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>codemaestro@adelphia.net</who>
            <bug_when>2004-05-14 13:00:44 0000</bug_when>
            <thetext>There are two workarounds which I found fixed this problem, the second could be used to fix the issue long term.

1- Remove junit USE flag prior to emerging the ebuild.

2- Perform the following after the source is unpacked and prior to compilation:
 echo junit.jar=`java-config -p junit` &gt;build.properties

this will put the proper junit library into the variable used for setting the classpath prior to running the test.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>codemaestro@adelphia.net</who>
            <bug_when>2004-05-14 16:07:31 0000</bug_when>
            <thetext>Created an attachment (id=31442)
patch for updating ebuild to fix issue

I created this patch based on the changes to the commons-cli ebuild which
performs a similar action</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zx@gentoo.org</who>
            <bug_when>2004-05-18 21:24:21 0000</bug_when>
            <thetext>Thanks, fixed in portage.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>31442</attachid>
            <date>2004-05-14 16:07 0000</date>
            <desc>patch for updating ebuild to fix issue</desc>
            <filename>commons-lang-2.0-r1.ebuild.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGNvbW1vbnMtbGFuZy0yLjAtcjEuZWJ1aWxkCTIwMDQtMDUtMTQgMTk6MDc6MTcuNzQyMzI3
ODA4IC0wNDAwCisrKyBjb21tb25zLWxhbmctMi4wLXIxLmVidWlsZC5wYXRjaGVkCTIwMDQtMDUt
MTQgMTk6MDU6NDAuMDAwMTg2ODcyIC0wNDAwCkBAIC0yMCw2ICsyMCwxMiBAQAogCiBTPSIke1dP
UktESVJ9LyR7UE59LSR7UFZ9LXNyYyIKIAorc3JjX3VucGFjaygpIHsKKwl1bnBhY2sgJHtBfQor
CWNkICR7U30KKwl1c2UganVuaXQgJiYgZWNobyAianVuaXQuamFyPWBqYXZhLWNvbmZpZyAtcCBq
dW5pdGAiID4+IGJ1aWxkLnByb3BlcnRpZXMKK30KKwogc3JjX2NvbXBpbGUoKSB7CiAJbG9jYWwg
YW50ZmxhZ3M9ImphciIKIAl1c2UgamlrZXMgJiYgYW50ZmxhZ3M9IiR7YW50ZmxhZ3N9IC1EYnVp
bGQuY29tcGlsZXI9amlrZXMiCg==
</data>        

          </attachment>
    </bug>

</bugzilla>