Skip to contentSkip to conversation

systemd: Print a buildtime warning about the status with musl

PATCH New Adrian Bunk 1 participant 1 message Aug 23, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: Print a buildtime warning about the status with musl

It is possible if a user really has to use it, but not recommended.

---
 meta/recipes-core/systemd/systemd_242.bb | 6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-core/systemd/systemd_242.bb +6 -0
index ceee3aa0cb..6fbb854886 100644
@@ -615,6 +615,12 @@ python __anonymous() {
         d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")
 }
 
+python do_warn_musl() {
+    if d.getVar('TCLIBC') == "musl":
+        bb.warn("Using systemd with musl is not recommended since it is not supported upstream and some patches are known to be problematic.")
+}
+addtask warn_musl before do_configure
+
 ALTERNATIVE_${PN} = "halt reboot shutdown poweroff runlevel resolv-conf"
 
 ALTERNATIVE_TARGET[resolv-conf] = "${sysconfdir}/resolv-conf.systemd"
Signature · 1 line
2.17.1