All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] glibc: make nscd optional
@ 2020-09-28 16:18 Ross Burton
  2020-09-28 16:18 ` [PATCH 2/7] utils: respect scheduler affinity in cpu_count() Ross Burton
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Ross Burton @ 2020-09-28 16:18 UTC (permalink / raw)
  To: openembedded-core

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.burton@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)
 }
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-09-28 23:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-28 16:18 [PATCH 1/7] glibc: make nscd optional Ross Burton
2020-09-28 16:18 ` [PATCH 2/7] utils: respect scheduler affinity in cpu_count() Ross Burton
2020-09-28 16:18 ` [PATCH 3/7] rpm: disable libarchive use Ross Burton
2020-09-28 16:18 ` [PATCH 4/7] rpm: add PACKAGECONFIG for the systemd inhibit plugin Ross Burton
2020-09-28 16:18 ` [PATCH 5/7] utils: add umask changing context manager Ross Burton
2020-09-28 16:18 ` [PATCH 6/7] siggen: use correct umask when writing siginfo Ross Burton
2020-09-28 16:19 ` [PATCH 7/7] sstate: set mode explicitly when creating directories in sstate-cache Ross Burton
2020-09-28 16:40   ` [OE-core] " Mark Hatle
2020-09-28 16:55     ` Ross Burton
2020-09-28 23:44 ` [OE-core] [PATCH 1/7] glibc: make nscd optional Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.