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

login
register
mail settings
Submitter Jonathan Liu
Date May 26, 2013, 6:24 a.m.
Message ID <1369549468-7753-1-git-send-email-net147@gmail.com>
Download mbox | patch
Permalink /patch/50529/
State Accepted
Commit 4bdb3c586f50adcf3076f1af1fcebf0615faa6bd
Headers show

Comments

Jonathan Liu - May 26, 2013, 6:24 a.m.
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.

Signed-off-by: Jonathan Liu <net147@gmail.com>
---
 meta/recipes-extended/cups/cups16.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch

diff --git a/meta/recipes-extended/cups/cups16.inc b/meta/recipes-extended/cups/cups16.inc
index 9b0ae5b..45e7d51 100644
--- a/meta/recipes-extended/cups/cups16.inc
+++ b/meta/recipes-extended/cups/cups16.inc
@@ -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() {