Patchwork bind: remove empty /var/run directory

login
register
mail settings
Submitter Jonathan Liu
Date May 26, 2013, 3:57 a.m.
Message ID <1369540653-3939-1-git-send-email-net147@gmail.com>
Download mbox | patch
Permalink /patch/50527/
State Accepted
Commit 2aa350acca1c6b6ada6a4508611ce25e9f9576ab
Headers show

Comments

Jonathan Liu - May 26, 2013, 3:57 a.m.
The /var/run directory is already created by base-files.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta/recipes-connectivity/bind/bind_9.8.1.bb | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/recipes-connectivity/bind/bind_9.8.1.bb b/meta/recipes-connectivity/bind/bind_9.8.1.bb
index 18cbb99..0663313 100644
--- a/meta/recipes-connectivity/bind/bind_9.8.1.bb
+++ b/meta/recipes-connectivity/bind/bind_9.8.1.bb
@@ -39,6 +39,8 @@  FILES_${PN}-dev += "${bindir}/isc-config.h"
 do_install_append() {
 	rm "${D}${bindir}/nslookup"
 	rm "${D}${mandir}/man1/nslookup.1"
+	rmdir "${D}${localstatedir}/run"
+	rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
 	install -d "${D}${sysconfdir}/bind"
 	install -d "${D}${sysconfdir}/init.d"
 	install -m 644 ${S}/conf/* "${D}${sysconfdir}/bind/"