| Message ID | 20260708173651.1435387-3-ross.burton@arm.com |
|---|---|
| State | New |
| Headers | show |
| Series | [1/4] glibc: inherit update-rc.d | expand |
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"
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 <ross.burton@arm.com> --- meta/recipes-core/glibc/glibc.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)