diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2013-01-17 20:56:39 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-18 13:28:08 +0000 |
commit | 363cb2bfeee5a5f04a6621bf93bee4e3d43656ba (patch) | |
tree | 8cd9fb8a8844b78c8644cc82ee10e5d8176f4ef9 /meta | |
parent | ee5333b0bdb1c1dfe678b319ac6f7ebd97a6ff57 (diff) | |
download | 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')
-rw-r--r-- | meta/recipes-connectivity/libnss-mdns/libnss-mdns_0.10.bb | 4 |
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 f7356e48df..a2712c9b1a 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" | |||
7 | 7 | ||
8 | DEPENDS = "avahi" | 8 | DEPENDS = "avahi" |
9 | RDEPENDS_${PN} = "avahi-daemon" | 9 | RDEPENDS_${PN} = "avahi-daemon" |
10 | PR = "r6" | 10 | PR = "r7" |
11 | 11 | ||
12 | SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz" | 12 | SRC_URI = "http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${PV}.tar.gz" |
13 | 13 | ||
@@ -32,5 +32,5 @@ pkg_postinst_${PN} () { | |||
32 | pkg_prerm_${PN} () { | 32 | pkg_prerm_${PN} () { |
33 | sed -e '/^hosts:/s/\s*\<mdns4\>//' \ | 33 | sed -e '/^hosts:/s/\s*\<mdns4\>//' \ |
34 | -e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \ | 34 | -e '/^hosts:/s/\s*mdns4_minimal\s\+\[NOTFOUND=return\]//' \ |
35 | -i /etc/nsswitch.conf | 35 | -i $D/etc/nsswitch.conf |
36 | } | 36 | } |