libtirpc: create the symbol link for rpc header files
PATCH v2 1/1 libtirpc: create the symbol link for rpc header files
Since the Sun RPC is deprecated in glibc, the rpc header files are not provided any more, but it allows alternative RPC implementations, such as TIRPC or rpcsvc-proto, to be used.
So we create the symbol link for rpc header files for tirpc to be more compatible with the glibc version and the application usage.
--- meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb +14 -0
@@ -23,6 +23,20 @@ EXTRA_OECONF = "--disable-gssapi" do_install_append() { chown root:root ${D}${sysconfdir}/netconfig + install -d ${D}${includedir}/rpc + install -d ${D}${includedir}/rpcsvc + for link_header in ${D}${includedir}/tirpc/rpc/*; do + if [ -f $link_header -a ! -e ${D}/${includedir}/rpc/$(basename $link_header) ]; then + ln -sf ${includedir}/tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpc/$(basename $link_header) + fi + done + for link_header in ${D}${includedir}/tirpc/rpcsvc/*; do + if [ -f $link_header -a ! -e ${D}/${includedir}/rpcsvc/$(basename $link_header) ]; then + ln -sf ${includedir}/tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpcsvc/$(basename $link_header) + fi + done + ln -sf ${includedir}/tirpc/netconfig.h ${D}/${includedir}/netconfig.h + } BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.23.0
Quoted 25 lines · Zhixiong Chi
Since the Sun RPC is deprecated in glibc, the rpc header files are not provided any more, but it allows alternative RPC implementations, such as TIRPC or rpcsvc-proto, to be used.
So we create the symbol link for rpc header files for tirpc to be more compatible with the glibc version and the application usage.
Signed-off-by Zhixiong Chi <[email protected]>--- meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+)meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb +5
-0@@ -23,6 +23,20 @@ EXTRA_OECONF = "--disable-gssapi" do_install_append() { chown root:root ${D}${sysconfdir}/netconfig + install -d ${D}${includedir}/rpc + install -d ${D}${includedir}/rpcsvc + for link_header in ${D}${includedir}/tirpc/rpc/*; do + if [ -f $link_header -a ! -e ${D}/${includedir}/rpc/$(basename $link_header) ]; then + ln -sf ${includedir}/tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpc/$(basename $link_header)
meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb EXTRA_OECONF = "--disable-gssapi" · line 40
Quoted 10 lines
meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb +9
-0+ fi + done + for link_header in ${D}${includedir}/tirpc/rpcsvc/*; do + if [ -f $link_header -a ! -e ${D}/${includedir}/rpcsvc/$(basename $link_header) ]; then + ln -sf ${includedir}/tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpcsvc/$(basename $link_header) + fi + done + ln -sf ${includedir}/tirpc/netconfig.h ${D}/${includedir}/netconfig.h + }
bitbake libtirpc-native shows lots (31) of:
ERROR: libtirpc-native-1.1.4-r0 do_populate_sysroot: sstate found an absolute path symlink /media/build1/poky/build/tmp/work/x86_64-linux/libtirpc-native/1.1.4-r0/sysroot-destdir/media/build1/poky/build/tmp/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/usr/include/netconfig.h pointing at /media/build1/poky/build/tmp/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/usr/include/tirpc/netconfig.h. Please replace this with a relative link.
Cheers,
Richard
Sorry, I will send the V3 to use the relative link.
Thanks.
Quoted 45 lines · Richard Purdie
Quoted 25 lines · Zhixiong Chi
Since the Sun RPC is deprecated in glibc, the rpc header files are not provided any more, but it allows alternative RPC implementations, such as TIRPC or rpcsvc-proto, to be used.
So we create the symbol link for rpc header files for tirpc to be more compatible with the glibc version and the application usage.
Signed-off-by Zhixiong Chi <[email protected]>--- meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+)meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb +5
-0@@ -23,6 +23,20 @@ EXTRA_OECONF = "--disable-gssapi" do_install_append() { chown root:root ${D}${sysconfdir}/netconfig + install -d ${D}${includedir}/rpc + install -d ${D}${includedir}/rpcsvc + for link_header in ${D}${includedir}/tirpc/rpc/*; do + if [ -f $link_header -a ! -e ${D}/${includedir}/rpc/$(basename $link_header) ]; then + ln -sf ${includedir}/tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpc/$(basename $link_header)meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb EXTRA_OECONF = "--disable-gssapi" · line 40
Quoted 10 lines
meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb +9
-0+ fi + done + for link_header in ${D}${includedir}/tirpc/rpcsvc/*; do + if [ -f $link_header -a ! -e ${D}/${includedir}/rpcsvc/$(basename $link_header) ]; then + ln -sf ${includedir}/tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpcsvc/$(basename $link_header) + fi + done + ln -sf ${includedir}/tirpc/netconfig.h ${D}/${includedir}/netconfig.h + }bitbake libtirpc-native shows lots (31) of:
ERROR: libtirpc-native-1.1.4-r0
do_populate_sysroot: sstate found an absolute path symlink /media/build1/poky/build/tmp/work/x86_64-linux/libtirpc-native/1.1.4-r0/sysroot-destdir/media/build1/poky/build/tmp/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/usr/include/netconfig.h pointing at /media/build1/poky/build/tmp/work/x86_64-linux/libtirpc-native/1.1.4-r0/recipe-sysroot-native/usr/include/tirpc/netconfig.h. Please replace this with a relative link.Cheers,
Richard
Signature · 4 lines
--------------------- Thanks, Zhixiong Chi Tel: +86-10-8477-7036