Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 172407 - dev-java/struts-1.2.9-r1 fails to build with ant-1.7.0
Summary: dev-java/struts-1.2.9-r1 fails to build with ant-1.7.0
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-27 12:33 UTC by Mikhail V. Vorozhtsov
Modified: 2007-03-28 12:39 UTC (History)
0 users

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


Attachments
struts-1.2.9-ant.patch (struts-1.2.9-ant.patch,459 bytes, patch)
2007-03-27 12:34 UTC, Mikhail V. Vorozhtsov
Details | Diff
build.log (build.log,9.04 KB, text/plain)
2007-03-28 10:43 UTC, Mikhail V. Vorozhtsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail V. Vorozhtsov 2007-03-27 12:33:25 UTC
See build log for more info. Attached patch adds dependency on ant-trax if >=ant-1.7.0 is used. With it struts emerges flawlessly.

Reproducible: Always




Here is the end of the build log:
...
    [style]     at org.apache.tools.ant.Main.runBuild(Main.java:698)
    [style]     at org.apache.tools.ant.Main.startAnt(Main.java:199)
    [style]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
    [style]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

BUILD FAILED
/var/tmp/portage/dev-java/struts-1.2.9-r1/work/struts-1.2.9-src/build.xml:242: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison

Total time: 11 seconds

!!! ERROR: dev-java/struts-1.2.9-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4624:   Called src_compile
  struts-1.2.9-r1.ebuild, line 65:   Called eant 'compile.library' '-Dcommons-beanutils.jar=/usr/share/commons-beanutils-1.7/lib/commons-beanutils.jar' '-Dcommons-digester.jar=/usr/share/commons-digester/lib/commons-digester.jar' '-Dcommons-fileupload.jar=/usr/share/commons-fileupload/lib/commons-fileupload.jar' '-Dcommons-logging.jar=/usr/share/commons-logging/lib/commons-logging.jar' '-Dcommons-validator.jar=/usr/share/commons-validator/lib/commons-validator.jar' '-Djakarta-oro.jar=/usr/share/jakarta-oro-2.0/lib/jakarta-oro.jar' '-Dservlet.jar=/usr/share/servletapi-2.3/lib/servlet.jar' '-Dantlr.jar=/usr/share/antlr/lib/antlr.jar'
  java-utils-2.eclass, line 1703:   Called die

!!! eant failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-java/struts-1.2.9-r1/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.10"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info
Comment 1 Mikhail V. Vorozhtsov 2007-03-27 12:34:13 UTC
Created attachment 114607 [details, diff]
struts-1.2.9-ant.patch
Comment 2 Mikhail V. Vorozhtsov 2007-03-27 12:35:50 UTC
$ emerge --info
Portage 2.1.2.2 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 25 Mar 2007 01:47:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apache2 berkdb bzip2 cairo cdr cli crypt cscope dbus djvu dvd dvdr dvi encode ffmpeg firefox flack fontconfig ftp gif gnome gnutls gstreamer gtk gtk2 gtkhtml hal iconv jabber java5 jpeg lcms logrotate mad maildir mailwrapper mime mp3 mpeg ncurses nntp nptl ogg openal opengl oscar pam pcre png readline spell ssl svg symlink syslog t1lib tetex tiff truetype truetype-fonts type1-fonts udev unicode usb vhosts vorbis xml xorg xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-03-27 14:01:32 UTC
Thanks for the patch, but FYI it seems the ebuild is not split ant aware. The proper way to bring in tasks is via a env variable. For example

WANT_ANT_TASKS="ant-trax"

That goes above the inherits at the very top just below header. Looking into if we can modify this ebuild as is to fix that problem.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-03-27 15:32:45 UTC
(In reply to comment #0)
>
> !!! A complete build log is located at
> '/var/tmp/portage/dev-java/struts-1.2.9-r1/temp/build.log'.
> 

Please attach the full build.log. The ebuild depends on full dev-java/ant so it should get all tasks activated even with JAVA_PKG_STRICT on.
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2007-03-27 15:35:29 UTC
What I suspect that happened here is that you did emerge -C ant-tasks because of the blocker when updating ant-core but the did not re-emerge ant-tasks before trying to emerge struts. Please do a emerge -uD1 struts and if that fails, reopen this bug. In the future Portage will hopefully do deep resolution by default.
Comment 6 Mikhail V. Vorozhtsov 2007-03-28 10:42:14 UTC
(In reply to comment #5)
> What I suspect that happened here is that you did emerge -C ant-tasks because
> of the blocker when updating ant-core but the did not re-emerge ant-tasks
> before trying to emerge struts.
Definitely not. ant* packages was updated some weeks before this issue. 
> Please do a emerge -uD1 struts and if that
> fails, reopen this bug. In the future Portage will hopefully do deep resolution
> by default.
OK. I did emerge -C ant-trax struts and removed patched ebuild from my local overlay.
$ emerge -pv ant-tasks

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-java/ant-tasks-1.7.0  USE="noantlr nobcel nobsf nocommonslogging nocommonsnet nojdepend nojmf nojsch nolog4j nooro noregexp noresolver noswing noxalan -jai -javamail" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB
$ emerge -uD1 stuts
[Same errors]
!!! eant failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-java/struts-1.2.9-r1/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.10"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info

See attached build.log
Comment 7 Mikhail V. Vorozhtsov 2007-03-28 10:43:29 UTC
Created attachment 114710 [details]
build.log
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-03-28 11:27:57 UTC
USE="noantlr nobcel nobsf
nocommonslogging nocommonsnet nojdepend nojmf nojsch nolog4j nooro noregexp
noresolver noswing noxalan"

Did you not see this when installing ant-tasks?
$ grep ewarn ant-tasks-1.7.0.ebuild
                ewarn "You have disabled some of the ant tasks. Be advised that this may"
                ewarn "break building some of the Java packages!!"
                ewarn ""
                ewarn "We can only offer very limited support in cases where dev-java/ant-tasks"
                ewarn "has been build with essential features disabled."
Comment 9 Mikhail V. Vorozhtsov 2007-03-28 12:26:28 UTC
(In reply to comment #8)
> Did you not see this when installing ant-tasks?
It seems I missed this note. Now I totally don't understand what is the benefit of splitting ant-tasks...
Comment 10 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-03-28 12:39:48 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Did you not see this when installing ant-tasks?
> It seems I missed this note. Now I totally don't understand what is the benefit
> of splitting ant-tasks...

The benefit will come when split-ant is stabilized and everything is converted to use it (depend on specific tasks instead of dev-java/ant-tasks or dev-java/ant). Then the USE flags will not affect building packages, (they will pull what they need regardless), and will be useful only for someone who wants to install ant for his own development stuff and maybe omit some parts of it he doesn't need. But for now the warning is still true.