All of lore.kernel.org
 help / color / mirror / Atom feed
From: Armin Kuster <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH 05/14] ypbind-mt: set path of ypdomainname in ypbind script
Date: Mon, 14 Dec 2015 07:33:58 -0800	[thread overview]
Message-ID: <ff9178a442cae34c787f3076ddd9d95989565bb5.1450027640.git.akuster808@gmail.com> (raw)
In-Reply-To: <cover.1450027640.git.akuster808@gmail.com>
In-Reply-To: <cover.1450027640.git.akuster808@gmail.com>

From: Jian Liu <jian.liu@windriver.com>

The script ypbind will cause error if using ypdomainname command
provided by busybox. So add RDEPENDCY on yp-tools and change
the path of ypdomainname.

Signed-off-by: Jian Liu <jian.liu@windriver.com>
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 meta-networking/recipes-support/nis/files/ypbind.init | 11 ++++++-----
 meta-networking/recipes-support/nis/ypbind-mt_1.38.bb |  2 ++
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/meta-networking/recipes-support/nis/files/ypbind.init b/meta-networking/recipes-support/nis/files/ypbind.init
index 244dc78..669c19c 100644
--- a/meta-networking/recipes-support/nis/files/ypbind.init
+++ b/meta-networking/recipes-support/nis/files/ypbind.init
@@ -26,6 +26,7 @@
 
 YPBIND_BIN=/usr/sbin/ypbind
 pidfile=/var/run/ypbind.pid
+YPDOMAINNAME_bin=/usr/bin/ypdomainname
 
 [ -f /etc/default/ypbind ] && . /etc/default/ypbind
 
@@ -34,14 +35,14 @@ case "$1" in
 	echo -n "Starting ypbind"
 	## If the domainname is not set, skip starting of ypbind
 	## and return with "program not configured"
-        /bin/ypdomainname >/dev/null 2>&1
-        if [ $? -ne 0 -o -z "`/bin/ypdomainname 2>/dev/null`" ]; then
+        $YPDOMAINNAME_bin >/dev/null 2>&1
+        if [ $? -ne 0 -o -z "`$YPDOMAINNAME_bin 2>/dev/null`" ]; then
            if [ -f /etc/defaultdomain ]; then
              XDOMAINNAME=`cat /etc/defaultdomain`
-             /bin/ypdomainname "$XDOMAINNAME"
+             $YPDOMAINNAME_bin "$XDOMAINNAME"
 	   fi
-           /bin/ypdomainname >/dev/null 2>&1
-           if [ $? -ne 0 -o -z "`/bin/ypdomainname 2>/dev/null`" ]; then
+           $YPDOMAINNAME_bin >/dev/null 2>&1
+           if [ $? -ne 0 -o -z "`$YPDOMAINNAME_bin 2>/dev/null`" ]; then
 	     # Tell the user this has skipped
 	     echo -n " . . . . . . . . . . No domainname set"
              # service is not configured
diff --git a/meta-networking/recipes-support/nis/ypbind-mt_1.38.bb b/meta-networking/recipes-support/nis/ypbind-mt_1.38.bb
index 5702cd6..d113b82 100644
--- a/meta-networking/recipes-support/nis/ypbind-mt_1.38.bb
+++ b/meta-networking/recipes-support/nis/ypbind-mt_1.38.bb
@@ -21,6 +21,8 @@ DEPENDS = " \
            yp-tools \
            ${@base_contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
           "
+RDEPENDS_${PN} += "yp-tools"
+
 # ypbind-mt now provides all the functionality of ypbind
 # and is used in place of it.
 PROVIDES += "ypbind"
-- 
1.9.1



  parent reply	other threads:[~2015-12-14 15:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-14 15:33 [PATCH 00/14] mete-oe Jethro-next Armin Kuster
2015-12-14 15:33 ` [PATCH 01/14] netcat: add DESCRIPTION Armin Kuster
2015-12-14 15:33 ` [PATCH 02/14] netcat-openbsd: replace patch with quilt Armin Kuster
2015-12-14 15:33 ` [PATCH 03/14] net-snmp: Modify snmpd.service Armin Kuster
2015-12-14 15:33 ` [PATCH 04/14] net-snmp: fix cross compilation Armin Kuster
2015-12-14 16:26   ` Martin Jansa
2015-12-14 18:56     ` akuster808
2015-12-15  0:27     ` akuster808
2015-12-14 15:33 ` Armin Kuster [this message]
2015-12-14 15:33 ` [PATCH 06/14] opensaf: remove unused service file Armin Kuster
2015-12-14 15:34 ` [PATCH 07/14] lldpd: configure the systemd unit file dir Armin Kuster
2015-12-14 15:34 ` [PATCH 08/14] ctdb: rdep on bash Armin Kuster
2015-12-14 15:34 ` [PATCH 09/14] netmap-modules: make deterministic builds for drivers Armin Kuster
2015-12-14 15:34 ` [PATCH 10/14] netmap-modules: Modules may not have the same arch as userspace Armin Kuster
2015-12-14 15:34 ` [PATCH 11/14] ufw: improve RRECOMMENDS Armin Kuster
2015-12-14 15:34 ` [PATCH 12/14] dovecot: add PACKAGECONFIG for lz4 Armin Kuster
2015-12-14 15:34 ` [PATCH 13/14] pure-ftpd: add PACKAGECONFIG for libsodium Armin Kuster
2015-12-14 15:34 ` [PATCH 14/14] tmux: Fix QA issue Armin Kuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ff9178a442cae34c787f3076ddd9d95989565bb5.1450027640.git.akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.