Skip to contentSkip to conversation

cups: remove /var/run from package as cupsd will populate it on startup

PATCH New Jonathan Liu 1 participant 1 message May 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cups: remove /var/run from package as cupsd will populate it on startup

The /var/run/cups and /var/run/cups/certs directories don't need to be included in the package as they are created by cupsd with the proper permissions if they don't exist. The /var/run directory is already created by base-files.

---
 meta/recipes-extended/cups/cups16.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/recipes-extended/cups/cups16.inc +3 -3
index 9b0ae5b..45e7d51 100644
@@ -53,9 +53,9 @@ do_compile () {
 fakeroot do_install () {
 	oe_runmake "DSTROOT=${D}" install
 
-   # This directory gets installed with perms 511, which makes packaging fail
-   chmod 0711 "${D}/${localstatedir}/run/cups/certs"
-   rmdir ${D}/${libdir}/${BPN}/driver
+	# Remove /var/run from package as cupsd will populate it on startup
+	rm -fr ${D}/${localstatedir}/run
+	rmdir ${D}/${libdir}/${BPN}/driver
 }
 
 python do_package_append() {
Signature · 1 line
1.8.2.3