[oe-commits] Tom Rini : gthumb: Fix long path to perl in local intltools scripts

git version control git at git.openembedded.org
Thu Feb 24 19:41:21 UTC 2011


Module: openembedded.git
Branch: master
Commit: afebb0563363d1563c87601e84bc2337e60ed2e2
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=afebb0563363d1563c87601e84bc2337e60ed2e2

Author: Tom Rini <tom_rini at mentor.com>
Date:   Thu Feb 24 12:39:17 2011 -0700

gthumb: Fix long path to perl in local intltools scripts

Signed-off-by: Tom Rini <tom_rini at mentor.com>

---

 recipes/gthumb/gthumb_2.10.11.bb |    7 ++++++-
 recipes/gthumb/gthumb_2.6.9.bb   |    8 +++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/recipes/gthumb/gthumb_2.10.11.bb b/recipes/gthumb/gthumb_2.10.11.bb
index 079e3bd..42dc02a 100644
--- a/recipes/gthumb/gthumb_2.10.11.bb
+++ b/recipes/gthumb/gthumb_2.10.11.bb
@@ -7,7 +7,7 @@ inherit gnome
 
 SRC_URI += "file://pkg-config-hack.patch"
 
-PR = "r2"
+PR = "r3"
 
 FILES_${PN} += "${libdir}/*.so ${datadir}/gnome* ${datadir}/application-registry/*"
 FILES_${PN}-dbg += "${libdir}/gthumb/modules/.debug"
@@ -16,5 +16,10 @@ do_configure_prepend() {
 	sed -i "s|HACK_STAGING_DIR_HOST|${STAGING_DIR_HOST}|" ${S}/add-include-prefix
 }
 
+do_configure_append() {
+	# replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
+	sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/intltool*.in
+}
+
 SRC_URI[archive.md5sum] = "498c583800a05593f7493e8f27991c7d"
 SRC_URI[archive.sha256sum] = "68ac6835afdbe32cba09504b4d61ad4f5d98a97776bfb58698338add56eb520e"
diff --git a/recipes/gthumb/gthumb_2.6.9.bb b/recipes/gthumb/gthumb_2.6.9.bb
index 3eb0661..b196342 100644
--- a/recipes/gthumb/gthumb_2.6.9.bb
+++ b/recipes/gthumb/gthumb_2.6.9.bb
@@ -1,15 +1,17 @@
 DESCRIPTION = "gThumb is an image viewer and browser for the GNOME Desktop."
 LICENSE = "GPL"
-
 DEPENDS = "gtk+ libexif libgnome libgnomeui libgnomeprintui"
+PR = "r1"
 SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${P}.tar.gz"
 
 inherit autotools pkgconfig
 
 FILES_${PN} += "${datadir}/gnome* ${datadir}/application-registry/*"
 
-
-
+do_configure_append() {
+	# replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
+	sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/intltool*.in
+}
 
 SRC_URI[md5sum] = "2819ec911a7cc4f46b95240b65f2b3e2"
 SRC_URI[sha256sum] = "b02423f0dc9f82a3e1a56cfd470c1cee5d351654fdc55c1a3cd5cff150828b3c"





More information about the Openembedded-commits mailing list