Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 528798 - >=dev-libs/apr-1.5.0-r2: /usr/share/build-1/libtool tied to CONFIG_SHELL
Summary: >=dev-libs/apr-1.5.0-r2: /usr/share/build-1/libtool tied to CONFIG_SHELL
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-10 10:49 UTC by Alexander Tsoy
Modified: 2022-07-03 09:54 UTC (History)
3 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-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
}