summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2013-01-17 20:56:39 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-18 13:28:08 +0000
commit363cb2bfeee5a5f04a6621bf93bee4e3d43656ba (patch)
tree8cd9fb8a8844b78c8644cc82ee10e5d8176f4ef9 /meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
parentee5333b0bdb1c1dfe678b319ac6f7ebd97a6ff57 (diff)
downloadast2050-yocto-poky-363cb2bfeee5a5f04a6621bf93bee4e3d43656ba.zip
ast2050-yocto-poky-363cb2bfeee5a5f04a6621bf93bee4e3d43656ba.tar.gz
libnss-mdns:fix support prerm at image creation time
The pkg_prerm_${PN} failed at image creation time because $D is not assigned as the prefix of "/etc/nsswitch.conf" [YOCTO #3633] (From OE-Core rev: c09767086307d552a18f11250ae42ec34be220fb) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb')
-rw-r--r--meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
index f7356e4..a2712c9 100644
--- a/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
+++ b/meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2d5025d4aa3495befef8f17206a5b0a1"
DEPENDS = "avahi"
RDEPENDS_${PN} = "avahi-daemon"
-PR = "r6"
+PR = "r7"
SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz"
@@ -32,5 +32,5 @@ pkg_postinst_${PN} () {
pkg_prerm_${PN} () {
sed -e '/^hosts:/s/\s*\<mdns4\>//' \
-e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \
- -i /etc/nsswitch.conf
+ -i $D/etc/nsswitch.conf
}
OpenPOWER on IntegriCloud