[pkg-nvidia-devel] Bug#545228: Bug#545228: reason, workaround

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Wed Oct 28 16:05:49 UTC 2009


On Sun, Oct 04, 2009 at 12:52:51PM +0200, A Mennucc wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hi,
> 
> the problem is that module-assistant sets
>   KSRC=/lib/modules/2.6.30-1-686/build
> and then debian/rules calls the nvidia makefile nv/Makefile.kbuild by
>   $(MAKE) SYSSRC=$(KSRC) ....
> but instead if you call the upstream makefile directly,
> it internally uses
>   /lib/modules/2.6.30-1-686/source
> in some variables; and currently those are different,
> # ls -l /lib/modules/2.6.30-1-686
> lrwxrwxrwx 1 root root     35 30 ago 19:39 build ->
> /usr/src/linux-headers-2.6.30-1-686
> lrwxrwxrwx 1 root root     38 25 ago 19:13 source ->
> /usr/src/linux-headers-2.6.30-1-common
> 
> The workaround is
> # cd /usr/src
> # tar xzf nvidia-kernel-legacy-96xx-source.tar.gz
> then edit debian/rules and delete all occurrences of SYSSRC=...
> eventually
> #  m-a -t  -O b-i  nvidia-kernel-legacy-96xx
> 
> this way, the NVidia nv/Makefile.kbuild will autodetect the kernel that
> is currently installed, and set the variables as it likes, and it will
> compile.
> 
> (This also means that "m-a -l another-kernel" will not work)

Current version of 96xx should work now I believe.

-- 
Len Sorensen





More information about the Pkg-nvidia-devel mailing list