Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268605 - sys-block/di-4.13 fails to emerge due to SHELL set to /bin/false
Summary: sys-block/di-4.13 fails to emerge due to SHELL set to /bin/false
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-04 14:16 UTC by Wolfram Schlich (RETIRED)
Modified: 2010-01-11 08:48 UTC (History)
7 users (show)

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


Attachments
emerge --info (emerge-info-di.txt,29.02 KB, text/plain)
2009-05-04 14:17 UTC, Wolfram Schlich (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfram Schlich (RETIRED) gentoo-dev 2009-05-04 14:16:17 UTC
>>> Unpacking di-4.13.tar.gz to /local/portage/tmp/portage/sys-block/di-4.13/work
>>> Source unpacked in /local/portage/tmp/portage/sys-block/di-4.13/work         
>>> Compiling source in /local/portage/tmp/portage/sys-block/di-4.13/work/di-4.13 ...
 *                                                                                   
 * ERROR: sys-block/di-4.13 failed.                                                  
 * Call stack:                                                                       
 *               ebuild.sh, line   49:  Called src_compile                           
 *             environment, line  813:  Called die                                   
 * The specific snippet of code:                                                     
 *       SHELL=/bin/bash prefix="${D}" ${SHELL} ./Build || die                       
 *  The die message:                                                                 
 *   (no error message)                                                              
 *                                                                                   
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/local/portage/log/sys-block:di-4.13:20090504-104226.log'.
 * The ebuild environment file is located at '/local/portage/tmp/portage/sys-block/di-4.13/temp/environment'.
 *                                                                                                           

happens both on x86 amd amd64 (hardened and non-hardened).
Comment 1 Wolfram Schlich (RETIRED) gentoo-dev 2009-05-04 14:17:04 UTC
Created attachment 190310 [details]
emerge --info
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2009-05-04 14:19:37 UTC
di-4.13.ebuild:KEYWORDS="amd64 ia64 ppc ppc64 x86 ~x86-fbsd"
di-4.5.ebuild:KEYWORDS="amd64 ia64 ppc ppc64 x86 ~x86-fbsd"

Is there any reason you are trying to emerge old version?
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2009-05-04 14:23:09 UTC
(In reply to comment #2)
> di-4.13.ebuild:KEYWORDS="amd64 ia64 ppc ppc64 x86 ~x86-fbsd"
> di-4.5.ebuild:KEYWORDS="amd64 ia64 ppc ppc64 x86 ~x86-fbsd"
> 
> Is there any reason you are trying to emerge old version?
> 

Nevermind, read that as 4.1.3. Sorry.
Comment 4 SpanKY gentoo-dev 2009-05-11 08:47:52 UTC
SHELL is incorrectly set to /bin/false in the portage environment.  dont know how or why, but current stable works fine.
Comment 5 Christian Banik 2009-05-11 21:15:20 UTC
Hey,

I can confirm this problem with stable portage on amd64. Here's my emerge info:

Portage 2.1.6.11 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r2-x86_64-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-glibc2.2.5
Timestamp of tree: Mon, 11 May 2009 01:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r13, 2.5.4-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
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.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -pipe -Os"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -pipe -Os"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildsyspkg ccache distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.mneisen.org/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://212.219.56.138/sites/www.ibiblio.org/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en en_GB mk ru sv"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sectools /usr/portage/local/layman/science /usr/portage/local/layman/voip /usr/portage/local/layman/java-overlay /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac aalib accessibility acl acpi additions addressbook akonadi alsa amarok amazon amd64 amrnb amrwb apache2 arpack arts artswrappersuid avahi bash-completion berkdb bittorrent bl bluetooth branding browserplugin bzip2 cairo calendar captury cdaudio cddb cdio cdparanoia cdr chm cisco cjk cli consolekit cracklib crypt css cups curl daap dbus designer designer-plugin devil dga dhcp dirac divx4linux doc dri dts dv dvb dvd dvdr dvdread dxr3 editor eds emacs embedded emboss emovix enblend enca encode esd ethereal evo examples exif fam fb fbcon fbsplash ffmpeg firefox flac flash fortran ftp gd gdbm geoip geolocation gif gimpprint glib gnokii google-gadgets gphoto2 gpm gps graphviz gstreamer gtk hal hbci howl htmlhandbook http httpd hyperestraier iconv icq icu imap injection innodb inotify ipv6 ipw3945 irmc isdnlog jadetex java java6 jingle jpeg jpeg2k kcal kde kdepim kdrive kipi kpathsea lame latex lcms ldap libcaca libnotify live livemaildir lm_sensors logrotate lua lzo mad mbox md5sum mdnsresponder-compat meanwhile midi mikmod mjpeg mmx mmxext mng mono mozilla mp2 mp3 mp4 mpeg mplayer mpm-worker mppe-mppc mudflap multilib musepack musicbrainz mysql mysqli ncurses nemesi network networkmanager nls nocd npp nptl nptlonly nsplugin obex odbc odk offensive ofx ogg old-daemons openal openexr opengl openmp openvpn oscar otr pam passwordsave pch pcmcia pcre pda pdf perl phonon php pic plasma png pnp posix ppds pppd python qt-static qt3 qt3support qt4 qtmt quicktime rar rdesktop readline recode redeyes reflection rss rtc rtsp samba sasl scanner schroedinger sdl seamonkey semantic-desktop sensord session sift slm slp smime smp sms sndfile snmp solver source sparse speedo speex spell spl sql sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification stream subtitles subversion svg sysfs tcpd teletext templates tetex themes theora threads tidy tiff truetype type1 unicode usb utempter v4l vcd videos visualization vnc vorbis webkit wifi wmf x264 xanim xcomposite xine xinerama xml xmlpatterns xmp xorg xosd xscreensaver xsl xslt xulrunner xv xvid xvmc yaz zeroconf zip zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_GB mk ru sv" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-01-10 14:15:41 UTC
Mike, current stable worked fine as well as 4.13 before you committed this:

  29 Mar 2009; Mike Frysinger <vapier@gentoo.org> di-4.13.ebuild:
  Force execution as a shell script #264102 by James Erickson.

SHELL=foo ${SHELL} will *not* execute foo because ${SHELL} will be expanded before the set.

I'll bump to 4.18, and fix .13 as well.
Comment 7 SpanKY gentoo-dev 2010-01-11 08:48:05 UTC
i imagine it also works fine when FEATURES=-userpriv which is why it wasnt an issue earlier