aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package/builddeb
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2009-07-05 20:17:34 +0200
committerSam Ravnborg <sam@ravnborg.org>2009-07-17 23:02:57 +0200
commit241ad11f2d2542723136ffa81cd5db61d590156c (patch)
treeef8cff2a65bc442d2ea97521ce2b1a07f45a1759 /scripts/package/builddeb
parent4b0a84043e0c14088958fddb62f416d050368011 (diff)
downloadkernel_samsung_smdk4412-241ad11f2d2542723136ffa81cd5db61d590156c.zip
kernel_samsung_smdk4412-241ad11f2d2542723136ffa81cd5db61d590156c.tar.gz
kernel_samsung_smdk4412-241ad11f2d2542723136ffa81cd5db61d590156c.tar.bz2
kbuild, deb-pkg: fix install scripts for posix sh
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 <suokkos@gmail.com> Cc: Frans Pop <elendil@planet.nl> Signed-off-by: maximilian attems <max@stro.at> Acked-By: Andres Salomon <dilinger@collabora.co.uk>
Diffstat (limited to 'scripts/package/builddeb')
-rw-r--r--scripts/package/builddeb2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index b19f1f4..8b357b0 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -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