[pkg-nvidia-devel] Bug#526236: nvidia-graphics-modules-amd64: update for nvidia driver 180.44 on kernel 2.6.29

Andreas Beckmann debian at abeckmann.de
Thu Apr 30 02:19:14 UTC 2009


Package: nvidia-graphics-modules-amd64
Severity: normal
Tags: patch

Hi,

so far I used a locally updated version of this package to build nvidia
module packages and upload them to a local repository. Before the
2.6.29/180.44 reorganization this worked without changes (besides
bumping version numbers). Now a bit more work was needed to get this
working again, so here comes a patch with the neccessary changes.

I also tried enabling nvidia in linux-modules-nonfree, this built
packages without problems, but these are not compatible with the ones
previously built from this package (different names and especially they
lack a Provides: nvidia-kernel-180.44). There might be more neccessary
to bring linux-modules-nonfree up-to-date with nvidia, but I couldn't
find a patch anywhere and didn't want to reinvent it.

Using module-assistant is not a good solution if you have several
machines to be kept in sync and don't want to have m-a, kernel-headers,
compiler, ... installed verywhere.

Enough of reasoning why I use nvidia-graphics-modules-amd64, there are
three changes neccessary to make it work with current driver and kernel.
This works with an unmodified nvidia-kernel-source 180.44-2, but some
of the workarounds I applied may give pointers to what has to be changed
in the source package to restore make-kpkg compatibility.

1. added Build-Depends: module-assistant
this is neccessary since nvidia-kernel-source debian/rules includes some
makefile snippets from m-a (conditionally, but without including them 
some variables (e.g. VERSION) are missing and passing VERSION on the
command line calling the binary-modules target (in module source) causes
lots of problems

2. pass KPKG_DEST_DIR=.. when calling module source debian/rules binary-modules

3. pass HAVECONFIG=y when calling debian/rules clean in the module source
otherwise clean fails miserably, this is a bug in nvidia-kernel-source

Remaining changes in the attached patch are version bumps or "cosmetics"
(change section, drop openvz flavor).


Andreas

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (800, 'testing'), (800, 'stable'), (600, 'unstable'), (130, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.28-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nvidia-graphics-modules-amd64_180.44.diff
Type: text/x-diff
Size: 6058 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20090430/37f744f3/attachment.diff>


More information about the Pkg-nvidia-devel mailing list