teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0151-resolved-Do-not-add-.busname-dependencies-when-compi.patch

923a60
From 33ee9624d4fb50f29f2e3c8ffd0c7efa95a03f02 Mon Sep 17 00:00:00 2001
923a60
From: Dimitri John Ledkov <dimitri.j.ledkov@intel.com>
923a60
Date: Tue, 17 Mar 2015 16:37:07 +0100
923a60
Subject: [PATCH] resolved: Do not add .busname dependencies, when compiling
923a60
 without kdbus.
923a60
923a60
(cherry picked from commit defa8e675b2903ad53e093bb2847c7256f0779a5)
923a60
923a60
Cherry-picked from: 33ff64c
923a60
Resolves: #1222517
923a60
---
923a60
 Makefile.am                                                     | 2 +-
923a60
 units/.gitignore                                                | 1 +
923a60
 ...stemd-resolved.service.in => systemd-resolved.service.m4.in} | 2 ++
923a60
 3 files changed, 4 insertions(+), 1 deletion(-)
923a60
 rename units/{systemd-resolved.service.in => systemd-resolved.service.m4.in} (96%)
923a60
923a60
diff --git a/Makefile.am b/Makefile.am
923a60
index 8474b29129..604eaf2f17 100644
923a60
--- a/Makefile.am
923a60
+++ b/Makefile.am
923a60
@@ -5520,7 +5520,7 @@ dist_dbussystemservice_DATA += \
923a60
 	src/resolve/org.freedesktop.resolve1.service
923a60
 
923a60
 EXTRA_DIST += \
923a60
-	units/systemd-resolved.service.in
923a60
+	units/systemd-resolved.service.m4.in
923a60
 
923a60
 SYSTEM_UNIT_ALIASES += \
923a60
 	systemd-resolved.service dbus-org.freedesktop.resolve1.service
923a60
diff --git a/units/.gitignore b/units/.gitignore
923a60
index 638a7abc4c..7f3e0d093c 100644
923a60
--- a/units/.gitignore
923a60
+++ b/units/.gitignore
923a60
@@ -58,6 +58,7 @@
923a60
 /systemd-reboot.service
923a60
 /systemd-remount-fs.service
923a60
 /systemd-resolved.service
923a60
+/systemd-resolved.service.m4
923a60
 /systemd-hibernate-resume@.service
923a60
 /systemd-rfkill@.service
923a60
 /systemd-shutdownd.service
923a60
diff --git a/units/systemd-resolved.service.in b/units/systemd-resolved.service.m4.in
923a60
similarity index 96%
923a60
rename from units/systemd-resolved.service.in
923a60
rename to units/systemd-resolved.service.m4.in
923a60
index b643da9a73..d133847d5e 100644
923a60
--- a/units/systemd-resolved.service.in
923a60
+++ b/units/systemd-resolved.service.m4.in
923a60
@@ -10,11 +10,13 @@ Description=Network Name Resolution
923a60
 Documentation=man:systemd-resolved.service(8)
923a60
 After=systemd-networkd.service network.service
923a60
 
923a60
+m4_ifdef(`ENABLE_KDBUS',
923a60
 # On kdbus systems we pull in the busname explicitly, because it
923a60
 # carries policy that allows the daemon to acquire its name.
923a60
 Wants=org.freedesktop.resolve1.busname
923a60
 After=org.freedesktop.resolve1.busname
923a60
 
923a60
+)m4_dnl
923a60
 [Service]
923a60
 Type=notify
923a60
 Restart=always