diff options
author | Zhixiong Chi <zhixiong.chi@windriver.com> | 2019-11-06 19:30:29 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-11-13 22:02:16 +0000 |
commit | 409b656f74d86281ac8fb285114cdcfa59c137a2 (patch) | |
tree | b2fd2ff3e87317eb893681281caca61542a9ee94 /meta | |
parent | 4ad64a5cf5a4ce03185120cc6e27a0b985f3244c (diff) | |
download | poky-409b656f74d86281ac8fb285114cdcfa59c137a2.tar.gz |
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: 0b9748c655b6f733b504e70288f4b91dca2e4d58)
Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb b/meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb index 9c480b825f..8977a37cf0 100644 --- a/meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb +++ b/meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb | |||
@@ -23,6 +23,20 @@ EXTRA_OECONF = "--disable-gssapi" | |||
23 | 23 | ||
24 | do_install_append() { | 24 | do_install_append() { |
25 | chown root:root ${D}${sysconfdir}/netconfig | 25 | chown root:root ${D}${sysconfdir}/netconfig |
26 | install -d ${D}${includedir}/rpc | ||
27 | install -d ${D}${includedir}/rpcsvc | ||
28 | for link_header in ${D}${includedir}/tirpc/rpc/*; do | ||
29 | if [ -f $link_header -a ! -e ${D}/${includedir}/rpc/$(basename $link_header) ]; then | ||
30 | ln -sf ../tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpc/$(basename $link_header) | ||
31 | fi | ||
32 | done | ||
33 | for link_header in ${D}${includedir}/tirpc/rpcsvc/*; do | ||
34 | if [ -f $link_header -a ! -e ${D}/${includedir}/rpcsvc/$(basename $link_header) ]; then | ||
35 | ln -sf ../tirpc/rpc/$(basename $link_header) ${D}${includedir}/rpcsvc/$(basename $link_header) | ||
36 | fi | ||
37 | done | ||
38 | ln -sf tirpc/netconfig.h ${D}/${includedir}/netconfig.h | ||
39 | |||
26 | } | 40 | } |
27 | 41 | ||
28 | BBCLASSEXTEND = "native nativesdk" | 42 | BBCLASSEXTEND = "native nativesdk" |