Skip to contentSkip to conversation

meson.build: Allow to disable OSS again

PATCH Applied Thomas Huth 3 participants 3 messages Nov 2, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 meson.build: Allow to disable OSS again

If sys/soundcard.h is available, it is currently not possible to disable OSS with the --disable-oss or --without-default-features configure switches. Improve the check in meson.build to fix this.

Fixes 87430d5b13 ("configure, meson: move audio driver detection to Meson")

---
v2: Only ever look for OSS if we also have system emulation enabled

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
index 6dec5dd5cc..2848917602 100644
@@ -915,7 +915,7 @@ if liblzfse.found() and not cc.links('''
 endif
 
 oss = not_found
-if not get_option('oss').auto() or have_system
+if have_system and not get_option('oss').disabled()
   if not cc.has_header('sys/soundcard.h')
     # not found
   elif targetos == 'netbsd'
Signature · 1 line
2.27.0
#1 lore raw
Quoted 18 lines · Thomas Huth

If sys/soundcard.h is available, it is currently not possible to disable OSS with the --disable-oss or --without-default-features configure switches. Improve the check in meson.build to fix this.

Fixes 87430d5b13 ("configure, meson: move audio driver detection to Meson")

---
v2: Only ever look for OSS if we also have system emulation enabled

  meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +0 -0
index 6dec5dd5cc..2848917602 100644

meson.build if liblzfse.found() and not cc.links(''' · line 921

Quoted 8 lines
meson.build +1 -1
@@ -915,7 +915,7 @@ if liblzfse.found() and not cc.links('''
  endif
 
  oss = not_found
-if not get_option('oss').auto() or have_system
+if have_system and not get_option('oss').disabled()
    if not cc.has_header('sys/soundcard.h')
      # not found
    elif targetos == 'netbsd'

Queued, thanks.

Paolo

Reviewed-by on v2 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 11 lines · Thomas Huth

If sys/soundcard.h is available, it is currently not possible to disable OSS with the --disable-oss or --without-default-features configure switches. Improve the check in meson.build to fix this.

Fixes 87430d5b13 ("configure, meson: move audio driver detection to Meson")

---
v2: Only ever look for OSS if we also have system emulation enabled

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)