Skip to contentSkip to conversation

python-pyparted: inherit pkgconfig

PATCH New Martin Jansa 1 participant 3 messages Oct 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 python-pyparted: inherit pkgconfig

* otherwise fails when searching for libparted:
http://errors.yoctoproject.org/Errors/Details/614897/

DEBUG: Executing shell function do_configure Traceback (most recent call last):
File "setup.py", line 60, in <module>
check_mod_version('libparted', need_libparted_version)
File "setup.py", line 54, in check_mod_version

    modversion = subprocess.check_output(["pkg-config", "--modversion", module]).decode('utf-8').split()[0]

File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/python-pyparted/3.11.4+gitAUTOINC+104ca13567-r0/recipe-sysroot-native/usr/lib/python2.7/subprocess.py", line 216, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/python-pyparted/3.11.4+gitAUTOINC+104ca13567-r0/recipe-sysroot-native/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/python-pyparted/3.11.4+gitAUTOINC+104ca13567-r0/recipe-sysroot-native/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

---
 recipes-extended/python-pyparted/python-pyparted_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/python-pyparted/python-pyparted_git.bb +1 -1
index 76981be..b5d6ef4 100644
@@ -27,7 +27,7 @@ RDEPENDS:${PN}:class-target += " \
 "
 RDEPENDS:${PN}:class-native = ""
 
-inherit distutils
+inherit distutils pkgconfig
 
 RDEPENDS:${PN} += "python-stringold python-codecs python-math python-subprocess"
 RDEPENDS:${PN}:class-native = ""
Signature · 1 line
2.32.0
#1 lore raw

PATCH 2/3 python-systemd: inherit pkgconfig

* otherwise fails when searching for libsystemd-journal:
http://errors.yoctoproject.org/Errors/Details/614895/

DEBUG: Executing shell function do_configure
Traceback (most recent call last):
File "setup.py", line 55, in <module>

    **lib('libsystemd', 'libsystemd-journal', **defines))

File "setup.py", line 40, in lib
status, result = pkgconfig(name, **kw)
File "setup.py", line 18, in pkgconfig
status, result = call(pkgconf, '--libs', '--cflags', package)
File "setup.py", line 8, in call
universal_newlines=True)
File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/python-systemd/234-r0/recipe-sysroot-native/usr/lib/python2.7/subprocess.py", line 394, in __init__
errread, errwrite)
File "TOPDIR/tmp-glibc/work/core2-64-oe-linux/python-systemd/234-r0/recipe-sysroot-native/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

---
 recipes-devtools/python/python-systemd_234.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-devtools/python/python-systemd_234.bb +1 -1
index 907ea99..fd657ed 100644
@@ -8,7 +8,7 @@ DEPENDS += "systemd (<=234)"
 RDEPENDS:${PN} += "systemd ${PYTHON_PN}-syslog ${PYTHON_PN}-logging"
 REQUIRED_DISTRO_FEATURES = "systemd"
 
-inherit pypi features_check setuptools
+inherit pypi features_check setuptools pkgconfig
 
 SRC_URI[md5sum] = "5071ea5bcb976186e92a3f5e75df221d"
 SRC_URI[sha256sum] = "fd0e44bf70eadae45aadc292cb0a7eb5b0b6372cd1b391228047d33895db83e7"
Signature · 1 line
2.32.0
#2 lore raw

PATCH 3/3 python-m2crypto, python-pywbem, openlmi-tools: blacklist due to openssl-3

In reply to Martin Jansa

* python-m2crypto fails to build with openssl-3.0:

http://errors.yoctoproject.org/Errors/Details/614896/
SWIG/_m2crypto_wrap.c: In function 'init_m2crypto':
SWIG/_m2crypto_wrap.c:32981:102: error: 'RSA_SSLV23_PADDING' undeclared (first use in this function); did you mean 'RSA_NO_PADDING'?

32981 |   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "sslv23_padding",SWIG_From_int((int)(RSA_SSLV23_PADDING)));
      |                                                                                                      ^~~~~~~~~~~~~~~~~~
      |                                                                                                      RSA_NO_PADDING

* python-pywbem, openlmi-tools depend on python-m2crypto

---
 conf/distro/include/python2-target-recipes-blacklist.inc | 4 ++--
 recipes-devtools/python/python-m2crypto_0.30.1.bb        | 3 ++-
 recipes-extended/pywbem/python-pywbem_0.15.0.bb          | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)
conf/distro/include/python2-target-recipes-blacklist.inc +2 -2
index 71833dd..9480297 100644
@@ -8,5 +8,5 @@ RDEPENDS:packagegroup-meta-oe-dbs-python2:remove = "${@bb.utils.contains('I_SWEA
 PNBLACKLIST[lio-utils] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
 RDEPENDS:packagegroup-meta-oe-support-python2:remove = "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'lio-utils', d)}"
 # meta-oe/recipes-extended/openlmi/openlmi-tools_0.10.5.bb
-PNBLACKLIST[openlmi-tools] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
-RDEPENDS:packagegroup-meta-oe-extended-python2:remove = "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'openlmi-tools', d)}"
+PNBLACKLIST[openlmi-tools] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', 'depends on python-m2crypto which fails to build with openssl-3', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
+RDEPENDS:packagegroup-meta-oe-extended-python2:remove = "openlmi-tools"
recipes-devtools/python/python-m2crypto_0.30.1.bb +2 -1
index 6bd6170..5c595f8 100644
@@ -63,4 +63,5 @@ do_configure:prepend() {
 
 BBCLASSEXTEND = "native"
 
-PNBLACKLIST[python-m2crypto] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
+PNBLACKLIST[python-m2crypto] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', 'Not compatible with openssl-3, http://errors.yoctoproject.org/Errors/Details/614896/ SWIG/_m2crypto_wrap.c:32981:102: error: RSA_SSLV23_PADDING undeclared (first use in this function); did you mean RSA_NO_PADDING?', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
+PNBLACKLIST[python-m2crypto-native] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', 'Not compatible with openssl-3, http://errors.yoctoproject.org/Errors/Details/614896/ SWIG/_m2crypto_wrap.c:32981:102: error: RSA_SSLV23_PADDING undeclared (first use in this function); did you mean RSA_NO_PADDING?', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
recipes-extended/pywbem/python-pywbem_0.15.0.bb +1 -1
index 6661ac5..6604452 100644
@@ -67,4 +67,4 @@ ALTERNATIVE_PRIORITY = "30"
 
 BBCLASSEXTEND = "native"
 
-PNBLACKLIST[python-pywbem] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', '', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
+PNBLACKLIST[python-pywbem] ?= "${@bb.utils.contains('I_SWEAR_TO_MIGRATE_TO_PYTHON3', 'yes', 'depends on python-m2crypto which fails to build with openssl-3', 'python2 is out of support for long time, read https://www.python.org/doc/sunset-python-2/ https://python3statement.org/ and if you really have to temporarily use this, then set I_SWEAR_TO_MIGRATE_TO_PYTHON3 to "yes"', d)}"
Signature · 1 line
2.32.0