[pacman-dev] [PATCH] libalpm: Explicitly run install scriptlets in bash.
Loui Chang
louipc.ist at gmail.com
Tue Jul 28 13:46:20 EDT 2009
On Tue 28 Jul 2009 18:50 +0200, Xavier wrote:
> On Tue, Jul 28, 2009 at 6:34 PM, Loui Chang<louipc.ist at gmail.com> wrote:
> > I was experimenting using dash as /bin/sh and noticed that a lot of
> > packages were having errors in their install scriptlets.
> >
> > popen passes commands to /bin/sh so we need to explicitly invoke bash,
> > which the scriptlets are written for. WOO!
> >
> > Signed-off-by: Loui Chang <louipc.ist at gmail.com>
>
> see http://bugs.archlinux.org/task/13803
Hmm sticky situation.
If that's the case, there needs to be better documentation.
I assumed that install scripts could be written for bash just as
makepkg and PKGBUILDs require bash. Is there any intention to make those
dash compatible for consistency?
It isn't reasonable to expect users to write those scripts for dash when
other packaging scripts require bash to function properly.
That, and /bin/sh still points to bash by default in Arch.
Though that's out of pacman's scope, I think it's something to consider.
More information about the pacman-dev
mailing list