Source: exabgp
Version: exabgp_4.2.21-1.1
Severity: normal
Tags: patch
User: helm...@debian.org
Usertags: dep17m2

Dear Maintainer,

your package installs a systemd service unit, into /lib. These
files need to be moved to /usr/lib as part of Debian's usr-merge
effort [1].

Attached you will find a patch to let debhelper pick the correct
path. This immediately works for unstable and for bookworm and is
safe to do now.

Later during the trixie cycle I expect this bug class to raise in
priority.

If during the trixie cycle your package will undergo structural
changes or any other file moves, please see the wiki and upload
to experimental first when these changes are done.

Thank you for considering,
Chris

[1] https://wiki.debian.org/UsrMerge
diff -Nru exabgp-4.2.21/debian/changelog exabgp-4.2.21/debian/changelog
--- exabgp-4.2.21/debian/changelog      2022-10-15 12:02:54.000000000 +0200
+++ exabgp-4.2.21/debian/changelog      2023-12-16 00:08:07.000000000 +0100
@@ -1,3 +1,10 @@
+exabgp (4.2.21-1.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Let debhelper place systemd unit. (Closes: #-1)
+
+ -- Chris Hofstaedtler <z...@debian.org>  Sat, 16 Dec 2023 00:08:07 +0100
+
 exabgp (4.2.21-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru exabgp-4.2.21/debian/exabgp.install 
exabgp-4.2.21/debian/exabgp.install
--- exabgp-4.2.21/debian/exabgp.install 2022-07-26 12:43:29.000000000 +0200
+++ exabgp-4.2.21/debian/exabgp.install 1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-etc/systemd/exabgp.service lib/systemd/system
diff -Nru exabgp-4.2.21/debian/rules exabgp-4.2.21/debian/rules
--- exabgp-4.2.21/debian/rules  2022-07-26 12:43:29.000000000 +0200
+++ exabgp-4.2.21/debian/rules  2023-12-16 00:08:07.000000000 +0100
@@ -13,6 +13,8 @@
        mkdir -p $(CURDIR)/debian/python3-exabgp/usr/sbin
        mv $(CURDIR)/debian/python3-exabgp/usr/bin/exabgp 
$(CURDIR)/debian/python3-exabgp/usr/sbin/python3-exabgp
        mv $(CURDIR)/debian/python3-exabgp/usr/bin/exabgpcli 
$(CURDIR)/debian/python3-exabgp/usr/sbin/python3-exabgpcli
+       # Let dh place the systemd unit.
+       cp $(CURDIR)/etc/systemd/exabgp.service $(CURDIR)/debian/exabgp.service
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
@@ -26,4 +28,4 @@
 
 override_dh_auto_clean:
        dh_auto_clean --buildsystem=pybuild
-       rm -f etc/exabgp/exabgp.env
+       rm -f etc/exabgp/exabgp.env debian/exabgp.service

Reply via email to