Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497626 - sys-devel/crossdev: configure scripts that don't reload in bash trip up config.site
Summary: sys-devel/crossdev: configure scripts that don't reload in bash trip up confi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
: 529734 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-09 15:08 UTC by Alexander Tsoy
Modified: 2015-05-25 09: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 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. ***