Skip to content

Commit

Permalink
glibc - nativesdk prepare_recipe_sysroot error fix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
moorthy-bs authored and Moorthy Baskar committed Dec 23, 2020
1 parent 02870c7 commit 5dce6b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meta/recipes-core/glibc/glibc-package.inc
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ do_install_append_class-target() {
fi

}

# provided by libnsl2
do_install_append_class-nativesdk() {
rm -f ${D}${includedir}/rpcsvc/yppasswd.*
}

do_install_append_aarch64 () {
do_install_armmultilib
}
Expand Down

0 comments on commit 5dce6b7

Please sign in to comment.