Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [prefix][solaris] shell problem in portage/configure
Date: Fri, 04 May 2007 20:13:59
Message-Id: 20070504201349.GK885@gentoo.org
In Reply to: Re: [gentoo-alt] [prefix][solaris] shell problem in portage/configure by Michael Haubenwallner
On 19-04-2007 17:30:27 +0200, Michael Haubenwallner wrote:
> > And this is the line with the problem: > > 3756: _dfb_version=$(dfb_version $_dfb_major $_dfb_minor $_dfb_micro) > > > > The mplayer configure script uses /bin/sh which is the Bourne shell > > and not Bourne-again shell. > > It is defined that configure-scripts need to work with bourne shells > (/bin/sh). And "$(foo)" is bash (or ksh) style.
true
> Replacing line 3756 like this should work: > > - _dfb_version=$(dfb_version $_dfb_major $_dfb_minor $_dfb_micro) > + _dfb_version=`dfb_version $_dfb_major $_dfb_minor $_dfb_micro`
agree
> > - # Solaris /bin/sh fix > > - if [[ ${CHOST} == *-solaris* ]] ; then > > - sed -e "s:^#!.*/bin/sh:#!${EPREFIX}/bin/sh:" -i configure > > - fi > > Maybe setting CONFIG_SHELL=${EPREFIX}/bin/bash could work too ?
Ahhh... anyone have objections on setting this in the profiles? It would just make any configure package use bash from the prefix, instead of /bin/sh, which feels somehow a bit safer, even though it should work fine in theory. -- Fabian Groffen Gentoo on a different level -- gentoo-alt@g.o mailing list

Replies

Subject Author
Re: [gentoo-alt] [prefix][solaris] shell problem in portage/configure Johan Hattne <johan.hattne@××××××××××××.de>
Re: [gentoo-alt] [prefix][solaris] shell problem inportage/configure Michael Haubenwallner <michael.haubenwallner@×××××××.at>