[oe] [meta-webserver][PATCH] hiawatha: remove empty /var/run directory

Jonathan Liu net147 at gmail.com
Mon Jul 8 08:02:29 UTC 2013


The /var/run directory is already created by base-files.

Signed-off-by: Jonathan Liu <net147 at gmail.com>
---
 meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb b/meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb
index 2c9fe80..94bcbc6 100644
--- a/meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb
+++ b/meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb
@@ -53,6 +53,8 @@ do_install_append() {
         install -m 644 ${WORKDIR}/hiawatha.service ${D}/${systemd_unitdir}/system
     fi
 
+    rmdir "${D}${localstatedir}/run"
+    rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
 }
 
 CONFFILES_${PN} = " \
-- 
1.8.3.2




More information about the Openembedded-devel mailing list