[Pkg-oss4-maintainers] Bug#653374: oss4-dkms build fails

Michel Briand michelbriand at free.fr
Tue Dec 27 14:48:15 UTC 2011


Package: oss4-dkms
Version: 4.2-build2005-1
Severity: important

Hello,

the driver fails to install. The error seems to be related to the build of the 
driver. But in fact this is the CLEAN target in dkms.conf that causes an error 
that prevent the driver from being installed.

I've sent an email to Pkg-oss4-maintainers mailing list to signal about this 
bug.

aptitude log with oss4-dkms version 2004 :
==========================================

# apt-get install --reinstall oss4-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 245 not upgraded.
Need to get 0 B/1,033 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 290009 files and directories currently installed.)
Preparing to replace oss4-dkms 4.2-build2004-1 (using .../oss4-dkms_4.2-build200
4-1_amd64.deb) ...
Unpacking replacement oss4-dkms ...
Setting up oss4-dkms (4.2-build2004-1) ...
Loading new oss4-4.2-build2004 DKMS files...
Building only for 3.0.0-1-amd64
Building initial module for 3.0.0-1-amd64
/usr/sbin/dkms: line 82: cd: 20795dir: No such file or directory
rm: cannot remove `core': Is a directory
/usr/sbin/dkms: line 82: cd: 20795dir: No such file or directory
Error! Build of osscore.ko failed for: 3.0.0-1-amd64 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/oss4/4.2-build2004/build/ for more information.
Unloading Open Sound System kernel modules: done (OSS not loaded).
Starting Open Sound System: failed (No kernel modules detected).

The problems seems to come from the dkms.conf file in
/usr/src/oss4-4.2-build2004.

There are two errors: the "escaping" of dir variable,
and the cd ../.. which go up two levels instead of one.

The CLEAN variable :

CLEAN="for dir in core drivers; do \
cd $$dir ; \
rm -f *.o *.ko *.mod.c *.mod.o .*.cmd core core.* x y z ; \
rm -rf .tmp_versions ; \
cd ../.. ; \
done"

should be fixed like this :

CLEAN="for dir in core drivers; do \
cd \\\$dir ; \
rm -f *.o *.ko *.mod.c *.mod.o .*.cmd core core.* x y z ; \
rm -rf .tmp_versions ; \
cd .. ; \
done"


aptitude log with oss4-dkms version 2005 :
==========================================

[...]
Building initial module for 3.1.0-1-amd64
/usr/sbin/dkms: line 81: cd: 2065dir: No such file or directory
rm: cannot remove `core': Is a directory
/usr/sbin/dkms: line 81: cd: 2065dir: No such file or directory
Error!  Build of osscore.ko failed for: 3.1.0-1-amd64 (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/oss4/4.2-build2005/build/ for more information.
Unloading Open Sound System kernel modules: done (OSS not loaded).
Starting Open Sound System: failed (No kernel modules detected).
Setting up oss4-gtk (4.2-build2005-1) ...
Press return to continue.


The problem is the same.

Patch proposed:
===============

please try the change proposed above or the patch attached. 
Both solved the problem.

The command:

# dpkg-reconfigure oss4-dkms

rebuilds the driver. And all is working again.


Please fix this error asap.

Kind regards,
Michel

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (1001, 'testing'), (990, 'stable'), (600, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages oss4-dkms depends on:
ii  dkms                                          2.2.0.3-1
ii  linux-headers-2.6.39-2-amd64 [linux-headers]  2.6.39-2
ii  linux-headers-3.0.0-1-amd64 [linux-headers]   3.0.0-3
ii  linux-headers-3.1.0-1-amd64 [linux-headers]   3.1.5-1
ii  linux-headers-amd64 [linux-headers]           3.1+41
ii  oss4-base                                     4.2-build2005-1

oss4-dkms recommends no packages.

oss4-dkms suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oss4-4.2-build2005.fix_cleantarget
Type: text/x-diff
Size: 968 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-oss4-maintainers/attachments/20111227/f1efd2c2/attachment.diff>


More information about the Pkg-oss4-maintainers mailing list