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:10:49 +0000 |
commit | c09767086307d552a18f11250ae42ec34be220fb (patch) | |
tree | 5d848f8c2c0ae5171b9ebbb1a1c6b56d781c77ba /meta/recipes-connectivity/libnss-mdns | |
parent | deb8ac868a989f41c0664312a5fb855358be2296 (diff) | |
download | openembedded-core-c09767086307d552a18f11250ae42ec34be220fb.tar.gz openembedded-core-c09767086307d552a18f11250ae42ec34be220fb.tar.bz2 openembedded-core-c09767086307d552a18f11250ae42ec34be220fb.zip |
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]
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')
-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" 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 } |