[oe] [PATCH] htop: use Python 3

Ross Burton ross.burton at intel.com
Tue Nov 26 21:02:06 UTC 2019


Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta-oe/recipes-support/htop/files/py3.patch | 15 +++++++++++++++
 meta-oe/recipes-support/htop/htop_2.2.0.bb   |  3 ++-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 meta-oe/recipes-support/htop/files/py3.patch

diff --git a/meta-oe/recipes-support/htop/files/py3.patch b/meta-oe/recipes-support/htop/files/py3.patch
new file mode 100644
index 0000000000..fd28d51d5c
--- /dev/null
+++ b/meta-oe/recipes-support/htop/files/py3.patch
@@ -0,0 +1,15 @@
+Use Python 3 explicitly instead of python, which we don't export to HOSTTOOL.
+
+Upstream-Status: Pending
+Signed-off-by: Ross Burton <ross.burton at intel.com>
+
+diff --git a/scripts/MakeHeader.py b/scripts/MakeHeader.py
+index 349531b..3336dea 100755
+--- a/scripts/MakeHeader.py
++++ b/scripts/MakeHeader.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/bin/env python3
+ import os, sys, string, io
+ try:
+    from StringIO import StringIO
diff --git a/meta-oe/recipes-support/htop/htop_2.2.0.bb b/meta-oe/recipes-support/htop/htop_2.2.0.bb
index 01c856d123..5724c5b8c6 100644
--- a/meta-oe/recipes-support/htop/htop_2.2.0.bb
+++ b/meta-oe/recipes-support/htop/htop_2.2.0.bb
@@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=c312653532e8e669f30e5ec8bdc23be3"
 DEPENDS = "ncurses"
 
 SRC_URI = "http://hisham.hm/htop/releases/${PV}/${BP}.tar.gz \
-           file://0001-Use-pkg-config.patch"
+           file://0001-Use-pkg-config.patch \
+           file://py3.patch"
 SRC_URI[md5sum] = "0d816b6beed31edc75babcfbf863ffa8"
 SRC_URI[sha256sum] = "d9d6826f10ce3887950d709b53ee1d8c1849a70fa38e91d5896ad8cbc6ba3c57"
 
-- 
2.20.1



More information about the Openembedded-devel mailing list