Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 497626

Summary: sys-devel/crossdev: configure scripts that don't reload in bash trip up config.site
Product: Gentoo Linux Reporter: Alexander Tsoy <alexander>
Component: [OLD] Core systemAssignee: Embedded Gentoo Team <embedded>
Status: RESOLVED FIXED    
Severity: normal CC: aklhfex, flameeyes
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Tsoy 2014-01-09 15:08:02 UTC
Please remove bashisms from config.site script. /bin/sh is a symlink to dash on my system and I see following warnings (e.g. when emerging ncurses):

# grep config.site /var/tmp/portage/sys-libs/ncurses-5.9-r2/temp/build.log
configure: loading site script /usr/share/config.site
/var/tmp/portage/sys-libs/ncurses-5.9-r2/work/ncurses-5.9/configure: 40: /usr/share/config.site: [[: not found
configure: loading site script /usr/share/config.site
/var/tmp/portage/sys-libs/ncurses-5.9-r2/work/ncurses-5.9/configure: 40: /usr/share/config.site: [[: not found
Comment 1 Mikael Magnusson 2014-10-22 22:31:53 UTC
http://www.gnu.org/software/automake/manual/html_node/config_002esite.html
"If a file named prefix/share/config.site exists, configure will source it at the beginning of its execution."

configure: loading site script /usr/share/config.site
/var/tmp/portage/x11-apps/xrandr-1.4.3/work/xrandr-1.4.3/configure: 40: /usr/share/config.site: [[: not found

There's no reason to think that configure scripts would or should "reload in bash".
Comment 2 Alexander Tsoy 2014-10-25 21:12:47 UTC
With dash-0.5.8.1 recently landed into the tree more configure scripts start choosing /bin/sh instead of /bin/bash
Comment 4 SpanKY gentoo-dev 2015-05-25 09:52:19 UTC
*** Bug 529734 has been marked as a duplicate of this bug. ***