Source: opensm
Version: 3.3.23-2
Severity: normal
Tags: ftbfs patch
User: [email protected]
Usertags: dep17m2

We want to change the value of systemdsystemunitdir in systemd.pc. The
opensm upstream build system uses this, but the Debian packaging hard
codes its current value. Consequently, opensm will FTBFS when the value
is changed. Consider applying the attached patch to avoid that from
happening.

Helmut
diff -Nru opensm-3.3.23/debian/changelog opensm-3.3.23/debian/changelog
--- opensm-3.3.23/debian/changelog      2020-07-31 14:22:59.000000000 +0200
+++ opensm-3.3.23/debian/changelog      2023-09-21 08:46:03.000000000 +0200
@@ -1,3 +1,10 @@
+opensm (3.3.23-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Do not FTBFS when systemdsystemunitdir changes in systemd.pc. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Thu, 21 Sep 2023 08:46:03 +0200
+
 opensm (3.3.23-2) unstable; urgency=medium
 
   * Team upload.
diff -Nru opensm-3.3.23/debian/control opensm-3.3.23/debian/control
--- opensm-3.3.23/debian/control        2020-07-31 14:17:52.000000000 +0200
+++ opensm-3.3.23/debian/control        2023-09-21 08:46:03.000000000 +0200
@@ -9,7 +9,8 @@
                flex,
                libibumad-dev (>= 1.3.7),
                libwrap0-dev,
-               pkg-config
+               pkg-config,
+               systemd-dev,
 Standards-Version: 4.5.0
 Rules-Requires-Root: no
 Vcs-Git: https://salsa.debian.org/hpc-team/opensm.git
diff -Nru opensm-3.3.23/debian/opensm.install 
opensm-3.3.23/debian/opensm.install
--- opensm-3.3.23/debian/opensm.install 2020-07-31 14:17:52.000000000 +0200
+++ opensm-3.3.23/debian/opensm.install 2023-09-21 08:46:03.000000000 +0200
@@ -1,3 +1,2 @@
-lib/systemd
 usr/sbin
 usr/share/man
diff -Nru opensm-3.3.23/debian/rules opensm-3.3.23/debian/rules
--- opensm-3.3.23/debian/rules  2020-03-02 12:24:38.000000000 +0100
+++ opensm-3.3.23/debian/rules  2023-09-21 08:46:03.000000000 +0200
@@ -6,6 +6,9 @@
 %:
        dh $@
 
+execute_after_dh_install:
+       dh_install -popensm $$(pkg-config --variable=systemdsystemunitdir 
systemd | sed s,^/,,)
+
 override_dh_missing:
        rm -f debian/tmp/usr/lib/*/*.la
        # Use our opensm initd script

Reply via email to