svn commit: r512528 - in head/audio/oss: . files
Chris Rees
crees at FreeBSD.org
Sat Sep 21 18:13:32 UTC 2019
Author: crees
Date: Sat Sep 21 18:13:31 2019
New Revision: 512528
URL: https://svnweb.freebsd.org/changeset/ports/512528
Log:
audio/oss: Improve handling when sound.ko is compiled into the kernel.
Now, soundon checks for its presence and fails with an appropriate error.
While here, add it to pkg-message.
I use this still as I have a Xonar D2X which FreeBSD's drivers don't support,
so I'll take maintainership.
PR: ports/240200
Modified:
head/audio/oss/Makefile
head/audio/oss/files/patch-setup_FreeBSD_sbin_soundon
head/audio/oss/pkg-message
Modified: head/audio/oss/Makefile
==============================================================================
--- head/audio/oss/Makefile Sat Sep 21 17:58:47 2019 (r512527)
+++ head/audio/oss/Makefile Sat Sep 21 18:13:31 2019 (r512528)
@@ -3,11 +3,12 @@
PORTNAME= oss
DISTVERSION= 4.2-build2019
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/
DISTNAME= ${PORTNAME}-v${DISTVERSION}-src-bsd
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= crees at FreeBSD.org
COMMENT= Open Sound System from 4Front Technologies
LICENSE= BSD2CLAUSE
Modified: head/audio/oss/files/patch-setup_FreeBSD_sbin_soundon
==============================================================================
--- head/audio/oss/files/patch-setup_FreeBSD_sbin_soundon Sat Sep 21 17:58:47 2019 (r512527)
+++ head/audio/oss/files/patch-setup_FreeBSD_sbin_soundon Sat Sep 21 18:13:31 2019 (r512528)
@@ -1,5 +1,5 @@
---- setup/FreeBSD/sbin/soundon.orig 2014-02-14 22:59:55 UTC
-+++ setup/FreeBSD/sbin/soundon
+--- setup/FreeBSD/sbin/soundon.orig 2014-02-14 22:59:55.000000000 +0000
++++ setup/FreeBSD/sbin/soundon 2019-09-21 19:07:29.295818000 +0100
@@ -1,10 +1,10 @@
#!/bin/sh
@@ -14,7 +14,7 @@
fi
LOG=/var/log/soundon.log
-@@ -29,7 +29,7 @@ fi
+@@ -29,7 +29,7 @@
if test -f $OSSLIBDIR/etc/license.asc
then
@@ -23,7 +23,25 @@
fi
OPTIONS=
-@@ -70,7 +70,7 @@ do
+@@ -42,6 +42,17 @@
+ fi
+ fi
+
++if kldstat -v |grep -q sound; then
++ if kldstat |grep -q sound\\\.ko; then
++ echo Please remove the FreeBSD sound modules and try again
++ echo 'You can do this with # kldunload sound'
++ else
++ echo You must recompile your kernel without the built in sound
++ echo drivers\; please refer to the FreeBSD Handbook
++ fi
++ exit 4
++fi
++
+ if ! /sbin/kldload $OSSLIBDIR/modules/osscore.ko
+ then
+ echo Loading the osscore module failed
+@@ -70,7 +81,7 @@
done
echo "+++ ossinfo -v3 +++" >> $LOG
@@ -32,7 +50,7 @@
echo "+++ /dev/sndstat +++" >> $LOG
cat /dev/sndstat >> $LOG 2>&1
echo "+++ dmesg +++" >> $LOG
-@@ -85,11 +85,11 @@ then
+@@ -85,11 +96,11 @@
sh $OSSLIBDIR/etc/legacy_devices >> $LOG 2>&1
fi
@@ -46,7 +64,7 @@
if test -x $OSSLIBDIR/soundon.user
then
-@@ -97,7 +97,7 @@ then
+@@ -97,7 +108,7 @@
$OSSLIBDIR/soundon.user >> $LOG 2>&1
fi
@@ -55,7 +73,7 @@
then
echo
echo "************************************************************"
-@@ -108,7 +108,7 @@ then
+@@ -108,7 +119,7 @@
sleep 1
fi
Modified: head/audio/oss/pkg-message
==============================================================================
--- head/audio/oss/pkg-message Sat Sep 21 17:58:47 2019 (r512527)
+++ head/audio/oss/pkg-message Sat Sep 21 18:13:31 2019 (r512528)
@@ -6,6 +6,11 @@ the one used by 4Front and is not supported by them.
should go to the port maintainer via the usual PR mechanism.
To load OSS at boot, add oss_enable="YES" to your /etc/rc.conf.
+
+It is necessary to ensure that your kernel does not have sound.ko
+compiled in, which is always the case for GENERIC. Please refer to
+the Handbook for advice on this.
+
EOM
}
]
More information about the svn-ports-all
mailing list