All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] libtirpc: create the symbol link for rpc header files
@ 2019-11-06 10:32 Zhixiong Chi
  2019-11-06 21:43 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Zhixiong Chi @ 2019-11-06 10:32 UTC (permalink / raw)
  To: openembedded-core

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 <zhixiong.chi@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 ${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"
-- 
2.23.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] libtirpc: create the symbol link for rpc header files
  2019-11-06 10:32 [PATCH v2] libtirpc: create the symbol link for rpc header files Zhixiong Chi
@ 2019-11-06 21:43 ` Richard Purdie
  2019-11-07  3:20   ` Zhixiong Chi
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2019-11-06 21:43 UTC (permalink / raw)
  To: Zhixiong Chi, openembedded-core

On Wed, 2019-11-06 at 02:32 -0800, Zhixiong Chi 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.
> 
> Signed-off-by: Zhixiong Chi <zhixiong.chi@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 ${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
> +
>  }

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] libtirpc: create the symbol link for rpc header files
  2019-11-06 21:43 ` Richard Purdie
@ 2019-11-07  3:20   ` Zhixiong Chi
  0 siblings, 0 replies; 3+ messages in thread
From: Zhixiong Chi @ 2019-11-07  3:20 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

Sorry, I will send the V3 to use the relative link.

Thanks.


On 2019年11月07日 05:43, Richard Purdie wrote:
> On Wed, 2019-11-06 at 02:32 -0800, Zhixiong Chi 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.
>>
>> Signed-off-by: Zhixiong Chi <zhixiong.chi@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 ${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
>> +
>>   }
> 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
>
>

-- 
---------------------
Thanks,
Zhixiong Chi
Tel: +86-10-8477-7036



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-07  3:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-06 10:32 [PATCH v2] libtirpc: create the symbol link for rpc header files Zhixiong Chi
2019-11-06 21:43 ` Richard Purdie
2019-11-07  3:20   ` Zhixiong Chi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.