Bug#710900: nvidia-kernel-legacy-173xx-source: Fails to build debian package under user-compiled kernels (kernel version string problem).
Felix Becker
felix.becker at zih.tu-dresden.de
Mon Jun 3 09:29:50 UTC 2013
Package: nvidia-kernel-legacy-173xx-source
Version: 173.14.35
Severity: important
The debian build rules are not clean for user compiled kernels which
include in the kernel version characters which are not allowed in
debian package version strings.
A run of 'fakeroot debian/rules binary':
===>
[...]
[ .. patching, and compiling .. ]
[...]
dh_gencontrol -- -v`cat debian/VERSION` \
-V'built:using:kernel=' \
-V'built:using:nvidia='
dpkg-gencontrol: warning: can't parse dependency
linux-image-3.1.1_pf_phc-intel_gov-interactive dpkg-gencontrol: error:
error occurred while parsing Recommends field:
linux-image-3.1.1_pf_phc-intel_gov-interactive dh_gencontrol:
dpkg-gencontrol -ldebian/changelog
-Tdebian/nvidia-kernel-legacy-173xx-3.1.1_pf_phc-intel_gov-interactive.substvars
-Pdebian/nvidia-kernel-legacy-173xx-3.1.1_pf_phc-intel_gov-interactive
-v173.14.35-4+3.1.1_pf_phc-intel_gov-interactive-0
-Vbuilt:using:kernel= -Vbuilt:using:nvidia= returned exit code 255
make: *** [binary-arch] Error 25 <===
Attached is a quick and dirty patch which resolves the problem for my
machine; it is a patch to 'debian/prep-modules'
Applies to at least the packages 'nvidia-kernel-legacy-173xx-source'
and 'nvidia-kernel-legacy-96xx-source', not tested with others. Applies
at least to package in wheezy (stable).
While reporting this bug, a compilation of
'nvidia-kernel-legacy-96xx-source' is installed, but exactly same
problem (and exactly same solution) to
'nvidia-kernel-legacy-173xx-source'.
-- Package-specific info:
uname -a:
Linux (none) 3.1.1_pf_phc-intel_gov-interactive #1 PREEMPT Sat Dec 15
14:58:14 CET 2012 i686 GNU/Linux
/proc/version:
Linux version 3.1.1_pf_phc-intel_gov-interactive (root at K6) (gcc version
4.7.2 (Debian 4.7.2-3) ) #1 PREEMPT Sat Dec 15 14:58:14 CET 2012
Kernel modules: nvidia.ko
/lib/modules/2.6.27.18_ubuntu_tuxonice_debianlogo_loop-aes/kernel/drivers/video/nvidia.ko
/lib/modules/3.1.1_pf_phc-intel_gov-interactive/nvidia/nvidia.ko
filename: /lib/modules/2.6.27.18_ubuntu_tuxonice_debianlogo_loop-aes/kernel/drivers/video/nvidia.ko
alias: char-major-195-*
supported: external
license: NVIDIA
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: agpgart
vermagic: 2.6.27.18_ubuntu_tuxonice_debianlogo_loop-aes SMP
mod_unload modversions K7
filename: /lib/modules/3.1.1_pf_phc-intel_gov-interactive/nvidia/nvidia.ko
alias: char-major-195-* supported: external
license: NVIDIA
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: agpgart,i2c-core
vermagic: 3.1.1_pf_phc-intel_gov-interactive preempt mod_unload
K7
-- System Information:
Debian Release: 7.0
Architecture: i386 (i686)
Kernel: Linux 3.1.1_pf_phc-intel_gov-interactive (PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL
set to C) Shell: /bin/sh linked to /bin/bash
Versions of packages nvidia-kernel-legacy-173xx-source is related to:
pn ia32-libs <none>
pn libdrm-nouveau1 <none>
ii libdrm-nouveau1a
2.4.40-1~deb7u2 pn
libgl1-nvidia-alternatives-ia32 <none> pn
libgl1-nvidia-glx-ia32 <none> pn
libgl1-nvidia-glx-ia32-any <none> pn
libgl1-nvidia-legacy-173xx-glx-ia32 <none> ii
libgl1-nvidia-legacy-96xx-glx [libgl1-nvidia-glx-any] 96.43.23-3
pn libgl1-nvidia-legacy-96xx-glx-ia32 <none>
pn linux-headers <none>
pn nvidia-glx-any <none>
pn nvidia-glx-legacy-173xx <none>
pn nvidia-kernel-common <none>
pn nvidia-kernel-legacy-173xx-dkms <none>
ii nvidia-kernel-legacy-173xx-source
173.14.35-4 pn
nvidia-settings <none> ii
nvidia-support 20120630+3
pn nvidia-xconfig <none>
ii xserver-xorg 1:7.7+2
ii xserver-xorg-core
2:1.12.4-6 pn
xserver-xorg-video-nouveau <none> ii
xserver-xorg-video-nvidia-legacy-96xx [xserver-xorg-video- 96.43.23-3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debian_prep-modules.quickndirtypatch.patch
Type: text/x-patch
Size: 223 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20130603/42ed000b/attachment-0001.bin>
More information about the pkg-nvidia-devel
mailing list