[Pkg-oss4-maintainers] oss4 dkms build fails

BRIAND, Michel M (EKITO) michel.m.briand.external at airbus.com
Thu Nov 3 10:32:47 UTC 2011


Hello,

oss4-dkms fails to build (dkms verbose enabled) :

# 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-build2004-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"


Best regards,
Michel

The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.




More information about the Pkg-oss4-maintainers mailing list