Source: intel-hdcp
Version: 20.3.0-1
Tags: ftbfs patch
User: helm...@debian.org
Usertags: dep17m2

We want to change the value of systemdsystemunitdir in systemd.pc to
point below /usr. intel-hdcp's upstream build system consumes this
variable, but the debian packaging hard codes its current value.
Consequently, intel-hdcp will FTBFS when we change the value. Consider
applying the attached patch to avoid that failure.

Helmut
diff -Nru intel-hdcp-20.3.0/debian/changelog intel-hdcp-20.3.0/debian/changelog
--- intel-hdcp-20.3.0/debian/changelog  2020-10-17 12:42:44.000000000 +0200
+++ intel-hdcp-20.3.0/debian/changelog  2023-09-25 15:44:02.000000000 +0200
@@ -1,3 +1,10 @@
+intel-hdcp (20.3.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when systemd.pc changes systemdsystemunitdir. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 25 Sep 2023 15:44:02 +0200
+
 intel-hdcp (20.3.0-1) unstable; urgency=medium
 
   * Initial release (Closes: #972379)
diff -Nru intel-hdcp-20.3.0/debian/intel-hdcp.install 
intel-hdcp-20.3.0/debian/intel-hdcp.install
--- intel-hdcp-20.3.0/debian/intel-hdcp.install 2020-10-17 11:51:03.000000000 
+0200
+++ intel-hdcp-20.3.0/debian/intel-hdcp.install 2023-09-25 15:43:56.000000000 
+0200
@@ -1,2 +1,2 @@
-lib/systemd/system/hdcpd.service
+${env:systemdsystemunitdir}/hdcpd.service
 usr/bin/hdcpd
diff -Nru intel-hdcp-20.3.0/debian/rules intel-hdcp-20.3.0/debian/rules
--- intel-hdcp-20.3.0/debian/rules      2020-10-16 11:12:01.000000000 +0200
+++ intel-hdcp-20.3.0/debian/rules      2023-09-25 15:43:36.000000000 +0200
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+export systemdsystemunitdir = $(shell pkg-config 
--variable=systemdsystemunitdir systemd)
+
 %:
        dh $@ --builddir build/
 

Reply via email to