Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284325 - Stable request for dev-java/lucene-2.4.1
Summary: Stable request for dev-java/lucene-2.4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL: http://www.gentoo.org/proj/en/java/ge...
Whiteboard:
Keywords: STABLEREQ
: 289964 291789 (view as bug list)
Depends on:
Blocks: 284294
  Show dependency tree
 
Reported: 2009-09-09 18:57 UTC by Petteri Räty (RETIRED)
Modified: 2010-03-21 19:33 UTC (History)
3 users (show)

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


Attachments
dev-java:lucene-2.4.0:20090911-222726.log (dev-java:lucene-2.4.0:20090911-222726.log,29.79 KB, text/plain)
2009-09-11 22:49 UTC, Markus Meier
Details
Lucene build failure in org.apache.lucene.index.TestIndexInput (build.log,29.78 KB, text/plain)
2009-09-21 12:09 UTC, Nirbheek Chauhan (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2009-09-09 18:57:15 UTC
Needed for Netbeans 6.7. robbat2: do you approve?
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-09-09 23:59:20 UTC
+1 from maintainer.

Arches, please stabilize.

target keywords: amd64 ppc x86

test instructions:
FEATURES=test emerge =lucene-2.4*
Comment 2 Markus Meier gentoo-dev 2009-09-11 22:49:31 UTC
Created attachment 203846 [details]
dev-java:lucene-2.4.0:20090911-222726.log

testsuite fails here on amd64/x86:

dev-java/lucene-2.4.0 USE="source test -doc"

the two failing tests:

    [junit] Testcase: testRead(org.apache.lucene.index.TestIndexInput): FAILED
    [junit] expected:<[^@]> but was:<[??]>
    [junit] junit.framework.ComparisonFailure: expected:<[^@]> but was:<[??]>
    [junit]     at org.apache.lucene.index.TestIndexInput.testRead(TestIndexInput.java:89)

    [junit] Test org.apache.lucene.index.TestIndexInput FAILED
    [junit] Testsuite: org.apache.lucene.index.TestIndexModifier
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 10.423 sec

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30.5 i686)
=================================================================
System uname: Linux-2.6.30.5-i686-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 11 Sep 2009 20:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB de"
MAKEOPTS="-j2"
PKGDIR="/mnt/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 avahi berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr eds emboss encode esd evo examples fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad mikmod mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly objc objc++ ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session source spell spl ssl startup-notification svg sysfs tcpd test thunar tiff truetype unicode usb vorbis win32codecs x264 x86 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB de" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-09-21 11:29:16 UTC
I can't reproduce here.

maekke: please provide information about your java environment.

The testcase that is failing specifically is checking that hex bytes 0xC080 match unicode \u0000, but your system is saying that they don't.

If that testcase is the only failure, I suggest you mark stable and debug it afterwards. Normal usage of Lucene will never hit that byte sequence in the index files.
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-09-21 12:06:38 UTC
I have a build failure in the same place, but perhaps in a different way:

    [junit] Testsuite: org.apache.lucene.index.TestIndexInput
    [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.499 sec
    [junit] 
    [junit] Testcase: testRead(org.apache.lucene.index.TestIndexInput):	FAILED
    [junit] expected:<[]> but was:<[??]>
    [junit] junit.framework.ComparisonFailure: expected:<[]> but was:<[??]>
    [junit] 	at org.apache.lucene.index.TestIndexInput.testRead(TestIndexInput.java:89)

--------------

GENTOO_VM=icedtea6-bin  CLASSPATH="" JAVA_HOME="/opt/icedtea6-bin-1.4.1"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"

--------------

# emerge --info
Portage 2.2_rc40 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo i686)
=================================================================
System uname: Linux-2.6.31-gentoo-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 20 Sep 2009 21:30:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.2-r1
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=native -pipe -ggdb"
DISTDIR="/mnt/btrfs/distfiles"
FEATURES="assume-digests buildpkg ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en en_IN en_US ja hi hi_IN"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/clutter /usr/local/portage/layman/nirbheek /usr/local/portage/layman/mozilla /usr/local/portage/layman/x11 /usr/local/portage/layman/gnome /usr/local/portage/layman/gnome-live"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion bluetooth branding bzip2 cairo cdr cjk cli consolekit cracklib crypt dbus dri dts dvd dvdr eds emboss encode evo exif faad ffmpeg firefox flac fortran gdbm gif gnome gnome-keyring gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg libnotify mad mikmod mmx mp3 mp4 mpeg mudflap nautilus ncurses networkmanager nls nptl nptlonly offensive ogg opengl openmp pam pcre pdf png policykit ppds pppd qt3support quicktime readline reflection sdl session slang spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora thunar tiff truetype unicode usb vorbis win32codecs x264 x86 xattr xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_IN en_US ja hi hi_IN" USERLAND="GNU" VIDEO_CARDS="radeon fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
--------------------

build.log attached below
Comment 5 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-09-21 12:09:56 UTC
Created attachment 204791 [details]
Lucene build failure in org.apache.lucene.index.TestIndexInput
Comment 6 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-09-21 13:02:06 UTC
Fails with sun-jdk-1.5 as well in exactly the same way

GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.20"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
Comment 7 Markus Meier gentoo-dev 2009-09-21 20:25:50 UTC
(In reply to comment #3)
> maekke: please provide information about your java environment.

GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.14"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2009-09-21 23:14:48 UTC
(In reply to comment #7)
> (In reply to comment #3)
> > maekke: please provide information about your java environment.
> 
> GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.14"
> JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
> 

Why are you testing with security vulnerable versions instead of the latest?

  06 Aug 2009; Christian Faulhammer <fauli@gentoo.org>
  sun-jdk-1.6.0.15.ebuild:
  stable x86, security bug 280409
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-11-04 08:31:26 UTC
nirbheek:
please retest on 2.4.1 for your UTF8 issue.

arches:
please ignore any failure on that single testcase for now and mark stable.
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-11-04 08:31:37 UTC
*** Bug 289964 has been marked as a duplicate of this bug. ***
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-11-04 08:31:44 UTC
*** Bug 291789 has been marked as a duplicate of this bug. ***
Comment 12 Christian Faulhammer (RETIRED) gentoo-dev 2009-11-19 14:41:52 UTC
x86 stable
Comment 13 Markus Meier gentoo-dev 2009-11-25 10:04:19 UTC
amd64 stable
Comment 14 Joe Jezak (RETIRED) gentoo-dev 2009-12-29 07:33:01 UTC
Marked ppc stable, closing since we're the last arch.
Comment 15 Navid Zamani 2010-03-21 16:16:34 UTC
I’m sorry to tell you this, but 2.4.1 doesn’t compile here.

This is the relevant part:

 * Disabling all optional ANT_TASKS
Buildfile: /var/tmp/portage/dev-java/lucene-2.4.1/work/lucene-2.4.1/build.xml

javacc-uptodate-check:

javacc-notice:

jflex-uptodate-check:

jflex-notice:

init:

clover.setup:

clover.info:
     [echo]
     [echo]       Clover not found. Code coverage reports disabled.
     [echo]

clover:

common.compile-core:
    [mkdir] Created dir: /var/tmp/portage/dev-java/lucene-2.4.1/work/lucene-2.4.1/build/classes/java
    [javac] Compiling 330 source files to /var/tmp/portage/dev-java/lucene-2.4.1/work/lucene-2.4.1/build/classes/java
    [javac] /var/tmp/portage/dev-java/lucene-2.4.1/work/lucene-2.4.1/src/java/org/apache/lucene/queryParser/CharStream.java:30: annotations are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable annotations)
    [javac]   @Deprecated
    [javac]    ^
    [javac] /var/tmp/portage/dev-java/lucene-2.4.1/work/lucene-2.4.1/src/java/org/apache/lucene/queryParser/QueryParser.java:1659: generics are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable generics)
    [javac]   private java.util.List<int[]> jj_expentries = new java.util.ArrayList<int[]>();
    [javac]                         ^
    [javac] 2 errors

BUILD FAILED
/var/tmp/portage/dev-java/lucene-2.4.1/work/lucene-2.4.1/common-build.xml:183: The following error occurred while executing this line:
/var/tmp/portage/dev-java/lucene-2.4.1/work/lucene-2.4.1/common-build.xml:409: Compile failed; see the compiler error output for details.

Total time: 3 seconds
Comment 16 Alistair Bush (RETIRED) gentoo-dev 2010-03-21 16:53:31 UTC
(In reply to comment #15)
> I’m sorry to tell you this, but 2.4.1 doesn’t compile here.
> 

This is not the bug to be commenting on.

what version of javacc do you have?   I believe this is due to javacc-5.0 which is unstable (for one).

Comment 17 Navid Zamani 2010-03-21 16:58:28 UTC
(In reply to comment #16)
> This is not the bug to be commenting on.
Well, if it’s marked as stable here, and it isn’t…

> what version of javacc do you have?   I believe this is due to javacc-5.0
Yes, I have javacc-5.0 installed. Could be.

> which is unstable (for one).
Yes. So? It’s not hard-masked, and so if it doesn’t work, it deserves a bug.

Should I simply mask javacc-5.0 or take it out of the unstable keywords?
Comment 18 Alistair Bush (RETIRED) gentoo-dev 2010-03-21 19:28:38 UTC
(In reply to comment #17)
> (In reply to comment #16)
> > This is not the bug to be commenting on.
> Well, if it’s marked as stable here, and it isn’t…
> 

But it is, you have a mixed tree, therefore nothing is "stable".  lucene-2.4.1 is stable against the stable tree.

> > what version of javacc do you have?   I believe this is due to javacc-5.0
> Yes, I have javacc-5.0 installed. Could be.
> 
> > which is unstable (for one).
> Yes. So? It’s not hard-masked, and so if it doesn’t work, it deserves a
> bug.

1) it is now hardmasked.
2) Yes it does deserve a bug,  just not this one, it needed a _new_ bug.  try #309961 (emerge =lucene-2.3.2-r1 fails with javacc-5.0)
Comment 19 Navid Zamani 2010-03-21 19:33:43 UTC
(In reply to comment #18)
> But it is, you have a mixed tree, therefore nothing is "stable".  lucene-2.4.1
> is stable against the stable tree.
I do not have a mixed tree. I have everything on ~amd64. Which is “unstable”. But unstable as in “might no run”. It should still compile and install. If it doesn’t do that, it should be hard-masked.

> 1) it is now hardmasked.
Wasn’t, a couple of hours ago when I synced. But in case you just added it: Thanks. :)

> 2) Yes it does deserve a bug,  just not this one, it needed a _new_ bug.  try
> bug #309961 (emerge =lucene-2.3.2-r1 fails with javacc-5.0)

Ok, thanks. :)