[pacman-dev] [PATCH] libalpm: Explicitly run install scriptlets in bash.

2009-07-28 Thread Loui Chang
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 --- lib/libalpm/trans.c |8

Re: [pacman-dev] [PATCH] libalpm: Explicitly run install scriptlets in bash.

2009-07-28 Thread Xavier
On Tue, Jul 28, 2009 at 6:34 PM, Loui Chang 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!

Re: [pacman-dev] [PATCH] libalpm: Explicitly run install scriptlets in bash.

2009-07-28 Thread Loui Chang
On Tue 28 Jul 2009 18:50 +0200, Xavier wrote: > On Tue, Jul 28, 2009 at 6:34 PM, Loui Chang 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 i

Re: [pacman-dev] [PATCH] libalpm: Explicitly run install scriptlets in bash.

2009-07-28 Thread Aaron Griffin
On Tue, Jul 28, 2009 at 12:46 PM, Loui Chang wrote: > On Tue 28 Jul 2009 18:50 +0200, Xavier wrote: >> On Tue, Jul 28, 2009 at 6:34 PM, Loui Chang wrote: >> > I was experimenting using dash as /bin/sh and noticed that a lot of >> > packages were having errors in their install scriptlets. >> > >> >

Re: [pacman-dev] [PATCH] libalpm: Explicitly run install scriptlets in bash.

2009-07-28 Thread Xavier
On Tue, Jul 28, 2009 at 7:54 PM, Aaron Griffin wrote: > > Another thought would be to make the scriptlet executable and pass the > "function" as an arg to the script, this way we can support > #!/bin/bash and #!/bin/sh as well as a myriad of other things Then we need to put back the 3 magic lines

Re: [pacman-dev] [PATCH] libalpm: Explicitly run install scriptlets in bash.

2009-07-28 Thread Aaron Griffin
On Tue, Jul 28, 2009 at 12:59 PM, Xavier wrote: > On Tue, Jul 28, 2009 at 7:54 PM, Aaron Griffin wrote: >> >> Another thought would be to make the scriptlet executable and pass the >> "function" as an arg to the script, this way we can support >> #!/bin/bash and #!/bin/sh as well as a myriad of oth

Re: [pacman-dev] [PATCH] libalpm: Explicitly run install scriptlets in bash.

2009-08-03 Thread Loui Chang
On Tue 28 Jul 2009 13:03 -0500, Aaron Griffin wrote: > On Tue, Jul 28, 2009 at 12:59 PM, Xavier wrote: > > On Tue, Jul 28, 2009 at 7:54 PM, Aaron Griffin > > wrote: > >> > >> Another thought would be to make the scriptlet executable and pass the > >> "function" as an arg to the script, this way we