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

login
register
mail settings
Submitter Jonathan Liu
Date July 8, 2013, 8:02 a.m.
Message ID <1373270549-7784-1-git-send-email-net147@gmail.com>
Download mbox | patch
Permalink /patch/53283/
State Accepted
Commit 1cb1c6103df41e9535b44ab981662879d0fd59f9
Headers show

Comments

Jonathan Liu - July 8, 2013, 8:02 a.m.
The /var/run directory is already created by base-files.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb | 2 ++
 1 file changed, 2 insertions(+)
ml@communistcode.co.uk - July 8, 2013, 8:35 a.m.
On 08/07/13 09:02, Jonathan Liu wrote:
> The /var/run directory is already created by base-files.
>
> Signed-off-by: Jonathan Liu <net147@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} = " \
>

Ack from me, I've been meaning to get round to this for a while.

Thanks Jonathan!

Patch

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} = " \