From b3afb80d07d97aaa786b6921fb6f61e316201367 Mon Sep 17 00:00:00 2001 From: Sam Van Den Berge Date: Fri, 22 Mar 2024 12:06:54 +0100 Subject: [PATCH] shadow: don't install libattr.so.* when xattr not in DISTRO_FEATURES Fixes the following issue: install: cannot stat '.../recipe-sysroot-native/usr/lib/libattr.so.*': No such file or directory ... ERROR: Task (virtual:native:.../shadow_4.14.2.bb:do_install) failed with exit code '1' Signed-off-by: Sam Van Den Berge Signed-off-by: Richard Purdie --- meta/recipes-extended/shadow/shadow.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index a164b8347f..40e6ab0b30 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc @@ -160,7 +160,8 @@ do_install:append:class-native() { binaries=$(find ${D}${base_bindir}/ ${D}${base_sbindir}/ ${D}${bindir}/ ${D}${sbindir}/ -executable -type f) chrpath -k -r ${STAGING_DIR_NATIVE}/lib-shadow-deps $binaries mkdir -p ${D}${STAGING_DIR_NATIVE}/lib-shadow-deps/ - install ${STAGING_LIBDIR_NATIVE}/libattr.so.* ${STAGING_LIBDIR_NATIVE}/libbsd.so.* ${STAGING_LIBDIR_NATIVE}/libmd.so.* ${D}${STAGING_DIR_NATIVE}/lib-shadow-deps/ + libattr=${@bb.utils.contains('DISTRO_FEATURES', 'xattr', "${STAGING_LIBDIR_NATIVE}/libattr.so.*", '', d)} + install $libattr ${STAGING_LIBDIR_NATIVE}/libbsd.so.* ${STAGING_LIBDIR_NATIVE}/libmd.so.* ${D}${STAGING_DIR_NATIVE}/lib-shadow-deps/ install ${D}${libdir}/*.so.* ${D}${STAGING_DIR_NATIVE}/lib-shadow-deps/ } -- 2.39.2