[oe-commits] [meta-openembedded] 02/10: libhugetlbfs: update patch to make it work for python3

git at git.openembedded.org git at git.openembedded.org
Mon Dec 23 23:07:33 UTC 2019


This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 7c12e62bedea53400cc826e602197e2d1ff12625
Author: Changqing Li <changqing.li at windriver.com>
AuthorDate: Mon Dec 23 14:42:37 2019 +0800

    libhugetlbfs: update patch to make it work for python3
    
    Fix error:
    TypeError: a bytes-like object is required, not 'str'
    
    Signed-off-by: Changqing Li <changqing.li at windriver.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 .../0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch
index 34a6220..83934ab 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch
@@ -12,6 +12,9 @@ Signed-off-by: Ting Liu <b28495 at freescale.com>
 
 Update for 2.22.
 Signed-off-by: Zheng Ruoqin <zhengrq.fnst at cn.fujitsu.com>
+
+Update to work for python3
+Signed-off-by: Changqing Li <changqing.li at windriver.com>
 ---
  tests/run_tests.py | 12 +++++++++++-
  1 file changed, 11 insertions(+), 1 deletion(-)
@@ -36,7 +39,7 @@ index 018264d..0aabcd1 100755
 +        return sizes
 +    except OSError:
 +        return sizes
-+    out = p.stdout.read().strip()
++    out = p.stdout.read().decode().strip()
 +
      if rc != 0 or out == "":
          return sizes

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list