diff options
author | Arjun Bhat <arjunbhat92@gmail.com> | 2023-08-03 16:50:52 +0300 |
---|---|---|
committer | arjunbhat92 <arjunbhat92@gmail.com> | 2023-08-03 17:36:22 +0300 |
commit | a73d1f1d231630a9b7a58b4a7f233057924409c7 (patch) | |
tree | e24b0bc312c4f51a49c4e65d3e9edb1f3837086a | |
parent | 6ad2fb6c009c7501865f18d8c14fbe1c06dd829d (diff) | |
download | openbmc-langdale.tar.xz |
meta-phosphor: systemd: Drop incompatible libsystemd patchlangdale
Builds fail as this patch cannot be applied after the recent subtree updates. Upstream systemd now has improved handling of ObjectManager interfaces which also makes the patch obsolete.
Change-Id: Ifaac9a68350f18c14c916f43444d96ec08a86657
Signed-off-by: Arjun Bhat <arjunbhat92@gmail.com>
-rw-r--r-- | meta-phosphor/recipes-core/systemd/systemd/0001-sd-bus-Don-t-automatically-add-ObjectManager.patch | 56 | ||||
-rw-r--r-- | meta-phosphor/recipes-core/systemd/systemd_%.bbappend | 3 |
2 files changed, 0 insertions, 59 deletions
diff --git a/meta-phosphor/recipes-core/systemd/systemd/0001-sd-bus-Don-t-automatically-add-ObjectManager.patch b/meta-phosphor/recipes-core/systemd/systemd/0001-sd-bus-Don-t-automatically-add-ObjectManager.patch deleted file mode 100644 index f8f5b08a96..0000000000 --- a/meta-phosphor/recipes-core/systemd/systemd/0001-sd-bus-Don-t-automatically-add-ObjectManager.patch +++ /dev/null @@ -1,56 +0,0 @@ -From 44562e33655668033a8ee0a7a686671226da2110 Mon Sep 17 00:00:00 2001 -From: Brad Bishop <bradleyb@fuzziesquirrel.com> -Date: Tue, 13 Mar 2018 15:34:30 -0400 -Subject: [PATCH] sd-bus: Don't automatically add ObjectManager - -Even though sdbus helps manage org.freedesktop.DBus.ObjectManager -it must still be explicitly enabled by a library client. - -As such do not automatically add ObjectManager to GetManagedObjects -method call responses or InterfacesAdded/Removed signals. Bus -service client applications can potentially react to the appearance -of ObjectManager in these messages and follow up with a method call -on the interface, which isn't actually implemented on the objects -within the subtree, below the manager. ---- - src/libsystemd/sd-bus/bus-objects.c | 10 ---------- - 1 file changed, 10 deletions(-) - -diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c -index 6e00255b2..59f698402 100644 ---- a/src/libsystemd/sd-bus/bus-objects.c -+++ b/src/libsystemd/sd-bus/bus-objects.c -@@ -1076,10 +1076,6 @@ static int object_manager_serialize_path( - if (r < 0) - return r; - -- r = sd_bus_message_append(reply, "{sa{sv}}", "org.freedesktop.DBus.ObjectManager", 0); -- if (r < 0) -- return r; -- - found_something = true; - } - -@@ -2302,9 +2298,6 @@ static int object_added_append_all(sd_bus *bus, sd_bus_message *m, const char *p - if (r < 0) - return r; - r = sd_bus_message_append(m, "{sa{sv}}", "org.freedesktop.DBus.Properties", 0); -- if (r < 0) -- return r; -- r = sd_bus_message_append(m, "{sa{sv}}", "org.freedesktop.DBus.ObjectManager", 0); - if (r < 0) - return r; - -@@ -2473,9 +2466,6 @@ static int object_removed_append_all(sd_bus *bus, sd_bus_message *m, const char - if (r < 0) - return r; - r = sd_bus_message_append(m, "s", "org.freedesktop.DBus.Properties"); -- if (r < 0) -- return r; -- r = sd_bus_message_append(m, "s", "org.freedesktop.DBus.ObjectManager"); - if (r < 0) - return r; - --- -2.14.3 - diff --git a/meta-phosphor/recipes-core/systemd/systemd_%.bbappend b/meta-phosphor/recipes-core/systemd/systemd_%.bbappend index b09f2e23f8..7a3e926d8c 100644 --- a/meta-phosphor/recipes-core/systemd/systemd_%.bbappend +++ b/meta-phosphor/recipes-core/systemd/systemd_%.bbappend @@ -1,4 +1,3 @@ -FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" PACKAGECONFIG = "\ coredump \ hostnamed \ @@ -14,8 +13,6 @@ PACKAGECONFIG = "\ zstd \ " -SRC_URI += "file://0001-sd-bus-Don-t-automatically-add-ObjectManager.patch" - EXTRA_OEMESON:append = " -Ddns-servers=''" PACKAGES =+ "${PN}-catalog-extralocales" |