[oe-commits] Jonathan Liu : cups: remove /var/ run from package as cupsd will populate it on startup

git at git.openembedded.org git at git.openembedded.org
Thu May 30 09:43:13 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: af99c290a0f589a5cb1d6426c78804f2d99ae02a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=af99c290a0f589a5cb1d6426c78804f2d99ae02a

Author: Jonathan Liu <net147 at gmail.com>
Date:   Sun May 26 16:24:28 2013 +1000

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.

Signed-off-by: Jonathan Liu <net147 at gmail.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-extended/cups/cups16.inc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

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() {



More information about the Openembedded-commits mailing list