sys-apps/systemd: add initctl patch
authorMike Gilbert <floppym@gentoo.org>
Sun, 1 Apr 2018 16:27:04 +0000 (12:27 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 1 Apr 2018 16:31:27 +0000 (12:31 -0400)
Package-Manager: Portage-2.3.24, Repoman-2.3.6_p81

sys-apps/systemd/files/238-initctl.patch [new file with mode: 0644]
sys-apps/systemd/systemd-238-r3.ebuild

diff --git a/sys-apps/systemd/files/238-initctl.patch b/sys-apps/systemd/files/238-initctl.patch
new file mode 100644 (file)
index 0000000..3999169
--- /dev/null
@@ -0,0 +1,46 @@
+From 4d8c7c1b3a5feebca948a3b8663f5be887b57731 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Fri, 30 Mar 2018 11:00:17 -0400
+Subject: [PATCH] units: initctl: move the fifo to /run/initctl to match
+ sysvinit
+
+The fifo location was moved in sysvinit-2.89.
+
+http://git.savannah.nongnu.org/cgit/sysvinit.git/commit/?id=80dbcf3de3c1b83aeaa713a8fe5b8d35d8649af2
+---
+ units/systemd-initctl.service.in | 2 +-
+ units/systemd-initctl.socket     | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/units/systemd-initctl.service.in b/units/systemd-initctl.service.in
+index 6cfed3da11f..2b4b957dce3 100644
+--- a/units/systemd-initctl.service.in
++++ b/units/systemd-initctl.service.in
+@@ -8,7 +8,7 @@
+ #  (at your option) any later version.
+ [Unit]
+-Description=/dev/initctl Compatibility Daemon
++Description=initctl Compatibility Daemon
+ Documentation=man:systemd-initctl.service(8)
+ DefaultDependencies=no
+diff --git a/units/systemd-initctl.socket b/units/systemd-initctl.socket
+index 61f877ba7d2..9d975799081 100644
+--- a/units/systemd-initctl.socket
++++ b/units/systemd-initctl.socket
+@@ -8,12 +8,12 @@
+ #  (at your option) any later version.
+ [Unit]
+-Description=/dev/initctl Compatibility Named Pipe
++Description=initctl Compatibility Named Pipe
+ Documentation=man:systemd-initctl.service(8)
+ DefaultDependencies=no
+ Before=sockets.target
+ [Socket]
+-ListenFIFO=/run/systemd/initctl/fifo
++ListenFIFO=/run/initctl
+ Symlinks=/dev/initctl
+ SocketMode=0600
index 813d4f96708e5b1af3ccef0332e7e9dfee60287a..b68ed0bf92abc5c57f350beadd617a01c717cd69 100644 (file)
@@ -154,6 +154,7 @@ src_prepare() {
 
        PATCHES+=(
                "${FILESDIR}/238-libmount-include.patch"
+               "${FILESDIR}/238-initctl.patch"
        )
 
        if ! use vanilla; then