This could be related to bugs #151120 (bash 3.2 parsing # within backticks incorrectly), but that bug states it's fixed in 3.2_p1. Reproducible: Always Steps to Reproduce: 1. Install bash-3.2_p9-r1 (~x86) 2. Try to install =dev-java/sun-jre-bin-1.4.2.13 3. Actual Results: $ emerge =dev-java/sun-jre-bin-1.4.2.13 -a These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild NSf ] dev-java/sun-jre-bin-1.4.2.13 USE="X alsa nsplugin" Would you like to merge these packages? [Yes/No] y >>> Emerging (1 of 1) dev-java/sun-jre-bin-1.4.2.13 to / * j2re-1_4_2_13-linux-i586.bin MD5 ;-) ... [ ok ] * j2re-1_4_2_13-linux-i586.bin RMD160 ;-) ... [ ok ] * j2re-1_4_2_13-linux-i586.bin SHA1 ;-) ... [ ok ] * j2re-1_4_2_13-linux-i586.bin SHA256 ;-) ... [ ok ] * j2re-1_4_2_13-linux-i586.bin size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking j2re-1_4_2_13-linux-i586.bin ;-) ... [ ok ] >>> Unpacking source... grep: Invalid back reference tail: +: invalid number of lines >>> Source unpacked. >>> Compiling source in /var/tmp/portage/dev-java/sun-jre-bin-1.4.2.13 ... >>> Source compiled. >>> Test phase [not enabled]: dev-java/sun-jre-bin-1.4.2.13 >>> Install sun-jre-bin-1.4.2.13 into /var/tmp/portage/dev-java/sun-jre-bin-1.4.2.13/image/ category dev-java cp: cannot stat `bin': No such file or directory cp: cannot stat `lib': No such file or directory cp: cannot stat `man': No such file or directory cp: cannot stat `javaws': No such file or directory cp: cannot stat `plugin': No such file or directory dodoc: CHANGES does not exist dodoc: COPYRIGHT does not exist dodoc: README does not exist dodoc: LICENSE does not exist dodoc: THIRDPARTYLICENSEREADME.txt does not exist !!! ERROR: dev-java/sun-jre-bin-1.4.2.13 failed. Call stack: ebuild.sh, line 1614: Called dyn_install ebuild.sh, line 1060: Called qa_call 'src_install' environment, line 3133: Called src_install sun-jre-bin-1.4.2.13.ebuild, line 101: Called install_mozilla_plugin '/opt/sun-jre-bin-1.4.2.13/plugin/i386/ns610-gcc32/libjavaplugin_oji.so' java-vm-2.eclass, line 205: Called die !!! Cannot find mozilla plugin at /var/tmp/portage/dev-java/sun-jre-bin-1.4.2.13/image///opt/sun-jre-bin-1.4.2.13/plugin/i386/ns610-gcc32/libjavaplugin_oji.so !!! 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/sun-jre-bin-1.4.2.13/temp/build.log'. floffe@liffride ~ $ Expected Results: A working install of sun-jre-bin-1.4.2.13 on my system $ emerge --info Portage 2.1.2-r9 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.12.6 Timestamp of tree: Sun, 11 Feb 2007 15:20:01 +0000 dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.3.5-r3, 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.4_p6, 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="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-Os -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.gentoo.se http://mirror.gentoo.no http://ftp.du.se/pub/os/gentoo" LANG="en_US.utf8" LC_ALL="C" 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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.se.gentoo.org/gentoo-portage" USE="3dnow X alsa bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dlloader dri dvd dvdr eds emboss encode evo fam firefox flac fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ieee1394 isdnlog jpeg ldap libg++ lirc mad midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pda perl png ppds pppd python qt4 quicktime readline reflection sdl session spell spl sse ssl svg tcpd truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS $ bash --version GNU bash, version 3.2.9(1)-release (i686-pc-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc.
Fixed in CVS, thanks!