Skip to content

Commit

Permalink
kbuild, deb-pkg: fix install scripts for posix sh
Browse files Browse the repository at this point in the history
bash versus dash and posh disagree on expanding $@ within double quotes:
export x="$@"
see http://bugs.debian.org/381091 for details
just use the arglist with $*.

dpkg: error processing linux-image-2.6.31-rc1_2.6.31-rc1-18_i386.deb (--install):
 subprocess pre-installation script returned error exit status 2
export: 6: 2.6.31-rc1-18: bad variable name
fixes http://bugzilla.kernel.org/show_bug.cgi?id=13567

seen on Ubuntu as there dash is the default sh,
versus bash on Debian.

Reported-by: Pauli <[email protected]>
Cc: Frans Pop <[email protected]>
Signed-off-by: maximilian attems <[email protected]>
Acked-By: Andres Salomon <[email protected]>
  • Loading branch information
brainflux authored and sravnborg committed Jul 17, 2009
1 parent 4b0a840 commit 241ad11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/package/builddeb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ for script in postinst postrm preinst prerm ; do
set -e
# Pass maintainer script parameters to hook scripts
export DEB_MAINT_PARAMS="\$@"
export DEB_MAINT_PARAMS="\$*"
test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d
exit 0
Expand Down

0 comments on commit 241ad11

Please sign in to comment.