[oe-commits] Jonathan Liu : gdm: remove /var/run from package

git at git.openembedded.org git at git.openembedded.org
Mon Jul 8 08:30:23 UTC 2013


Module: meta-openembedded.git
Branch: master
Commit: 77bc54f180eed8ce1ec2712e3c6aa00b2c7ac1b4
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=77bc54f180eed8ce1ec2712e3c6aa00b2c7ac1b4

Author: Jonathan Liu <net147 at gmail.com>
Date:   Sat Jul  6 12:17:26 2013 +0000

gdm: remove /var/run from package

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>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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* \



More information about the Openembedded-commits mailing list