Source: apt-cacher-ng
Version: 3.7.4-1
Severity: normal
Tags: patch
User: helm...@debian.org
Usertags: dep17m2

Dear Maintainer,

your package ships (after a rebuild) an empty directory
/lib/systemd/system. For the Debian UsrMerge effort [1] these
directories should go away.

I'm attaching a patch to clean this up.  Please apply it at your
earliest convenience.

Chris

[1] https://wiki.debian.org/UsrMerge
diff -Nru apt-cacher-ng-3.7.4/debian/changelog apt-cacher-ng-3.7.4/debian/changelog
--- apt-cacher-ng-3.7.4/debian/changelog	2021-12-07 14:50:20.000000000 +0100
+++ apt-cacher-ng-3.7.4/debian/changelog	2023-12-21 01:31:41.000000000 +0100
@@ -1,3 +1,10 @@
+apt-cacher-ng (3.7.4-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Avoid installing empty /lib/systemd/system directory. (Closes: #-1)
+
+ -- Chris Hofstaedtler <z...@debian.org>  Thu, 21 Dec 2023 01:31:41 +0100
+
 apt-cacher-ng (3.7.4-1) unstable; urgency=medium
 
   * New upstream version
diff -Nru apt-cacher-ng-3.7.4/debian/rules apt-cacher-ng-3.7.4/debian/rules
--- apt-cacher-ng-3.7.4/debian/rules	2021-12-07 14:50:20.000000000 +0100
+++ apt-cacher-ng-3.7.4/debian/rules	2023-12-21 01:31:41.000000000 +0100
@@ -37,6 +37,7 @@
 	# let dh_systemd deal with them
 	mv $(TGT)/usr/lib/tmpfiles.d/apt-cacher-ng.conf debian/apt-cacher-ng.tmpfile
 	mv $(TGT)/lib/systemd/system/*.service debian/
+	rmdir --parents --ignore-fail-on-non-empty $(TGT)/lib/systemd/system
 	$(MAKE) -C dbgen package DBGENERATOR=dbgenerator
 	test -r debian/apt-cacher-ng/etc/apt-cacher-ng/backends_debian.default || mv debian/apt-cacher-ng/usr/lib/apt-cacher-ng/backends_debian.default debian/apt-cacher-ng/etc/apt-cacher-ng/
 	test -r debian/apt-cacher-ng/etc/apt-cacher-ng/backends_ubuntu.default || mv debian/apt-cacher-ng/usr/lib/apt-cacher-ng/backends_ubuntu.default debian/apt-cacher-ng/etc/apt-cacher-ng/

Reply via email to