summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-03-31 20:20:16 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-04 12:47:35 +0100
commit0fabdb5c8f550f811341640fd79727dbfa283b98 (patch)
tree8e5fef5610d4b205769e98fb1799ebe992cf8ab2
parent3aa429406184d27bdb8a771c4c12bde1dcccb95b (diff)
downloadopenembedded-core-0fabdb5c8f550f811341640fd79727dbfa283b98.tar.gz
openembedded-core-0fabdb5c8f550f811341640fd79727dbfa283b98.tar.bz2
openembedded-core-0fabdb5c8f550f811341640fd79727dbfa283b98.tar.xz
openembedded-core-0fabdb5c8f550f811341640fd79727dbfa283b98.zip
avahi.inc: Conditionalize RECOMMENDS by using overrides
libnss-mdns is not supportable on uclibc since nss is not available on uclibc we add gettext-dev to RRECOMMENDS only of eglibc/glibc Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta/recipes-connectivity/avahi/avahi.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
index 9f83d8dad..6d4b8304d 100644
--- a/meta/recipes-connectivity/avahi/avahi.inc
+++ b/meta/recipes-connectivity/avahi/avahi.inc
@@ -16,8 +16,10 @@ PRIORITY = "optional"
LICENSE = "GPLv2+ & LGPLv2.1+"
DEPENDS = "expat libcap libdaemon dbus glib-2.0 gtk+ libglade"
-RRECOMMENDS_${PN} = "libnss-mdns"
-RRECOMMENDS_avahi-daemon = "libnss-mdns"
+
+# uclibc has no nss
+RRECOMMENDS_avahi-daemon_append_libc-glibc = "libnss-mdns"
+RRECOMMENDS_${PN}_append_libc-glibc = "libnss-mdns"
SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
file://00avahi-autoipd \
@@ -66,7 +68,9 @@ FILES_avahi-ui-utils = "${bindir}/bssh ${bindir}/bvnc ${bindir}/bshell \
${datadir}/applications \
${datadir}/avahi/interfaces"
-RRECOMMENDS_avahi-dev = "gettext-dev expat-dev libcap-dev libdaemon-dev dbus-dev glib-2.0-dev update-rc.d-dev"
+RRECOMMENDS_avahi-dev = "expat-dev libcap-dev libdaemon-dev dbus-dev glib-2.0-dev update-rc.d-dev"
+RRECOMMENDS_avahi-dev_append_libc-glibc = " gettext-dev"
+
RRECOMMENDS_avahi-dev[nodeprrecs] = 1
CONFFILES_avahi-daemon = "${sysconfdir}/avahi/avahi-daemon.conf"