As nscd is the only part of glibc that uses init scripts, we can use inherit_defer to only pull systemd or update-rc.d into the build if nscd has actually been enabled.
As systemd-systemctl-native has non-trivial dependencies (such as python3-native), this can help reduce rebuilds of glibc. Signed-off-by: Ross Burton <[email protected]> --- meta/recipes-core/glibc/glibc.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index 7403eb845a..d46c31593d 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc @@ -9,7 +9,10 @@ HASHEQUIV_HASH_VERSION .= ".1" PROVIDES = "virtual/libc" PROVIDES += "virtual/libintl virtual/libiconv" -inherit autotools texinfo systemd update-rc.d + +inherit autotools texinfo + +inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'nscd', 'systemd update-rc.d', '', d)} LEAD_SONAME = "libc.so" -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240502): https://lists.openembedded.org/g/openembedded-core/message/240502 Mute This Topic: https://lists.openembedded.org/mt/120177358/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
