pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bootstrap can trigger bug in /bin/sh of OpenSolaris



Hi!

On Thu, Oct 30, 2008 at 9:29 PM, Aleksey Cheusov <cheusov%tut.by@localhost> 
wrote:
>
>> pkgsrc should not be using /bin/sh on *solaris, are you using a recent
>> release?  We install pdksh these days and use that instead.
>
> Why not /usr/xpg4/bin/sh?

Folks, we are talking about bootstrap. There is not much choice which
shell to use, if you want this script to work in as many environments
as possible. Unless you add a whole lot of magic, the script is
interpreted by whatever comes after the #!. And /bin/sh is still the
least common denominator on everything slightly *nix-ish.

I see two possibilities:

- Do nothing. The bug is not easy to hit, and whoever bootstraps
pkgsrc can surely find a way around it (use another shell, remove the
check from bootstrap, ...). And maybe the bug in OpenSolaris' sh will
be fixed some time.

- Remove the path check in bootstrap. Or at least soften it. It
rejects a lot of paths someone might have a good reason to use. I
think the check for an absolute path is totally sufficient.

-- 
Joern Clausen
joernc%gmail.com@localhost
http://www.oe-files.de/oefiles/
http://thebloeg.blogspot.com/


Home | Main Index | Thread Index | Old Index