[Pkg-freeipa-devel] Bug#1054480: dogtag-pki: installs a systemd unit twice once dh_installsystemd installs to /usr

Helmut Grohne helmut at subdivi.de
Tue Oct 24 10:10:44 BST 2023


Source: dogtag-pki
Version: 11.2.1-2
Severity: normal
Tags: patch
User: helmutg at debian.org
Usertags: dep17m2

We want to modify dh_installsystemd such that it installs units below
/usr in order to finalize the /usr-merge transition via DEP17. When
doing so, there is one unit that happes to be installed to /lib (via
dh_install) and to /usr/lib (via dh_installsystemd). Doing so is a
policy vioaltion. When I upload debhelper, this bug will become
release-critical. I'm attaching a patch for your convenience.

This does not fully resolve /usr-merge for dogtag-pki as it has more
units that happen to get installed to /lib (without duplication). If you
want to also move them already, consider adding dh-sequence-movetousr to
Build-Depends. Refer to https://wiki.debian.org/UsrMerge for more
information.

Helmut
-------------- next part --------------
diff -Nru dogtag-pki-11.2.1/debian/changelog dogtag-pki-11.2.1/debian/changelog
--- dogtag-pki-11.2.1/debian/changelog	2023-02-10 07:58:51.000000000 +0100
+++ dogtag-pki-11.2.1/debian/changelog	2023-10-24 10:13:03.000000000 +0200
@@ -1,3 +1,10 @@
+dogtag-pki (11.2.1-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Install systemd units only once. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 24 Oct 2023 10:13:03 +0200
+
 dogtag-pki (11.2.1-2) unstable; urgency=medium
 
   * Upload to sid.
diff -Nru dogtag-pki-11.2.1/debian/not-installed dogtag-pki-11.2.1/debian/not-installed
--- dogtag-pki-11.2.1/debian/not-installed	1970-01-01 01:00:00.000000000 +0100
+++ dogtag-pki-11.2.1/debian/not-installed	2023-10-24 10:12:54.000000000 +0200
@@ -0,0 +1 @@
+lib/systemd/system/pki-tomcatd at .service
diff -Nru dogtag-pki-11.2.1/debian/pki-server.install dogtag-pki-11.2.1/debian/pki-server.install
--- dogtag-pki-11.2.1/debian/pki-server.install	2023-02-10 07:56:46.000000000 +0100
+++ dogtag-pki-11.2.1/debian/pki-server.install	2023-10-24 10:13:01.000000000 +0200
@@ -1,6 +1,5 @@
 etc/pki/healthcheck.conf
 lib/systemd/system/pki-tomcatd.target
-lib/systemd/system/pki-tomcatd at .service
 lib/systemd/system/pki-tomcatd-nuxwdog.target
 lib/systemd/system/pki-tomcatd-nuxwdog at .service
 usr/bin/pki-server-nuxwdog


More information about the Pkg-freeipa-devel mailing list