[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core] [PATCH] foomatic-filters_4.0.16.bb: update recipe to work on Fedora 17
From:       msm () freescale ! com (Matthew McClintock)
Date:       2012-07-31 20:42:04
Message-ID: 1343767324-11395-1-git-send-email-msm () freescale ! com
[Download RAW message or body]

This fixes isses on distro that have perl in /bin/perl instead
of /usr/bin/perl such as Fedora 17

Signed-off-by: Matthew McClintock <msm at freescale.com>
---
 .../foomatic/foomatic-filters_4.0.16.bb            |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb \
b/meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb index 5f145b0..d5ae4c7 \
                100644
--- a/meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb
+++ b/meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb
@@ -10,7 +10,7 @@ format using a printer-specific, but spooler-independent PPD file. \
\  "
 
 DEPENDS += "cups perl libxml2"
-PR = "r0"
+PR = "r1"
 
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://${WORKDIR}/foomatic-filters-${PV}/COPYING;md5=393a5ca445f6965873eca0259a17f833"
 @@ -31,6 +31,13 @@ do_configure_prepend() {
     export CUPS_PPDS=${datadir}/cups/model
 }
 
+PERLPATH = "${bindir}/env perl"
+PERLPATH_virtclass-nativesdk = "/usr/bin/env perl"
+
+do_install_append() {
+    sed -i -e '1s,#!.*perl,#! ${PERLPATH},' ${D}${libdir}/cups/backend/beh
+}
+
 do_install_append_linuxstdbase() {
     install -d ${D}${exec_prefix}/lib/cups/filter
     ln -sf ${bindir}/foomatic-rip ${D}${exec_prefix}/lib/cups/filter
-- 
1.7.9.7


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic