Gentoo Archives: gentoo-alt

From: Fabrizio Listello <flistello@×××××.com>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [prefix][solaris] shell problem in portage/configure
Date: Thu, 19 Apr 2007 14:33:36
Message-Id: 442674df0704190733s7d83e289uc3470503cce7d217@mail.gmail.com
In Reply to: Re: [gentoo-alt] [prefix][solaris] shell problem in portage/configure by Fabian Groffen
I've found another similar (?) shell problem during compiling of MPlayer.
[...]
>>> Compiling source in
/opt/gentoo/var/tmp/portage/media-video/mplayer-1.0_rc1-r2/work/MPlayer-1.0rc1 ... * QA Notice: USE Flag 'ppc64' not in IUSE for media-video/mplayer-1.0_rc1-r2 Detected operating system: SunOS Detected host architecture: i386 Checking for i386-pc-solaris2.11-gcc version ... 4.1.2, ok [...] Checking for tga ... no Checking for DirectFB ... ./configure: syntax error at line 3756: `_dfb_version=$' unexpected [...] 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. I'm proposing to patch the "configure" script with a single line in ebuild unpack function: --- mplayer-1.0_rc1-r2.ebuild.mio 2007-04-19 16:33:28.545169753 +0200 +++ mplayer-1.0_rc1-r2.ebuild 2007-04-19 16:32:20.262831061 +0200 @@ -131,5 +131,5 @@ SLOT="0" LICENSE="GPL-2" -KEYWORDS="~amd64 ~ia64 ~ppc-macos ~x86 ~x86-macos ~x86-solaris" +KEYWORDS="~amd64 ~ia64 ~ppc-macos ~x86 ~x86-macos" pkg_setup() { @@ -204,8 +204,4 @@ sed -i -e "s:-O4:-O4 -D__STDC_LIMIT_MACROS:" configure - # Solaris /bin/sh fix - if [[ ${CHOST} == *-solaris* ]] ; then - sed -e "s:^#!.*/bin/sh:#!${EPREFIX}/bin/sh:" -i configure - fi } On 4/14/07, Fabian Groffen <grobian@g.o> wrote:
> On 12-04-2007 13:15:08 +0200, Michael Haubenwallner wrote: > > On Thu, 2007-04-12 at 12:39 +0200, Fabian Groffen wrote: > > > On 12-04-2007 10:25:46 +0200, Michael Haubenwallner wrote: > > > > Hi, > > > > > > > > with solaris /bin/sh, this does not work: > > > > echo 1 | grep -E ^[[:digit:]]+$ > > > > > > I guess this is Solaris <10? > > > > exactly, Thanks. > > I fixed this one or two days ago. If it's not in the latest portage, > then it'll be in the portage that I'll roll out today. > > -- > Fabian Groffen > Gentoo on a different level > > -- > gentoo-alt@g.o mailing list > >
-- FList -- gentoo-alt@g.o mailing list

Replies

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