[oe-commits] Tom Rini : gobject-introspection: Use /usr/bin/env for python

git version control git at git.openembedded.org
Wed Nov 17 23:24:42 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 8d906dfca260c2c1b0a40b558ad8d64dbfd028bc
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8d906dfca260c2c1b0a40b558ad8d64dbfd028bc

Author: Tom Rini <tom_rini at mentor.com>
Date:   Wed Nov 17 16:15:38 2010 -0700

gobject-introspection: Use /usr/bin/env for python

Scripts that do #!@PERL@ or #!@PYTHON@ and replace that with
a full path are in danger of breaking in certain environments
(such as some autobuilders) and should instead use /usr/bin/env.
While in here, use GNOME_MIRROR for the sources.

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

---

 .../use-usr-bin-env-for-python.patch               |   20 ++++++++++++++++++++
 .../gobject-introspection_0.9.10.bb                |    4 +++-
 2 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/recipes/gobject-introspection/gobject-introspection/use-usr-bin-env-for-python.patch b/recipes/gobject-introspection/gobject-introspection/use-usr-bin-env-for-python.patch
new file mode 100644
index 0000000..67b8547
--- /dev/null
+++ b/recipes/gobject-introspection/gobject-introspection/use-usr-bin-env-for-python.patch
@@ -0,0 +1,20 @@
+Index: gobject-introspection-0.9.10/tools/g-ir-annotation-tool.in
+===================================================================
+--- gobject-introspection-0.9.10.orig/tools/g-ir-annotation-tool.in
++++ gobject-introspection-0.9.10/tools/g-ir-annotation-tool.in
+@@ -1,4 +1,4 @@
+-#!@PYTHON@
++#!/usr/bin/env python
+ # -*- Mode: Python -*-
+ # GObject-Introspection - a framework for introspecting GObject libraries
+ # Copyright (C) 2008  Johan Dahlin
+Index: gobject-introspection-0.9.10/tools/g-ir-scanner.in
+===================================================================
+--- gobject-introspection-0.9.10.orig/tools/g-ir-scanner.in
++++ gobject-introspection-0.9.10/tools/g-ir-scanner.in
+@@ -1,4 +1,4 @@
+-#!@PYTHON@
++#!/usr/bin/env python
+ # -*- Mode: Python -*-
+ # GObject-Introspection - a framework for introspecting GObject libraries
+ # Copyright (C) 2008  Johan Dahlin
diff --git a/recipes/gobject-introspection/gobject-introspection_0.9.10.bb b/recipes/gobject-introspection/gobject-introspection_0.9.10.bb
index b982ce9..72836d5 100644
--- a/recipes/gobject-introspection/gobject-introspection_0.9.10.bb
+++ b/recipes/gobject-introspection/gobject-introspection_0.9.10.bb
@@ -4,12 +4,14 @@ DEPENDS = "glib-2.0 libffi"
 BBCLASSEXTEND = "native"
 DEPENDS_virtclass-native = "glib-2.0-native libffi-native"
 LICENSE = "LGPL"
+PR = "r1"
 
 SRC_URI[md5sum] = "e5cd63d6bcc5c105e898e7c33cf42175"
 SRC_URI[sha256sum] = "4bf244db75df04499dea704e7734376c0fc5a3a17fb59be2123c8d76111e6fb8"
 
 SRC_URI = "\
-  http://ftp.acc.umu.se/pub/GNOME/sources/gobject-introspection/0.9/${BPN}-${PV}.tar.bz2 \
+  ${GNOME_MIRROR}/gobject-introspection/0.9/${BPN}-${PV}.tar.bz2 \
+  file://use-usr-bin-env-for-python.patch \
 "
 S = "${WORKDIR}/${BPN}-${PV}"
 





More information about the Openembedded-commits mailing list