openembedded-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [meta-python2][PATCH 1/3] python-pyparted: inherit pkgconfig
@ 2021-10-26 15:03 Martin Jansa
  2021-10-26 15:03 ` [meta-python2][PATCH 2/3] python-systemd: " Martin Jansa
  2021-10-26 15:03 ` [meta-python2][PATCH 3/3] python-m2crypto, python-pywbem, openlmi-tools: blacklist due to openssl-3 Martin Jansa
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Jansa @ 2021-10-26 15:03 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Martin Jansa

* 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

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 recipes-extended/python-pyparted/python-pyparted_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-extended/python-pyparted/python-pyparted_git.bb b/recipes-extended/python-pyparted/python-pyparted_git.bb
index 76981be..b5d6ef4 100644
--- a/recipes-extended/python-pyparted/python-pyparted_git.bb
+++ b/recipes-extended/python-pyparted/python-pyparted_git.bb
@@ -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 = ""
-- 
2.32.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [meta-python2][PATCH 2/3] python-systemd: inherit pkgconfig
  2021-10-26 15:03 [meta-python2][PATCH 1/3] python-pyparted: inherit pkgconfig Martin Jansa
@ 2021-10-26 15:03 ` Martin Jansa
  2021-10-26 15:03 ` [meta-python2][PATCH 3/3] python-m2crypto, python-pywbem, openlmi-tools: blacklist due to openssl-3 Martin Jansa
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Jansa @ 2021-10-26 15:03 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Martin Jansa

* 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

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 recipes-devtools/python/python-systemd_234.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-devtools/python/python-systemd_234.bb b/recipes-devtools/python/python-systemd_234.bb
index 907ea99..fd657ed 100644
--- a/recipes-devtools/python/python-systemd_234.bb
+++ b/recipes-devtools/python/python-systemd_234.bb
@@ -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"
-- 
2.32.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [meta-python2][PATCH 3/3] python-m2crypto, python-pywbem, openlmi-tools: blacklist due to openssl-3
  2021-10-26 15:03 [meta-python2][PATCH 1/3] python-pyparted: inherit pkgconfig Martin Jansa
  2021-10-26 15:03 ` [meta-python2][PATCH 2/3] python-systemd: " Martin Jansa
@ 2021-10-26 15:03 ` Martin Jansa
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Jansa @ 2021-10-26 15:03 UTC (permalink / raw)
  To: openembedded-devel; +Cc: 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

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 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(-)

diff --git a/conf/distro/include/python2-target-recipes-blacklist.inc b/conf/distro/include/python2-target-recipes-blacklist.inc
index 71833dd..9480297 100644
--- a/conf/distro/include/python2-target-recipes-blacklist.inc
+++ b/conf/distro/include/python2-target-recipes-blacklist.inc
@@ -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"
diff --git a/recipes-devtools/python/python-m2crypto_0.30.1.bb b/recipes-devtools/python/python-m2crypto_0.30.1.bb
index 6bd6170..5c595f8 100644
--- a/recipes-devtools/python/python-m2crypto_0.30.1.bb
+++ b/recipes-devtools/python/python-m2crypto_0.30.1.bb
@@ -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)}"
diff --git a/recipes-extended/pywbem/python-pywbem_0.15.0.bb b/recipes-extended/pywbem/python-pywbem_0.15.0.bb
index 6661ac5..6604452 100644
--- a/recipes-extended/pywbem/python-pywbem_0.15.0.bb
+++ b/recipes-extended/pywbem/python-pywbem_0.15.0.bb
@@ -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)}"
-- 
2.32.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-26 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-26 15:03 [meta-python2][PATCH 1/3] python-pyparted: inherit pkgconfig Martin Jansa
2021-10-26 15:03 ` [meta-python2][PATCH 2/3] python-systemd: " Martin Jansa
2021-10-26 15:03 ` [meta-python2][PATCH 3/3] python-m2crypto, python-pywbem, openlmi-tools: blacklist due to openssl-3 Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).