Skip to contentSkip to conversation

package/libtirpc: bump to version 0.3.2

PATCH Superseded Jörg Krause 2 participants 5 messages Jul 20, 2015 – Jul 23, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/libtirpc: bump to version 0.3.2

Bump version, update hash and update patch.

---
 ...sable-parts-of-TIRPC-requiring-NIS-support.patch | 21 +++++++++++++--------
 package/libtirpc/libtirpc.hash                      |  4 ++--
 package/libtirpc/libtirpc.mk                        |  2 +-
 3 files changed, 16 insertions(+), 11 deletions(-)
package/libtirpc/0001-Disable-parts-of-TIRPC-requiring-NIS-support.patch +13 -8
index 2835ee1..12771f3 100644
@@ -1,28 +1,33 @@
-From 9ab72f908af734b5a940fb459394072cfa9fc3a8 Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <[email protected]>
-Date: Sat, 23 Jun 2012 21:57:39 +0200
-Subject: [PATCH] Disable parts of TIRPC requiring NIS support
+From fc53290b7f2be918856883cd174cf18f06a085cf Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]>
+Date: Mon, 20 Jul 2015 20:30:11 +0200
+Subject: [PATCH 1/1] Disable parts of TIRPC requiring NIS support
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
 
 Signed-off-by: Thomas Petazzoni <[email protected]>
 [yann.morin.1998 at free.fr: update for 0.3.1]
 Signed-off-by: "Yann E. MORIN" <[email protected]>
+[joerg.krause at embedded.rocks: update for 0.3.2]
+Signed-off-by: J?rg Krause <[email protected]>
 ---
  src/Makefile.am | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/src/Makefile.am b/src/Makefile.am
-index 75bd4bf..7428e92 100644
+index 6cc567a..cf8a8ca 100644
 --- a/src/Makefile.am
 +++ b/src/Makefile.am
-@@ -52,7 +52,7 @@ libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c bindresvport.c cln
+@@ -51,7 +51,7 @@ libtirpc_la_SOURCES = auth_none.c auth_unix.c authunix_prot.c bindresvport.c cln
          rpc_callmsg.c rpc_generic.c rpc_soc.c rpcb_clnt.c rpcb_prot.c \
          rpcb_st_xdr.c svc.c svc_auth.c svc_dg.c svc_auth_unix.c svc_auth_none.c \
          svc_generic.c svc_raw.c svc_run.c svc_simple.c svc_vc.c getpeereid.c \
--        auth_time.c debug.c
+-        auth_time.c auth_des.c authdes_prot.c debug.c
 +        debug.c
  
  ## XDR
  libtirpc_la_SOURCES += xdr.c xdr_rec.c xdr_array.c xdr_float.c xdr_mem.c xdr_reference.c xdr_stdio.c
 -- 
-1.9.1
+2.4.6
 
package/libtirpc/libtirpc.hash +2 -2
index 0a1cc98..f171870 100644
@@ -1,4 +1,4 @@
 # From sourceforge's info on download page:
-sha1   0e0ef9123cf28cd0940148fabd23952476a8fcd6  libtirpc-0.3.1.tar.bz2
+sha1   af9b74d0c4d1499a7b1a43e396e5b7d62180ea65  libtirpc-0.3.2.tar.bz2
 # Locally computed
-sha256 a8838fe180deb8a6f6e491ee665325a28dee4100ec6b1f0b86d611dbfe3a2bb8  libtirpc-0.3.1.tar.bz2
+sha256 2008a379f37f2c5d5a87a568b06707422cc3e4f5da305f7fb71f3f4c6d473ffc  libtirpc-0.3.2.tar.bz2
package/libtirpc/libtirpc.mk +1 -1
index 494650c..8f49356 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBTIRPC_VERSION = 0.3.1
+LIBTIRPC_VERSION = 0.3.2
 LIBTIRPC_SOURCE = libtirpc-$(LIBTIRPC_VERSION).tar.bz2
 LIBTIRPC_SITE = http://downloads.sourceforge.net/project/libtirpc/libtirpc/$(LIBTIRPC_VERSION)
 LIBTIRPC_LICENSE = BSD-3c
Signature · 1 line
2.4.6
#1 lore raw

PATCH 2/3 package/libtirpc: fix musl build

The fix includes:
1) Defining rpcent for non-Glibc's
2) Using a local queue implementation

1) Defining rpcent for non-Glibc's
musl does not define rpcent. Since musl does not provide a __MUSL__ macro we add a check for non-Glibc's to the existing uClibc patch.

2) Using a local queue implementation
musl does not provide sys/queue.h. We borrow a compatible queue implementation from the NetBSD project.

Fixes:
http://autobuild.buildroot.net/results/f93/f93f0be26b5a25b953ea7f909037c1f45a83f686/
http://autobuild.buildroot.net/results/c53/c537a76d17012821ed5a6f4170f759efd4d269b0/
http://autobuild.buildroot.net/results/e3c/e3c5be7dca753f7494e8680894f516a8cdc89843/
http://autobuild.buildroot.net/results/2bb/2bb2e314f23b5ba48bb6e0c4fc7e52032fa5d76b/

and many more.

---
 ...able-parts-of-TIRPC-requiring-NIS-support.patch |   2 +-
 ...pport-and-musl-does-not-install-rpcent.h.patch} |   6 +-
 package/libtirpc/0006-Use-local-bsdqueue.h.patch   | 903 +++++++++++++++++++++
 3 files changed, 908 insertions(+), 3 deletions(-)
 rename package/libtirpc/{0002-uClibc-without-RPC-support-does-not-install-rpcent.h.patch => 0002-uClibc-without-RPC-support-and-musl-does-not-install-rpcent.h.patch} (78%)
 create mode 100644 package/libtirpc/0006-Use-local-bsdqueue.h.patch
package/libtirpc/0001-Disable-parts-of-TIRPC-requiring-NIS-support.patch +1 -1
index 12771f3..71d4420 100644
@@ -1,4 +1,4 @@
-From fc53290b7f2be918856883cd174cf18f06a085cf Mon Sep 17 00:00:00 2001
+From 583ad557faf86c5532e16dafff19bfdcc349752d Mon Sep 17 00:00:00 2001
 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]>
 Date: Mon, 20 Jul 2015 20:30:11 +0200
 Subject: [PATCH 1/1] Disable parts of TIRPC requiring NIS support
package/libtirpc/0002-uClibc-without-RPC-support-and-musl-does-not-install-rpcent.h.patch renamed from package/libtirpc/0002-uClibc-without-RPC-support-does-not-install-rpcent.h.patch +4 -2
similarity index 78%
rename from package/libtirpc/0002-uClibc-without-RPC-support-does-not-install-rpcent.h.patch
rename to package/libtirpc/0002-uClibc-without-RPC-support-and-musl-does-not-install-rpcent.h.patch
index 44b5f99..643a57e 100644
@@ -1,11 +1,13 @@
 From 7aa1fe6a0f9280571117c30c03c2cc521cd86ec3 Mon Sep 17 00:00:00 2001
 From: Thomas Petazzoni <[email protected]>
 Date: Sat, 23 Jun 2012 21:58:07 +0200
-Subject: [PATCH] uClibc without RPC support does not install rpcent.h
+Subject: [PATCH] uClibc without RPC support and musl does not install rpcent.h
 
 Signed-off-by: Thomas Petazzoni <[email protected]>
 [yann.morin.1998 at free.fr: update for 0.3.1]
 Signed-off-by: "Yann E. MORIN" <[email protected]>
+[joerg.krause at embedded.rocks: musl fix]
+Signed-off-by: J?rg Krause <[email protected]>
 ---
  tirpc/rpc/rpcent.h | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
@@ -22,7 +24,7 @@ index 147f909..4a58180 100644
 -#if !defined(__GLIBC__)
 +/* These are defined in /usr/include/rpc/netdb.h, unless we are using
 +   the C library without RPC support. */
-+#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__)
++#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__) || !defined(__GLIBC__)
  struct rpcent {
  	char	*r_name;	/* name of server for this rpc program */
  	char	**r_aliases;	/* alias list */
package/libtirpc/0006-Use-local-bsdqueue.h.patch new file +903 -0

903 lines not on this page · raw message

Signature · 1 line
2.4.6
#2 lore raw

PATCH 3/3 package/libtirpc: Do not build unsupported API files

In reply to Jörg Krause

Version 0.3.2 re-enables some APIs for backward compatibility with glibc's SunRPC:
- key_prot
- netname
- rtime

Unfortunalty, this breaks building libtirpc with uClibc and musl:
getpublickey.c:41:28: fatal error: rpcsvc/yp_prot.h: No such file or directory

We disable those API files again to support building libtirpc with these two libc's.

---
 .../0007-Do-not-build-unsupported-API-files.patch  | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 package/libtirpc/0007-Do-not-build-unsupported-API-files.patch
package/libtirpc/0007-Do-not-build-unsupported-API-files.patch new file +42 -0
new file mode 100644
index 0000000..c0beb29
@@ -0,0 +1,42 @@
+From 1c074c8aa9dec92586bf01fb8bdbc59f828ca3d4 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=B6rg=20Krause?= <[email protected]>
+Date: Mon, 20 Jul 2015 22:49:41 +0200
+Subject: [PATCH 7/7] Remove unsupported API files
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Version 0.3.2 re-enables some APIs for backward compatibility with
+glibc's SunRPC:
+  - key_prot
+  - netname
+  - rtime
+
+Unfortunalty, this breaks building libtirpc with uClibc and musl:
+  getpublickey.c:41:28: fatal error: rpcsvc/yp_prot.h: No such file or directory
+
+We disable those API files to support building libtirpc with these two libc's.
+
+Signed-off-by: J?rg Krause <[email protected]>
+---
+ src/Makefile.am | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index cf8a8ca..2b26a29 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -68,8 +68,8 @@ if GSS
+     libtirpc_la_CFLAGS = -DHAVE_RPCSEC_GSS $(GSSAPI_CFLAGS)
+ endif
+ 
+-libtirpc_la_SOURCES += key_call.c key_prot_xdr.c getpublickey.c
+-libtirpc_la_SOURCES += netname.c netnamer.c rtime.c
++#libtirpc_la_SOURCES += key_call.c key_prot_xdr.c getpublickey.c
++#libtirpc_la_SOURCES += netname.c netnamer.c rtime.c
+ 
+ CLEANFILES	       = cscope.* *~
+ DISTCLEANFILES	       = Makefile.in
+-- 
+2.4.6
+
Signature · 1 line
2.4.6
#3 lore raw

PATCH 3/3 package/libtirpc: Do not build unsupported API files

Dear J?rg Krause,

Quoted 8 lines · J?rg Krause

Version 0.3.2 re-enables some APIs for backward compatibility with glibc's SunRPC:
- key_prot
- netname
- rtime

Unfortunalty, this breaks building libtirpc with uClibc and musl:
getpublickey.c:41:28: fatal error: rpcsvc/yp_prot.h: No such file or directory

Should this be part of 0001-Disable-parts-of-TIRPC-requiring-NIS-support.patch ? yp_prot.h is also NIS related.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw

PATCH 3/3 package/libtirpc: Do not build unsupported API files

Quoted 9 lines · Thomas Petazzoni

Dear J?rg Krause,

Quoted 6 lines · J?rg Krause

Version 0.3.2 re-enables some APIs for backward compatibility with glibc's SunRPC:
- key_prot
- netname
- rtime

Quoted 8 lines
Quoted 3 lines

Unfortunalty, this breaks building libtirpc with uClibc and musl:
getpublickey.c:41:28: fatal error: rpcsvc/yp_prot.h: No such file
or directory

Should this be part of 0001-Disable-parts-of-TIRPC-requiring-NIS-support.patch ? yp_prot.h is
also NIS related.

I see! So, I will squash these two patches and submit a v2.

Best regards
J?rg Krause