[oe] [meta-oe][PATCH] gdm: remove /var/run from package

Jonathan Liu net147 at gmail.com
Sat Jul 6 12:17:26 UTC 2013


The /var/run/gdm and /var/run/gdm/greeter directories are created by
the daemon if they don't exist. The /var/run directory is already
created by base-files.

Signed-off-by: Jonathan Liu <net147 at gmail.com>
---
 meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb b/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb
index da12ab8..04ecb19 100644
--- a/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb
+++ b/meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb
@@ -60,6 +60,9 @@ do_install_append() {
 
     chown -R gdm:gdm ${D}${localstatedir}/lib/gdm
     chmod 0750 ${D}${localstatedir}/lib/gdm
+
+    rm -rf "${D}${localstatedir}/run"
+    rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
 }
 
 FILES_${PN} += "${datadir}/icon* \
-- 
1.8.3.2




More information about the Openembedded-devel mailing list