Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32261 - "/usr/sbin/ebuild.sh: line 45: [: too many arguments" when emerging blackdown-jdk
Summary: "/usr/sbin/ebuild.sh: line 45: [: too many arguments" when emerging blackdown...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords: InVCS
: 37475 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-29 04:03 UTC by David Westley
Modified: 2011-03-22 20:52 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Westley 2003-10-29 04:03:13 UTC
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"
Comment 1 SpanKY gentoo-dev 2003-10-29 12:41:58 UTC
please post more of the emerge and `emerge info`
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2003-10-29 15:01:07 UTC
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.
Comment 3 Gregory Shimansky 2003-11-03 02:42:38 UTC
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"
Comment 4 Gregory Shimansky 2003-11-03 05:58:25 UTC
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.
Comment 5 Adrian Almenar 2003-11-21 23:20:49 UTC
Title indicates blackdown-jdk but has happened with some other ebuilds like koffice, so bouncing back to bug-wranglers.
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2003-12-24 00:32:07 UTC
Try with portage-2.0.50_pre7 or later.
Unless this in an eclass issue it should be resolved.
Comment 7 SpanKY gentoo-dev 2004-01-07 22:43:31 UTC
*** Bug 37475 has been marked as a duplicate of this bug. ***
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2004-01-12 00:47:19 UTC
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).
Comment 9 Chris Aniszczyk (RETIRED) gentoo-dev 2004-03-17 22:45:45 UTC

*** This bug has been marked as a duplicate of 37475 ***
Comment 10 Christian Ruppert (idl0r) gentoo-dev 2011-03-22 20:52:29 UTC
I marked this bug as FIXED to resolve a duplicate loop caused by the last change of this bug.