emerge blackdown-jdk ... unpack, install, etc... ... /usr/sbin/ebuild.sh: line 45: [: too many arguments Reproducible everytime Blackdown-JDK 1.4.1 Portage 2.0.49-r15 ACCEPT_KEYWORDS="~x86"
please post more of the emerge and `emerge info`
It's more a portage@g.o thing, I think. I get the same error (but line 31) in koffice-i18n ebuild, when having PORT_LOGDIR enabled.
Yes it looks like a bug in portage. Trying to install koffice-i18n-1.3_rc1 I got this output: ================================================================================ nice -n 19 emerge koffice-i18n Calculating dependencies ...done! >>> emerge (1 of 1) app-i18n/koffice-i18n-1.3_rc1 to / /usr/sbin/ebuild.sh: line 31: [: too many arguments /usr/sbin/ebuild.sh: line 31: [: too many arguments /usr/sbin/ebuild.sh: line 31: [: too many arguments >>> Unpacking source... >>> Source unpacked. /usr/sbin/ebuild.sh: line 31: [: too many arguments /usr/sbin/ebuild.sh: line 31: [: too many arguments >>> Install koffice-i18n-1.3_rc1 into /var/tmp/portage/koffice-i18n-1.3_rc1/image/ category app-i18n man: prepallstrip: strip: >>> Completed installing into /var/tmp/portage/koffice-i18n-1.3_rc1/image/ /usr/sbin/ebuild.sh: line 31: [: too many arguments ./ >>> Done. >>> extracting info >>> extracting koffice-i18n-1.3_rc1 >>> Merging app-i18n/koffice-i18n-1.3_rc1 to / /usr/sbin/ebuild.sh: line 31: [: too many arguments /usr/sbin/ebuild.sh: line 31: [: too many arguments >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> app-i18n/koffice-i18n-1.3_rc1 merged. /usr/sbin/ebuild.sh: line 31: [: too many arguments >>> clean: No packages selected for removal. >>> Regenerating /etc/ld.so.cache... * Caching service dependencies... [ ok ] >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. ================================================================================ Emerge info output follows: emerge info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.6.0-test9) ================================================================= System uname: 2.6.0-test9 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.3.11 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -fomit-frame-pointer -march=pentium3 -mcpu=pentium3 -mmmx -mfpmath=sse,387 -msse -ffast-math -fno-strength-reduce -fprefetch-loop-arrays -fforce-addr -falign-functions=4" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=pentium3 -mcpu=pentium3 -mmmx -mfpmath=sse,387 -msse -ffast-math -fno-strength-reduce -fprefetch-loop-arrays -fforce-addr -falign-functions=4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache buildpkg" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm berkdb slang readline arts tetex aalib bonobo svga ggi tcltk guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla gphoto2 ldap cdr scanner acpi apache2 artswrappersuid autofs curl dga dnd doc dv dvd emacs evo faad fam fbcon ffmpeg gb gstreamer gtk2 gtkhtml icc icc-pgo imagemagick imap imlib2 jack java javascript lcms leim maildir matrox mbox mmx mng mozsvg -mule odbc pda plotutils samba sasl socks5 sox sse tiff unicode usb wmf wxwin wxwindows X509 Xaw3d xface xinerama xml xosd"
I fixed my emerge by exporting LINGUAS env variable. Emerge still produced that strange error message, but at least it did install koffice-i18n-1.3_rc1. Btw I had to modify koffice-i18n-1.3_rc1.ebuild because it had incorrect SRC_URI line, trying to download 1.3-rc1 files instead of 1.2.94.
Title indicates blackdown-jdk but has happened with some other ebuilds like koffice, so bouncing back to bug-wranglers.
Try with portage-2.0.50_pre7 or later. Unless this in an eclass issue it should be resolved.
*** Bug 37475 has been marked as a duplicate of this bug. ***
I'd say this is caused by missing quotes in the java.eclass. Also bashism for SRC_URI is generally a bad thing. I already filed another bug for koffice-i18n (which is even more broken).
*** This bug has been marked as a duplicate of 37475 ***
I marked this bug as FIXED to resolve a duplicate loop caused by the last change of this bug.