Control: tags 852985 + patch

On Sat, 28 Jan 2017 at 17:55:43 +0000, Simon McVittie wrote:
> This package build-depends on oss4-dev, which is built by RC-buggy source
> package oss4.

I attach a possible patch.

I don't know how to test gsequencer, so I am not intending to do a
NMU for this bug.

Regards,
    S
>From a7fc446f2b269f054c371f32816d35747771f2b6 Mon Sep 17 00:00:00 2001
From: Simon McVittie <s...@debian.org>
Date: Sun, 29 Jan 2017 12:12:19 +0000
Subject: [PATCH] Build-depend on ALSA on Linux, and on OSS4 on non-Linux

Disable the other kernel's API in each case (Closes: #852985)
---
 debian/changelog | 8 ++++++++
 debian/control   | 5 +++--
 debian/rules     | 3 ++-
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a9b2ad4..550ff35 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+gsequencer (0.7.122-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Build-depend on ALSA on Linux, and on OSS4 on non-Linux, disabling
+    the other kernel's API in each case (Closes: #852985)
+
+ -- Simon McVittie <s...@debian.org>  Sun, 29 Jan 2017 12:11:56 +0000
+
 gsequencer (0.7.122-1) unstable; urgency=medium
 
   * New upstream version 0.7.122
diff --git a/debian/control b/debian/control
index b13e923..27f2c9e 100644
--- a/debian/control
+++ b/debian/control
@@ -20,8 +20,9 @@ Build-Depends: debhelper (>= 9),
  dssi-dev,
  lv2-dev,
  libgmp-dev,
- libasound2-dev|liboss4-salsa-dev,
- oss4-dev,
+ libasound2-dev [linux-any],
+ liboss4-salsa-dev [!linux-any],
+ oss4-dev [!linux-any],
  libjack-dev,
  uuid-dev,
  docbook-xsl,
diff --git a/debian/rules b/debian/rules
index fc2ae40..7575519 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,10 +8,11 @@ archconfflags :=
 
 ifeq ($(DEB_HOST_ARCH_OS),linux)
   archconfflags += --enable-alsa
+  archconfflags += --disable-oss
 else
   archconfflags += --disable-alsa
+  archconfflags += --enable-oss
 endif
-archconfflags += --enable-oss
 
 archconfflags += --enable-gtk-doc --enable-gtk-doc-html
 
-- 
2.11.0

_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to