Skip to contentSkip to conversation

consolekit: don't ship /var/log/ConsoleKit

PATCH New Ross Burton 1 participant 1 message Aug 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 consolekit: don't ship /var/log/ConsoleKit

This directory is created on demand, and won't be visible if /var/log is a tmpfs, so don't bother shipping it.

---
 meta/recipes-support/consolekit/consolekit_0.4.6.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-support/consolekit/consolekit_0.4.6.bb +3 -3
index 2974e36..ceac0fe 100644
@@ -30,7 +30,7 @@ PACKAGECONFIG[pam] = "--enable-pam-module --with-pam-module-dir=${base_libdir}/s
 PACKAGECONFIG[policykit] = "--with-polkit,--without-polkit,polkit"
 PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,--with-systemdsystemunitdir="
 
-FILES_${PN} += "${localstatedir}/log/ConsoleKit ${exec_prefix}/lib/ConsoleKit \
+FILES_${PN} += "${exec_prefix}/lib/ConsoleKit \
                 ${libdir}/ConsoleKit  ${systemd_unitdir} ${base_libdir} \
                 ${datadir}/dbus-1 ${datadir}/PolicyKit ${datadir}/polkit*"
 
@@ -45,6 +45,6 @@ do_install_append() {
 			> ${D}${sysconfdir}/tmpfiles.d/consolekit.conf
 	fi
 
-	# Remove /var/run from package as console-kit-daemon will populate it on startup
-	rm -fr "${D}${localstatedir}/run"
+	# Remove /var/ directories as the daemon creates them as required
+	rm -rf ${D}${localstatedir}
 }
Signature · 1 line
2.8.1