Source: bluez-alsa
Version: 4.0.0-2
Tags: ftbfs patch
User: helm...@debian.org
Usertags: dep17m2

We want to change the value of systemdsystemunitdir in systemd.pc to
point to /usr. The upstream build system of bluez-alsa consumes this
value, but the debian packaging hard codes the current value. When
changing it, bluez-alsa fails to build from source. Consider applying
the attached patch to avoid that from happening.

Helmut
diff -Nru bluez-alsa-4.0.0/debian/bluez-alsa-utils.install 
bluez-alsa-4.0.0/debian/bluez-alsa-utils.install
--- bluez-alsa-4.0.0/debian/bluez-alsa-utils.install    2023-02-15 
22:36:59.000000000 +0100
+++ bluez-alsa-4.0.0/debian/bluez-alsa-utils.install    2023-09-25 
12:41:37.000000000 +0200
@@ -1,6 +1,6 @@
-#! /usr/bin/dh-exec --with-scripts=install-rename
+#! /usr/bin/dh-exec --with-scripts=install-rename,subst-env
 etc/*
 usr/bin/*
 debian/bluez-alsa.default => etc/default/bluez-alsa
-lib/systemd/system/bluealsa.service
-lib/systemd/system/bluealsa-aplay.service
+${systemdsystemunitdir}/bluealsa.service
+${systemdsystemunitdir}/bluealsa-aplay.service
diff -Nru bluez-alsa-4.0.0/debian/changelog bluez-alsa-4.0.0/debian/changelog
--- bluez-alsa-4.0.0/debian/changelog   2023-02-15 22:36:59.000000000 +0100
+++ bluez-alsa-4.0.0/debian/changelog   2023-09-25 12:42:20.000000000 +0200
@@ -1,3 +1,11 @@
+bluez-alsa (4.0.0-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Do not FTBFS when systemdsystemunitdir changes in systemd.pc. (Closes:
+    #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 25 Sep 2023 12:42:20 +0200
+
 bluez-alsa (4.0.0-2) unstable; urgency=medium
 
   * Enable libopenaptx.
diff -Nru bluez-alsa-4.0.0/debian/control bluez-alsa-4.0.0/debian/control
--- bluez-alsa-4.0.0/debian/control     2023-02-15 22:36:59.000000000 +0100
+++ bluez-alsa-4.0.0/debian/control     2023-09-25 12:41:51.000000000 +0200
@@ -14,6 +14,7 @@
                libldacbt-abr-dev (>= 2.0.0),
               libopenaptx-dev (>= 0.2.0),
               python3-docutils,
+               pkg-config,
               systemd
 Rules-Requires-Root: no
 Standards-Version: 4.6.1
diff -Nru bluez-alsa-4.0.0/debian/rules bluez-alsa-4.0.0/debian/rules
--- bluez-alsa-4.0.0/debian/rules       2023-02-15 22:36:59.000000000 +0100
+++ bluez-alsa-4.0.0/debian/rules       2023-09-25 12:42:18.000000000 +0200
@@ -3,6 +3,8 @@
 # DEB_BUILD_PROFILES='nodoc'
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+export systemdsystemunitdir = $(shell pkg-config 
--variable=systemdsystemunitdir systemd | sed s,^/,,)
+
 CONFIGURE_FLAGS := \
        --enable-ldac \
        --enable-libopenaptx \

Reply via email to