ports/173019: audio/openal-soft version in ports don't recognize OSS playback devices

Sergei nbspjr at gmail.com
Wed Oct 24 10:40:01 UTC 2012


>Number:         173019
>Category:       ports
>Synopsis:       audio/openal-soft version in ports don't recognize OSS playback devices
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 24 10:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Sergei
>Release:        FreeBSD 9.1-RC1 amd64
>Organization:
>Environment:
FreeBSD lair 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 04:25:06 UTC 2012     root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The current version of openal-soft in portstree contains a bug preventing it from finding playback devices if OSS is used. Here is openal-info output:

$ openal-info
Available playback devices:
    !!! none !!!
Available capture devices:
    OSS Default
Default playback device: 
Default capture device: OSS Default
ALC version: 1.1
.. skipped ...
>How-To-Repeat:
1. Install audio/openal-soft
2. Make sure there is no ALSA installed
3. Open the terminal and call "openal-info" utility.


>Fix:
One of openal-soft developers told me it has been fixed. Here is repository diff related to this problem: http://repo.or.cz/w/openal-soft.git/blobdiff/29f77003c03578546a8a723e68b19951b4555843..648464a2da25277c4b90dac8484053ce98581a9b:/Alc/backends/oss.c

To fix this you can simply put attached file to audio/openal-soft/files directory and then rebuild the port.

Here is the patched openal-info output:
$ openal-info
Available playback devices:
    OSS Default
Available capture devices:
    OSS Default
Default playback device: OSS Default
Default capture device: OSS Default
ALC version: 1.1


Patch attached with submission follows:

--- Alc/backends/oss.c.orig
+++ Alc/backends/oss.c
@@ -511,7 +511,7 @@ void alc_oss_probe(enum DevProbe type)
         {
 #ifdef HAVE_STAT
             struct stat buf;
-            if(stat(oss_device, &buf) == 0)
+            if(stat(oss_driver, &buf) == 0)
 #endif
                 AppendAllDeviceList(oss_device);
         }


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list