From: Li Wang <li.w...@windriver.com>

rpcbind starts successfully, but shows the following errors in dmesg:

  Jul 24 20:34:42 quake rpcbind: cannot get local address for udp: \
    Servname not supported for ai_socktype
  Jul 24 20:34:42 quake rpcbind: cannot get local address for tcp: \
    Servname not supported for ai_socktype

Just add rpcbind as an alias to sunrpc, the patch comes from:
  https://bugs.archlinux.org/task/20273

Signed-off-by: Li Wang <li.w...@windriver.com>
---
 ...netbase-add-rpcbind-as-an-alias-to-sunrpc.patch | 51 ++++++++++++++++++++++
 meta/recipes-core/netbase/netbase_5.3.bb           |  1 +
 2 files changed, 52 insertions(+)
 create mode 100644 
meta/recipes-core/netbase/netbase/netbase-add-rpcbind-as-an-alias-to-sunrpc.patch

diff --git 
a/meta/recipes-core/netbase/netbase/netbase-add-rpcbind-as-an-alias-to-sunrpc.patch
 
b/meta/recipes-core/netbase/netbase/netbase-add-rpcbind-as-an-alias-to-sunrpc.patch
new file mode 100644
index 0000000..c70d142
--- /dev/null
+++ 
b/meta/recipes-core/netbase/netbase/netbase-add-rpcbind-as-an-alias-to-sunrpc.patch
@@ -0,0 +1,51 @@
+netbase: add rpcbind as an alias to sunrpc
+
+rpcbind starts successfully, but shows the following errors in dmesg:
+
+  Jul 24 20:34:42 quake rpcbind: cannot get local address for udp: \
+    Servname not supported for ai_socktype
+  Jul 24 20:34:42 quake rpcbind: cannot get local address for tcp: \
+    Servname not supported for ai_socktype
+
+Just add rpcbind as an alias to sunrpc, the patch comes from:
+  https://bugs.archlinux.org/task/20273
+
+Upstream-Status: Pending
+
+Signed-off-by: Li Wang <li.w...@windriver.com>
+---
+ etc-rpc      |    2 +-
+ etc-services |    4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/etc-rpc b/etc-rpc
+index 1b30625..9a9a81a 100644
+--- a/etc-rpc
++++ b/etc-rpc
+@@ -1,7 +1,7 @@
+ # This file contains user readable names that can be used in place of rpc
+ # program numbers.
+ 
+-portmapper    100000  portmap sunrpc
++portmapper    100000  portmap sunrpc rpcbind
+ rstatd                100001  rstat rstat_svc rup perfmeter
+ rusersd               100002  rusers
+ nfs           100003  nfsprog
+diff --git a/etc-services b/etc-services
+index 9d64a52..a19f7c8 100644
+--- a/etc-services
++++ b/etc-services
+@@ -72,8 +72,8 @@ pop2         109/tcp         postoffice pop-2 # POP version 2
+ pop2          109/udp         pop-2
+ pop3          110/tcp         pop-3           # POP version 3
+ pop3          110/udp         pop-3
+-sunrpc                111/tcp         portmapper      # RPC 4.0 portmapper
+-sunrpc                111/udp         portmapper
++sunrpc                111/tcp         portmapper rpcbind      # RPC 4.0 
portmapper
++sunrpc                111/udp         portmapper rpcbind
+ auth          113/tcp         authentication tap ident
+ sftp          115/tcp
+ uucp-path     117/tcp
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-core/netbase/netbase_5.3.bb 
b/meta/recipes-core/netbase/netbase_5.3.bb
index 4ac0221..ccd89ff 100644
--- a/meta/recipes-core/netbase/netbase_5.3.bb
+++ b/meta/recipes-core/netbase/netbase_5.3.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = 
"file://debian/copyright;md5=3dd6192d306f582dee7687da3d8748ab
 PE = "1"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.xz \
+           file://netbase-add-rpcbind-as-an-alias-to-sunrpc.patch \
            file://hosts"
 
 SRC_URI[md5sum] = "2637a27fd3de02a278d2b5be7e6558c1"
-- 
1.9.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to