]> code.ossystems Code Review - openembedded-core.git/commitdiff
rpcbind: Remove uneeded patches
authorKhem Raj <raj.khem@gmail.com>
Wed, 19 Apr 2017 01:58:38 +0000 (18:58 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 May 2017 11:21:32 +0000 (12:21 +0100)
We were carrying patches which are no longer
needed when building rpcbind for musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch [deleted file]
meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch [deleted file]
meta/recipes-extended/rpcbind/rpcbind_0.2.4.bb

diff --git a/meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch b/meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch
deleted file mode 100644 (file)
index 6fbc636..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-The musl implementation of getaddrinfo and getservbyname does not
-aliases. As a workaround we use "sunprc" instead of "portmapper"
-
-ported from alpine linux
-
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
-Upstream-Status: Pending
-
-Index: rpcbind-0.2.2/src/rpcbind.c
-===================================================================
---- rpcbind-0.2.2.orig/src/rpcbind.c
-+++ rpcbind-0.2.2/src/rpcbind.c
-@@ -491,7 +491,7 @@ init_transport(struct netconfig *nconf)
-                       if ((aicode = getaddrinfo(hosts[nhostsbak],
-                           servname, &hints, &res)) != 0) {
-                         if ((aicode = getaddrinfo(hosts[nhostsbak],
--                                                  "portmapper", &hints, &res)) != 0) {
-+                                                  "sunrpc", &hints, &res)) != 0) {
-                               syslog(LOG_ERR,
-                                   "cannot get local address for %s: %s",
-                                   nconf->nc_netid, gai_strerror(aicode));
-@@ -564,7 +564,7 @@ init_transport(struct netconfig *nconf)
-               if ((strcmp(nconf->nc_netid, "local") != 0) &&
-                   (strcmp(nconf->nc_netid, "unix") != 0)) {
-                       if ((aicode = getaddrinfo(NULL, servname, &hints, &res))!= 0) {
--                        if ((aicode = getaddrinfo(NULL, "portmapper", &hints, &res))!= 0) {
-+                        if ((aicode = getaddrinfo(NULL, "sunrpc", &hints, &res))!= 0) {
-                         printf("cannot get local address for %s: %s",  nconf->nc_netid, gai_strerror(aicode));
-                         syslog(LOG_ERR,
-                                   "cannot get local address for %s: %s",
diff --git a/meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch b/meta/recipes-extended/rpcbind/rpcbind/remove-sys-queue.patch
deleted file mode 100644 (file)
index 84fc974..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-musl does not provide this header and here is reasoning
-http://wiki.musl-libc.org/wiki/FAQ#Q:_why_is_sys.2Fqueue.h_not_included_.3F
-
-So include it only when __GLIBC__ is defined which is true for uclibc and glibc
-
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
-Upstream-Status: Pending
-
-Index: rpcbind-0.2.2/src/util.c
-===================================================================
---- rpcbind-0.2.2.orig/src/util.c
-+++ rpcbind-0.2.2/src/util.c
-@@ -41,7 +41,9 @@
- #include <sys/types.h>
- #include <sys/socket.h>
-+#ifdef __GLIBC__
- #include <sys/queue.h>
-+#endif
- #include <net/if.h>
- #include <netinet/in.h>
- #include <ifaddrs.h>
index 4911fe51e83b6c59c85c1d36434c887d40d93058..d3ebcb3b254c321614e41d768e3e9f368556df36 100644 (file)
@@ -12,18 +12,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/rpcbind/rpcbind-${PV}.tar.bz2 \
            file://init.d \
-           file://remove-sys-queue.patch \
-           ${UCLIBCPATCHES} \
-           ${MUSLPATCHES} \
            file://rpcbind.conf \
            file://rpcbind.socket \
            file://rpcbind.service \
           "
-MUSLPATCHES_libc-musl = "file://musl-sunrpc.patch"
-
-UCLIBCPATCHES ?= ""
-MUSLPATCHES ?= ""
-
 SRC_URI[md5sum] = "cf10cd41ed8228fc54c316191c1f07fe"
 SRC_URI[sha256sum] = "074a9a530dc7c11e0d905aa59bcb0847c009313f02e98d3d798aa9568f414c66"