[pkg-nvidia-devel] Bug#545228: reason, workaround
A Mennucc
mennucc1 at debian.org
Sun Oct 4 10:52:51 UTC 2009
-----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)
a.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkrIfoMACgkQ9B/tjjP8QKRE0ACfTPDYnsPW+uLmnm1rMFAOKenJ
1yUAoIeC7OJvByeUhznzqEBh7cj/Ax02
=dOaG
-----END PGP SIGNATURE-----
More information about the Pkg-nvidia-devel
mailing list