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
1 I've found another similar (?) shell problem during compiling of MPlayer.
2 [...]
3 >>> Compiling source in
4 /opt/gentoo/var/tmp/portage/media-video/mplayer-1.0_rc1-r2/work/MPlayer-1.0rc1
5 ...
6 * QA Notice: USE Flag 'ppc64' not in IUSE for media-video/mplayer-1.0_rc1-r2
7 Detected operating system: SunOS
8 Detected host architecture: i386
9 Checking for i386-pc-solaris2.11-gcc version ... 4.1.2, ok
10 [...]
11 Checking for tga ... no
12 Checking for DirectFB ... ./configure: syntax error at line 3756:
13 `_dfb_version=$' unexpected
14
15 [...]
16
17 And this is the line with the problem:
18 3756: _dfb_version=$(dfb_version $_dfb_major $_dfb_minor $_dfb_micro)
19
20 The mplayer configure script uses /bin/sh which is the Bourne shell
21 and not Bourne-again shell.
22 I'm proposing to patch the "configure" script with a single line in
23 ebuild unpack function:
24
25 --- mplayer-1.0_rc1-r2.ebuild.mio 2007-04-19 16:33:28.545169753 +0200
26 +++ mplayer-1.0_rc1-r2.ebuild 2007-04-19 16:32:20.262831061 +0200
27 @@ -131,5 +131,5 @@
28 SLOT="0"
29 LICENSE="GPL-2"
30 -KEYWORDS="~amd64 ~ia64 ~ppc-macos ~x86 ~x86-macos ~x86-solaris"
31 +KEYWORDS="~amd64 ~ia64 ~ppc-macos ~x86 ~x86-macos"
32
33 pkg_setup() {
34 @@ -204,8 +204,4 @@
35 sed -i -e "s:-O4:-O4 -D__STDC_LIMIT_MACROS:" configure
36
37 - # Solaris /bin/sh fix
38 - if [[ ${CHOST} == *-solaris* ]] ; then
39 - sed -e "s:^#!.*/bin/sh:#!${EPREFIX}/bin/sh:" -i configure
40 - fi
41 }
42
43
44 On 4/14/07, Fabian Groffen <grobian@g.o> wrote:
45 > On 12-04-2007 13:15:08 +0200, Michael Haubenwallner wrote:
46 > > On Thu, 2007-04-12 at 12:39 +0200, Fabian Groffen wrote:
47 > > > On 12-04-2007 10:25:46 +0200, Michael Haubenwallner wrote:
48 > > > > Hi,
49 > > > >
50 > > > > with solaris /bin/sh, this does not work:
51 > > > > echo 1 | grep -E ^[[:digit:]]+$
52 > > >
53 > > > I guess this is Solaris <10?
54 > >
55 > > exactly, Thanks.
56 >
57 > I fixed this one or two days ago. If it's not in the latest portage,
58 > then it'll be in the portage that I'll roll out today.
59 >
60 > --
61 > Fabian Groffen
62 > Gentoo on a different level
63 >
64 > --
65 > gentoo-alt@g.o mailing list
66 >
67 >
68
69
70 --
71
72 FList
73 --
74 gentoo-alt@g.o mailing list

Replies

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