]> code.ossystems Code Review - openembedded-core.git/commitdiff
cups: remove /var/run from package as cupsd will populate it on startup
authorJonathan Liu <net147@gmail.com>
Sun, 26 May 2013 06:24:28 +0000 (16:24 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 May 2013 21:07:24 +0000 (22:07 +0100)
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>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-extended/cups/cups16.inc

index 9b0ae5b61d2c875e64e9bff6a731dc11ff806bb9..45e7d51705842cf65827172fca4847dcb7948e38 100644 (file)
@@ -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() {