python: add patch to make ossaudiodev module optional
authorZoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Thu, 8 Jan 2015 10:49:27 +0000 (11:49 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 10 Jan 2015 14:58:21 +0000 (15:58 +0100)
This module causes some build failures in certain setups and is not
very useful.

Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/python/115-optional-ossaudiodev.patch [new file with mode: 0644]

diff --git a/package/python/115-optional-ossaudiodev.patch b/package/python/115-optional-ossaudiodev.patch
new file mode 100644 (file)
index 0000000..de82036
--- /dev/null
@@ -0,0 +1,30 @@
+From 30351d9b41a03c43d627d52d46e49ab91bfe342d Mon Sep 17 00:00:00 2001
+From: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
+Date: Thu, 8 Jan 2015 11:41:40 +0100
+Subject: [PATCH 1/1] Add an option to disable the ossaudiodev module
+
+Signed-off-by: Zoltan Gyarmati <mr.zoltan.gyarmati@gmail.com>
+---
+ configure.ac | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index e8cb52a..579e05b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -2717,6 +2717,12 @@ if test "$CURSES" = "no"; then
+    DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"
+ fi
++AC_ARG_ENABLE(ossaudiodev,
++       AS_HELP_STRING([--disable-ossaudiodev], [disable OSSAUDIODEV]),
++       [ if test "$enableval" = "no"; then
++            DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} ossaudiodev"
++         fi])
++
+ AC_SUBST(PYDOC)
+ AC_ARG_ENABLE(pydoc,
+-- 
+2.1.0
+