[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#810765: ardour: FTBFS[!linux]: depends on cwiid, alsa



Package: ardour
Version: 1:4.4~dfsg-1
Severity: normal
Tags: patch

Hi,

ardour has become BD-Uninstallable on kfreebsd and hurd due to
Build-Depends:
  - cwiid, which is linux-specific;
  - libasound2-dev, which is linux-specific (although kfreebsd has
    a compatibility wrapper around OSS, I think it will be inadequate
    for ardour's purposes;  better to use JACK instead).

Please find attached patch adjusting the build-dependencies, and also
to only enable the ALSA backend on Linux.

(p.s. `BACKENDS+=,alsa` might have looked neater, but doesn't work)

Thanks!

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 10.1-0-amd64
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru a/debian/control b/debian/control
--- a/debian/control	2015-10-20 12:44:27.000000000 +0100
+++ b/debian/control	2016-01-12 00:29:26.813611864 +0000
@@ -26,12 +26,12 @@
  libsigc++-2.0-dev (>= 2.2.10),
  uuid-dev,
  libxml2-dev (>= 2.5.7),
- libcwiid-dev,
+ libcwiid-dev [linux-any],
  libcairomm-1.0-dev (>= 1.10.0),
  libgtkmm-2.4-dev (>= 2.24.2),
  libpangomm-1.4-dev (>= 2.28.4),
  ladspa-sdk (>= 1.1-2),
- libasound2-dev (>= 0.9.4),
+ libasound2-dev (>= 0.9.4) [linux-any],
  libaubio-dev (>= 0.3.2),
  libjack-dev,
  liblo-dev (>= 0.26~),
diff -Nru a/debian/rules b/debian/rules
--- a/debian/rules	2015-10-20 12:44:27.000000000 +0100
+++ b/debian/rules	2016-01-12 00:29:13.954613461 +0000
@@ -44,6 +44,12 @@
 	DIST_TARGET = x86_64
 endif
 
+BACKENDS = jack
+ifneq (,$(findstring linux,$(DEB_HOST_ARCH_OS)))
+	# ALSA Backend is only available on Linux
+	BACKENDS = jack,alsa
+endif
+
 LD_LIBRARY_PATH += :$(DEB_DESTDIR)/usr/lib/ardour4/
 
 waf-configure-options = --lv2 \
@@ -52,7 +58,7 @@
 	--configdir=/etc/ \
 	--noconfirm \
 	--prefix=/usr/ \
-	--with-backends=jack,alsa \
+	--with-backends=$(BACKENDS) \
 	--no-phone-home \
 	--use-external-libs \
 	--dist-target=$(DIST_TARGET) \

Reply to: