Skip to contentSkip to conversation

gdm: remove /var/run from package

PATCH New Jonathan Liu 1 participant 1 message Jul 6, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-gnome/recipes-gnome/gdm/gdm_2.32.2.bb +3 -0
index da12ab8..04ecb19 100644
@@ -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* \
Signature · 1 line
1.8.3.2