Package: transmission Version: 2.82-1 Severity: serious Tags: patch
transmission unconditionally build-depends on libsystemd-daemon-dev which is only available on linux.
The attatched patch adjusts debian/control and debian/rules to make the systemd stuff linux only. I have tested it builds successfully on i386 and kfreebsd-amd64 (in a moderately dirty development environment) and that the systemd parameters are passed to dh on linux and not on kfreebsd. I have not tested it beyond that.
I have no immediate intent to NMU, I may change my mind on that later (If I decide to NMU I will do some further testing first but honestly I'd rather the upload was done by someone more familiar with the package).
diff -Nru transmission-2.82/debian/changelog transmission-2.82/debian/changelog --- transmission-2.82/debian/changelog 2013-09-15 00:15:07.000000000 +0100 +++ transmission-2.82/debian/changelog 2013-12-08 01:05:49.000000000 +0000 @@ -1,3 +1,10 @@ +transmission (2.82-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Make systemd stuff linux only. + + -- root <root@debian-kfbsd-amd64> Sun, 08 Dec 2013 01:05:01 +0000 + transmission (2.82-1) unstable; urgency=low * [5b6dca28] Imported Upstream version 2.82 diff -Nru transmission-2.82/debian/control transmission-2.82/debian/control --- transmission-2.82/debian/control 2013-09-14 23:54:56.000000000 +0100 +++ transmission-2.82/debian/control 2013-12-08 01:13:34.000000000 +0000 @@ -2,14 +2,14 @@ Section: net Priority: optional Maintainer: Leo Costela <cost...@debian.org> -Build-Depends: debhelper (>= 8), autotools-dev, dh-systemd, +Build-Depends: debhelper (>= 8), autotools-dev, dh-systemd [linux-any], libgtk-3-dev, libevent-dev (>= 2.0), libglib2.0-dev, libnotify-dev (>= 0.7), libssl-dev, zlib1g-dev, libcurl4-gnutls-dev | libcurl4-dev | libcurl-dev, intltool (>= 0.40), qt5-qmake, qtbase5-dev, qttools5-dev-tools, qt5-default, libminiupnpc-dev, libnatpmp-dev (>= 20110808), - libsystemd-daemon-dev, + libsystemd-daemon-dev [linux-any], # buildflags.mk dpkg-dev (>= 1.16.1~), # libcanberra-gtk-dev diff -Nru transmission-2.82/debian/rules transmission-2.82/debian/rules --- transmission-2.82/debian/rules 2013-07-27 20:34:53.000000000 +0100 +++ transmission-2.82/debian/rules 2013-12-08 01:44:49.000000000 +0000 @@ -8,8 +8,16 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk +DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) + +DH_EXTRA_ARGS := --with autotools-dev + +ifeq ($(DEB_HOST_ARCH_OS),linux) + DH_EXTRA_ARGS += --with systemd +endif + %: - dh $@ --with autotools-dev --with systemd + dh $@ $(DH_EXTRA_ARGS) override_dh_auto_configure: dh_auto_configure -- \