Skip to contentSkip to conversation

libtirpc: create the symbol link for rpc header files

PATCH In review Zhixiong Chi 2 participants 4 messages Nov 7, 2019 – Nov 8, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v3 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
index e73ffe7b17..a284521c1e 100644
@@ -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"
Signature · 1 line
2.23.0
#1 lore raw
Quoted 8 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.

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

seems to be related to this update

Quoted 38 lines
---
 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 -1
index e73ffe7b17..a284521c1e 100644
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 11 lines · Khem Raj
Quoted 7 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.

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

seems to be related to this update

It seems the root cause is that gtkwave configure find the rpc/types.h and rpc/xdr.h because of the commit "libtirpc: create the symbol link for rpc header files",
but it hasn't the option "--with-tirpc". So the RPC_LDADD still uses "-lrpc" other than "-ltirpc". So I will generate update patch to add the option for gtkwave and send it to meta-openembedded layer.

Thanks.

Quoted 39 lines
Quoted 39 lines
---
  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 -1
index e73ffe7b17..a284521c1e 100644
@@ -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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Signature · 4 lines
---------------------
Thanks,
Zhixiong Chi
Tel: +86-10-8477-7036
#3 lore raw

Ok, thanks.

Quoted 71 lines · Zhixiong Chi
Quoted 11 lines · Khem Raj
Quoted 7 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.

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

seems to be related to this update

It seems the root cause is that gtkwave configure find the rpc/types.h and rpc/xdr.h because
of the commit "libtirpc: create the symbol link for rpc header files", but it hasn't the option "--with-tirpc". So the RPC_LDADD still uses "-lrpc" other than "-ltirpc".
So I will generate update patch to add the option for gtkwave and send it to meta-openembedded layer.

Thanks.

Quoted 34 lines
Quoted 34 lines
---
  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 -1
index e73ffe7b17..a284521c1e 100644
@@ -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

Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

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