[Pkg-utopia-maintainers] Bug#1054010: realmd: defer placement of systemd units to systemd.pc

Helmut Grohne helmut at subdivi.de
Sun Oct 15 20:52:29 BST 2023


Source: realmd
Version: 0.17.1-2
Tags: patch
User: helmutg at debian.org
Usertags: dep17m2

We want to move aliased files from / to /usr to finish the /usr-merge
transition via DEP17. realmd is affected, because it installs a systemd
unit to /lib. Rather than just moving it to /usr, I recommend deferring
its placement to systemd.pc. When backporting realmd, it'll thus revert
back to /lib honouring the file move moratorium that still affects
bookworm. I'm attaching a patch for your convenience.

Helmut
-------------- next part --------------
diff -Nru realmd-0.17.1/debian/changelog realmd-0.17.1/debian/changelog
--- realmd-0.17.1/debian/changelog	2023-07-07 20:11:00.000000000 +0200
+++ realmd-0.17.1/debian/changelog	2023-10-15 21:32:42.000000000 +0200
@@ -1,3 +1,10 @@
+realmd (0.17.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Defer location of systemd unit to systemd.pc. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 15 Oct 2023 21:32:42 +0200
+
 realmd (0.17.1-2) unstable; urgency=medium
 
   * Team upload
diff -Nru realmd-0.17.1/debian/control realmd-0.17.1/debian/control
--- realmd-0.17.1/debian/control	2023-07-07 20:11:00.000000000 +0200
+++ realmd-0.17.1/debian/control	2023-10-15 21:32:15.000000000 +0200
@@ -13,6 +13,7 @@
                libsystemd-dev [linux-any],
                pkg-config,
                python3:any,
+               systemd-dev [linux-any],
                xmlto,
                xsltproc
 Standards-Version: 4.6.1
diff -Nru realmd-0.17.1/debian/rules realmd-0.17.1/debian/rules
--- realmd-0.17.1/debian/rules	2023-07-07 20:11:00.000000000 +0200
+++ realmd-0.17.1/debian/rules	2023-10-15 21:32:41.000000000 +0200
@@ -7,7 +7,7 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 ifeq ($(DEB_BUILD_ARCH_OS),linux)
-  SYSTEMD_PARAMS := --with-systemd-journal --with-systemd-unit-dir=/lib/systemd/system
+  SYSTEMD_PARAMS := --with-systemd-journal --with-systemd-unit-dir=$(shell pkg-config --variable=systemdsystemunitdir systemd)
 else
   SYSTEMD_PARAMS := --without-systemd-journal --without-systemd-unit-dir
 endif


More information about the Pkg-utopia-maintainers mailing list