1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

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.

(From OE-Core rev: 674596421320de08142e010fdd65ec6f0a0f34e9)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Zhixiong Chi
2019-11-06 19:30:29 -08:00
committed by Richard Purdie
parent 5d25e7123e
commit 290e90d5a2
@@ -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 ../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 ../tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpcsvc/$(basename $link_header)
fi
done
ln -sf tirpc/netconfig.h ${D}/${includedir}/netconfig.h
}
BBCLASSEXTEND = "native nativesdk"