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

Bug 147813

Summary: Feature request - CONFIG_SHELL variable support in make.conf
Product: Portage Development Reporter: Sergey Okhapkin <sos>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: normal CC: sos
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sergey Okhapkin 2006-09-16 08:48:59 UTC
Configure scripts are designed to run under any bourne-compatible shell. bash is not the best choice, it's very slow. ash is much better to run configure scripts. It would be nice to have make.conf variable CONFIG_SHELL to let the user to specify environment variable CONFIG_SHELL to run configure scripts. On my installations 
CONFIG_SHELL=/bin/ash emegre blah
is much faster than just "emerge blah".
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-09-16 08:58:35 UTC
Afaik, configure invokes /bin/sh for it's scripts; so just symlink it to some other bourne compatable shell?
Comment 2 Sergey Okhapkin 2006-09-16 09:08:46 UTC
gentoo installation has /bin/sh as a symlink to bash. There is no need to change this symlink. But configure scripts can use CONFIG_SHELL environment variable to use another shell to run configure script and make. The idea is simple - if the variable is not defined in make.conf, then do nothing, if defined - export it before staring configure script.
Comment 3 SpanKY gentoo-dev 2006-09-16 14:30:41 UTC
i fail to see how this is any different from exporting CONFIG_SHELL in your own environment
Comment 4 Sergey Okhapkin 2006-09-16 15:31:16 UTC
I propose just more convinient way to export the variable.