[pkg-nvidia-devel] Bug#450653: nvidia-kernel-legacy-71xx-source: fails to build via make-kpkg (nested fakeroot)
Michel Casabona
michel.casabona at free.fr
Thu Nov 8 20:25:28 UTC 2007
Package: nvidia-kernel-legacy-71xx-source
Version: 71.86.01-1
Severity: important
Tags: patch
Hi,
The module fails to build using make-kpkg because debian/rules calls
itself "make" through fakeroot, which doesn't support nested calls.
The correct way to build "as root" is to use the --rootcmd option
of make-kpkg.
Note that dh_testroot would have stopped the build, if not run as
root or pseudo root by one mean or another, before the call to
make, so fakeroot here is useless.
> $ make-kpkg --rootcmd fakeroot --initrd --added-modules
nvidia-kernel-legacy-71xx modules_image
...
> dh_testdir
> dh_testroot
> PATCHLEVEL = 6
> Kernel compiler version : 4.1.2
> Detected compiler version : 4.1.2
> Using compiler gcc-4.1 version 4.1.2
> touch /opt/src/modules/nvidia-kernel-legacy-71xx/nv/gcc-check
> touch /opt/src/modules/nvidia-kernel-legacy-71xx/nv/cc-sanity-check
> ## Main Make ##
> IGNORE_CC_MISMATCH=1 CC="gcc-4.1" fakeroot /usr/bin/make -C
/opt/src/modules/nvidia-kernel-legacy-71xx/nv -f Makefile
SYSSRC=/usr/src/linux-source-2.6.22 KBUILD_PARAMS="-C
/usr/src/linux-source-2.6.22
SUBDIRS=/opt/src/modules/nvidia-kernel-legacy-71xx/nv" module;
> fakeroot: FAKEROOTKEY set to 237356050
> fakeroot: nested operation not yet supported
> make[2]: *** [build-stamp] Erreur 1
> make[2]: quittant le répertoire « /opt/src/modules/nvidia-kernel-legacy-71xx »
> make[1]: *** [kdist_image] Erreur 2
> make[1]: quittant le répertoire « /opt/src/modules/nvidia-kernel-legacy-71xx »
> Module /usr/src/modules/nvidia-kernel-legacy-71xx failed.
> Perhaps /usr/src/modules/nvidia-kernel-legacy-71xx does not understand
--rootcmd?
> If you see messages that indicate that it is not
> in fact being built as root, please file a bug
> against /usr/src/modules/nvidia-kernel-legacy-71xx.
> Hit return to Continue
The fix is simply to remove $(ROOT_CMD):
*** ../modules/nvidia-buildmod-rootcmd.diff
--- nvidia-kernel-legacy-71xx/debian/rules-org 2007-10-28 04:23:14.000000000
+0100
+++ nvidia-kernel-legacy-71xx/debian/rules 2007-11-08 18:31:47.000000000
+0100
@@ -164,7 +164,7 @@
touch $(CURDIR)/$(dirname)/cc-sanity-check
## Main Make ##
- IGNORE_CC_MISMATCH=1 CC="$(CC)" $(ROOT_CMD) $(MAKE) -C
$(CURDIR)/$(dirname) -f Makefile SYSSRC=$(KSRC) $(KPKG_EXTRAV_ARG)
KBUILD_PARAMS=$(KBUILD_PARAMS) module;
+ IGNORE_CC_MISMATCH=1 CC="$(CC)" $(MAKE) -C $(CURDIR)/$(dirname) -f
Makefile SYSSRC=$(KSRC) $(KPKG_EXTRAV_ARG) KBUILD_PARAMS=$(KBUILD_PARAMS)
module;
touch build-stamp
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (100, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages nvidia-kernel-legacy-71xx-source depends on:
ii debhelper 5.0.60 helper programs for debian/rules
ii dpatch 2.0.28 patch maintenance system for Debia
ii make 3.81-3 The GNU version of the "make" util
ii sed 4.1.5-4 The GNU sed stream editor
Versions of packages nvidia-kernel-legacy-71xx-source recommends:
ii devscripts 2.10.10 Scripts to make the life of a Debi
ii kernel-package 11.001 A utility for building Linux kerne
ii nvidia-glx-legacy-71xx 1.0.7185-4.1 NVIDIA binary Xorg driver (71xx le
-- no debconf information
Thanks!
--
Michel Casabona
More information about the Pkg-nvidia-devel
mailing list