From fa3fcfbf5ecd4afcd6824ae62266cae1159a1c3e Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Wed, 24 Aug 2022 21:39:34 +0500 Subject: [PATCH] libnsl2-external: fix broken libnsl.so link and add a check for it Signed-off-by: Christopher Larson --- recipes-external/libnsl/libnsl2-external.bb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/recipes-external/libnsl/libnsl2-external.bb b/recipes-external/libnsl/libnsl2-external.bb index 2cbea6b..2051f45 100644 --- a/recipes-external/libnsl/libnsl2-external.bb +++ b/recipes-external/libnsl/libnsl2-external.bb @@ -23,10 +23,13 @@ RDEPENDS:${PN} += "${PREFERRED_PROVIDER_libtirpc}" do_install_extra () { # Depending on whether this comes from the standalone libnsl2 or glibc, the - # soname may vary, hence covering both 1 and 2, and it may be installed in - # base_libdir instead of libdir, but the FILES configuration may result in its - # location changing, breaking the libnsl.so symlink, so recreate it here. + # soname may vary, and it may be installed in base_libdir instead of + # libdir, but the FILES configuration may result in its location changing, + # breaking the libnsl.so symlink, so recreate it here. cd ${D}${libdir}/ || exit 1 rm -f libnsl.so - ln -s libnsl.so.[12] libnsl.so + ln -s libnsl.so.[0-9] libnsl.so + if ! [ -e libnsl.so ]; then + bbfatal Failed to symlink libnsl.so + fi }