Source: uucp
Version: 1.07-27
Tags: ftbfs patch
User: helm...@debian.org
Usertags: dep17m2

We want to change dh_installsystemd to install systemd units below /usr.
When doing so, uucp FTBS, because its packaging assumes the previous
location. It does so for renaming the unit from uucp.service to
uucp@.service. I propose installing the unit using its final name
instead and attach a patch for your convenience.

Helmut
diff -Nru uucp-1.07/debian/changelog uucp-1.07/debian/changelog
--- uucp-1.07/debian/changelog  2019-08-17 22:00:00.000000000 +0200
+++ uucp-1.07/debian/changelog  2023-09-26 12:33:27.000000000 +0200
@@ -1,3 +1,10 @@
+uucp (1.07-27.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTBFS when dh_installsystemd moves units to /usr. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 26 Sep 2023 12:33:27 +0200
+
 uucp (1.07-27) unstable; urgency=medium
 
   * add improved-pipe.patch to be able to replace the placeholder \Z
diff -Nru uucp-1.07/debian/rules uucp-1.07/debian/rules
--- uucp-1.07/debian/rules      2019-03-02 16:58:14.000000000 +0100
+++ uucp-1.07/debian/rules      2023-09-26 12:33:25.000000000 +0200
@@ -111,9 +111,3 @@
        install -g root -m 644 debian/uucp.overrides 
`pwd`/debian/uucp/usr/share/lintian/overrides/uucp
        #
        dh_movefiles -p cu --sourcedir=debian/uucp
-
-
-override_dh_installsystemd:
-       dh_installsystemd
-       # we come from an inetd service, so we have to set accept=yes in 
uucp.socket and such require the @
-       mv `pwd`/debian/uucp/lib/systemd/system/uucp.service 
`pwd`/debian/uucp/lib/systemd/system/uucp@.service
diff -Nru uucp-1.07/debian/uucp.service uucp-1.07/debian/uucp.service
--- uucp-1.07/debian/uucp.service       2019-03-02 16:02:09.000000000 +0100
+++ uucp-1.07/debian/uucp.service       1970-01-01 01:00:00.000000000 +0100
@@ -1,9 +0,0 @@
-[Unit]
-Description=UUCP server
-Wants=network.target
-Documentation=http://airs.com/ian/uucp.html
-
-[Service]
-User=uucp
-ExecStart=-/usr/sbin/in.uucpd
-StandardInput=socket
diff -Nru uucp-1.07/debian/uucp@.service uucp-1.07/debian/uucp@.service
--- uucp-1.07/debian/uucp@.service      1970-01-01 01:00:00.000000000 +0100
+++ uucp-1.07/debian/uucp@.service      2019-03-02 16:02:09.000000000 +0100
@@ -0,0 +1,9 @@
+[Unit]
+Description=UUCP server
+Wants=network.target
+Documentation=http://airs.com/ian/uucp.html
+
+[Service]
+User=uucp
+ExecStart=-/usr/sbin/in.uucpd
+StandardInput=socket

Reply via email to