emerge of dev-java/jsch-0.1.34 always fails, and a remerge of the already installed version 0.1.33 also fails with the same error. Reproducible: Always Steps to Reproduce: 1. emerge dev-java/jsch-0.1.34 Actual Results: compile: [javac] Compiling 97 source files to /var/tmp/portage/dev-java/jsch-0.1.34/work/jsch-0.1.34/build [javac] /var/tmp/portage/dev-java/jsch-0.1.34/work/jsch-0.1.34/src/com/jcraft/jsch/jcraft/Compression.java:31: package com.jcraft.jzlib does not exist [javac] import com.jcraft.jzlib.*; [javac] ^ [... following errors] BUILD FAILED /var/tmp/portage/dev-java/jsch-0.1.34/work/jsch-0.1.34/build.xml:30: Compile failed; see the compiler error output for details. Total time: 2 seconds * * ERROR: dev-java/jsch-0.1.34 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * jsch-0.1.34.ebuild, line 24: Called eant '-Dproject.cp=/usr/share/jzlib/lib/jzlib.jar' 'dist' * java-utils-2.eclass, line 1947: Called die * The specific snippet of code: * ant ${antflags} "${@}" || die "eant failed" * The die message: * 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/log/portage/dev-java:jsch-0.1.34:20071125-182515.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.13" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac" and of course, the output of emerge --info Expected Results: emerge jsch without errors. Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-hardened-r8 i686) ================================================================= System uname: 2.6.22-hardened-r8 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ Timestamp of tree: Sun, 25 Nov 2007 17:46:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" ALSA_CARDS="via82xx" 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" ANT_HOME="/usr/share/ant" ARCH="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mtune=athlon64 -march=athlon-xp -O2 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CLASSPATH="." CLEAN_DELAY="5" 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/fonts/fonts.conf /etc/gconf /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CVS_RSH="ssh" CXXFLAGS="-mtune=athlon64 -march=athlon-xp -O2 -fomit-frame-pointer -pipe" DISPLAY=":0.0" DISTDIR="/usr/portage/distfiles" DONT_USE="-acl -arts -eds -emboss -esd -gnome -gstreamer -kerberos -ldap -oss -qt4" DONT_USE_DEFAULT="-dri -gpm -ipv6" DONT_USE_PHP="-cli -pcre -reflection -session -spl" EDITOR="/usr/bin/vim" ELIBC="glibc" EMERGE_DEFAULT_OPTS="--verbose" EMERGE_WARNING_DELAY="10" FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}" FLTK_DOCDIR="/usr/share/doc/fltk-1.1.7-r2/html" GCC_PATH="/usr/i686-pc-linux-gnu/gcc-bin/4.1.2" GCC_SPECS="" GDK_USE_XFT="1" GDM_LANG="de_DE.utf8" GENERATION="2" GENTOO_MIRRORS="http://gentoo.inode.at/ http://mirror.ovh.net/gentoo-distfiles/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.tiscali.nl/ http://mirror.qubenet.net/mirror/gentoo/" GUILE_LOAD_PATH="/usr/share/guile/1.8" G_BROKEN_FILENAMES="1" G_FILENAME_ENCODING="UTF-8" HOME="/root" INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info" INPUT_DEVICES="keyboard mouse" JAVAC="/etc/java-config-2/current-system-vm/bin/javac" JAVA_HOME="/etc/java-config-2/current-system-vm" JDK_HOME="/etc/java-config-2/current-system-vm" KDEDIRS="/usr:/usr/local:/usr/kde/3.5" KDE_IS_PRELINKED="1" KERNEL="linux" LANG="de_DE.utf8" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LC_ADDRESS="de_DE.utf8" LC_COLLATE="de_DE.utf8" LC_CTYPE="de_DE.utf8" LC_IDENTIFICATION="de_DE.utf8" LC_MEASUREMENT="de_DE.utf8" LC_MESSAGES="en_GB.utf8" LC_MONETARY="de_DE.utf8" LC_NAME="de_DE.utf8" LC_NUMERIC="de_DE.utf8" LC_PAPER="de_DE.utf8" LC_TELEPHONE="de_DE.utf8" LC_TIME="de_DE.utf8" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LINGUAS="en_GB en de_DE de" LOGNAME="root" LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:" MAKEOPTS="-j3" MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:/opt/sun-jdk-1.4.2.16/man:/etc/java-config/system-vm/man/:/usr/lib/php4/man/:/usr/lib/php5/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man" OLDPWD="/var/lib/portage" OPENGL_PROFILE="xorg-x11" PAGER="/usr/bin/less" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/sun-jdk-1.4.2.16/bin:/opt/sun-jdk-1.4.2.16/jre/bin:/opt/sun-jdk-1.4.2.16/jre/javaws:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin" PKGDIR="/usr/portage/packages" PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig" PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha ppc-macos hppa sparc-fbsd" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_BIN_PATH="/usr/lib/portage/bin" PORTAGE_CONFIGROOT="/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="error warn info log" PORTAGE_ELOG_MAILFROM="portage@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_NICENESS="3" PORTAGE_PYM_PATH="/usr/lib/portage/pym" 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_RSYNC_RETRIES="5" PORTAGE_TMPDIR="/var/tmp" PORTAGE_TMPFS="/dev/shm" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage" PORT_LOGDIR="/var/log/portage" PRELINK_PATH_MASK="/lib/modules:/usr/lib/locale:/usr/lib/wine:/usr/lib/valgrind:*.la:*.png:*.py:*.pl:*.pm:*.sh:*.xml:*.xslt:*.a:*.js" PWD="/etc/portage" PYTHONPATH="/usr/lib/portage/pym" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O ${DISTDIR}/${FILE} ${URI}" ROOT="/" ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/i686-pc-linux-gnu/gcc-bin/4.1.1:/opt/sun-jdk-1.4.2.16/bin:/opt/sun-jdk-1.4.2.16/jre/bin:/opt/sun-jdk-1.4.2.16/jre/javaws:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin" RPMDIR="/usr/portage/rpm" SHELL="/bin/bash" SHLVL="1" STAGE1_USE="nptl nptlonly unicode" STY="4843.pts-1.berry" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" TERM="screen" TERMCAP="SC|screen|VT 100/ANSI X3.64 virtual terminal:\ :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\ :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\ :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\ :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\ :li#54:co#120:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\ :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\ :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\ :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\ :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\ :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\ :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\ :vb=\Eg:G0:as=\E(0:ae=\E(B:\ :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\ :po=\E[5i:pf=\E[4i:Z0=\E[?3h:Z1=\E[?3l:k0=\E[10~:\ :k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:\ :k7=\E[18~:k8=\E[19~:k9=\E[20~:k;=\E[21~:F1=\E[23~:\ :F2=\E[24~:F3=\E[2P:F4=\E[2Q:F5=\E[2R:F6=\E[2S:\ :F7=\E[15;2~:F8=\E[17;2~:F9=\E[18;2~:FA=\E[19;2~:kb=^H:\ :K2=\EOE:kB=\E[Z:kF=\E[1;2B:kR=\E[1;2A:*4=\E[3;2~:\ :*7=\E[1;2F:#2=\E[1;2H:#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:\ :%e=\E[5;2~:%i=\E[1;2C:kh=\E[1~:@1=\E[1~:kH=\E[4~:\ :@7=\E[4~:kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:\ :kd=\EOB:kr=\EOC:kl=\EOD:km:" USE="3dnow 3dnowext X a52 aac acpi alsa apache2 avi berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cracklib crypt cups dbus dga divx dvd dvdr dvdread encode evo exif fam firefox flac foomaticdb fortran gdbm gif graphviz gs gtk gtk2 hal hdri iconv idn isdnlog java java5 javamail jbig jpeg jpeg2k junit kde kdeenablefinal lcms mad midi mikmod mmx mmxext mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ogg openexr opengl openmp pam pdf perl png postgres ppds pppd python qt3 qt3support quicktime readline scanner sdl smp spell sse sse2 ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode vhosts vorbis win32codecs x86 xinerama xml xorg xv xvid zlib" ALSA_CARDS="via82xx" 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_GB en de_DE de" USERLAND="GNU" VIDEO_CARDS="mga vesa vga fbdev none" USER="root" USERLAND="GNU" USE_ARCH="mmx mmxext sse sse2 3dnow 3dnowext" USE_DEFAULT="berkdb crypt ncurses nls pam perl python readline ssl tcpd zlib" USE_DESKTOP="firefox kde kdeenablefinal qt3 cups dbus foomaticdb ppds" USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS" USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND" USE_IMAGE="exif gif graphviz gs hdri jbig jpeg jpeg2k lcms openexr png scanner tiff" USE_JAVA="java java5 javamail junit" USE_LIBS="apache2 bzip2 cairo gtk gtk2 idn mysql pdf postgres xml" USE_MEDIA="cdr dvd dvdr dvdread alsa cdparanoia encode flac mad mp3 ogg vorbis a52 aac avi divx mpeg quicktime sdl xv xvid" USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d" USE_SYSTEM="nptl nptlonly smp udev unicode vhosts" USE_X="X xinerama dga opengl truetype" VIDEO_CARDS="mga vesa vga fbdev none" VMHANDLE="sun-jdk-1.4" WINDOW="0" XARGS="xargs -r" XAUTHORITY="/root/.xauthqrRaTv" XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share" _="/usr/bin/emerge"
Attach the output of JAVA_PKG_DEBUG=1 emerge -1 jsch
Created attachment 137015 [details] Output of JAVA_PKG_DEBUG=1 emerge -1 jsch
I've just seen the same. I've also discovered that the build works just fine outside the sandbox. If I cd into /var/tmp/portage/dev-java/jsch-0.1.36/work/jsch-0.1.36/ after the emerge fails and run ant there, jsch-20071126.jar gets built without any errors. Therefore I think this might be a bug with sandbox.
Confirmed with =dev-java/jsch-0.1.36 so this isn't version specific.
(In reply to comment #3) > I've just seen the same. > > I've also discovered that the build works just fine outside the sandbox. > If I cd into /var/tmp/portage/dev-java/jsch-0.1.36/work/jsch-0.1.36/ after the > emerge fails and run ant there, jsch-20071126.jar gets built without any > errors. > > Therefore I think this might be a bug with sandbox. > FEATURES="-sandbox" didn't help, but 'emerge -C jsch && emerge --oneshot jsch' did. And in the middle of the emerge output I found Rewriting ./build.xml * Using all available ANT_TASKS !!! ERROR: Dependency package jsch was not found! !!! ERROR: Dependency package jsch was not found! Buildfile: build.xml Maybe it's some kind of circular dependency problem?
> 'emerge -C jsch && emerge --oneshot jsch' did Yes, but if you do 'emerge -C jsch && emerge -1 jsch && emerge -1 jsch' the first build succeeds (with the noted warning) and the second fails. Jsch appears to interfere with its own build.
Ok. So if this was ant classpath pollution related then devs don't see it as they run with JAVA_PKG_STRICT. Polluting the classpath was patched away in bug 142538 so please try to reproduce this now. I guess it might have gone away.
Ok so quickly before work. It builds with JAVA_PKG_STRICT Doesn't without it... Builds with ANT_TASKS="none" If noone disagrees (or gets there first) I will add ANT_TASKS="none" to the src_compile for each of the ebuilds.
(In reply to comment #8) > Ok so quickly before work. > > It builds with JAVA_PKG_STRICT > Doesn't without it... I was able to emerge it with and without the var set. Including re-emerging 0.1.34 after it merged, and then going back to 0.1.36. No failures.
(In reply to comment #8) > > If noone disagrees (or gets there first) I will add ANT_TASKS="none" to the > src_compile for each of the ebuilds. > No need as that is the default nowadays (see bug #142538). The funny thing is that I couldn't reproduce this with JAVA_PKG_STRICT disabled but as long as it works for you. This can be marked as fixed then.
(In reply to comment #10) > > No need as that is the default nowadays (see bug #142538). The funny thing is > that I couldn't reproduce this with JAVA_PKG_STRICT disabled but as long as it > works for you. This can be marked as fixed then. > Which is not the same thing as here. Yeah we should put ANT_TASKS="none" there. I added ANT_TASKS="none" to the ebuild.
*** Bug 200434 has been marked as a duplicate of this bug. ***
*** Bug 201112 has been marked as a duplicate of this bug. ***