[pkg-nvidia-devel] Bug#533217: [patch] suggest 'm-a clean nvidia' before aborting if old files breaking the build are found in the build directory
debian at abeckmann.de
Tue Jun 16 08:00:10 UTC 2009
tag 533217 +patch
build breakage by not cleaning before the new build is caused by the
following chain of events:
* an old makefile (lowercase m) exists from older versions of the source
* m-a runs the clean target from this makefile (which gets preferred by
make over the new Makefile (capital M) shipped)
* this clean target removes the Makefile
* build bombs
A simple workaround (patch attached) is to check for the presence of a
'makefile' in the binary-modules target and print an error message
suggesting 'm-a clean nvidia' and abort if it was found. At this point
there is no way to recover by e.g. removing the 'makefile' because the
'Makefile' is already gone.
This should help all people running into this problem again and again.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 497 bytes
Desc: not available
More information about the Pkg-nvidia-devel