[OE-core] [OE-Core][PATCH 2/4] systemd: Use arch overrides instead of machine

Khem Raj raj.khem at gmail.com
Sat Jan 12 15:35:45 UTC 2019


On Sat, Jan 12, 2019 at 1:23 AM Serhey Popovych
<serhe.popovych at gmail.com> wrote:
>
> With custom BSP and build with musl we still affected by undefined
> reference to stack-protector specific functions.
>
> Use arch overrides instead of machine to ensure fix applied to entire
> architecture instead of custom machine like qemux86 and qemuppc.
>
> Signed-off-by: Serhey Popovych <serhe.popovych at gmail.com>
> ---
>  meta/recipes-core/systemd/systemd_239.bb | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-core/systemd/systemd_239.bb b/meta/recipes-core/systemd/systemd_239.bb
> index 0f1fa27..2e11d71 100644
> --- a/meta/recipes-core/systemd/systemd_239.bb
> +++ b/meta/recipes-core/systemd/systemd_239.bb
> @@ -66,9 +66,9 @@ SRC_URI_MUSL = "file://0001-Use-getenv-when-secure-versions-are-not-available.pa
>                 file://0022-Use-if-instead-of-ifdef-for-ENABLE_GSHADOW.patch \
>                 "
>
> -# Workaround undefined reference to `__stack_chk_fail_local' on qemux86 and qemuppc for musl
> -SRC_URI_append_libc-musl_qemux86 = " file://0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch"
> -SRC_URI_append_libc-musl_qemuppc = " file://0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch"
> +# Workaround undefined reference to `__stack_chk_fail_local' on x86 and powerpc for musl
> +SRC_URI_append_libc-musl_x86 = " file://0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch"
> +SRC_URI_append_libc-musl_powerpc = " file://0001-Remove-fstack-protector-flags-to-workaround-musl-bui.patch"

this seems wrong to me. While you are here, can we try to link with
-lssp-nonshared instead ?

>
>  PAM_PLUGINS = " \
>      pam-plugin-unix \
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list