Skip to contentSkip to conversation

python3-prctl: Upgrade 1.7 -> 1.8.1

PATCH Superseded Leon Anavi 2 participants 2 messages Jan 29, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/1 python3-prctl: Upgrade 1.7 -> 1.8.1

Upgrade to release 1.8.1:

- Master was renamed to main
- Backwards compatibility fixes
- Install dependencies before trying to build/publish

---
 .../0001-support-cross-complication.patch             | 11 ++++++-----
 .../{python3-prctl_1.7.bb => python3-prctl_1.8.1.bb}  |  8 ++++----
 2 files changed, 10 insertions(+), 9 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-prctl_1.7.bb => python3-prctl_1.8.1.bb} (70%)
meta-python/recipes-devtools/python/python3-prctl/0001-support-cross-complication.patch +6 -5
index 775ae1b2e..98d250c74 100644
@@ -1,4 +1,4 @@
-From 9a16800738547d117284354bbcad7dd77d9d0344 Mon Sep 17 00:00:00 2001
+From 5f3911737c63a098caf73f1365320fe1b3a7638b Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Thu, 21 Apr 2016 03:05:57 -0400
 Subject: [PATCH] support cross-complication
@@ -6,12 +6,13 @@ Subject: [PATCH] support cross-complication
 Upstream-Status: Inappropriate [oe specific]
 
 Signed-off-by: Hongxu Jia <[email protected]>
+Signed-off-by: Leon Anavi <[email protected]>
 ---
  setup.py | 35 -----------------------------------
  1 file changed, 35 deletions(-)
 
 diff --git a/setup.py b/setup.py
-index 658d1a5..e8be7eb 100755
+index eb83cfe..3f9567b 100755
 --- a/setup.py
 +++ b/setup.py
 @@ -13,41 +13,6 @@ import sys
@@ -38,13 +39,13 @@ index 658d1a5..e8be7eb 100755
 -    sys.stderr.write("You need to install gcc to build this module\n")
 -    sys.exit(1)
 -
--sp = subprocess.Popen(['cpp'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+-sp = subprocess.Popen(['cpp'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=os.environ)
 -sp.communicate('#include <sys/prctl.h>\n'.encode())
 -if sp.returncode:
 -    sys.stderr.write("You need to install libc development headers to build this module\n")
 -    exit = True
 -
--sp = subprocess.Popen(['cpp'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+-sp = subprocess.Popen(['cpp'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=os.environ)
 -sp.communicate('#include <sys/capability.h>\n'.encode())
 -if sp.returncode:
 -    sys.stderr.write("You need to install libcap development headers to build this module\n")
@@ -57,5 +58,5 @@ index 658d1a5..e8be7eb 100755
                     sources = ['_prctlmodule.c'],
                     depends = ['securebits.h'],
 -- 
-2.8.1
+2.17.1
 
meta-python/recipes-devtools/python/python3-prctl_1.8.1.bb renamed from meta-python/recipes-devtools/python/python3-prctl_1.7.bb +4 -4
similarity index 70%
rename from meta-python/recipes-devtools/python/python3-prctl_1.7.bb
rename to meta-python/recipes-devtools/python/python3-prctl_1.8.1.bb
index 54620a066..b87a470b4 100644
@@ -5,15 +5,15 @@ limitations in C and linux. This module provides a nice non-messy python(ic) \
 interface."
 SECTION = "devel/python"
 LICENSE = "GPLv3"
-LIC_FILES_CHKSUM = "file://COPYING;md5=23ff9f50449d4bd0e513df16e4d9755f"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1475481f9ec754d758859bd2c75f6f6f"
 
 S = "${WORKDIR}/git"
 B = "${S}"
 
-SRCREV = "57cd0a7cad76e8f8792eea22ee5b5d17bae0a90f"
-PV = "1.7+git${SRCPV}"
+SRCREV = "5e12e398eb5c4e30d7b29b02458c76d2cc780700"
+PV = "1.8.1+git${SRCPV}"
 
-SRC_URI = "git://github.com/seveas/python-prctl;branch=master \
+SRC_URI = "git://github.com/seveas/python-prctl;branch=main\
            file://0001-support-cross-complication.patch \
 "
 inherit setuptools3 python3native
Signature · 1 line
2.17.1
#1 lore raw
Quoted 72 lines · Leon Anavi

Upgrade to release 1.8.1:

- Master was renamed to main
- Backwards compatibility fixes
- Install dependencies before trying to build/publish

---
 .../0001-support-cross-complication.patch             | 11 ++++++-----
 .../{python3-prctl_1.7.bb => python3-prctl_1.8.1.bb}  |  8 ++++----
 2 files changed, 10 insertions(+), 9 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-prctl_1.7.bb => python3-prctl_1.8.1.bb} (70%)
meta-python/recipes-devtools/python/python3-prctl/0001-support-cross-complication.patch +6 -5
index 775ae1b2e..98d250c74 100644
@@ -1,4 +1,4 @@
-From 9a16800738547d117284354bbcad7dd77d9d0344 Mon Sep 17 00:00:00 2001
+From 5f3911737c63a098caf73f1365320fe1b3a7638b Mon Sep 17 00:00:00 2001
 From: Hongxu Jia <[email protected]>
 Date: Thu, 21 Apr 2016 03:05:57 -0400
 Subject: [PATCH] support cross-complication
@@ -6,12 +6,13 @@ Subject: [PATCH] support cross-complication
 Upstream-Status: Inappropriate [oe specific]
 
 Signed-off-by: Hongxu Jia <[email protected]>
+Signed-off-by: Leon Anavi <[email protected]>
 ---
  setup.py | 35 -----------------------------------
  1 file changed, 35 deletions(-)
 
 diff --git a/setup.py b/setup.py
-index 658d1a5..e8be7eb 100755
+index eb83cfe..3f9567b 100755
 --- a/setup.py
 +++ b/setup.py
 @@ -13,41 +13,6 @@ import sys
@@ -38,13 +39,13 @@ index 658d1a5..e8be7eb 100755
 -    sys.stderr.write("You need to install gcc to build this module\n")
 -    sys.exit(1)
 -
--sp = subprocess.Popen(['cpp'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+-sp = subprocess.Popen(['cpp'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=os.environ)
 -sp.communicate('#include <sys/prctl.h>\n'.encode())
 -if sp.returncode:
 -    sys.stderr.write("You need to install libc development headers to build this module\n")
 -    exit = True
 -
--sp = subprocess.Popen(['cpp'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+-sp = subprocess.Popen(['cpp'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=os.environ)
 -sp.communicate('#include <sys/capability.h>\n'.encode())
 -if sp.returncode:
 -    sys.stderr.write("You need to install libcap development headers to build this module\n")
@@ -57,5 +58,5 @@ index 658d1a5..e8be7eb 100755
                     sources = ['_prctlmodule.c'],
                     depends = ['securebits.h'],
 --
-2.8.1
+2.17.1
 
meta-python/recipes-devtools/python/python3-prctl_1.8.1.bb renamed from meta-python/recipes-devtools/python/python3-prctl_1.7.bb +0 -0
similarity index 70%
rename from meta-python/recipes-devtools/python/python3-prctl_1.7.bb
rename to meta-python/recipes-devtools/python/python3-prctl_1.8.1.bb
index 54620a066..b87a470b4 100644
@@ -5,15 +5,15 @@ limitations in C and linux. This module provides a nice non-messy python(ic) \
 interface."
 SECTION = "devel/python"

meta-python/recipes-devtools/python/python3-prctl_1.8.1.bb limitations in C and linux. This module provides a nice non-messy python(ic) \ · line 13

Quoted 10 lines
meta-python/recipes-devtools/python/python3-prctl_1.8.1.bb renamed from meta-python/recipes-devtools/python/python3-prctl_1.7.bb +2 -3
 LICENSE = "GPLv3"
-LIC_FILES_CHKSUM = "file://COPYING;md5=23ff9f50449d4bd0e513df16e4d9755f"
+LIC_FILES_CHKSUM = "file://COPYING;md5=1475481f9ec754d758859bd2c75f6f6f"
 
 S = "${WORKDIR}/git"
 B = "${S}"
 
-SRCREV = "57cd0a7cad76e8f8792eea22ee5b5d17bae0a90f"
-PV = "1.7+git${SRCPV}"
+SRCREV = "5e12e398eb5c4e30d7b29b02458c76d2cc780700"

could you describe why this changed ?

Quoted 13 lines
meta-python/recipes-devtools/python/python3-prctl_1.8.1.bb renamed from meta-python/recipes-devtools/python/python3-prctl_1.7.bb +2 -2
+PV = "1.8.1+git${SRCPV}"
 
-SRC_URI = "git://github.com/seveas/python-prctl;branch=master \
+SRC_URI = "git://github.com/seveas/python-prctl;branch=main\
            file://0001-support-cross-complication.patch \
 "
 inherit setuptools3 python3native
--

2.17.1