| Submitter | Mark Hatle |
|---|---|
| Date | June 22, 2011, 5:35 p.m. |
| Message ID | <9ffc2c7097ac3a526f7246befc04a4ff6f225713.1308763995.git.mark.hatle@windriver.com> |
| Download | mbox | patch |
| Permalink | /patch/6329/ |
| State | New, archived |
| Headers | show |
Comments
On Wed, 2011-06-22 at 12:35 -0500, Mark Hatle wrote:
> +FIX_OWNERS = "chown -R root:lp ${D}/etc/cups"
This should probably be '${D}${sysconfdir}/cups'.
p.
Patch
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.02.bb b/meta/recipes-extended/ghostscript/ghostscript_9.02.bb index 3cb5485..f8a4807 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_9.02.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_9.02.bb @@ -15,7 +15,7 @@ SECTION = "console/utils" LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://LICENSE;md5=d151214b3131251dfc9d858593acbd24" -PR = "r2" +PR = "r3" DEPENDS = "${PN}-native tiff jpeg fontconfig cups" DEPENDS_virtclass-native = "" @@ -53,10 +53,15 @@ do_configure () { done } +FIX_OWNERS = "chown -R root:lp ${D}/etc/cups" +FIX_OWNERS_virtclass-native = "" + do_install_append () { mkdir -p ${D}${datadir}/ghostscript/${PV}/ cp -r Resource ${D}${datadir}/ghostscript/${PV}/ cp -r iccprofiles ${D}${datadir}/ghostscript/${PV}/ + + test -n "${FIX_OWNERS}" && eval ${FIX_OWNERS} || : } python do_patch_virtclass-native () {
/etc/cups is owned by root:lp from the cups package, the associated ghostscript was creating the /etc/cups directory as root:root. /etc/cups is the authoritative source. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> --- .../ghostscript/ghostscript_9.02.bb | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)