[Pkg-dkms-commits] [SCM] Maintainance of the dkms package branch, master, updated. debian/2.1.0.1-1-2-g27f707a
Giuseppe Iuculano
iuculano at debian.org
Tue Nov 3 21:49:30 UTC 2009
The following commit has been merged in the master branch:
commit 27f707ad494549bfa14526806758837f4dd05354
Author: Giuseppe Iuculano <iuculano at debian.org>
Date: Tue Nov 3 22:47:51 2009 +0100
Do not build as a nobody user and don't chown the build directory, no files should be owned by nobody.
Closes: #554168
diff --git a/debian/patches/03_nobody.patch b/debian/patches/03_nobody.patch
new file mode 100644
index 0000000..59d668b
--- /dev/null
+++ b/debian/patches/03_nobody.patch
@@ -0,0 +1,17 @@
+Do not build as a nobody user and don't chown the build directory, no files should be owned by nobody (Closes: #554168)
+--- a/dkms
++++ b/dkms
+@@ -1529,13 +1529,6 @@ function do_build()
+ echo $"`date`" >> "$dkms_tree/$module/$module_version/build/make.log"
+ local the_make_command=`echo $make_command | sed "s/^make/make KERNELRELEASE=${kernelver_array[0]}/"`
+
+- #if we're root, try to run as a user instead
+- if [ "$USER" = "root" ] && getent passwd nobody 1>/dev/null && su nobody -c "/bin/true" 1>/dev/null; then
+- the_make_command="su nobody -c \"$the_make_command\""
+- chmod +x $dkms_tree/$module/$module_version/build
+- chown -R nobody $dkms_tree/$module/$module_version/build
+- fi
+-
+ invoke_command "$the_make_command >> $dkms_tree/$module/$module_version/build/make.log 2>&1" "$the_make_command" background
+
+ # Make sure good return status
diff --git a/debian/patches/series b/debian/patches/series
index 1f095d6..be4b67a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
01_init.patch
02-improve_error_message.patch
+03_nobody.patch
--
Maintainance of the dkms package
More information about the Pkg-dkms-commits
mailing list