1 |
On 19-04-2007 17:30:27 +0200, Michael Haubenwallner wrote: |
2 |
> > And this is the line with the problem: |
3 |
> > 3756: _dfb_version=$(dfb_version $_dfb_major $_dfb_minor $_dfb_micro) |
4 |
> > |
5 |
> > The mplayer configure script uses /bin/sh which is the Bourne shell |
6 |
> > and not Bourne-again shell. |
7 |
> |
8 |
> It is defined that configure-scripts need to work with bourne shells |
9 |
> (/bin/sh). And "$(foo)" is bash (or ksh) style. |
10 |
|
11 |
true |
12 |
|
13 |
> Replacing line 3756 like this should work: |
14 |
> |
15 |
> - _dfb_version=$(dfb_version $_dfb_major $_dfb_minor $_dfb_micro) |
16 |
> + _dfb_version=`dfb_version $_dfb_major $_dfb_minor $_dfb_micro` |
17 |
|
18 |
agree |
19 |
|
20 |
> > - # Solaris /bin/sh fix |
21 |
> > - if [[ ${CHOST} == *-solaris* ]] ; then |
22 |
> > - sed -e "s:^#!.*/bin/sh:#!${EPREFIX}/bin/sh:" -i configure |
23 |
> > - fi |
24 |
> |
25 |
> Maybe setting CONFIG_SHELL=${EPREFIX}/bin/bash could work too ? |
26 |
|
27 |
Ahhh... anyone have objections on setting this in the profiles? It |
28 |
would just make any configure package use bash from the prefix, instead |
29 |
of /bin/sh, which feels somehow a bit safer, even though it should work |
30 |
fine in theory. |
31 |
|
32 |
-- |
33 |
Fabian Groffen |
34 |
Gentoo on a different level |
35 |
|
36 |
-- |
37 |
gentoo-alt@g.o mailing list |