Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109384 - ant-tasks-1.6.5 fails to build without jdk-1.5
Summary: ant-tasks-1.6.5 fails to build without jdk-1.5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-15 11:17 UTC by Richard Fish
Modified: 2005-10-15 12:58 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 Richard Fish 2005-10-15 11:17:04 UTC
Building ant-tasks-1.6.5 with system VM set to 1.4.2 (either sun-jdk or
blackdown-jdk) results in a build error.  Setting the system VM to
sun-jdk-1.5.0.05 results in a successful build.


Reproducible: Always
Steps to Reproduce:
1. emerge dev-java/sun-jdk-1.4.2.09 (or dev-java/blackdown-jdk-1.4.2.02)
2. java-config -S sun-jdk-1.4.2.09 (or blackdown-jdk-1.4.2.02)
3. /usr/sbin/env-update && source /etc/profile
4. emerge --oneshot =dev-java/ant-tasks-1.6.5

Actual Results:  
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/ant-tasks-1.6.5 to /
>>> md5 files   ;-) ant-tasks-1.6.2-r10.ebuild
>>> md5 files   ;-) ant-tasks-1.6.5.ebuild
>>> md5 files   ;-) ant-tasks-1.6.2-r9.ebuild
>>> md5 files   ;-) files/digest-ant-tasks-1.6.5
>>> md5 files   ;-) files/1.6.2-scp.patch
>>> md5 files   ;-) files/digest-ant-tasks-1.6.2-r10
>>> md5 files   ;-) files/digest-ant-tasks-1.6.2-r9
>>> md5 src_uri ;-) apache-ant-1.6.5-src.tar.bz2
>>> Unpacking source...
>>> Unpacking apache-ant-1.6.5-src.tar.bz2 to /var/tmp/portage/ant-tasks-1.6.5/work
>>> Source unpacked.
Buildfile: build.xml

prepare:

check_for_optional_packages:

BUILD FAILED
java.lang.UnsupportedClassVersionError: org/apache/regexp/RE (Unsupported
major.minor version 49.0)

Total time: 1 second

!!! ERROR: dev-java/ant-tasks-1.6.5 failed.
!!! Function src_compile, Line 79, Exitcode 1
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
The results from:

1. emerge dev-java/sun-jdk-1.5.0.05
2. java-config -S sun-jdk-1.5.0.05
3. /usr/sbin/env-update && source /etc/profile
4. emerge --oneshot =dev-java/ant-tasks-1.6.5

carcharias rjf # emerge --info
Portage 2.0.53_rc5 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-suspend2-r4 i686)
=================================================================
System uname: 2.6.13-suspend2-r4 i686 Intel(R) Pentium(R) M processor 2.13GHz
Gentoo Base System version 1.12.0_pre9
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -Os -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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/splash /etc/terminfo
/etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium-m -Os -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo/"
MAKEOPTS="-j1"
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 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl directfb
doc eds emboss encode fam flac foomaticdb fortran gdbm gif gpm gtk gtk2 guile
imagemagick imlib ipv6 java jpeg junit kde kdeenablefinal libg++ libwww mad
mikmod mmx motif mp3 mpeg ncurses nls ogg oggvorbis pam pdflib perl png python
qt quicktime readline ruby samba scanner sdl spell sse ssl svga tcpd tetex tiff
truetype truetype-fonts type1-fonts vorbis xine xml2 xv zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

carcharias rjf # emerge --verbose --pretend ant-tasks

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] dev-java/ant-tasks-1.6.5  -javamail -noantlr -nobcel
-nobeanutils -nobsf -nobsh -nocommonslogging -nocommonsnet -nojdepend -nojsch
-nojython -nolog4j -nooro -noregexp +norhino +noxalan +noxerces 0 kB
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2005-10-15 11:21:17 UTC
user unmasked 1.5 without knowing what he was doeing
Comment 2 Richard Fish 2005-10-15 12:39:42 UTC
(In reply to comment #1)
> user unmasked 1.5 without knowing what he was doeing

What?  Please explain.  Ant-tasks-1.6.5 fails to build _without_ unmasking 1.5.
 In fact, this problem is what lead me to unmask 1.5 in the first place!

Just to try, I removed sun-jdk from package.unmask, unmerged sun-jdk-1.5.0.05,
updated java-config, and tried again.  Here are my results:

carcharias rjf # java-config -L
[sun-jdk-1.4.2.09] "Sun JDK 1.4.2.09" (/etc/env.d/java/20sun-jdk-1.4.2.09) *
[blackdown-jdk-1.4.2.02] "Blackdown JDK 1.4.2.02"
(/etc/env.d/java/20blackdown-jdk-1.4.2.02)
carcharias rjf # emerge --verbose ant-tasks
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-java/ant-tasks-1.6.5 to /
>>> md5 files   ;-) ant-tasks-1.6.2-r10.ebuild
>>> md5 files   ;-) ant-tasks-1.6.5.ebuild
>>> md5 files   ;-) ant-tasks-1.6.2-r9.ebuild
>>> md5 files   ;-) files/digest-ant-tasks-1.6.5
>>> md5 files   ;-) files/1.6.2-scp.patch
>>> md5 files   ;-) files/digest-ant-tasks-1.6.2-r10
>>> md5 files   ;-) files/digest-ant-tasks-1.6.2-r9
>>> md5 src_uri ;-) apache-ant-1.6.5-src.tar.bz2
>>> Unpacking source...
>>> Unpacking apache-ant-1.6.5-src.tar.bz2 to /var/tmp/portage/ant-tasks-1.6.5/work
>>> Source unpacked.
Buildfile: build.xml

prepare:

check_for_optional_packages:

BUILD FAILED
java.lang.UnsupportedClassVersionError: org/apache/regexp/RE (Unsupported
major.minor version 49.0)

Total time: 2 seconds

!!! ERROR: dev-java/ant-tasks-1.6.5 failed.
!!! Function src_compile, Line 79, Exitcode 1
!!! build failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 3 Richard Fish 2005-10-15 12:58:10 UTC
Nevermind.  I see jakarta-regexp somehow got rebuilt with 1.5, and was causing
the problem.

Cheers,
-Richard