diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-04-06 17:36:52 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-08 10:45:27 +0100 |
commit | 5ed97aeeb603506d772d252f97b9b6e02d84ae9a (patch) | |
tree | 6fe982e99410d3165c13e48b5261543919c4a6e2 /meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch | |
parent | 0dfe553d58a76cc0d2592cf5746a1f24a3cd6ee4 (diff) | |
download | openembedded-core-contrib-5ed97aeeb603506d772d252f97b9b6e02d84ae9a.tar.gz |
rpcbind: Fix build with musl
most patches are just removing glibc'ism e.g. using sys/queue.h
of cdefs.h the one patch which is specific to musl
is housed with overrides
Change-Id: Ia15bf6c9c4b562c9392a704ef92e9090aa5f6381
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch')
-rw-r--r-- | meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch b/meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch new file mode 100644 index 0000000000..9c72a1bdf4 --- /dev/null +++ b/meta/recipes-extended/rpcbind/rpcbind/musl-sunrpc.patch @@ -0,0 +1,29 @@ +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> + +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", |