[OE-core] [PATCH v3] libtirpc: create the symbol link for rpc header files

Khem Raj raj.khem at gmail.com
Fri Nov 8 01:33:55 UTC 2019


On Wed, Nov 6, 2019 at 9:54 PM Zhixiong Chi <zhixiong.chi at windriver.com> wrote:
>
> 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.
>

https://errors.yoctoproject.org/Errors/Details/275527/

seems to be related to this update

> Signed-off-by: Zhixiong Chi <zhixiong.chi at windriver.com>
> ---
>  meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb b/meta/recipes-extended/libtirpc/libtirpc_1.1.4.bb
> index e73ffe7b17..a284521c1e 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"
>
>  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"
> --
> 2.23.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list