Skip to contentSkip to conversation

03/03: libhugetlbfs: update recipe to use python3

oe-commits Andreas Müller 3 participants 3 messages Jan 27, 2020 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 62 lines · On Mon, Jan 27, 2020 at 7:11 PM <[email protected]> wrote:

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 60fb9cfa741849f43e5f234dd5a95ec2d6cb5e48
Author: Andrey Zhizhikin <[email protected]>
AuthorDate: Mon Jan 27 17:36:08 2020 +0000

libhugetlbfs: update recipe to use python3

Update recipe to use python3 since python2 is EOL and has been dropped from OE-Core.

---
 ...page_setup_helper-use-python3-interpreter.patch | 29 ++++++++++++++++++++++
 .../libhugetlbfs/libhugetlbfs_git.bb               |  3 ++-
 2 files changed, 31 insertions(+), 1 deletion(-)
meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch new file +29 -0
new file mode 100644
index 0000000..e45f283
@@ -0,0 +1,29 @@
+From b77c61de4d88d2c6e5d31f4f5a5877cc4c61272e Mon Sep 17 00:00:00 2001
+From: Andrey Zhizhikin <[email protected]>
+Date: Mon, 27 Jan 2020 17:27:55 +0000
+Subject: [PATCH] huge_page_setup_helper: use python3 interpreter
+
+Setup helper script is already prepared to be used with python3, use the
+interpreter explicitly. This removes dependency to python2 and will not
+fail the QA check.
+
+Upstream-Status: Inappropriate [OE-specific]
+
+Signed-off-by: Andrey Zhizhikin <[email protected]>
+---
+ huge_page_setup_helper.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py
+index a9ba2bf..7ba0c92 100755
+--- a/huge_page_setup_helper.py
++++ b/huge_page_setup_helper.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python3
+
+ #
+ # Tool to set up Linux large page support with minimal effort
+--
+2.17.1
+
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +0 -0
index f1a4efb..7f7f838 100644

meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb LICENSE = "LGPLv2.1" · line 7

Quoted 5 lines
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +1 -1
@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
 DEPENDS = "sysfsutils"
-RDEPENDS_${PN} += "bash python python-io python-lang python-subprocess python-resource"
+RDEPENDS_${PN} += "bash python3 python3-core"

Minor nit: python3 package is empty and does not create any rdepends so it can be removed.

Andreas

Quoted 20 lines
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +1 -1
 RDEPENDS_${PN}-tests += "bash python3-core"
 
 PV = "2.22"
@@ -25,6 +25,7 @@ SRC_URI = " \
     file://0005-Include-dirent.h-for-ino_t.patch \
     file://0006-include-limits.h-for-PATH_MAX.patch \
     file://0001-tests-add-explicit-permissions-to-open-call.patch \
+    file://0001-huge_page_setup_helper-use-python3-interpreter.patch \
 "
 
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
 
--

To stop receiving notification emails like this one, please contact the administrator of this repository.
--
_______________________________________________
Openembedded-commits mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-commits

#3 lore raw
Quoted 66 lines · Andreas Müller
Quoted 64 lines · On Mon, Jan 27, 2020 at 7:11 PM <[email protected]> wrote:

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 60fb9cfa741849f43e5f234dd5a95ec2d6cb5e48
Author: Andrey Zhizhikin <[email protected]>
AuthorDate: Mon Jan 27 17:36:08 2020 +0000

libhugetlbfs: update recipe to use python3

Update recipe to use python3 since python2 is EOL and has been dropped from OE-Core.

---
 ...page_setup_helper-use-python3-interpreter.patch | 29 ++++++++++++++++++++++
 .../libhugetlbfs/libhugetlbfs_git.bb               |  3 ++-
 2 files changed, 31 insertions(+), 1 deletion(-)
meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch new file +29 -0
new file mode 100644
index 0000000..e45f283
@@ -0,0 +1,29 @@
+From b77c61de4d88d2c6e5d31f4f5a5877cc4c61272e Mon Sep 17 00:00:00 2001
+From: Andrey Zhizhikin <[email protected]>
+Date: Mon, 27 Jan 2020 17:27:55 +0000
+Subject: [PATCH] huge_page_setup_helper: use python3 interpreter
+
+Setup helper script is already prepared to be used with python3, use the
+interpreter explicitly. This removes dependency to python2 and will not
+fail the QA check.
+
+Upstream-Status: Inappropriate [OE-specific]
+
+Signed-off-by: Andrey Zhizhikin <[email protected]>
+---
+ huge_page_setup_helper.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py
+index a9ba2bf..7ba0c92 100755
+--- a/huge_page_setup_helper.py
++++ b/huge_page_setup_helper.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python3
+
+ #
+ # Tool to set up Linux large page support with minimal effort
+--
+2.17.1
+
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +0 -0
index f1a4efb..7f7f838 100644
@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
Quoted 5 lines

meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb LICENSE = "LGPLv2.1" · line 7

Quoted 3 lines
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +1 -1
 DEPENDS = "sysfsutils"
-RDEPENDS_${PN} += "bash python python-io python-lang python-subprocess python-resource"
+RDEPENDS_${PN} += "bash python3 python3-core"

Minor nit: python3 package is empty and does not create any rdepends so it can be removed.

Ups, did missed that one... Should I update the patch so this one could be dropped? I understood it is already staged in -next.

Quoted 22 lines

Andreas

Quoted 20 lines
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +1 -1
 RDEPENDS_${PN}-tests += "bash python3-core"
 
 PV = "2.22"
@@ -25,6 +25,7 @@ SRC_URI = " \
     file://0005-Include-dirent.h-for-ino_t.patch \
     file://0006-include-limits.h-for-PATH_MAX.patch \
     file://0001-tests-add-explicit-permissions-to-open-call.patch \
+    file://0001-huge_page_setup_helper-use-python3-interpreter.patch \
 "
 
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
 
--

To stop receiving notification emails like this one, please contact the administrator of this repository.
--
_______________________________________________
Openembedded-commits mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-commits

Signature · 2 lines
Regards,
Andrey.
#4 lore raw
Quoted 68 lines · Andrey Zhizhikin
Quoted 66 lines · Andreas Müller
Quoted 64 lines · On Mon, Jan 27, 2020 at 7:11 PM <[email protected]> wrote:

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 60fb9cfa741849f43e5f234dd5a95ec2d6cb5e48
Author: Andrey Zhizhikin <[email protected]>
AuthorDate: Mon Jan 27 17:36:08 2020 +0000

libhugetlbfs: update recipe to use python3

Update recipe to use python3 since python2 is EOL and has been dropped from OE-Core.

---
 ...page_setup_helper-use-python3-interpreter.patch | 29 ++++++++++++++++++++++
 .../libhugetlbfs/libhugetlbfs_git.bb               |  3 ++-
 2 files changed, 31 insertions(+), 1 deletion(-)
meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch new file +29 -0
new file mode 100644
index 0000000..e45f283
@@ -0,0 +1,29 @@
+From b77c61de4d88d2c6e5d31f4f5a5877cc4c61272e Mon Sep 17 00:00:00 2001
+From: Andrey Zhizhikin <[email protected]>
+Date: Mon, 27 Jan 2020 17:27:55 +0000
+Subject: [PATCH] huge_page_setup_helper: use python3 interpreter
+
+Setup helper script is already prepared to be used with python3, use the
+interpreter explicitly. This removes dependency to python2 and will not
+fail the QA check.
+
+Upstream-Status: Inappropriate [OE-specific]
+
+Signed-off-by: Andrey Zhizhikin <[email protected]>
+---
+ huge_page_setup_helper.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py
+index a9ba2bf..7ba0c92 100755
+--- a/huge_page_setup_helper.py
++++ b/huge_page_setup_helper.py
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python3
+
+ #
+ # Tool to set up Linux large page support with minimal effort
+--
+2.17.1
+
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +0 -0
index f1a4efb..7f7f838 100644
@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
Quoted 8 lines
Quoted 5 lines

meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb LICENSE = "LGPLv2.1" · line 7

Quoted 3 lines
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +1 -1
 DEPENDS = "sysfsutils"
-RDEPENDS_${PN} += "bash python python-io python-lang python-subprocess python-resource"
+RDEPENDS_${PN} += "bash python3 python3-core"

Minor nit: python3 package is empty and does not create any rdepends so it can be removed.

Ups, did missed that one... Should I update the patch so this one could be dropped? I understood it is already staged in -next.

next is rebased regularly, this is used for CI purposes, so please go ahead and resend v2

Quoted 34 lines
Quoted 15 lines

Andreas

Quoted 12 lines
meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb +1 -0
 RDEPENDS_${PN}-tests += "bash python3-core"
 
 PV = "2.22"
@@ -25,6 +25,7 @@ SRC_URI = " \
     file://0005-Include-dirent.h-for-ino_t.patch \
     file://0006-include-limits.h-for-PATH_MAX.patch \
     file://0001-tests-add-explicit-permissions-to-open-call.patch \
+    file://0001-huge_page_setup_helper-use-python3-interpreter.patch \
 "
 
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
Quoted 8 lines
Quoted 8 lines

--
To stop receiving notification emails like this one, please contact the administrator of this repository.
--
_______________________________________________
Openembedded-commits mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-commits

--
Regards,
Andrey.
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel