summarylogtreecommitdiffstats
path: root/soundon.patch
blob: b5311a0274e9db3d8aa711f96dafc597849d1160 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- usr/sbin/soundon.old	2009-09-04 06:35:26.000000000 +0100
+++ usr/sbin/soundon	2009-11-15 13:59:53.000000000 +0000
@@ -34,7 +34,10 @@
 echo "OSS version: " `cat $OSSLIBDIR/version.dat` >> $LOG 2>&1
 KERNEL_VERSION=`uname -r`
 echo "Kernel version: " $KERNEL_VERSION >> $LOG
+# Fix for ossvermagic for kernels after 2.6,
+# (on 3.8, 3.9 and 3.10 kernels, this takes 2 minutes and returns nothing).
+#KERNEL_VERMAGIC=`/usr/sbin/ossvermagic -z -s`
-KERNEL_VERMAGIC=`/usr/sbin/ossvermagic -z -s`
+KERNEL_VERMAGIC=""
 echo "Kernel vermagic: " $KERNEL_VERMAGIC >> $LOG 2>&1
 
 if ! test -f $OSSLIBDIR/etc/installed_drivers
@@ -255,7 +258,10 @@
   then
      if test "`uname -m` " = "x86_64 "
      then
-       ln -sf $OSSLIBDIR/lib/libsalsa.so.2.0.0 /usr/lib64/libasound.so.2
+       # Fix for compatibility with Arch's directory structure
+       # Not that we use it, there is no $OSSLIBDIR/.libsalsa_installed
+       ln -sf $OSSLIBDIR/lib/libsalsa.so.2.0.0 /usr/lib/libasound.so.2
+       #ln -sf $OSSLIBDIR/lib/libsalsa.so.2.0.0 /usr/lib64/libasound.so.2
        #ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib64
      else
        if test -s /lib/libasound.so.2
@@ -278,8 +284,11 @@
 then
    if test "`uname -m` " = "x86_64 "
    then
-     ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib64
-     ln -sf $OSSLIBDIR/lib/libossmix.so /usr/lib64
+     # Fix for compatibility with Arch's directory structure
+     ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib
+     ln -sf $OSSLIBDIR/lib/libossmix.so /usr/lib
+     #ln -sf $OSSLIBDIR/lib/libOSSlib.so /usr/lib64
+     #ln -sf $OSSLIBDIR/lib/libossmix.so /usr/lib64
    else
      if test -s /lib/libasound.so.2
      then