]> code.ossystems Code Review - openembedded-core.git/commitdiff
systemd: avoid musl specific patches affect glibc systems
authorChen Qi <Qi.Chen@windriver.com>
Mon, 27 May 2019 01:33:21 +0000 (09:33 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 May 2019 16:06:28 +0000 (17:06 +0100)
systemd upstream only care about glibc. We made musl specific
patches so that systemd could work. But currently these patches
contain potential security issues.

So apply these patches only when the libc is musl.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd_242.bb

index 2dda0d0b954e73de86fa057e4f2951bd738fb57f..93a23dd987b4cd73f95045f5851cb3e7b733232d 100644 (file)
@@ -27,7 +27,7 @@ SRC_URI += "file://touchscreen.rules \
            "
 
 # patches needed by musl
-SRC_URI += "${SRC_URI_MUSL}"
+SRC_URI_append_libc-musl = " ${SRC_URI_MUSL}"
 SRC_URI_MUSL = "file://0001-Use-getenv-when-secure-versions-are-not-available.patch \
                file://0002-don-t-use-glibc-specific-qsort_r.patch \
                file://0003-missing_type.h-add-__compare_fn_t-and-comparison_fn_.patch \