[pkg-nvidia-devel] Bug#585695: Bug#585695: nvidia-kernel-source: Manual built of module does not consider already set KVERS and KSRC environment variables
Russ Allbery
rra at debian.org
Sun Jun 13 08:37:17 UTC 2010
Edgar Sippel <for.your.spam.only at web.de> writes:
> The latest change in debian/rules applies a new behaviour of the build
> script which makes manual building the module not working anymore
> according to documentation README.debian method #3:
> I'm using several different kernels on my machine, and normally I build
> the nvidia packages for all of them by just setting the respective
> environment variables KVERS and KSRC to the different values and then
> building the modules one after another manually by calling
> /usr/src/modules/nvidia-kernel/debian/rules binary_modules.
> The latest changes in version 195.36.24-2 do not consider these already
> set variables anymore but, as far as I understood the script takes the
> version from the target of /usr/src/linux, which, on my machine always
> points to the 'main' kernel, meaning the one currently in testing. So,
> compiling for different versions always needs a change of that symlink
> including the risk of letting this point to a wrong version afterwards
> when forgetting to re-set it.
Those variables are, speaking generally, taken into account; otherwise,
nvidia-grahics-modules wouldn't build, since that's how it works.
However, the relationship between environment variables and makefile
variables are always tricky, and I suspect what's happened is that the
makefile is no longer honoring the environment variable over what's in
debian/rules.
As a workaround for the time being, please pass the settings directly on
the debian/rules invocation line; in other words, like:
/usr/src/modules/nvidia-kernel/debian/rules binary_modules \
KSRC=/path/to/kernel/source KVERS=2.6.34-foo
That should work. We'll either update the documentation accordingly or
figure out the right way to tell make to honor environment variables.
--
Russ Allbery (rra at debian.org) <http://www.eyrie.org/~eagle/>
More information about the Pkg-nvidia-devel
mailing list