Root cause failure to build debs

Firstly, this is not true in general, and I could not reproduce it as
long as I use fakeroot.

Bug fix: "cannot produce debs anymore", thanks to Ritesh Raj Sarraf
The real issue here was that the kernel was built using the deprecated
sudo, instead of fakeroot, and created ./debian directory as
root. Clean, however, is not run as root, so it could not delete
./debian, and failed. This is now documented. (Closes: #812470).
Signed-off-by: Manoj Srivastava's avatarManoj Srivastava <srivasta@debian.org>
parent 7032d064
kernel-package (13.017) unstable; urgency=low kernel-package (13.017) unstable; urgency=high
* Bug fix: "Resultant kernels may need to depend upon kmod", thanks to * Bug fix: "Resultant kernels may need to depend upon kmod", thanks to
Elliott Mitchell (Closes: #774601). Elliott Mitchell (Closes: #774601).
...@@ -8,8 +8,13 @@ kernel-package (13.017) unstable; urgency=low ...@@ -8,8 +8,13 @@ kernel-package (13.017) unstable; urgency=low
makefile", thanks to Arthur Marsh (Closes: #777105). makefile", thanks to Arthur Marsh (Closes: #777105).
* Bug fix: "does not depends on initramfs-tools when using --initrd", * Bug fix: "does not depends on initramfs-tools when using --initrd",
thanks to Cyril B. (Closes: #780278). thanks to Cyril B. (Closes: #780278).
* Bug fix: "cannot produce debs anymore", thanks to Ritesh Raj Sarraf
The real issue here was that the kernel was built using the deprecated
sudo, instead of fakeroot, and created ./debian directory as
root. Clean, however, is not run as root, so it could not delete
./debian, and failed. This is now documented. (Closes: #812470).
-- Manoj Srivastava <srivasta@debian.org> Mon, 15 Feb 2016 09:56:03 -0800 -- Manoj Srivastava <srivasta@debian.org> Mon, 15 Feb 2016 10:53:24 -0800
kernel-package (13.016) unstable; urgency=high kernel-package (13.016) unstable; urgency=high
......
...@@ -416,11 +416,14 @@ EOUSAGE ...@@ -416,11 +416,14 @@ EOUSAGE
=over 3 =over 3
Cleans the kernel source directory of all files created by target Cleans the kernel source directory of all files created by target B<build>, and
B<build>, and runs a I<make distclean>. (Please look at a Linux kernel runs a I<make distclean>. (Please look at a Linux kernel Makefile for details).
Makefile for details). Please note that although we take care of the Please note that although we take care of the list of current kernel
list of current kernel configuration contained in the file I<.config>, configuration contained in the file I<.config>, the file
the file I<include/linux/autoconf.h> is not preserved. I<include/linux/autoconf.h> is not preserved. Please note that by default the
clean target is not run as root, whic works fine of the command I<fakeroot> was
used. However, if previously the build was done using I<sudo>, you need to run
I<make-kpkg clean> also under I<sudo>
=back =back
...@@ -636,6 +639,8 @@ my $targets_help = <<EOTRGT; ...@@ -636,6 +639,8 @@ my $targets_help = <<EOTRGT;
=============================================================================== ===============================================================================
*: make-kpkg needs to be run as root (or fakeroot), --rootcmd will not work *: make-kpkg needs to be run as root (or fakeroot), --rootcmd will not work
See /usr/share/kernel-package/rules for details. See /usr/share/kernel-package/rules for details.
Also, please note that running clean requires using sudo if sudo had been
used to buikd the image (using sudo is deprecated)
EOTRGT EOTRGT
sub main () { sub main () {
......
...@@ -404,7 +404,15 @@ targets, since ...@@ -404,7 +404,15 @@ targets, since
reads in all data reads in all data
.I before .I before
running any target, so the subsequent targets shall be run with the old running any target, so the subsequent targets shall be run with the old
data, which may not be what you want. data, which may not be what you want. Please note that by default the
clean target is not run as root, whic works fine of the command
.BR fakeroot
was used. However, if previously the build was done using
.BR sudo,
you need to run
.BR make-kpkg clean
also under
.BR sudo.
.TP .TP
.B buildpackage .B buildpackage
This target runs the targets This target runs the targets
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment