On Mon, Sep 28, 2020 at 9:19 AM Ross Burton <r...@burtonini.com> wrote:
>
> NSCD itself is already packaged into its own package, but if it is never
> going to be needed then it can be disabled and it won't be called from
> glibc at all.  Add a PACKAGECONFIG for NSCD that is enabled by default.
>
> As a side effect if NSCD is disable, glibc with and without systemd is
> binary identical, which helps sstate reuse.
>
> Signed-off-by: Ross Burton <ross.bur...@arm.com>
> ---
>  meta/recipes-core/glibc/glibc_2.32.bb | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-core/glibc/glibc_2.32.bb 
> b/meta/recipes-core/glibc/glibc_2.32.bb
> index 7049e61625..2a0e464385 100644
> --- a/meta/recipes-core/glibc/glibc_2.32.bb
> +++ b/meta/recipes-core/glibc/glibc_2.32.bb
> @@ -69,13 +69,15 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \
>                  --enable-stackguard-randomization \
>                  --disable-crypt \
>                  --with-default-link \
> -                --enable-nscd \
>                  ${@bb.utils.contains_any('SELECTED_OPTIMIZATION', '-O0 -Og', 
> '--disable-werror', '', d)} \
>                  ${GLIBCPIE} \
>                  ${GLIBC_EXTRA_OECONF}"
>
>  EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
>
> +PACKAGECONFIG ??= "nscd"
> +PACKAGECONFIG[nscd] = "--enable-nscd,--disable-nscd"
> +
>  do_patch_append() {
>      bb.build.exec_func('do_fix_readlib_c', d)
>  }

The patch looks good to me but
I wonder if this goes beyond glibc and more like a distro features,
where you can also ignore nsswitch.conf and
packages being aware of it.

> --
> 2.25.1
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#142883): 
https://lists.openembedded.org/g/openembedded-core/message/142883
Mute This Topic: https://lists.openembedded.org/mt/77177689/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to