[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-alt
Subject:    [gentoo-alt] [PREFIX] sed weirdness
From:       Fabian Groffen <grobian () gentoo ! org>
Date:       2007-10-16 21:05:40
Message-ID: 20071016210540.GD25755 () gentoo ! org
[Download RAW message or body]

In short:
sed fails to configure when CONFIG_SHELL is set to ${EPREFIX}/bin/sh,
when unset, configure runs fine.  All on Solaris 10/x86.

For sed-4.1.5:

checking for wcscoll... yes
checking for btowc... yes
./configure: bad substitution
make: *** No targets specified and no makefile found.  Stop.

when CONFIG_SHELL is set to either sh or bash from prefix.  When unset,
this package merges fine again.

It actually dies on some substitution which looks like this:
eval "test \"\${$someval+set}\" = \"set\""
where /bin/sh for me returns the "bad substitution" message, but
apparently sed's configure does some magic here, ultimately doing the
wrong thing when hinted to use a proper bash.  I'm confused why this
happens.  Not what I would expect.


I bring up the point, because:
a) I recall this thing happening for someone before, the bootstrap guide
   tells to set CONFIG_SHELL, but this should only be applied to gcc,
   which IMO already sets this itself.  (I should remove it from the
   guide.)  Couldn't resolve back then, but this seems to be the
   solution.
b) there were previous discussions about setting CONFIG_SHELL in the
   profile.  It looks as if this would at least break on Solaris here.
   Extreme care needs to be taken.


-- 
Fabian Groffen
Gentoo on a different level
-- 
gentoo-alt@gentoo.org mailing list

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic