Skip to contentSkip to conversation

foomatic-filters_4.0.16.bb: update recipe to work on Fedora 17

PATCH In review Matthew McClintock 3 participants 4 messages Jul 31, 2012 – Aug 2, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 foomatic-filters_4.0.16.bb: update recipe to work on Fedora 17

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

---
 .../foomatic/foomatic-filters_4.0.16.bb            |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb +8 -1
index 5f145b0..d5ae4c7 100644
@@ -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
Signature · 1 line
1.7.9.7
#1 lore raw
Quoted 25 lines · Matthew McClintock

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

---
 .../foomatic/foomatic-filters_4.0.16.bb            |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb +1 -1
index 5f145b0..d5ae4c7 100644
@@ -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
 }
 

meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb do_configure_prepend() { · line 43

Quoted 10 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb +7 -0
+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

Could you adjust this to account for:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ac7a0311825e20c544d17bfd8be63546ad36e665

please?

Thanks,

Richard

#2 lore raw
Quoted 39 lines · Richard Purdie
Quoted 25 lines · Matthew McClintock

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

---
 .../foomatic/foomatic-filters_4.0.16.bb            |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb +1 -1
index 5f145b0..d5ae4c7 100644
@@ -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
 }
 

meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb do_configure_prepend() { · line 43

Quoted 10 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb +7 -0
+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

Could you adjust this to account for:

Quoted 3 lines

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ac7a0311825e20c544d17bfd8be63546ad36e665

please?

Sure - did not see the later change on this...

Updated and pushed here:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=mattsm/master&id=973d055e33d5512fc4f2285c26b976ef8c21dc58

-M

Quoted 10 lines

Thanks,

Richard

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

#3 lore raw
Quoted 41 lines · On Thu, Aug 2, 2012 at 10:54 AM, McClintock Matthew-B29882…
Quoted 39 lines · Richard Purdie
Quoted 25 lines · Matthew McClintock

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

---
 .../foomatic/foomatic-filters_4.0.16.bb            |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb +1 -1
index 5f145b0..d5ae4c7 100644
@@ -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
 }
 

meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb do_configure_prepend() { · line 43

Quoted 10 lines
meta/recipes-extended/foomatic/foomatic-filters_4.0.16.bb +7 -0
+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

Could you adjust this to account for:

Quoted 8 lines
Quoted 3 lines

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ac7a0311825e20c544d17bfd8be63546ad36e665

please?

Sure - did not see the later change on this...

Updated and pushed here:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=mattsm/master&id=973d055e33d5512fc4f2285c26b976ef8c21dc58

Err, use this one:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=mattsm/master&id=9e0c80ad919f63f524a51581873feda61a956b0e

-M

Quoted 17 lines

-M

Quoted 10 lines

Thanks,

Richard

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core