aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2010-10-29 09:55:50 -0400
committerMichal Marek <mmarek@suse.cz>2010-11-11 10:32:43 -0500
commite86c2412c88fbe4676920c40348d3c547c9edb0d (patch)
treea7909e0b2d83eb2e8c133160c96765d55aea136e
parentc2d5a7300da667d090c8fe79f05404c9fb205b12 (diff)
kbuild, deb-pkg: Fix build with paranoid umask
umask 077 make deb-pkg <snipp ..> dpkg-deb: building package `linux-image-2.6.36+' in `../linux-image-2.6.36+_2.6.36+-4_amd64.deb'. dpkg-deb: control directory has bad permissions 700 (must be >=0755 and <=0775) make[1]: *** [deb-pkg] Error 2 Reported-by: Bastian Blank <waldi@debian.org> Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Michal Marek <mmarek@suse.cz>
-rw-r--r--scripts/package/builddeb6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 49b74e1ee12d..4dfec9aaaace 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -49,8 +49,10 @@ fi
49 49
50# Setup the directory structure 50# Setup the directory structure
51rm -rf "$tmpdir" "$fwdir" 51rm -rf "$tmpdir" "$fwdir"
52mkdir -p "$tmpdir/DEBIAN" "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename" 52mkdir -m 755 -p "$tmpdir/DEBIAN"
53mkdir -p "$fwdir/DEBIAN" "$fwdir/lib" "$fwdir/usr/share/doc/$fwpackagename" 53mkdir -p "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename"
54mkdir -m 755 -p "$fwdir/DEBIAN"
55mkdir -p "$fwdir/lib" "$fwdir/usr/share/doc/$fwpackagename"
54if [ "$ARCH" = "um" ] ; then 56if [ "$ARCH" = "um" ] ; then
55 mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin" 57 mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin"
56fi 58fi