Gentoolkit's install script appears to rely on bash-specific syntax and fails to install when the /bin/sh -> /bin/bash symlink is replaced with a symlink to /bin/zsh Reproducible: Always Steps to Reproduce: 1. emerge gentoolkit 2. 3. Actual Results: setup unpack >>> Unpacking source... >>> Unpacking gentoolkit-0.2.0_pre8.tar.gz to /var/tmp/portage/gentoolkit-0.2.0_pre8/work >>> Source unpacked. compile >>> Compiling source... install >>> Installing gentoolkit-0.2.0_pre8 into /var/tmp/portage/gentoolkit-0.2.0_pre8/image/ install -d /var/tmp/portage/gentoolkit-0.2.0_pre8/image//usr/share/doc/gentoolkit-0.2.0_pre8 install -d /var/tmp/portage/gentoolkit-0.2.0_pre8/image//usr/bin install -d /var/tmp/portage/gentoolkit-0.2.0_pre8/image//usr/sbin install -d /var/tmp/portage/gentoolkit-0.2.0_pre8/image//usr/share/man/man1 install -m 0644 {AUTHORS,ChangeLog,COPYING,NEWS,README,TODO} /var/tmp/portage/gentoolkit-0.2.0_pre8/image//usr/share/doc/gentoolkit-0.2.0_pre8/ install: cannot stat `{AUTHORS,ChangeLog,COPYING,NEWS,README,TODO}': No such file or directory make: *** [install-gentoolkit] Error 1 !!! ERROR: app-portage/gentoolkit-0.2.0_pre8 failed. !!! Function src_install, Line 23, Exitcode 2 !!! (no error message) !!! !!! /var/tmp/portage/gentoolkit-0.2.0_pre8/temp/gentoolkit-0.2.0_pre8.log may contain !!! useful informations for debugging or bug reporting. or debugging or bug reporting. Expected Results: gentoolkit should have been installed. mq(03:35:#)qq emerge info qq(Sat,Jul31)qj Portage 2.0.50-r9 (2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r11) ================================================================= System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) III Mobile CPU 1000MHz Gentoo Base System version 1.4.16 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -funroll-loops -ffast-math -msse -mmmx" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -funroll-loops -ffast-math -msse -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acl acpi acpi4linux alsa apache2 ardour-ksi artswrappersuid avi berkdb bidi bonobo cdparanoia cdr chroot crypt cscope cups curl directfb divx4linux dnd dvd dvdread emacs encode erandom escreen esd ethereal faad fbcon ffmpeg flac foomaticdb gdbm ggi gif gnome gpm gtk gtk2 gtkhtml guile hostap-nopci hostap-noplx idea imlib ipv6 jack java joystick jpeg ldap libcaca libg++ libwww live lzo mad matroska md5sum mikmod mmx monkey motif mozcalendar mozdomi mozilla mozp3p mozsvg mozxmlterm mpeg mpeg4 mplayer mysql mythtv nas ncurses network nls nptl oav odbc offensive oggvorbis openal opengl oss pam pcmcia pdflib perl php png pnp postgres ppds python qt quicktime readline rtc ruby samba sdl sis slang spell sse ssl svg svga tcltk tcpd theora threads tiff truetype type1 usb v4l video_cards_sis vim-with-x wxwindows x86 xface xml2 xmms xv xvid zlib"
I can confirm this bug. I'm using /bin/sh -> /bin/ash and it also fails with the same error. The issue is that "{AUTHORS,ChangeLog,COPYING,NEWS,README,TODO}" glob which isn't supported by all shells in the same way. I suppose this can either be fixed by replacing the glob with the actual filenames that are going to be installed and hence make the Makefile sh-complaint, or tell the Makefile to use /bin/bash. The problem is that the globs are found in nearly every Makefile in the gentoolkit tree so that means changing every file. I made this ebuild use /bin/bash as a shell and that resolved the issue.
Watching.
Here's my emerge info if that helps: Gentoo Base System version 1.4.16 Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.6.8.1-ck1) ================================================================= System uname: 2.6.8.1-ck1 i686 Mobile Pentium II distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox userpriv" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.42.25/gentoo-portage" USE="X acl adns aim alsa apm audiofile avi berkdb bonobo bzlib cdr crypt cups curl exif flac flash gdbm geoip gimpprint gtk gtk2 gtkhtml iconv imagemagick imap ipv6 jabber jpeg lcms libwww lzw-tiff mad mbox mime ming mmap mmx mng mpeg ncurses nptl oggvorbis oscar oss pam pcmcia pcre pdflib perl png pnp ppds python readline sdl snmp speex spell ssl svg tcpd theora tidy tiff truetype usb wmf x86 xine xml2 xv xvid zlib"
Will look at it.
Dropped the globbing. It was not needed, and was introduced as a bad habit. Will be part of the next release of Gentoolkit.