[pkg-nvidia-devel] Bug#460509: nvidia-kernel-source: clean does not properly clean

Marc Haber mh+debian-bugs at zugschlus.de
Sun Jan 13 10:17:10 UTC 2008


Package: nvidia-kernel-source
Version: 169.07-1
Severity: normal

Hi,

debian/rules clean leaves around files that were created during build:

usr/src/modules/nvidia-kernel$ fakeroot debian/rules clean
cat: /include/linux/version.h: No such file or directory
/bin/sh: line 0: test: -ge: unary operator expected
# select which makefile to use.
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true
if [ 4 = 6  ]; then \
             cd /usr/src/modules/nvidia-kernel/nv ; \
             ln -s Makefile.kbuild Makefile ; \
             cd .. ; \
             if [ 0  = 1 ] ; then \
                dpatch apply 04_minion ; \
             fi ; \
             if [ 0 = 1 ]; then \
                dpatch apply 01_sysfs ; \
                dpatch status 01_sysfs >patch-stamp ; \
                dpatch apply 02_pcialias ; \
                dpatch status 02_pcialias >>patch-stamp ; \
             fi ; \
        fi
if [  4 = 4  ]; then \
             cd /usr/src/modules/nvidia-kernel/nv ; \
             ln -s Makefile.nvidia Makefile ; \
             cd .. ; \
        fi
if [ -e patch-stamp ]; then \
           dpatch deapply-all ; \
           rm -rf patch-stamp debian/patched ; \
        fi
if [ -f /usr/src/modules/nvidia-kernel/debian/control.template ]; then \
                cp  /usr/src/modules/nvidia-kernel/debian/control.template /usr/src/modules/nvidia-kernel/debian/control; \
        fi
dh_testroot
rm -f build-stamp configure-stamp
/usr/bin/make clean SYSSRC= -C /usr/src/modules/nvidia-kernel/nv -f Makefile
make[1]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
make[1]: Leaving directory `/usr/src/modules/nvidia-kernel/nv'
rm -f /usr/src/modules/nvidia-kernel/nv/Makefile || true;
rm /usr/src/modules/nvidia-kernel/nv/gcc-check
rm: cannot remove `/usr/src/modules/nvidia-kernel/nv/gcc-check': No such file or directory
make: [clean] Error 1 (ignored)
rm /usr/src/modules/nvidia-kernel/nv/cc-sanity-check
rm: cannot remove `/usr/src/modules/nvidia-kernel/nv/cc-sanity-check': No such file or directory
make: [clean] Error 1 (ignored)
dh_clean
rm /usr/src/modules/nvidia-kernel/debian/control
rm /usr/src/modules/nvidia-kernel/debian/dirs
rm: cannot remove `/usr/src/modules/nvidia-kernel/debian/dirs': No such file or directory
make: [clean] Error 1 (ignored)
rm /usr/src/modules/nvidia-kernel/debian/override
rm: cannot remove `/usr/src/modules/nvidia-kernel/debian/override': No such file or directory
make: [clean] Error 1 (ignored)
$ ls -al debian/nvidia-kernel-2.6.23.13-weave
total 20K
drwxr-xr-x 5 mh   src 4.0K Jan 12 17:40 ./
drwxrwsr-x 6 root src 4.0K Jan 13 10:12 ../
drwxr-xr-x 2 mh   mh  4.0K Jan 13 00:55 DEBIAN/
drwxr-xr-x 3 mh   src 4.0K Jan 12 17:40 lib/
drwxr-xr-x 3 mh   src 4.0K Jan 12 17:40 usr/
$      

The build process should properly clean up behind itself.

Greetings
Marc

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.23.12-zgsrv (SMP w/1 CPU core; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-nvidia-devel mailing list