diff options
| author | Andrey Zhizhikin <andrey.z@gmail.com> | 2020-01-27 21:04:14 +0000 | 
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2020-01-27 13:10:31 -0800 | 
| commit | 70a5edc4b52e9a615e86284ee60f992e20da1017 (patch) | |
| tree | 4fdfc4f771e94b5f2942035d19f4d1a09ff68a1a | |
| parent | 51bff30e032a29bfcea5b1307a8f1087f19d1ff8 (diff) | |
| download | meta-openembedded-70a5edc4b52e9a615e86284ee60f992e20da1017.tar.gz | |
libhugetlbfs: update recipe to use python3
Update recipe to use python3 since python2 is EOL and has been dropped
from OE-Core.
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch | 29 | ||||
| -rw-r--r-- | meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | 3 | 
2 files changed, 31 insertions, 1 deletions
| diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch new file mode 100644 index 0000000000..e45f283b38 --- /dev/null +++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From b77c61de4d88d2c6e5d31f4f5a5877cc4c61272e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Andrey Zhizhikin <andrey.z@gmail.com> | ||
| 3 | Date: Mon, 27 Jan 2020 17:27:55 +0000 | ||
| 4 | Subject: [PATCH] huge_page_setup_helper: use python3 interpreter | ||
| 5 | |||
| 6 | Setup helper script is already prepared to be used with python3, use the | ||
| 7 | interpreter explicitly. This removes dependency to python2 and will not | ||
| 8 | fail the QA check. | ||
| 9 | |||
| 10 | Upstream-Status: Inappropriate [OE-specific] | ||
| 11 | |||
| 12 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> | ||
| 13 | --- | ||
| 14 | huge_page_setup_helper.py | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py | ||
| 18 | index a9ba2bf..7ba0c92 100755 | ||
| 19 | --- a/huge_page_setup_helper.py | ||
| 20 | +++ b/huge_page_setup_helper.py | ||
| 21 | @@ -1,4 +1,4 @@ | ||
| 22 | -#!/usr/bin/python | ||
| 23 | +#!/usr/bin/env python3 | ||
| 24 | |||
| 25 | # | ||
| 26 | # Tool to set up Linux large page support with minimal effort | ||
| 27 | -- | ||
| 28 | 2.17.1 | ||
| 29 | |||
| diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb index f1a4efba26..4768d7b63a 100644 --- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb | |||
| @@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1" | |||
| 4 | LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1" | 4 | LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1" | 
| 5 | 5 | ||
| 6 | DEPENDS = "sysfsutils" | 6 | DEPENDS = "sysfsutils" | 
| 7 | RDEPENDS_${PN} += "bash python python-io python-lang python-subprocess python-resource" | 7 | RDEPENDS_${PN} += "bash python3-core" | 
| 8 | RDEPENDS_${PN}-tests += "bash python3-core" | 8 | RDEPENDS_${PN}-tests += "bash python3-core" | 
| 9 | 9 | ||
| 10 | PV = "2.22" | 10 | PV = "2.22" | 
| @@ -25,6 +25,7 @@ SRC_URI = " \ | |||
| 25 | file://0005-Include-dirent.h-for-ino_t.patch \ | 25 | file://0005-Include-dirent.h-for-ino_t.patch \ | 
| 26 | file://0006-include-limits.h-for-PATH_MAX.patch \ | 26 | file://0006-include-limits.h-for-PATH_MAX.patch \ | 
| 27 | file://0001-tests-add-explicit-permissions-to-open-call.patch \ | 27 | file://0001-tests-add-explicit-permissions-to-open-call.patch \ | 
| 28 | file://0001-huge_page_setup_helper-use-python3-interpreter.patch \ | ||
| 28 | " | 29 | " | 
| 29 | 30 | ||
| 30 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | 31 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | 
