Package: guacd
Version: 1.3.0-1.2
Severity: serious
Tags: patch
User: helm...@debian.org
Usertags: dep17
X-Debbugs-Cc: vor...@debian.org

I changed dh_installsystemd to install systemd units below /usr/lib
rather than /lib a while back. Back then, I rebuilt all possibly
affected packages and guacd happened to FTBFS. Hence, it was ignored in
my analysis. Now the time64 transition fixed the FTBFS and guacd
installs both /lib/systemd/system/guacd.service and
/usr/lib/systemd/system/guacd.service. Doing so is a policy violation
and causes an installation failure on /usr-merged systems:

Unpacking guacd (1.3.0-1.2) ...
dpkg: error processing archive 
/tmp/apt-dpkg-install-JKIS2y/25-guacd_1.3.0-1.2_amd64.deb (--unpack):
 unable to install new version of '/usr/lib/systemd/system/guacd.service': No 
such file or directory

I'm attaching a patch fixing this issue.

Helmut
diff --minimal -Nru guacamole-server-1.3.0/debian/changelog 
guacamole-server-1.3.0/debian/changelog
--- guacamole-server-1.3.0/debian/changelog     2024-02-29 07:18:24.000000000 
+0100
+++ guacamole-server-1.3.0/debian/changelog     2024-03-01 07:40:03.000000000 
+0100
@@ -1,3 +1,10 @@
+guacamole-server (1.3.0-1.3) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Install guacd.service only once. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 01 Mar 2024 07:40:03 +0100
+
 guacamole-server (1.3.0-1.2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff --minimal -Nru guacamole-server-1.3.0/debian/guacd.install 
guacamole-server-1.3.0/debian/guacd.install
--- guacamole-server-1.3.0/debian/guacd.install 2022-02-07 19:02:10.000000000 
+0100
+++ guacamole-server-1.3.0/debian/guacd.install 2024-03-01 07:39:57.000000000 
+0100
@@ -1,4 +1,3 @@
 bin/guacctl /usr/bin
 /usr/sbin/guacd
 /usr/share/man/man8/guacd.8
-debian/guacd.service /lib/systemd/system/

Reply via email to