emerging hp-jdk-bin fails unpacking depot. It seems that unpack code strips leading "/usr" form EPREFIX ("/usr/local/gentoo-prefix") resulting in the error: interpreter "/local/gentoo-prefix/bin/bash" not found Reproducible: Always Steps to Reproduce: 1.emerge hp-jdk-bin 2. 3. Actual Results: * ERROR: dev-java/hp-jdk-bin-1.6.0.05 failed: * unpack failed (make unzip) * * Call stack: * ebuild.sh, line 54: Called call-ebuildshell 'src_unpack' * environment, line 396: Called src_unpack * environment, line 2958: Called die * The specific snippet of code: * [[ ${status[@]} == "0 0 0" ]] || die "unpack failed (${diag})"; * * If you need support, post the output of 'emerge --info =dev-java/hp-jdk-bin-1.6.0.05', * the complete build log and the output of 'emerge -pqv =dev-java/hp-jdk-bin-1.6.0.05'. * The complete build log is located at '/usr/local/gentoo-prefix/var/tmp/portage/dev-java/hp-jdk-bin-1.6.0.05/temp/build.log'. * The ebuild environment file is located at '/usr/local/gentoo-prefix/var/tmp/portage/dev-java/hp-jdk-bin-1.6.0.05/temp/environment'. * S: '/usr/local/gentoo-prefix/var/tmp/portage/dev-java/hp-jdk-bin-1.6.0.05/work' bruno@snsv00v1 ~ $ emerge --info =dev-java/hp-jdk-bin-1.6.0.05 Portage 2.2.00.15171-prefix (prefix/hpux/B.11.11/hppa2.0, gcc-4.2.4, unavailable, B.11.11 9000/800) ================================================================= System Settings ================================================================= System uname: HP-UX-B.11.11-9000-800-32bit Timestamp of tree: Fri, 08 Jan 2010 08:11:11 +0000 app-shells/bash: 4.0_p35 dev-lang/python: 2.6.4 sys-devel/autoconf: 2.63-r01.1 sys-devel/automake: 1.10.2-r00.1, 1.11.1 sys-devel/binutils: 2.19.1-r01.1 sys-devel/gcc-config: 1.4.1-r00.2 sys-devel/libtool: 2.2.6b ACCEPT_KEYWORDS="~hppa-hpux" ACCEPT_LICENSE="* -@EULA" CBUILD="hppa2.0w-hp-hpux11.11" CFLAGS="-O2 -pipe -march=2.0 -mschedule=8000 -fomit-frame-pointer" CHOST="hppa2.0w-hp-hpux11.11" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -pipe -march=2.0 -mschedule=8000 -fomit-frame-pointer" DISTDIR="/usr/local/gentoo-prefix/usr/portage/distfiles" FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-L/usr/local/gentoo-prefix/usr/lib -R/usr/local/gentoo-prefix/usr/lib" MAKEOPTS="-j3" PKGDIR="/usr/local/gentoo-prefix/usr/portage/packages" PORTAGE_CONFIGROOT="/usr/local/gentoo-prefix/" 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="/usr/local/gentoo-prefix/var/tmp" PORTDIR="/usr/local/gentoo-prefix/usr/portage" SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix" USE="cracklib cxx hppa-hpux modules ncurses nls prefix readline ssl unicode zlib" 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="HPUX" INPUT_DEVICES="keyboard mouse" KERNEL="HPUX" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 215625 [details] build.log
(In reply to comment #0) > It seems that unpack code strips leading "/usr" form EPREFIX > ("/usr/local/gentoo-prefix") resulting in the error: interpreter > "/local/gentoo-prefix/bin/bash" not found WTF...? Does it make any difference with another EPREFIX not starting with (or containing?) "/usr/local" ?
I need sometime to build a new prefix to test
bootstrapped a new prefix with EPREFIX=/gentoo-prefix and dev-java/hp-jdk-bin works as expected! so the error happens only when EPREFIX starts with /usr.
Good to hear. I'm unsure if it is good practice to use EPREFIX starting with /usr at all, so I'm wondering if it'd be worth the effort to search this problem at all.
I think you can close this bug.
ok.