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>
This commit is contained in:
parent
ee5333b0bd
commit
363cb2bfee
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue