[pkg-nvidia-devel] Bug#523879: Bug#523879: nvidia-graphics-modules-i386 fails to build with ndivia-kernel-sources 180.44-1
Lennart Sorensen
lsorense at csclub.uwaterloo.ca
Mon Apr 13 15:08:26 UTC 2009
On Mon, Apr 13, 2009 at 01:52:43PM +0400, Alexander Gerasiov wrote:
> Package: nvidia-kernel-source
> Version: 180.44-1
> Severity: serious
> Justification: no longer builds from source
>
> Hi.
>
> I've tried to build nvidia-graphics-modules-i386 (updated to 180.44), but it fails.
> The problem is in nvidia-graphics-drivers-180.44/debian.binary/rules
> There is a call to
> dh_builddeb --destdir=$(KPKG_DEST_DIR)
> but if KPKG_DEST_DIR is undefined, building fails. (nvidia-graphics-modules-i386 affected)
> The patch is simple. (see attachment)
>
> -- System Information:
> Debian Release: 5.0
> APT prefers proposed-updates
> APT policy: (670, 'proposed-updates'), (670, 'stable'), (620, 'testing-proposed-updates'), (620, 'testing'), (600, 'unstable'), (550, 'experimental')
> Architecture: i386 (x86_64)
>
> Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
> Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages nvidia-kernel-source depends on:
> ii debhelper 7.0.15 helper programs for debian/rules
> ii dpatch 2.0.30 patch maintenance system for Debia
> ii make 3.81-5 The GNU version of the "make" util
> ii sed 4.1.5-6 The GNU sed stream editor
>
> Versions of packages nvidia-kernel-source recommends:
> ii devscripts 2.10.35lenny3 scripts to make the life of a Debi
> ii kernel-package 11.015 A utility for building Linux kerne
> ii nvidia-glx 180.44-1~bpo50+1 NVIDIA binary Xorg driver
>
> nvidia-kernel-source suggests no packages.
> diff --git a/debian.binary/rules b/debian.binary/rules
> index 1de9319..4a61b26 100644
> --- a/debian.binary/rules
> +++ b/debian.binary/rules
> @@ -11,6 +11,9 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
> NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
> MAKEFLAGS += -j$(NUMJOBS)
> endif
> +ifndef KPKG_DEST_DIR
> + KPKG_DEST_DIR = ../
> +endif
>
> DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
> DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
Are you using make-kpkg or what?
I must admit the new build rules that work with 2.6.29 were only tested
with module-assitant and linux-modules-nonfree-2.6 since those are the
only two methods the debian kernel pacakge developers seem to support.
Those building their own kernels would of course likely still use
make-kpkg, so perhaps I should have tested that too.
--
Len Sorensen
More information about the Pkg-nvidia-devel
mailing list