Skip to contentSkip to conversation

opkg-utils: use /usr/bin/env python

PATCH Applied Christopher Larson 2 participants 2 messages Jan 4, 2012 – Jan 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opkg-utils: use /usr/bin/env python

---
 .../opkg-utils/opkg-utils/shebang.patch            |   46 ++++++++++++++++++++
 meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb |    3 +-
 2 files changed, 48 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/shebang.patch
meta/recipes-devtools/opkg-utils/opkg-utils/shebang.patch new file +46 -0
new file mode 100644
index 0000000..f6a2ef9
@@ -0,0 +1,46 @@
+Use python via the PATH, rather than hardcoding /usr/bin/python
+
+Upstream-Status: Pending
+
+Signed-off-by: Christopher Larson <[email protected]>
+
+--- opkg-utils.orig/opkg-list-fields
++++ opkg-utils/opkg-list-fields
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, opkg
+ 
+--- opkg-utils.orig/opkg-make-index
++++ opkg-utils/opkg-make-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, os, posixpath
+ from glob import glob
+--- opkg-utils.orig/opkg-show-deps
++++ opkg-utils/opkg-show-deps
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, os, posixpath
+ from glob import glob
+--- opkg-utils.orig/opkg-unbuild
++++ opkg-utils/opkg-unbuild
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+ 
+ import sys, os, re
+ 
+--- opkg-utils.orig/opkg-update-index
++++ opkg-utils/opkg-update-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.1
++#!/usr/bin/env python
+ 
+ import sys, os
+ from glob import glob
meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb +2 -1
index 9b94aff..9702131 100644
@@ -8,13 +8,14 @@ RDEPENDS_${PN} = "python"
 RDEPENDS_${PN}_virtclass-native = ""
 SRCREV = "4747"
 PV = "0.1.8+svnr${SRCPV}"
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \
            file://index-ignore-filenotfound.patch \
            file://mtime-int.patch \
            file://add-license-field.patch \
            file://arfile_header_split.patch \
+           file://shebang.patch \
            "
 
 S = "${WORKDIR}/opkg-utils"
Signature · 1 line
1.7.8.1
Applied
#1 lore raw
Quoted 7 lines · Christopher Larson
---
  .../opkg-utils/opkg-utils/shebang.patch            |   46 ++++++++++++++++++++
  meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb |    3 +-
  2 files changed, 48 insertions(+), 1 deletions(-)

create mode 100644 meta/recipes-devtools/opkg-utils/opkg-utils/shebang.patch

Merged into OE-Core

Thanks
Sau!

Quoted 72 lines
meta/recipes-devtools/opkg-utils/opkg-utils/shebang.patch new file +46 -0
new file mode 100644
index 0000000..f6a2ef9
@@ -0,0 +1,46 @@
+Use python via the PATH, rather than hardcoding /usr/bin/python
+
+Upstream-Status: Pending
+
+Signed-off-by: Christopher Larson<[email protected]>
+
+--- opkg-utils.orig/opkg-list-fields
++++ opkg-utils/opkg-list-fields
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+
+ import sys, opkg
+
+--- opkg-utils.orig/opkg-make-index
++++ opkg-utils/opkg-make-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+
+ import sys, os, posixpath
+ from glob import glob
+--- opkg-utils.orig/opkg-show-deps
++++ opkg-utils/opkg-show-deps
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+
+ import sys, os, posixpath
+ from glob import glob
+--- opkg-utils.orig/opkg-unbuild
++++ opkg-utils/opkg-unbuild
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+
+ import sys, os, re
+
+--- opkg-utils.orig/opkg-update-index
++++ opkg-utils/opkg-update-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.1
++#!/usr/bin/env python
+
+ import sys, os
+ from glob import glob
meta/recipes-devtools/opkg-utils/opkg-utils_svn.bb +2 -1
index 9b94aff..9702131 100644
@@ -8,13 +8,14 @@ RDEPENDS_${PN} = "python"
  RDEPENDS_${PN}_virtclass-native = ""
  SRCREV = "4747"
  PV = "0.1.8+svnr${SRCPV}"
-PR = "r6"
+PR = "r7"
 
  SRC_URI = "svn://svn.openmoko.org/trunk/src/host/;module=opkg-utils;proto=http \
             file://index-ignore-filenotfound.patch \
             file://mtime-int.patch \
             file://add-license-field.patch \
             file://arfile_header_split.patch \
+           file://shebang.patch \
             "
 
  S = "${WORKDIR}/opkg-utils"