sys-apps/systemd: update generator-path patch
authorMike Gilbert <floppym@gentoo.org>
Fri, 17 Apr 2020 16:35:14 +0000 (12:35 -0400)
committerMike Gilbert <floppym@gentoo.org>
Fri, 17 Apr 2020 16:35:14 +0000 (12:35 -0400)
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
sys-apps/systemd/files/gentoo-generator-path-r2.patch [new file with mode: 0644]
sys-apps/systemd/systemd-9999.ebuild

diff --git a/sys-apps/systemd/files/gentoo-generator-path-r2.patch b/sys-apps/systemd/files/gentoo-generator-path-r2.patch
new file mode 100644 (file)
index 0000000..46e5c1d
--- /dev/null
@@ -0,0 +1,26 @@
+From 91182cc273d2dd8325d856fd683d2d8e038abd91 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Tue, 25 Dec 2018 22:52:50 -0500
+Subject: [PATCH] path-lookup: look for generators in
+ /usr/lib/systemd/system-generators
+
+Bug: https://bugs.gentoo.org/625402
+---
+ src/basic/path-lookup.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/basic/path-lookup.c b/src/basic/path-lookup.c
+index 52968dee34..0cb10b1116 100644
+--- a/src/basic/path-lookup.c
++++ b/src/basic/path-lookup.c
+@@ -798,6 +798,7 @@ char **generator_binary_paths(UnitFileScope scope) {
+                         add = strv_new("/run/systemd/system-generators",
+                                        "/etc/systemd/system-generators",
+                                        "/usr/local/lib/systemd/system-generators",
++                                       "/usr/lib/systemd/system-generators",
+                                        SYSTEM_GENERATOR_DIR);
+                         break;
+-- 
+2.26.1
+
index 79adf7db45a618b2264e16f7267c8ad22587d9b3..dcf64e48a2af8cabfd082708afc8b5d4d7f27ae3 100644 (file)
@@ -207,7 +207,7 @@ src_prepare() {
                PATCHES+=(
                        "${FILESDIR}/gentoo-Dont-enable-audit-by-default.patch"
                        "${FILESDIR}/gentoo-systemd-user-pam.patch"
-                       "${FILESDIR}/gentoo-generator-path-r1.patch"
+                       "${FILESDIR}/gentoo-generator-path-r2.patch"
                )
        fi