Skip to content

Commit addb7ea

Browse files
authored
libnls2 - nativesdk prepare_recipe_sysroot error fix
on eSDK population, nativesdk of libnsl2 and glibc both install yppasswd.x and yppasswd.h files which causes conflict while preparing recipe sysroot of nativesdk-libnss-nis and nativesdk-python 3.8 The fix resolves below error ERROR: nativesdk-libnss-nis-3.1+gitAUTOINC+062f31999b-r0 do_prepare_recipe_sysroot: The file /opt/rdk/2.0/sysroots/x86_64-rdksdk-linux/usr/include/rpcsvc/yppasswd.x is installed by both nativesdk-libnsl2 and nativesdk-glibc, aborting ERROR: nativesdk-libnss-nis-3.1+gitAUTOINC+062f31999b-r0 do_prepare_recipe_sysroot: The file /opt/rdk/2.0/sysroots/x86_64-rdksdk-linux/usr/include/rpcsvc/yppasswd.h is installed by both nativesdk-libnsl2 and nativesdk-glibc, aborting
1 parent 02870c7 commit addb7ea

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

meta/recipes-extended/libnsl/libnsl2_git.bb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ S = "${WORKDIR}/git"
2121

2222
inherit autotools pkgconfig gettext
2323

24+
# on eSDK population, nativesdk-nsl2 and nativesdk-glibc provide yppasswd.x and
25+
# yppasswd.h which causes conflict on do_recipe_prepare_sysroot()
26+
do_install_append_libc-glibc_class-nativesdk() {
27+
rm -f ${D}${includedir}/rpcsvc/yppasswd.x
28+
rm -f ${D}${includedir}/rpcsvc/yppasswd.h
29+
}
30+
2431
BBCLASSEXTEND = "native nativesdk"

0 commit comments

Comments
 (0)