Source: at
Version: 3.2.5-2
Tags: patch
User: helm...@debian.org
Usertags: dep17m2

We want to move files from aliased directories to /usr (see DEP17). The
at package is involved, because it ships a systemd unit in /lib. I
propose that instead of hard coding this directory, you may defer the
placement to systemd's pkgconf file. The advantage of doing so is that a
backport of apt to an older release will automatically revert back to
/lib and thus honour the file move moratorium that still applies to
bookworm. I'm attaching a patch for your convenience.

Helmut
diff -Nru at-3.2.5/debian/changelog at-3.2.5/debian/changelog
--- at-3.2.5/debian/changelog   2023-06-25 23:46:36.000000000 +0200
+++ at-3.2.5/debian/changelog   2023-10-15 10:37:15.000000000 +0200
@@ -1,3 +1,10 @@
+at (3.2.5-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Defer placement of systemd units to systemd.pc. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 15 Oct 2023 10:37:15 +0200
+
 at (3.2.5-2) unstable; urgency=medium
 
   * Fix a race condition on DEP8 test?
diff -Nru at-3.2.5/debian/control at-3.2.5/debian/control
--- at-3.2.5/debian/control     2023-06-25 23:46:36.000000000 +0200
+++ at-3.2.5/debian/control     2023-10-15 10:36:38.000000000 +0200
@@ -12,6 +12,8 @@
                libpam0g-dev,
                libselinux1-dev [linux-any],
                perl:any (>= 5.10.1),
+               pkgconf,
+               systemd-dev,
 Vcs-Browser: https://salsa.debian.org/debian/at
 Vcs-Git: https://salsa.debian.org/debian/at.git -b debian
 Homepage: http://blog.calhariz.com
diff -Nru at-3.2.5/debian/rules at-3.2.5/debian/rules
--- at-3.2.5/debian/rules       2023-06-25 23:46:36.000000000 +0200
+++ at-3.2.5/debian/rules       2023-10-15 10:36:57.000000000 +0200
@@ -9,7 +9,7 @@
 confflags = --with-loadavg_mx=1.5 \
             --with-jobdir=/var/spool/cron/atjobs \
             --with-atspool=/var/spool/cron/atspool \
-            --with-systemdsystemunitdir=/lib/systemd/system \
+            --with-systemdsystemunitdir=$(shell pkgconf 
--variable=systemdsystemunitdir systemd) \
             $(WITH_SELINUX) \
             SENDMAIL=/usr/sbin/sendmail
 

Reply via email to