cups: Ensure cups-config has correct target paths, not sysroot ones for cups_serverbi...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Mar 2012 15:17:09 +0000 (15:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Mar 2012 16:47:44 +0000 (16:47 +0000)
These are used by dependent packages to know where to install cups related
pieces into therefore we need to remove the sysroot prefix from these.

(From OE-Core rev: edb8eb566968d386f6995b95d54bc7c25a50b02a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/cups/cups14.inc
meta/recipes-extended/cups/cups_1.4.6.bb

index 2bf3ecf..7c19682 100644 (file)
@@ -91,3 +91,8 @@ FILES_${PN} += "${datadir}/doc/cups/images \
                 ${datadir}/doc/cups/*.css \
                 ${datadir}/icons/ \
                "
+
+SYSROOT_PREPROCESS_FUNCS += "cups_sysroot_preprocess"
+cups_sysroot_preprocess () {
+       sed -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/cups-config -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:' -e 's:cups_serverbin=.*:cups_serverbin=${libdir}/cups:'
+}
index 0dc2d4a..ec555d7 100644 (file)
@@ -1,6 +1,6 @@
 require cups14.inc
 
-PR = "r2"
+PR = "r3"
 DEPENDS += "libusb \
        ${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"