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

Bug 528798

Summary: >=dev-libs/apr-1.5.0-r2: /usr/share/build-1/libtool tied to CONFIG_SHELL
Product: Gentoo Linux Reporter: Alexander Tsoy <alexander>
Component: [OLD] LibraryAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: UNCONFIRMED ---    
Severity: normal CC: alonbl, bruce, nikoli
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=528770
https://bugs.gentoo.org/show_bug.cgi?id=526178
Whiteboard:
Package list:
Runtime testing required: ---

Description Alexander Tsoy 2014-11-10 10:49:33 UTC
/usr/share/build-1/libtool script is tied to a shell used by configure at build time. The following steps can break compilation of packages depending on apr:

1. /bin/sh -> bash
2. compile apr
3. switch /bin/sh -> dash

As a workaround you can force apr build system to always use bash (like it was in apr-1.4.8-r1):

# grep CONFIG_SHELL apr-1.4.8-r1.ebuild 
        CONFIG_SHELL="${EPREFIX}"/bin/bash econf \


For example libtool ebuild does the same:

src_configure() {
    # the libtool script uses bash code in it and at configure time, tries
    # to find a bash shell.  if /bin/sh is bash, it uses that.  this can
    # cause problems for people who switch /bin/sh on the fly to other
    # shells, so just force libtool to use /bin/bash all the time.
    export CONFIG_SHELL=/bin/bash
    ECONF_SOURCE=${S} econf --disable-ltdl-install
}