Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 89784
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Erol Kutay <ekutay@goldmail.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
commons-codec-1.3-soundextest-fix.patch Disables broken tests in soundexTest.java patch Justin Clark 2005-04-22 04:56 0000 1.19 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 89784 depends on: Show dependency tree
Bug 89784 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-04-20 03:49 0000
Cannot build dev-java/commons-codec-1.3 with statement

/var/tmp/portage/commons-codec-1.3/work/build.xml:180: Test org.apache.commons.codec.language.SoundexTest failed

Before following warnings are printed out:
compile.tests:
    [javac] Compiling 17 source files to /var/tmp/portage/commons-codec-1.3/work/output/tests
    [javac] /var/tmp/portage/commons-codec-1.3/work/src/test/org/apache/commons/codec/language/SoundexTest.java:298: warning: getMaxLength() in org.apache.commons.codec.language.Soundex has been deprecated
    [javac]         soundex.setMaxLength(soundex.getMaxLength());
    [javac]                                     ^
    [javac] /var/tmp/portage/commons-codec-1.3/work/src/test/org/apache/commons/codec/language/SoundexTest.java:298: warning: setMaxLength(int) in org.apache.commons.codec.language.Soundex has been deprecated
    [javac]         soundex.setMaxLength(soundex.getMaxLength());
    [javac]                ^
    [javac] /var/tmp/portage/commons-codec-1.3/work/src/test/org/apache/commons/codec/language/SoundexTest.java:304: warning: setMaxLength(int) in org.apache.commons.codec.language.Soundex has been deprecated
    [javac]         soundex.setMaxLength(2);
    [javac]                ^
    [javac] /var/tmp/portage/commons-codec-1.3/work/src/test/org/apache/commons/codec/net/URLCodecTest.java:44: warning: getEncoding() in org.apache.commons.codec.net.URLCodec has been deprecated
    [javac]         assertEquals(urlCodec.getEncoding(), urlCodec.getDefaultCharset());
    [javac]                              ^
    [javac] 4 warnings


This happens on several machines. 

Here my emerge info output:

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r3 i686)
=================================================================
System uname: 2.6.11-gentoo-r3 i686 Intel(R) Pentium(R) M processor 1200MHz
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 13 2005, 13:31:38)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O4 -mtune=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O4 -mtune=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apm arts artswrappersuid avi berkdb bitmap-fonts cdr crypt cups curl divx4linux dpms dvd dvdr dvdread emacs emboss encode esd fam ffmpeg flac font-server foomaticdb fortran freetype gdbm gif gpm gtk2 imlib ipv6 java jpeg junit kde kdeenablefinal ldap libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg mplayer ncurses nls ogg oggvorbis opengl oss pam pdflib perl pic png python qt quicktime readline sdl spell sse sse2 ssl svga tcpd tidy tiff transcode truetype truetype-fonts type1-fonts vorbis xine xinerama xml2 xmms xv xvid zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

Regards
-- erol

------- Comment #1 From Jan Brinkmann (RETIRED) 2005-04-20 08:34:10 0000 -------
please tell us which jdk you use, and post the real error. what you've posted
are only warnings.

------- Comment #2 From Erol Kutay 2005-04-20 08:56:32 0000 -------
#:~ > java -version                                                             
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
#:~ > java-config -L                                                            
[sun-jdk-1.4.2.08] "Sun JDK 1.4.2.08" (/etc/env.d/java/20sun-jdk-1.4.2.08) *


The error is already posted, it was just a hint to paste the warnings too. This
is the whole output, started at the 4 warnings, which I have posted:
    [javac] 4 warnings

test:
    [junit] Running org.apache.commons.codec.StringEncoderComparatorTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.023 sec
    [junit] Running org.apache.commons.codec.binary.Base64Test
    [junit] Tests run: 23, Failures: 0, Errors: 0, Time elapsed: 0.054 sec
    [junit] Running org.apache.commons.codec.binary.BinaryCodecTest
    [junit] Tests run: 13, Failures: 0, Errors: 0, Time elapsed: 0.027 sec
    [junit] Running org.apache.commons.codec.binary.HexTest
    [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0.063 sec
    [junit] Running org.apache.commons.codec.digest.DigestUtilsTest
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.174 sec
    [junit] Running org.apache.commons.codec.language.DoubleMetaphoneTest
    [junit] Tests run: 13, Failures: 0, Errors: 0, Time elapsed: 0.101 sec
    [junit] Running org.apache.commons.codec.language.MetaphoneTest
    [junit] Tests run: 32, Failures: 0, Errors: 0, Time elapsed: 0.09 sec
    [junit] Running org.apache.commons.codec.language.RefinedSoundexTest
    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.009 sec
    [junit] Running org.apache.commons.codec.language.SoundexTest
    [junit] Tests run: 19, Failures: 1, Errors: 0, Time elapsed: 0.031 sec

BUILD FAILED
/var/tmp/portage/commons-codec-1.3/work/build.xml:180: Test
org.apache.commons.codec.language.SoundexTest failed

Total time: 13 seconds

!!! ERROR: dev-java/commons-codec-1.3 failed.
!!! Function src_compile, Line 47, Exitcode 1
!!! compile problem
!!! If you need support, post the topmost build error, NOT this status message.

Unfortunately the unit test does not give any hints about what went wrong, eg.
which test of the 19 failed.

------- Comment #3 From Justin Clark 2005-04-21 07:07:10 0000 -------
The problem appears to be with the following tests

File: src/test/org/apache/commons/codec/language/SoundexTest.java
testUsMappingOWithDiaeresis
testUsMappingEWithAcute

The source seems to indicate that there is a problem with handling "fancy" characters in US (I get smae problem with UK) mappings.

It refers to the following bug apache report 
http://issues.apache.org/bugzilla/show_bug.cgi?id=29080

I'll do some more digging.

DaClink

------- Comment #4 From Dave Nellans 2005-04-21 12:30:11 0000 -------
I can confirm the same problem, failing the soundx test with the newest sun-jdk
1.4.2_08".  i googled a bit and found nothing of use unfortunately.

------- Comment #5 From Justin Clark 2005-04-22 04:54:37 0000 -------
I've done some digging but unfortunatley fixing this is beyond me. I got around
the installation problem by disabling the two tests. I'll post the patch. Its
just a nasty comment out so think a better solution is required.

------- Comment #6 From Justin Clark 2005-04-22 04:56:04 0000 -------
Created an attachment (id=56912) [details]
Disables broken tests in soundexTest.java

------- Comment #7 From Jan Brinkmann (RETIRED) 2005-04-22 08:48:59 0000 -------
fixed in cvs, thanks

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug