From 97fe885070ea9b26292de1630e1d5b351d03304d Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 12 Mar 2015 11:20:55 +0100 Subject: rpcbind: respin patches Due to libc-dependant conditional patching (which should be completely forbidden -- fix it properly instead) the last PV bump forgot to adjust patches so they failed to apply. Fix this by redoing the patches. These patches were submitted for upstream master, add backported patches for the current tarball. v2: Remove PR bump Signed-off-by: Bernhard Reutner-Fischer --- ...001-configure.ac-Check-for-rpcsvc-mount.h.patch | 64 ++++++++++++++++++++++ .../rpcbind/rpcbind/0001-uclibc-nss.patch | 30 ---------- .../rpcbind/0002-uclibc-rpcsvc-defines.patch | 60 -------------------- meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb | 7 +-- 4 files changed, 65 insertions(+), 96 deletions(-) create mode 100644 meta/recipes-extended/rpcbind/rpcbind/0001-configure.ac-Check-for-rpcsvc-mount.h.patch delete mode 100644 meta/recipes-extended/rpcbind/rpcbind/0001-uclibc-nss.patch delete mode 100644 meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch diff --git a/meta/recipes-extended/rpcbind/rpcbind/0001-configure.ac-Check-for-rpcsvc-mount.h.patch b/meta/recipes-extended/rpcbind/rpcbind/0001-configure.ac-Check-for-rpcsvc-mount.h.patch new file mode 100644 index 0000000000..cd3137f698 --- /dev/null +++ b/meta/recipes-extended/rpcbind/rpcbind/0001-configure.ac-Check-for-rpcsvc-mount.h.patch @@ -0,0 +1,64 @@ +From 8c5e97b9ff5699a5eafad6c4348bbb0b84ec30e0 Mon Sep 17 00:00:00 2001 +From: Bernhard Reutner-Fischer +Date: Tue, 3 Mar 2015 01:59:50 +0100 +Subject: [PATCH,rpcbind 2/4] configure.ac: Check for rpcsvc/mount.h +To: Steve Dickson +Cc: libtirpc-devel@lists.sourceforge.net + +The function check_callit() attempts to reference a number of defines +from files that might not be available for everything but glibc. + +For simplicity assume that if there is no rpcsvc/mount.h all the other +includes do not exist either. + +Upstream-Status: Submitted + +Signed-off-by: Bernhard Reutner-Fischer +--- + configure.ac | 2 +- + src/security.c | 17 +++++++++++++++++ + 2 files changed, 18 insertions(+), 1 deletion(-) + +diff -rdup rpcbind-0.2.2.orig/configure.ac rpcbind-0.2.2/configure.ac +--- rpcbind-0.2.2.orig/configure.ac 2014-11-25 21:34:48.000000000 +0100 ++++ rpcbind-0.2.2/configure.ac 2015-03-12 10:47:12.613608115 +0100 +@@ -55,4 +55,6 @@ AS_IF([test x$enable_libwrap = xyes], [ + + AC_SEARCH_LIBS([pthread_create], [pthread]) + ++AC_CHECK_HEADERS([nss.h rpcsvc/mount.h]) ++ + AC_OUTPUT([Makefile]) +diff -rdup rpcbind-0.2.2.orig/src/security.c rpcbind-0.2.2/src/security.c +--- rpcbind-0.2.2.orig/src/security.c 2014-11-25 21:34:48.000000000 +0100 ++++ rpcbind-0.2.2/src/security.c 2015-03-12 10:45:40.580434845 +0100 +@@ -20,12 +20,29 @@ + /* + * XXX for special case checks in check_callit. + */ ++#ifdef HAVE_RPCSVC_MOUNT_H + #include + #include + #include + #include + #include + #include ++#else ++# define MOUNTPROC_MNT 1 ++# define MOUNTPROC_UMNT 3 ++# define NFS_PROGRAM 100003 ++# define YPPROG 100004 ++# define MOUNTPROG 100005 ++# define YPBINDPROG 100007 ++# define YPPASSWDPROG 100009 ++# define RQUOTAPROG 100011 ++ ++# define YPBINDPROC_SETDOM 2 ++# define YPPROC_MATCH 3 ++# define YPPROC_FIRST 4 ++# define YPPROC_NEXT 5 ++# define YPPROC_ALL 8 ++#endif + + #include "rpcbind.h" + diff --git a/meta/recipes-extended/rpcbind/rpcbind/0001-uclibc-nss.patch b/meta/recipes-extended/rpcbind/rpcbind/0001-uclibc-nss.patch deleted file mode 100644 index afa55f3b76..0000000000 --- a/meta/recipes-extended/rpcbind/rpcbind/0001-uclibc-nss.patch +++ /dev/null @@ -1,30 +0,0 @@ -Upstream-Status: Pending - -From b8f0d7b7318ba344c25785d6f5cf3f8de98012d4 Mon Sep 17 00:00:00 2001 -From: Natanael Copa -Date: Tue, 2 Feb 2010 09:36:03 +0000 -Subject: [PATCH 1/2] uclibc-nss - ---- - src/rpcbind.c | 4 ++++ - 1 files changed, 4 insertions(+), 0 deletions(-) - -diff --git a/src/rpcbind.c b/src/rpcbind.c -index 525ffba..1fe1a60 100644 ---- a/src/rpcbind.c -+++ b/src/rpcbind.c -@@ -67,7 +67,11 @@ - #include - #include - #include -+#if defined(__UCLIBC__) -+#define __nss_configure_lookup(x,y) -+#else - #include -+#endif - #include "config.h" - #include "rpcbind.h" - --- -1.6.6.1 - diff --git a/meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch b/meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch deleted file mode 100644 index c54fc96fc0..0000000000 --- a/meta/recipes-extended/rpcbind/rpcbind/0002-uclibc-rpcsvc-defines.patch +++ /dev/null @@ -1,60 +0,0 @@ -Upstream-Status: Pending - -From 077add040c2e30d3ac507362f4afe350f47be027 Mon Sep 17 00:00:00 2001 -From: Natanael Copa -Date: Tue, 2 Feb 2010 09:47:57 +0000 -Subject: [PATCH 2/2] uclibc-rpcsvc-defines - ---- - src/security.c | 28 ++++++++++++++++++++++++++++ - 1 files changed, 28 insertions(+), 0 deletions(-) - -diff --git a/src/security.c b/src/security.c -index 0edeac6..e9fed55 100644 ---- a/src/security.c -+++ b/src/security.c -@@ -20,6 +20,32 @@ - /* - * XXX for special case checks in check_callit. - */ -+#if defined(__UCLIBC__) -+ -+#define MOUNTPROC_MNT 1 -+#define MOUNTPROC_UMNT 3 -+ -+#define NFS_PROGRAM 100003 -+#define YPPROG 100004 -+#define MOUNTPROG 100005 -+#define YPBINDPROG 100007 -+#define YPPASSWDPROG 100009 -+#define RQUOTAPROG 100011 -+ -+#define YPPROC_NULL 0 -+#define YPPROC_DOMAIN 1 -+#define YPPROC_DOMAIN_NONACK 2 -+#define YPPROC_MATCH 3 -+#define YPPROC_FIRST 4 -+#define YPPROC_NEXT 5 -+#define YPPROC_XFR 6 -+#define YPPROC_CLEAR 7 -+#define YPPROC_ALL 8 -+ -+#define YPBINDPROC_SETDOM 2 -+ -+#else -+ - #include - #include - #include -@@ -27,6 +53,8 @@ - #include - #include - -+#endif -+ - #include "rpcbind.h" - - #ifdef LIBWRAP --- -1.6.6.1 - diff --git a/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb b/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb index fd4b2b5b07..85bad6d86f 100644 --- a/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb +++ b/meta/recipes-extended/rpcbind/rpcbind_0.2.2.bb @@ -12,17 +12,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \ SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \ file://init.d \ - ${UCLIBCPATCHES} \ + file://0001-configure.ac-Check-for-rpcsvc-mount.h.patch \ file://rpcbind.conf \ file://rpcbind.socket \ file://rpcbind.service \ " -UCLIBCPATCHES_libc-uclibc = "file://0001-uclibc-nss.patch \ - file://0002-uclibc-rpcsvc-defines.patch \ - " -UCLIBCPATCHES ?= "" - SRC_URI[md5sum] = "8acf839bfef2364a05fbd6be5f8edf9a" SRC_URI[sha256sum] = "13dbc8c796dbe0ce8df873007bea0490c8460b56202d918c9eb6fa0358a08f29" -- cgit 1.2.3-korg