Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 329237

Summary: emerge dev-java/ant-nodeps-1.8.1 - Invalid implementation version between Ant core and Ant optional tasks
Product: Gentoo Linux Reporter: Stefan Sassenberg <stefan.sassenberg>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED INVALID    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: The requested build log

Description Stefan Sassenberg 2010-07-21 09:38:40 UTC
When emerging dev-java/ant-nodeps, the dependency dev-java/ant-core is emerged to version 1.8.1, then the emerge of ant-nodeps ends with an error message:
Invalid implementation version between Ant core and Ant optional tasks.
 core    : 1.8.1 in file:/usr/share/ant/lib/ant.jar
 optional: 1.7.1 in file:/usr/share/ant/lib/ant-nodeps.jar
 * ERROR: dev-java/ant-nodeps-1.8.1 failed:
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 4419:  Called eant 'jar-nodeps'
 *   environment, line  961:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"


Reproducible: Always

Steps to Reproduce:
1. emerge dev-java/ant-nodeps
2.
3.

Actual Results:  
The emerge bails out

Expected Results:  
The package is emerged to version 1.8.1

 ~ # emerge --info =dev-java/ant-nodeps-1.8.1
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.11.2-r.6.32-gentoo-r7 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Pssor_5000+-with-gentoo-1.12.13
Timestamp of tree: Wed, 21 Jul 2010 05:00:17 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.4.4-r13, 2.5.4-r3, 2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.1.2, 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.c/terminfo"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect- sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.tusthal.de/pub/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoror ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE.ISO-8859-1"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --comp--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --de=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/enlightenment /var/lib/layman/zugaina /var
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa amd64 analogtv ap bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cection cracklib crypt cups cxx dav dbus de_tvtoday dga divx dri dts dv dvb ayer dvbsetup dvd dvdr emboss emerald encode exif faac fam firefox flac foodb gdbm gimp glitz gpm gstreamer gtk gtk2 h323 iconv ipv6 jpeg lame lcms lify mad matroska mikmod mmx mmxext mng modules mp3 mp4 mpeg mudflap multilibl ncurses network nls nptl nptlonly nsplugin nss nvram ogg opengl openmp pago pcre pdf perl png ppds pppd python qt3support qt4 readline realmedia refon sdk sdl session sip spell spl sqlite sse sse2 ssl startup-notification s svg sysfs tcpd tiff truetype unicode usb v4l v4l2 vorbis wav wmp x264 xcb org xulrunner xv xvid zlib" ALSA_CARDS="bt87x hda-intel intel8x0" ALSA_PCM_NS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958ug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route shhm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anohn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groe authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbdate dir disk_cache env expires ext_filter file_cache filter headers ident iap include info log_config logio mem_cache mime mime_magic negotiation proxxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling s unique_id userdir usertrack vhost_alias" DVB_CARDS="sp887x" ELIBC="glibc"T_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz z633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" RUBY_TA="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pklscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpirq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALRTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


 ~ # emerge -pqv =dev-java/ant-nodeps-1.8.1
[ebuild     U ] dev-java/ant-nodeps-1.8.1 [1.7.1]

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


 ~ # cat /usr/tmp/portage/dev-java/ant-nodeps-1.8.1/temp/build.log
 * CPV:  dev-java/ant-nodeps-1.8.1
 * REPO: gentoo
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU
 * Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking apache-ant-1.8.1-src.tar.bz2 to /usr/tmp/portage/dev-java/ant-nodeps-1.8.1/work
>>> Unpacking ant-1.8.1-gentoo.tar.bz2 to /usr/tmp/portage/dev-java/ant-nodeps-1.8.1/work
>>> Source unpacked in /usr/tmp/portage/dev-java/ant-nodeps-1.8.1/work
>>> Compiling source in /usr/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1 ...
Rewriting attributes
Rewriting ./build.xml
 * Disabling all optional ANT_TASKS
Invalid implementation version between Ant core and Ant optional tasks.
 core    : 1.8.1 in file:/usr/share/ant/lib/ant.jar
 optional: 1.7.1 in file:/usr/share/ant/lib/ant-nodeps.jar
 * ERROR: dev-java/ant-nodeps-1.8.1 failed:
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 4419:  Called eant 'jar-nodeps'
 *   environment, line  961:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-java/ant-nodeps-1.8.1',
 * the complete build log and the output of 'emerge -pqv =dev-java/ant-nodeps-1.8.1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.20"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info
 * The complete build log is located at '/usr/tmp/portage/dev-java/ant-nodeps-1.8.1/temp/build.log'.
 * The ebuild environment file is located at '/usr/tmp/portage/dev-java/ant-nodeps-1.8.1/temp/environment'.
 * S: '/usr/tmp/portage/dev-java/ant-nodeps-1.8.1/work/apache-ant-1.8.1'
Comment 1 Stefan Sassenberg 2010-08-04 11:44:05 UTC
The problem becomes worse, because there is another package affected by this bug. I can't emerge projectx because of the same error:

core    : 1.8.1 in file:/usr/share/ant/lib/ant.jar
optional: 1.7.1 in file:/usr/share/ant/lib/ant-nodeps.jar

Emerging becomes more difficult on my system now. A workaround for that point could be to exclude packages from being upgraded or reemerged when emerging world, but I don't know how to accomplish that.
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-08-04 23:42:15 UTC
(In reply to comment #0)
What's this? Something's missing?

> PORTDIR_OVERLAY="/var/lib/layman/enlightenment /var/lib/layman/zugaina /var

And what does java-check-environment say?
Comment 3 Stefan Sassenberg 2010-08-05 05:16:10 UTC
That's a little strange. In my /etc/make.conf there is

PORTDIR_OVERLAY="/var/lib"
source /var/lib/layman/make.conf

and /var/lib/layman/make.conf is split up into several lines:

PORTDIR_OVERLAY="
/var/lib/layman/enlightenment
/var/lib/layman/zugaina
$PORTDIR_OVERLAY
"

I didn't touch those files since april and it hasn't been a problem, but if you like I can remove the overlay lines from /etc/make.conf.

My "Java environment is sane."
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-08-05 07:59:06 UTC
Please emerge ant-nodeps like this:
JAVA_PKG_DEBUG=1 emerge ant-nodeps

and attach the build log
Comment 5 Stefan Sassenberg 2010-08-05 08:55:17 UTC
Created attachment 241473 [details]
The requested build log
Comment 6 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-08-05 22:48:22 UTC
what does 'which ant' say?
if /usr/bin/ant, can you attach it?

the /usr/bin/ant our ant-core ebuild provides contains this:
ANT_HOME="${EPREFIX}"/usr/share/ant-core

yet in your output the ant home is /usr/share/ant and I don't see how it can happen unless your 'ant' is something else than our ebuild

also what's your PATH variable?
Comment 7 Stefan Sassenberg 2010-08-06 05:40:14 UTC
(In reply to comment #6)
> what does 'which ant' say?

Ok, problem solved. For some reason I can't remember (2009), I installed an ant package in /usr/local and had a symbolic link to the ant script in /usr/local/bin. I removed that link and everything is fine.

Thank you very much for your help and sorry for the inconvenience.