[OE-core] [PATCH 1/1] systemd: avoid musl specific patches affect glibc systems
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 --- meta/recipes-core/systemd/systemd_242.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes-core/systemd/systemd_242.bb index 2dda0d0..93a23dd 100644 --- a/meta/recipes-core/systemd/systemd_242.bb +++ b/meta/recipes-core/systemd/systemd_242.bb @@ -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 \ -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/1] systemd: avoid musl specific patches affect glibc systems
On Fri, May 24, 2019 at 12:14 PM Martin Jansa wrote: > > It's still nicer to have > SRC_URI_append_libc-musl = " ${SRC_URI_MUSL}" > if the intermediate SRC_URI_MUSL variable is useful. yeah we can do away with this one variable here. > > On Fri, May 24, 2019 at 7:59 PM Khem Raj wrote: >> >> On Fri, May 24, 2019 at 10:31 AM Richard Purdie >> wrote: >> > >> > On Fri, 2019-05-24 at 10:17 +0800, Chen Qi wrote: >> > > 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 >> > > --- >> > > meta/recipes-core/systemd/systemd_242.bb | 2 +- >> > > 1 file changed, 1 insertion(+), 1 deletion(-) >> > > >> > > diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes- >> > > core/systemd/systemd_242.bb >> > > index 2dda0d0..adb592f 100644 >> > > --- a/meta/recipes-core/systemd/systemd_242.bb >> > > +++ b/meta/recipes-core/systemd/systemd_242.bb >> > > @@ -27,7 +27,7 @@ SRC_URI += "file://touchscreen.rules \ >> > > " >> > > >> > > # patches needed by musl >> > > -SRC_URI += "${SRC_URI_MUSL}" >> > > +SRC_URI += "${@d.getVar('SRC_URI_MUSL') if d.getVar('TCLIBC') == >> > > 'musl' else ''}" >> > > 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 \ >> > >> > Doesn't the usual SRC_URI_append_libc-musl = "X" work? >> > >> >> yes this should be better, SRC_URI_MUSL was introduced so someone >> could override it >> but if we make it optional then using override is better I think >> >> > Cheers, >> > >> > Richard >> > >> > -- >> > ___ >> > Openembedded-core mailing list >> > Openembedded-core@lists.openembedded.org >> > http://lists.openembedded.org/mailman/listinfo/openembedded-core >> -- >> ___ >> Openembedded-core mailing list >> Openembedded-core@lists.openembedded.org >> http://lists.openembedded.org/mailman/listinfo/openembedded-core -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/1] systemd: avoid musl specific patches affect glibc systems
It's still nicer to have SRC_URI_append_libc-musl = " ${SRC_URI_MUSL}" if the intermediate SRC_URI_MUSL variable is useful. On Fri, May 24, 2019 at 7:59 PM Khem Raj wrote: > On Fri, May 24, 2019 at 10:31 AM Richard Purdie > wrote: > > > > On Fri, 2019-05-24 at 10:17 +0800, Chen Qi wrote: > > > 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 > > > --- > > > meta/recipes-core/systemd/systemd_242.bb | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes- > > > core/systemd/systemd_242.bb > > > index 2dda0d0..adb592f 100644 > > > --- a/meta/recipes-core/systemd/systemd_242.bb > > > +++ b/meta/recipes-core/systemd/systemd_242.bb > > > @@ -27,7 +27,7 @@ SRC_URI += "file://touchscreen.rules \ > > > " > > > > > > # patches needed by musl > > > -SRC_URI += "${SRC_URI_MUSL}" > > > +SRC_URI += "${@d.getVar('SRC_URI_MUSL') if d.getVar('TCLIBC') == > > > 'musl' else ''}" > > > 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 \ > > > > Doesn't the usual SRC_URI_append_libc-musl = "X" work? > > > > yes this should be better, SRC_URI_MUSL was introduced so someone > could override it > but if we make it optional then using override is better I think > > > Cheers, > > > > Richard > > > > -- > > ___ > > Openembedded-core mailing list > > Openembedded-core@lists.openembedded.org > > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core > -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/1] systemd: avoid musl specific patches affect glibc systems
On Fri, May 24, 2019 at 10:31 AM Richard Purdie wrote: > > On Fri, 2019-05-24 at 10:17 +0800, Chen Qi wrote: > > 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 > > --- > > meta/recipes-core/systemd/systemd_242.bb | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes- > > core/systemd/systemd_242.bb > > index 2dda0d0..adb592f 100644 > > --- a/meta/recipes-core/systemd/systemd_242.bb > > +++ b/meta/recipes-core/systemd/systemd_242.bb > > @@ -27,7 +27,7 @@ SRC_URI += "file://touchscreen.rules \ > > " > > > > # patches needed by musl > > -SRC_URI += "${SRC_URI_MUSL}" > > +SRC_URI += "${@d.getVar('SRC_URI_MUSL') if d.getVar('TCLIBC') == > > 'musl' else ''}" > > 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 \ > > Doesn't the usual SRC_URI_append_libc-musl = "X" work? > yes this should be better, SRC_URI_MUSL was introduced so someone could override it but if we make it optional then using override is better I think > Cheers, > > Richard > > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/1] systemd: avoid musl specific patches affect glibc systems
On Fri, 2019-05-24 at 10:17 +0800, Chen Qi wrote: > 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 > --- > meta/recipes-core/systemd/systemd_242.bb | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes- > core/systemd/systemd_242.bb > index 2dda0d0..adb592f 100644 > --- a/meta/recipes-core/systemd/systemd_242.bb > +++ b/meta/recipes-core/systemd/systemd_242.bb > @@ -27,7 +27,7 @@ SRC_URI += "file://touchscreen.rules \ > " > > # patches needed by musl > -SRC_URI += "${SRC_URI_MUSL}" > +SRC_URI += "${@d.getVar('SRC_URI_MUSL') if d.getVar('TCLIBC') == > 'musl' else ''}" > 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 \ Doesn't the usual SRC_URI_append_libc-musl = "X" work? Cheers, Richard -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/1] systemd: avoid musl specific patches affect glibc systems
On 5/23/19 7:17 PM, Chen Qi wrote: 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. LGTM Signed-off-by: Chen Qi --- meta/recipes-core/systemd/systemd_242.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes-core/systemd/systemd_242.bb index 2dda0d0..adb592f 100644 --- a/meta/recipes-core/systemd/systemd_242.bb +++ b/meta/recipes-core/systemd/systemd_242.bb @@ -27,7 +27,7 @@ SRC_URI += "file://touchscreen.rules \ " # patches needed by musl -SRC_URI += "${SRC_URI_MUSL}" +SRC_URI += "${@d.getVar('SRC_URI_MUSL') if d.getVar('TCLIBC') == 'musl' else ''}" 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 \ -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 1/1] systemd: avoid musl specific patches affect glibc systems
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 --- meta/recipes-core/systemd/systemd_242.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/systemd/systemd_242.bb b/meta/recipes-core/systemd/systemd_242.bb index 2dda0d0..adb592f 100644 --- a/meta/recipes-core/systemd/systemd_242.bb +++ b/meta/recipes-core/systemd/systemd_242.bb @@ -27,7 +27,7 @@ SRC_URI += "file://touchscreen.rules \ " # patches needed by musl -SRC_URI += "${SRC_URI_MUSL}" +SRC_URI += "${@d.getVar('SRC_URI_MUSL') if d.getVar('TCLIBC') == 'musl' else ''}" 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 \ -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core