python3-pyinotify: remove as unmaintained
PATCH 1/20 python3-pyinotify: remove as unmaintained
There hasn't been a release in years, and python 3.12 is no longer compatible as it has removed the smtpd module.
https://github.com/seb-m/pyinotify
--- .../packagegroups/packagegroup-meta-python.bb | 1 - .../python/python3-pyinotify_0.9.6.bb | 19 ------------------- 2 files changed, 20 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +0 -1
@@ -321,7 +321,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-pyflakes \ python3-pyhamcrest \ python3-pyiface \ - python3-pyinotify \ python3-pyjks \ python3-pyjwt \ python3-pykickstart \
meta-python/recipes-devtools/python/python3-pyinotify_0.9.6.bb deleted +0 -19
@@ -1,19 +0,0 @@ -DESCRIPTION = "Python pyinotify: Linux filesystem events monitoring" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://COPYING;md5=ab173cade7965b411528464589a08382" - -RDEPENDS:${PN} += "\ - ${PYTHON_PN}-ctypes \ - ${PYTHON_PN}-fcntl \ - ${PYTHON_PN}-io \ - ${PYTHON_PN}-logging \ - ${PYTHON_PN}-misc \ - ${PYTHON_PN}-shell \ - ${PYTHON_PN}-smtpd \ - ${PYTHON_PN}-threading \ -" - -SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406" -SRC_URI[sha256sum] = "9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4" - -inherit pypi setuptools3
Signature · 1 line
2.39.2
PATCH 2/20 python3-supervisor: do not rely on smtpd module
It's not mentioned anywhere in source code, and python 3.12 has removed it.
--- meta-python/recipes-devtools/python/python3-supervisor_4.2.5.bb | 1 - 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-supervisor_4.2.5.bb +0 -1
@@ -17,7 +17,6 @@ RDEPENDS:${PN} = "\ python3-xmlrpc \ python3-resource \ python3-setuptools \ - python3-smtpd \ " SRC_URI += "file://supervisord.conf \
Signature · 1 line
2.39.2
PATCH 3/20 python3-meld3: do not rely on smtpd module
In reply to Alexander KanavinIt's not mentioned anywhere in source code, and python 3.12 has removed it.
--- meta-python/recipes-devtools/python/python3-meld3_2.0.1.bb | 1 - 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-meld3_2.0.1.bb +0 -1
@@ -15,6 +15,5 @@ inherit pypi setuptools3 RDEPENDS:${PN} += " \ python3-cgitb \ - python3-smtpd \ python3-xml \ "
Signature · 1 line
2.39.2
PATCH 4/20 python3-m2crypto: do not rely on smtpd module
In reply to Alexander KanavinIt's not mentioned anywhere in source code, and python 3.12 has removed it.
--- meta-python/recipes-devtools/python/python3-m2crypto_0.40.1.bb | 1 - 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-m2crypto_0.40.1.bb +0 -1
@@ -24,7 +24,6 @@ RDEPENDS:${PN} += "\ ${PYTHON_PN}-netclient \ ${PYTHON_PN}-netserver \ ${PYTHON_PN}-numbers \ - ${PYTHON_PN}-smtpd \ ${PYTHON_PN}-xmlrpc \ "
Signature · 1 line
2.39.2
PATCH 5/20 python3-uinput: remove as unmaintained
In reply to Alexander KanavinBoth homepage and downloads are gone, last release in 2016,
still relies on distutils which is no longer available in python core as of 3.12.
https://pypi.org/project/python-uinput/
--- .../packagegroups/packagegroup-meta-python.bb | 1 - ...time_t-default-on-32bit-architecture.patch | 43 ------------------- ...-use-setuptools-instead-of-distutils.patch | 30 ------------- .../python/python3-uinput_0.11.2.bb | 20 --------- 4 files changed, 94 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-uinput/0001-Deal-with-64bit-time_t-default-on-32bit-architecture.patch delete mode 100644 meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch delete mode 100644 meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +0 -1
@@ -438,7 +438,6 @@ RDEPENDS:packagegroup-meta-python3 = "\ python3-typeguard \ python3-tzlocal \ python3-u-msgpack-python \ - python3-uinput \ python3-ujson \ python3-unidiff \ python3-uritemplate \
meta-python/recipes-devtools/python/python3-uinput/0001-Deal-with-64bit-time_t-default-on-32bit-architecture.patch deleted +0 -43
43 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-uinput/0001-setup-use-setuptools-instead-of-distutils.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From 7a4dde83a9584adb42c7f810d882b1fbf5767e2c Mon Sep 17 00:00:00 2001 -From: Bartosz Golaszewski <[email protected]> -Date: Tue, 24 May 2022 21:43:35 +0200 -Subject: [PATCH] setup: use setuptools instead of distutils - -The latter is deprecated, use setuptools instead. - -Signed-off-by: Bartosz Golaszewski <[email protected]> ---- -Upstream-Status: Pending - - setup.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index 3fa3343..4900b8b 100644 ---- a/setup.py -+++ b/setup.py -@@ -3,7 +3,7 @@ - import errno - import subprocess - --from distutils.core import setup, Extension -+from setuptools import setup, Extension - - libudev_so = "libudev.so.1" - --- -2.34.1 -
meta-python/recipes-devtools/python/python3-uinput_0.11.2.bb deleted +0 -20
@@ -1,20 +0,0 @@ -SUMMARY = "Python interface to Linux uinput kernel module." -HOMEPAGE = "https://pypi.org/project/python-uinput/" -LICENSE = "GPL-3.0-only" -LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" - -SRC_URI += "file://0001-setup-use-setuptools-instead-of-distutils.patch \ - file://0001-Deal-with-64bit-time_t-default-on-32bit-architecture.patch \ -" -SRC_URI[sha256sum] = "99392b676c77b5795b86b7d75274db33fe754fd1e06fb3d58b167c797dc47f0c" - -PYPI_PACKAGE = "python-uinput" - -inherit pypi setuptools3 - -DEPENDS += "udev" -RDEPENDS:${PN} += " \ - python3-ctypes \ - python3-distutils \ -" -RRECOMMENDS:${PN} += "kernel-module-uinput"
Signature · 1 line
2.39.2
PATCH 6/20 python3-mcrypto: rely on setuptools for distutils copy
In reply to Alexander KanavinIt's still used in source tree:
src/M2Crypto/__init__.py: from distutils.version import StrictVersion as Version
--- meta-python/recipes-devtools/python/python3-m2crypto_0.40.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-m2crypto_0.40.1.bb +1 -1
@@ -19,7 +19,7 @@ inherit pypi siteinfo setuptools3 DEPENDS += "openssl swig-native" RDEPENDS:${PN} += "\ ${PYTHON_PN}-datetime \ - ${PYTHON_PN}-distutils \ + ${PYTHON_PN}-setuptools \ ${PYTHON_PN}-logging \ ${PYTHON_PN}-netclient \ ${PYTHON_PN}-netserver \
Signature · 1 line
2.39.2
PATCH 7/20 python3-joblib: do not rely in distutils
In reply to Alexander KanavinUpstream has removed the dependency as of 1.3.0:
https://github.com/joblib/joblib/blob/master/CHANGES.rst
--- meta-python/recipes-devtools/python/python3-joblib_1.3.2.bb | 1 - 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-joblib_1.3.2.bb +0 -1
@@ -8,7 +8,6 @@ SRC_URI[sha256sum] = "92f865e621e17784e7955080b6d042489e3b8e294949cc44c6eac304f5 RDEPENDS:${PN} += " \ python3-asyncio \ - python3-distutils \ python3-json \ python3-multiprocessing \ python3-pprint \
Signature · 1 line
2.39.2
PATCH 8/20 python3-web3: remove distutils dependency
In reply to Alexander KanavinIt's not mentioned in the source tree anymore.
--- meta-python/recipes-devtools/python/python3-web3_6.11.3.bb | 1 - 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-web3_6.11.3.bb +0 -1
@@ -10,7 +10,6 @@ inherit pypi setuptools3 RDEPENDS:${PN} += " \ python3-aiohttp \ - python3-distutils \ python3-eth-account \ python3-idna \ python3-jsonschema \
Signature · 1 line
2.39.2
PATCH 9/20 python3-cppy: remove unused distutils dependency
In reply to Alexander KanavinIt's not mentioned anywhere in source tree.
--- meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-cppy_1.2.1.bb +1 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=0bfb3e39b13587f0028f17baf0e42371" SRC_URI[sha256sum] = "83b43bf17b1085ac15c5debdb42154f138b928234b21447358981f69d0d6fe1b" -RDEPENDS:${PN} += "python3-setuptools python3-distutils" +RDEPENDS:${PN} += "python3-setuptools" inherit pypi python_setuptools_build_meta
Signature · 1 line
2.39.2
PATCH 10/20 python3-pyroute2: remove unused distutils dependency
In reply to Alexander KanavinIt's not mentioned in source tree.
--- meta-python/recipes-devtools/python/python3-pyroute2_0.7.9.bb | 1 - 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-pyroute2_0.7.9.bb +0 -1
@@ -10,7 +10,6 @@ inherit setuptools3 pypi ptest RDEPENDS:${PN} += " \ python3-ctypes \ - python3-distutils \ python3-io \ python3-json \ python3-fcntl \
Signature · 1 line
2.39.2
PATCH 11/20 python3-eventlet: backport a patch to remove distutils dependency
In reply to Alexander Kanavin--- ...o-host-0-is-not-supported-on-OpenInd.patch | 78 +++++++++++++++++++ .../python/python3-eventlet_0.33.3.bb | 2 +- 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-eventlet/0001-tests-getaddrinfo-host-0-is-not-supported-on-OpenInd.patch
meta-python/recipes-devtools/python/python3-eventlet/0001-tests-getaddrinfo-host-0-is-not-supported-on-OpenInd.patch new file +78 -0
@@ -0,0 +1,78 @@ +From ac2f960a50710bb257e87bed4e3c95a746f2a0fe Mon Sep 17 00:00:00 2001 +From: Sergey Shepelev <[email protected]> +Date: Mon, 27 Mar 2023 22:07:15 +0300 +Subject: [PATCH] tests: getaddrinfo(host, 0) is not supported on OpenIndiana + platform + +https://github.com/eventlet/eventlet/issues/791 + +Upstream-Status: Backport +Signed-off-by: Alexander Kanavin <[email protected]> +--- + tests/greendns_test.py | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/tests/greendns_test.py b/tests/greendns_test.py +index feab2b6..3802f44 100644 +--- a/tests/greendns_test.py ++++ b/tests/greendns_test.py +@@ -613,14 +613,14 @@ class TestGetaddrinfo(tests.LimitedTestCase): + def test_getaddrinfo_only_a_ans(self): + greendns.resolve = _make_mock_resolve() + greendns.resolve.add('example.com', '1.2.3.4') +- res = greendns.getaddrinfo('example.com', 0) ++ res = greendns.getaddrinfo('example.com', None) + addr = [('1.2.3.4', 0)] * len(res) + assert addr == [ai[-1] for ai in res] + + def test_getaddrinfo_only_aaaa_ans(self): + greendns.resolve = _make_mock_resolve() + greendns.resolve.add('example.com', 'dead:beef::1') +- res = greendns.getaddrinfo('example.com', 0) ++ res = greendns.getaddrinfo('example.com', None) + addr = [('dead:beef::1', 0, 0, 0)] * len(res) + assert addr == [ai[-1] for ai in res] + +@@ -637,7 +637,7 @@ class TestGetaddrinfo(tests.LimitedTestCase): + res.raises = greendns.dns.exception.Timeout + greendns.resolver._resolver = res() + +- result = greendns.getaddrinfo('example.com', 0, 0) ++ result = greendns.getaddrinfo('example.com', None, 0) + addr = [('1.2.3.4', 0)] * len(result) + assert addr == [ai[-1] for ai in result] + +@@ -654,7 +654,7 @@ class TestGetaddrinfo(tests.LimitedTestCase): + res.raises = greendns.dns.exception.DNSException + greendns.resolver._resolver = res() + +- result = greendns.getaddrinfo('example.com', 0, 0) ++ result = greendns.getaddrinfo('example.com', None, 0) + addr = [('1.2.3.4', 0)] * len(result) + assert addr == [ai[-1] for ai in result] + +@@ -667,7 +667,7 @@ class TestGetaddrinfo(tests.LimitedTestCase): + greendns.resolver._resolver = res() + + with tests.assert_raises(socket.gaierror): +- greendns.getaddrinfo('example.com', 0, 0) ++ greendns.getaddrinfo('example.com', None, 0) + + def test_getaddrinfo_hosts_only_dns_error(self): + hostsres = _make_mock_base_resolver() +@@ -678,13 +678,13 @@ class TestGetaddrinfo(tests.LimitedTestCase): + greendns.resolver._resolver = res() + + with tests.assert_raises(socket.gaierror): +- greendns.getaddrinfo('example.com', 0, 0) ++ greendns.getaddrinfo('example.com', None, 0) + + def test_canonname(self): + greendns.resolve = _make_mock_resolve() + greendns.resolve.add('host.example.com', '1.2.3.4') + greendns.resolve_cname = self._make_mock_resolve_cname() +- res = greendns.getaddrinfo('host.example.com', 0, ++ res = greendns.getaddrinfo('host.example.com', None, + 0, 0, 0, socket.AI_CANONNAME) + assert res[0][3] == 'cname.example.com' +
meta-python/recipes-devtools/python/python3-eventlet_0.33.3.bb +1 -1
@@ -4,6 +4,7 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=56472ad6de4caf50e05332a34b66e778" +SRC_URI += "file://0001-tests-getaddrinfo-host-0-is-not-supported-on-OpenInd.patch" SRC_URI[sha256sum] = "722803e7eadff295347539da363d68ae155b8b26ae6a634474d0a920be73cfda" inherit pypi setuptools3
@@ -11,6 +12,5 @@ inherit pypi setuptools3 RDEPENDS:${PN} += " \ ${PYTHON_PN}-dnspython \ ${PYTHON_PN}-six \ - ${PYTHON_PN}-distutils \ ${PYTHON_PN}-greenlet \ "
Signature · 1 line
2.39.2
Re: [oe] [PATCH 11/20] python3-eventlet: backport a patch to remove distutils dependency
Quoted 14 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- ...o-host-0-is-not-supported-on-OpenInd.patch | 78 +++++++++++++++++++ .../python/python3-eventlet_0.33.3.bb | 2 +- 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 meta-python/recipes-devtools/python/python3-eventlet/0001-tests-getaddrinfo-host-0-is-not-supported-on-OpenInd.patchmeta-python/recipes-devtools/python/python3-eventlet/0001-tests-getaddrinfo-host-0-is-not-supported-on-OpenInd.patch new file +0
-0
meta-python/recipes-devtools/python/python3-eventlet/0001-tests-getaddrinfo-host-0-is-not-supported-on-OpenInd.patch line 9
Quoted 9 lines
meta-python/recipes-devtools/python/python3-eventlet/0001-tests-getaddrinfo-host-0-is-not-supported-on-OpenInd.patch new file +9
-0@@ -0,0 +1,78 @@ +From ac2f960a50710bb257e87bed4e3c95a746f2a0fe Mon Sep 17 00:00:00 2001 +From: Sergey Shepelev <[email protected]> +Date: Mon, 27 Mar 2023 22:07:15 +0300 +Subject: [PATCH] tests: getaddrinfo(host, 0) is not supported on OpenIndiana + platform + +https://github.com/eventlet/eventlet/issues/791 + +Upstream-Status: Backport
This status needs link to commit in upstream repo
Quoted 100 lines
meta-python/recipes-devtools/python/python3-eventlet/0001-tests-getaddrinfo-host-0-is-not-supported-on-OpenInd.patch new file +69
-0+Signed-off-by: Alexander Kanavin <[email protected]> +--- + tests/greendns_test.py | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/tests/greendns_test.py b/tests/greendns_test.py +index feab2b6..3802f44 100644 +--- a/tests/greendns_test.py ++++ b/tests/greendns_test.py +@@ -613,14 +613,14 @@ class TestGetaddrinfo(tests.LimitedTestCase): + def test_getaddrinfo_only_a_ans(self): + greendns.resolve = _make_mock_resolve() + greendns.resolve.add('example.com', '1.2.3.4') +- res = greendns.getaddrinfo('example.com', 0) ++ res = greendns.getaddrinfo('example.com', None) + addr = [('1.2.3.4', 0)] * len(res) + assert addr == [ai[-1] for ai in res] + + def test_getaddrinfo_only_aaaa_ans(self): + greendns.resolve = _make_mock_resolve() + greendns.resolve.add('example.com', 'dead:beef::1') +- res = greendns.getaddrinfo('example.com', 0) ++ res = greendns.getaddrinfo('example.com', None) + addr = [('dead:beef::1', 0, 0, 0)] * len(res) + assert addr == [ai[-1] for ai in res] + +@@ -637,7 +637,7 @@ class TestGetaddrinfo(tests.LimitedTestCase): + res.raises = greendns.dns.exception.Timeout + greendns.resolver._resolver = res() + +- result = greendns.getaddrinfo('example.com', 0, 0) ++ result = greendns.getaddrinfo('example.com', None, 0) + addr = [('1.2.3.4', 0)] * len(result) + assert addr == [ai[-1] for ai in result] + +@@ -654,7 +654,7 @@ class TestGetaddrinfo(tests.LimitedTestCase): + res.raises = greendns.dns.exception.DNSException + greendns.resolver._resolver = res() + +- result = greendns.getaddrinfo('example.com', 0, 0) ++ result = greendns.getaddrinfo('example.com', None, 0) + addr = [('1.2.3.4', 0)] * len(result) + assert addr == [ai[-1] for ai in result] + +@@ -667,7 +667,7 @@ class TestGetaddrinfo(tests.LimitedTestCase): + greendns.resolver._resolver = res() + + with tests.assert_raises(socket.gaierror): +- greendns.getaddrinfo('example.com', 0, 0) ++ greendns.getaddrinfo('example.com', None, 0) + + def test_getaddrinfo_hosts_only_dns_error(self): + hostsres = _make_mock_base_resolver() +@@ -678,13 +678,13 @@ class TestGetaddrinfo(tests.LimitedTestCase): + greendns.resolver._resolver = res() + + with tests.assert_raises(socket.gaierror): +- greendns.getaddrinfo('example.com', 0, 0) ++ greendns.getaddrinfo('example.com', None, 0) + + def test_canonname(self): + greendns.resolve = _make_mock_resolve() + greendns.resolve.add('host.example.com', '1.2.3.4') + greendns.resolve_cname = self._make_mock_resolve_cname() +- res = greendns.getaddrinfo('host.example.com', 0, ++ res = greendns.getaddrinfo('host.example.com', None, + 0, 0, 0, socket.AI_CANONNAME) + assert res[0][3] == 'cname.example.com' +meta-python/recipes-devtools/python/python3-eventlet_0.33.3.bb +1
-2@@ -4,6 +4,7 @@ SECTION = "devel/python" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=56472ad6de4caf50e05332a34b66e778" +SRC_URI += "file://0001-tests-getaddrinfo-host-0-is-not-supported-on-OpenInd.patch" SRC_URI[sha256sum] = "722803e7eadff295347539da363d68ae155b8b26ae6a634474d0a920be73cfda" inherit pypi setuptools3@@ -11,6 +12,5 @@ inherit pypi setuptools3 RDEPENDS:${PN} += " \ ${PYTHON_PN}-dnspython \ ${PYTHON_PN}-six \ - ${PYTHON_PN}-distutils \ ${PYTHON_PN}-greenlet \ " --2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107504): https://lists.openembedded.org/g/openembedded-devel/message/107504
Mute This Topic: https://lists.openembedded.org/mt/103186667/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 12/20 python3-unoconv: rely on setuptools to obtain distutils copy
In reply to Alexander KanavinThe source contains:
from distutils.version import LooseVersion
--- meta-python/recipes-devtools/python/python3-unoconv_0.9.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-unoconv_0.9.0.bb +1 -1
@@ -11,7 +11,7 @@ inherit pypi setuptools3 PYPI_PACKAGE="unoconv" RDEPENDS:${PN} += "\ - ${PYTHON_PN}-distutils \ + ${PYTHON_PN}-setuptools \ ${PYTHON_PN}-core \ ${PYTHON_PN}-shell \ "
Signature · 1 line
2.39.2
PATCH 13/20 python3-astroid: remove unneeded distutils dependency
In reply to Alexander Kanavin--- meta-python/recipes-devtools/python/python3-astroid_3.0.1.bb | 1 - 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-astroid_3.0.1.bb +0 -1
@@ -21,7 +21,6 @@ FILES:${PN}-tests += " \ " RDEPENDS:${PN}:class-target += "\ - ${PYTHON_PN}-distutils \ ${PYTHON_PN}-lazy-object-proxy \ ${PYTHON_PN}-logging \ ${PYTHON_PN}-six \
Signature · 1 line
2.39.2
PATCH 14/20 python3-django: remove unneeded distutils dependency
In reply to Alexander KanavinNothing in the source tree requires it at runtime.
--- meta-python/recipes-devtools/python/python-django.inc | 1 - 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python-django.inc +0 -1
@@ -28,7 +28,6 @@ RDEPENDS:${PN} += "\ ${PYTHON_PN}-threading \ ${PYTHON_PN}-unixadmin \ ${PYTHON_PN}-xml \ - ${PYTHON_PN}-distutils \ " CVE_PRODUCT = "django"
Signature · 1 line
2.39.2
PATCH 15/20 python3-pillow: remove unneeded distutils dependency
In reply to Alexander Kanavin--- meta-python/recipes-devtools/python/python3-pillow_10.1.0.bb | 1 - 1 file changed, 1 deletion(-)
meta-python/recipes-devtools/python/python3-pillow_10.1.0.bb +0 -1
@@ -39,7 +39,6 @@ RDEPENDS:${PN}-ptest += " \ jpeg-tools \ libwebp \ ${PYTHON_PN}-core \ - ${PYTHON_PN}-distutils \ ${PYTHON_PN}-image \ ${PYTHON_PN}-mmap \ ${PYTHON_PN}-pytest \
Signature · 1 line
2.39.2
PATCH 16/20 python3-grpcio: update 1.56.2 -> 1.59.3
In reply to Alexander KanavinThis is needed for python 3.12 compatibility.
Drop 0001-direct_mmap-Use-off_t-on-linux.patch as
issue resolved upstream.
Other dropped patches are all due to the code being significantly refactored upstream; if the issues persist, please write updated patches.
---
.../0001-Include-missing-cstdint-header.patch | 6 +-
.../0001-direct_mmap-Use-off_t-on-linux.patch | 42 -----------
...-Do-not-mix-C-and-C-compiler-options.patch | 73 -------------------
...clude-unistd.h-for-open-close-C-APIs.patch | 6 +-
.../python3-grpcio/abseil-ppc-fixes.patch | 63 +++++++++-------
.../python3-grpcio/mips_bigendian.patch | 17 -----
.../ppc-boringssl-support.patch | 17 -----
...cio_1.56.2.bb => python3-grpcio_1.59.3.bb} | 14 ++--
8 files changed, 46 insertions(+), 192 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-grpcio/0001-direct_mmap-Use-off_t-on-linux.patch
delete mode 100644 meta-python/recipes-devtools/python/python3-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch
delete mode 100644 meta-python/recipes-devtools/python/python3-grpcio/mips_bigendian.patch
delete mode 100644 meta-python/recipes-devtools/python/python3-grpcio/ppc-boringssl-support.patch
rename meta-python/recipes-devtools/python/{python3-grpcio_1.56.2.bb => python3-grpcio_1.59.3.bb} (63%)meta-python/recipes-devtools/python/python3-grpcio/0001-Include-missing-cstdint-header.patch +2 -4
@@ -1,4 +1,4 @@ -From 752e30eebe5b91c323bafcbea8d450dd5683701a Mon Sep 17 00:00:00 2001 +From 252aa78526287fe033c5656cd166e551fa5daa88 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Mon, 30 Jan 2023 10:31:10 -0800 Subject: [PATCH] Include missing <cstdint> header
@@ -11,6 +11,7 @@ int32_t. Upstream-Status: Submitted [https://code-review.googlesource.com/c/re2/+/60970] Signed-off-by: Khem Raj <[email protected]> + --- third_party/re2/util/pcre.h | 1 + 1 file changed, 1 insertion(+)
@@ -27,6 +28,3 @@ index 896b0bd..271a005 100644 #ifdef USEPCRE #include <pcre.h> --- -2.39.1 -
meta-python/recipes-devtools/python/python3-grpcio/0001-direct_mmap-Use-off_t-on-linux.patch deleted +0 -42
42 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch deleted +0 -73
73 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch +2 -4
@@ -1,4 +1,4 @@ -From 4432b9a296c9c287dfe281b4d464dfd03e4eb721 Mon Sep 17 00:00:00 2001 +From 6ede7d01b18a4d9eeaccd25f5c1ab9985cb65307 Mon Sep 17 00:00:00 2001 From: Khem Raj <[email protected]> Date: Sun, 12 Feb 2023 21:25:04 -0800 Subject: [PATCH] zlib: Include unistd.h for open/close C APIs
@@ -6,6 +6,7 @@ Subject: [PATCH] zlib: Include unistd.h for open/close C APIs Upstream-Status: Pending Signed-off-by: Khem Raj <[email protected]> + --- third_party/zlib/gzguts.h | 1 + 1 file changed, 1 insertion(+)
@@ -22,6 +23,3 @@ index 57faf37..3c700c2 100644 #include "zlib.h" #ifdef STDC # include <string.h> --- -2.39.1 -
meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch +37 -26
98 lines not on this page · raw message
meta-python/recipes-devtools/python/python3-grpcio/mips_bigendian.patch deleted +0 -17
@@ -1,17 +0,0 @@ -Upstream-Status: Pending - ---- a/third_party/boringssl-with-bazel/src/include/openssl/base.h -+++ b/third_party/boringssl-with-bazel/src/include/openssl/base.h -@@ -102,10 +102,10 @@ extern "C" { - #elif (defined(__PPC__) || defined(__powerpc__)) - #define OPENSSL_32_BIT - #define OPENSSL_PPC --#elif defined(__MIPSEL__) && !defined(__LP64__) -+#elif defined(__mips__) && !defined(__LP64__) - #define OPENSSL_32_BIT - #define OPENSSL_MIPS --#elif defined(__MIPSEL__) && defined(__LP64__) -+#elif defined(__mips__) && defined(__LP64__) - #define OPENSSL_64_BIT - #define OPENSSL_MIPS64 - #elif defined(__riscv) && __SIZEOF_POINTER__ == 8
meta-python/recipes-devtools/python/python3-grpcio/ppc-boringssl-support.patch deleted +0 -17
@@ -1,17 +0,0 @@ -Let boringSSL compile on ppc32 bit - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> - ---- a/third_party/boringssl-with-bazel/src/include/openssl/base.h -+++ b/third_party/boringssl-with-bazel/src/include/openssl/base.h -@@ -96,6 +96,9 @@ extern "C" { - #elif defined(__ARMEL__) || defined(_M_ARM) - #define OPENSSL_32_BIT - #define OPENSSL_ARM -+#elif (defined(__PPC__) || defined(__powerpc__)) -+#define OPENSSL_32_BIT -+#define OPENSSL_PPC - #elif defined(__MIPSEL__) && !defined(__LP64__) - #define OPENSSL_32_BIT - #define OPENSSL_MIPS
meta-python/recipes-devtools/python/python3-grpcio_1.59.3.bb renamed from meta-python/recipes-devtools/python/python3-grpcio_1.56.2.bb +5 -9
@@ -6,15 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906" DEPENDS += "${PYTHON_PN}-protobuf" -SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch" -SRC_URI:append:class-target = " file://ppc-boringssl-support.patch \ - file://mips_bigendian.patch \ - file://0001-Include-missing-cstdint-header.patch \ - file://abseil-ppc-fixes.patch;patchdir=third_party/abseil-cpp \ - file://0001-direct_mmap-Use-off_t-on-linux.patch;patchdir=third_party/abseil-cpp \ - file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \ -" -SRC_URI[sha256sum] = "0ff789ae7d8ddd76d2ac02e7d13bfef6fc4928ac01e1dcaa182be51b6bcc0aaa" +SRC_URI += "file://0001-Include-missing-cstdint-header.patch \ + file://abseil-ppc-fixes.patch \ + file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \ + " +SRC_URI[sha256sum] = "7800f99568a74a06ebdccd419dd1b6e639b477dcaf6da77ea702f8fb14ce5f80" RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \ ${PYTHON_PN}-setuptools \
Signature · 1 line
2.39.2
PATCH 17/20 gstd: correctly delete files in do_install
In reply to Alexander Kanavingstd always installs these in /usr, so root_prefix would work only if usrmerge is in DISTRO_FEATURES.
--- .../recipes-multimedia/gstreamer-1.0/gstd_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta-multimedia/recipes-multimedia/gstreamer-1.0/gstd_git.bb +3 -3
@@ -20,9 +20,9 @@ GTKDOC_MESON_OPTION = "enable-gtk-doc" inherit meson pkgconfig gettext gtk-doc python3native python3-dir python3targetconfig do_install:append() { - rmdir ${D}${root_prefix}${localstatedir}/run/${BPN} ${D}${root_prefix}${localstatedir}/run \ - ${D}${root_prefix}${localstatedir}/log/${BPN} ${D}${root_prefix}${localstatedir}/log \ - ${D}${root_prefix}${localstatedir} + rmdir ${D}${exec_prefix}${localstatedir}/run/${BPN} ${D}${exec_prefix}${localstatedir}/run \ + ${D}${exec_prefix}${localstatedir}/log/${BPN} ${D}${exec_prefix}${localstatedir}/log \ + ${D}${exec_prefix}${localstatedir} rm -f ${D}${bindir}/gst-client ${D}${bindir}/gstd-client if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then install -d ${D}${sysconfdir}/tmpfiles.d
Signature · 1 line
2.39.2
PATCH 18/20 libplist: fix python 3.12 compatibility
In reply to Alexander KanavinTicket:
https://github.com/libimobiledevice/libplist/issues/247
--- meta-oe/recipes-extended/libimobiledevice/libplist_2.3.0.bb | 4 ++++ meta-oe/recipes-extended/libimobiledevice/libplist_git.bb | 4 ++++ 2 files changed, 8 insertions(+)
meta-oe/recipes-extended/libimobiledevice/libplist_2.3.0.bb +4 -0
@@ -22,6 +22,10 @@ CVE_STATUS_LIBLIST = " \ CVE-2017-5836 \ " +do_configure:prepend() { + rm ${S}/m4/ax_python_devel.m4 +} + do_install:append () { if [ -e ${D}${libdir}/python*/site-packages/plist/_plist.so ]; then chrpath -d ${D}${libdir}/python*/site-packages/plist/_plist.so
meta-oe/recipes-extended/libimobiledevice/libplist_git.bb +4 -0
@@ -23,6 +23,10 @@ CVE_STATUS_LIBLIST = " \ CVE-2017-5836 \ " +do_configure:prepend() { + rm ${S}/m4/ax_python_devel.m4 +} + do_install:append () { if [ -e ${D}${libdir}/python*/site-packages/plist/_plist.so ]; then chrpath -d ${D}${libdir}/python*/site-packages/plist/_plist.so
Signature · 1 line
2.39.2
PATCH 19/20 libcamera: skip until upstream resolves python 3.12 compatibility
In reply to Alexander KanavinI'd note that imp module has been deprecated for years, so that's what happens when deprecation warnings are ignored.
--- meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb | 1 + .../packagegroups/packagegroup-meta-multimedia.bb | 1 - meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +1 -0
@@ -73,3 +73,4 @@ FILES:${PN}-gst = "${libdir}/gstreamer-1.0" # both 32 and 64 bit file APIs. GLIBC_64BIT_TIME_FLAGS = "" +SKIP_RECIPE[libcamera] ?= "Not compatible with python 3.12, see https://bugs.libcamera.org/show_bug.cgi?id=206"
meta-multimedia/recipes-multimedia/packagegroups/packagegroup-meta-multimedia.bb +0 -1
@@ -42,7 +42,6 @@ RDEPENDS:packagegroup-meta-multimedia = "\ tearsofsteel-1080p \ pipewire \ ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", bb.utils.contains("DISTRO_FEATURES", "x11", "projucer", "", d), "", d)} \ - libcamera \ vorbis-tools \ libopenmpt \ mimic \
meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb +1 -1
@@ -86,7 +86,7 @@ PACKAGECONFIG:class-target ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'alsa vulkan pulseaudio', d)} \ ${PIPEWIRE_SESSION_MANAGER} \ - ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling libcamera readline \ + ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling readline \ " # "jack" and "pipewire-jack" packageconfigs cannot be both enabled,
Signature · 1 line
2.39.2
Re: [PATCH 19/20] libcamera: skip until upstream resolves python 3.12 compatibility
+libcamera-devel mailing list
Quoting Alexander Kanavin (2023-12-15 07:52:38)
Quoted 2 lines
I'd note that imp module has been deprecated for years, so that's what happens when deprecation warnings are ignored.
Can you tell me more about what this issue is please? I'm not aware of it at all.
--
Kieran
Quoted 46 lines
Signed-off-by Alexander Kanavin <[email protected]>--- meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb | 1 + .../packagegroups/packagegroup-meta-multimedia.bb | 1 - meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +1
-0@@ -73,3 +73,4 @@ FILES:${PN}-gst = "${libdir}/gstreamer-1.0" # both 32 and 64 bit file APIs. GLIBC_64BIT_TIME_FLAGS = "" +SKIP_RECIPE[libcamera] ?= "Not compatible with python 3.12, see https://bugs.libcamera.org/show_bug.cgi?id=206"meta-multimedia/recipes-multimedia/packagegroups/packagegroup-meta-multimedia.bb +0
-1@@ -42,7 +42,6 @@ RDEPENDS:packagegroup-meta-multimedia = "\ tearsofsteel-1080p \ pipewire \ ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", bb.utils.contains("DISTRO_FEATURES", "x11", "projucer", "", d), "", d)} \ - libcamera \ vorbis-tools \ libopenmpt \ mimic \meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb +1
-1@@ -86,7 +86,7 @@ PACKAGECONFIG:class-target ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'alsa vulkan pulseaudio', d)} \ ${PIPEWIRE_SESSION_MANAGER} \ - ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling libcamera readline \ + ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling readline \ " # "jack" and "pipewire-jack" packageconfigs cannot be both enabled,Signature · 1 line
2.39.2
Re: [PATCH 19/20] libcamera: skip until upstream resolves python 3.12 compatibility
Quoting Kieran Bingham (2023-12-15 10:16:20)
Quoted 29 lines
+libcamera-devel mailing list
Quoting Alexander Kanavin (2023-12-15 07:52:38)
Quoted 2 lines
I'd note that imp module has been deprecated for years, so that's what happens when deprecation warnings are ignored.
Can you tell me more about what this issue is please? I'm not aware of it at all.
--
KieranQuoted 16 lines
Signed-off-by Alexander Kanavin <[email protected]>--- meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb | 1 + .../packagegroups/packagegroup-meta-multimedia.bb | 1 - meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +0
-0@@ -73,3 +73,4 @@ FILES:${PN}-gst = "${libdir}/gstreamer-1.0" # both 32 and 64 bit file APIs. GLIBC_64BIT_TIME_FLAGS = ""
Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb FILES:${PN}-gst = "${libdir}/gstreamer-1.0" · line 76
Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +1
-0+SKIP_RECIPE[libcamera] ?= "Not compatible with python 3.12, see https://bugs.libcamera.org/show_bug.cgi?id=206"
Aha, the clue was buried here.
--
Kieran
Quoted 29 lines
Quoted 29 lines
meta-multimedia/recipes-multimedia/packagegroups/packagegroup-meta-multimedia.bb +0
-1@@ -42,7 +42,6 @@ RDEPENDS:packagegroup-meta-multimedia = "\ tearsofsteel-1080p \ pipewire \ ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", bb.utils.contains("DISTRO_FEATURES", "x11", "projucer", "", d), "", d)} \ - libcamera \ vorbis-tools \ libopenmpt \ mimic \meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb +1
-1@@ -86,7 +86,7 @@ PACKAGECONFIG:class-target ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'alsa vulkan pulseaudio', d)} \ ${PIPEWIRE_SESSION_MANAGER} \ - ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling libcamera readline \ + ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling readline \ " # "jack" and "pipewire-jack" packageconfigs cannot be both enabled,Signature · 1 line
2.39.2
Re: [PATCH 19/20] libcamera: skip until upstream resolves python 3.12 compatibility
That's right.
This page provides hints for how to replace usage of imp with equivalents in importlib:
https://docs.python.org/3.11/library/imp.html
Alex
Quoted 69 lines · Kieran Bingham
Quoting Kieran Bingham (2023-12-15 10:16:20)
Quoted 29 lines
+libcamera-devel mailing list
Quoting Alexander Kanavin (2023-12-15 07:52:38)
Quoted 2 lines
I'd note that imp module has been deprecated for years, so that's what happens when deprecation warnings are ignored.
Can you tell me more about what this issue is please? I'm not aware of it at all.
--
KieranQuoted 16 lines
Signed-off-by Alexander Kanavin <[email protected]>--- meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb | 1 + .../packagegroups/packagegroup-meta-multimedia.bb | 1 - meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +0
-0@@ -73,3 +73,4 @@ FILES:${PN}-gst = "${libdir}/gstreamer-1.0" # both 32 and 64 bit file APIs. GLIBC_64BIT_TIME_FLAGS = ""Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb FILES:${PN}-gst = "${libdir}/gstreamer-1.0" · line 76
Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +1
-0+SKIP_RECIPE[libcamera] ?= "Not compatible with python 3.12, see https://bugs.libcamera.org/show_bug.cgi?id=206"Aha, the clue was buried here.
--
KieranQuoted 29 lines
Quoted 29 lines
meta-multimedia/recipes-multimedia/packagegroups/packagegroup-meta-multimedia.bb +0
-1@@ -42,7 +42,6 @@ RDEPENDS:packagegroup-meta-multimedia = "\ tearsofsteel-1080p \ pipewire \ ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", bb.utils.contains("DISTRO_FEATURES", "x11", "projucer", "", d), "", d)} \ - libcamera \ vorbis-tools \ libopenmpt \ mimic \meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb +1
-2@@ -86,7 +86,7 @@ PACKAGECONFIG:class-target ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'alsa vulkan pulseaudio', d)} \ ${PIPEWIRE_SESSION_MANAGER} \ - ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling libcamera readline \ + ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling readline \ " # "jack" and "pipewire-jack" packageconfigs cannot be both enabled, --2.39.2
Re: [libcamera-devel] [PATCH 19/20] libcamera: skip until upstream resolves python 3.12 compatibility
Quoted 5 lines · Alexander Kanavin via libcamera-devel
That's right.
This page provides hints for how to replace usage of imp with equivalents in importlib:
https://docs.python.org/3.11/library/imp.html
The trouble is that the code in libcamera that uses imp isn't ours, it's copied as-is from a third-party project. If we're lucky they will have fixed the issue, and we can just take the latest version.
Quoted 7 lines · Kieran Bingham
Quoted 6 lines
Quoting Kieran Bingham (2023-12-15 10:16:20)
Quoted 5 lines
+libcamera-devel mailing list
Quoting Alexander Kanavin (2023-12-15 07:52:38)
Quoted 2 lines
I'd note that imp module has been deprecated for years, so that's what happens when deprecation warnings are ignored.
I haven't seen any warnings anywhere in the build process. Did I miss them ?
Quoted 47 lines
Quoted 47 lines
Quoted 18 lines
Can you tell me more about what this issue is please? I'm not aware of it at all.
Quoted 15 lines
Signed-off-by Alexander Kanavin <[email protected]>--- meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb | 1 + .../packagegroups/packagegroup-meta-multimedia.bb | 1 - meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +0
-0@@ -73,3 +73,4 @@ FILES:${PN}-gst = "${libdir}/gstreamer-1.0" # both 32 and 64 bit file APIs. GLIBC_64BIT_TIME_FLAGS = ""Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb FILES:${PN}-gst = "${libdir}/gstreamer-1.0" · line 76
Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +1
-0+SKIP_RECIPE[libcamera] ?= "Not compatible with python 3.12, see https://bugs.libcamera.org/show_bug.cgi?id=206"Aha, the clue was buried here.
Quoted 25 lines
Quoted 25 lines
meta-multimedia/recipes-multimedia/packagegroups/packagegroup-meta-multimedia.bb +0
-1@@ -42,7 +42,6 @@ RDEPENDS:packagegroup-meta-multimedia = "\ tearsofsteel-1080p \ pipewire \ ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", bb.utils.contains("DISTRO_FEATURES", "x11", "projucer", "", d), "", d)} \ - libcamera \ vorbis-tools \ libopenmpt \ mimic \meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb +1
-1@@ -86,7 +86,7 @@ PACKAGECONFIG:class-target ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'alsa vulkan pulseaudio', d)} \ ${PIPEWIRE_SESSION_MANAGER} \ - ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling libcamera readline \ + ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling readline \ " # "jack" and "pipewire-jack" packageconfigs cannot be both enabled,
Signature · 3 lines
Regards, Laurent Pinchart
Re: [libcamera-devel] [PATCH 19/20] libcamera: skip until upstream resolves python 3.12 compatibility
Hi Laurent,
Quoted 10 lines · Laurent Pinchart via libcamera-devel
Quoted 5 lines · Alexander Kanavin via libcamera-devel
That's right.
This page provides hints for how to replace usage of imp with equivalents in importlib:
https://docs.python.org/3.11/library/imp.htmlThe trouble is that the code in libcamera that uses imp isn't ours, it's copied as-is from a third-party project. If we're lucky they will have fixed the issue, and we can just take the latest version.
If this is in mojo, seems that chromium fixed it:
https://chromium.googlesource.com/chromium/src/+/f5f6e361d037c31630661186e7bd7b31d2784cb8
Quoted 64 lines
Quoted 8 lines · Kieran Bingham
Quoted 6 lines
Quoting Kieran Bingham (2023-12-15 10:16:20)
Quoted 5 lines
+libcamera-devel mailing list
Quoting Alexander Kanavin (2023-12-15 07:52:38)
Quoted 2 lines
I'd note that imp module has been deprecated for years, so that's what happens when deprecation warnings are ignored.
I haven't seen any warnings anywhere in the build process. Did I miss them ?
Quoted 47 lines
Quoted 47 lines
Quoted 18 lines
Can you tell me more about what this issue is please? I'm not aware of it at all.
Quoted 15 lines
Signed-off-by Alexander Kanavin <[email protected]>--- meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb | 1 + .../packagegroups/packagegroup-meta-multimedia.bb | 1 - meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +0
-0@@ -73,3 +73,4 @@ FILES:${PN}-gst = "${libdir}/gstreamer-1.0" # both 32 and 64 bit file APIs. GLIBC_64BIT_TIME_FLAGS = ""Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb FILES:${PN}-gst = "${libdir}/gstreamer-1.0" · line 76
Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +1
-0+SKIP_RECIPE[libcamera] ?= "Not compatible with python 3.12, see https://bugs.libcamera.org/show_bug.cgi?id=206"Aha, the clue was buried here.
Quoted 25 lines
Quoted 25 lines
meta-multimedia/recipes-multimedia/packagegroups/packagegroup-meta-multimedia.bb +0
-1@@ -42,7 +42,6 @@ RDEPENDS:packagegroup-meta-multimedia = "\ tearsofsteel-1080p \ pipewire \ ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", bb.utils.contains("DISTRO_FEATURES", "x11", "projucer", "", d), "", d)} \ - libcamera \ vorbis-tools \ libopenmpt \ mimic \meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb +1
-1@@ -86,7 +86,7 @@ PACKAGECONFIG:class-target ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'alsa vulkan pulseaudio', d)} \ ${PIPEWIRE_SESSION_MANAGER} \ - ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling libcamera readline \ + ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling readline \ " # "jack" and "pipewire-jack" packageconfigs cannot be both enabled,Signature · 3 lines
Regards, Laurent Pinchart
Re: [libcamera-devel] [PATCH 19/20] libcamera: skip until upstream resolves python 3.12 compatibility
Quoted 8 lines · Mattijs Korpershoek
Quoted 7 lines · Laurent Pinchart via libcamera-devel
Quoted 5 lines · Alexander Kanavin via libcamera-devel
That's right.
This page provides hints for how to replace usage of imp with equivalents in importlib:
https://docs.python.org/3.11/library/imp.html
Quoted 6 lines
Quoted 3 lines
The trouble is that the code in libcamera that uses imp isn't ours, it's copied as-is from a third-party project. If we're lucky they will have fixed the issue, and we can just take the latest version.
If this is in mojo, seems that chromium fixed it:
https://chromium.googlesource.com/chromium/src/+/f5f6e361d037c31630661186e7bd7b31d2784cb8
Nice :-) Looks like we have a (hopefully easy) path forward.
Thank you for checking.
Quoted 58 lines
Quoted 58 lines
Quoted 7 lines · Kieran Bingham
Quoted 6 lines
Quoting Kieran Bingham (2023-12-15 10:16:20)
Quoted 5 lines
+libcamera-devel mailing list
Quoting Alexander Kanavin (2023-12-15 07:52:38)
Quoted 2 lines
I'd note that imp module has been deprecated for years, so that's what happens when deprecation warnings are ignored.
I haven't seen any warnings anywhere in the build process. Did I miss them ?
Quoted 47 lines
Quoted 47 lines
Quoted 18 lines
Can you tell me more about what this issue is please? I'm not aware of it at all.
Quoted 15 lines
Signed-off-by Alexander Kanavin <[email protected]>--- meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb | 1 + .../packagegroups/packagegroup-meta-multimedia.bb | 1 - meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-)meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +0
-0@@ -73,3 +73,4 @@ FILES:${PN}-gst = "${libdir}/gstreamer-1.0" # both 32 and 64 bit file APIs. GLIBC_64BIT_TIME_FLAGS = ""Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb FILES:${PN}-gst = "${libdir}/gstreamer-1.0" · line 76
Quoted 1 line
meta-multimedia/recipes-multimedia/libcamera/libcamera_0.1.0.bb +1
-0+SKIP_RECIPE[libcamera] ?= "Not compatible with python 3.12, see https://bugs.libcamera.org/show_bug.cgi?id=206"Aha, the clue was buried here.
Quoted 25 lines
Quoted 25 lines
meta-multimedia/recipes-multimedia/packagegroups/packagegroup-meta-multimedia.bb +0
-1@@ -42,7 +42,6 @@ RDEPENDS:packagegroup-meta-multimedia = "\ tearsofsteel-1080p \ pipewire \ ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", bb.utils.contains("DISTRO_FEATURES", "x11", "projucer", "", d), "", d)} \ - libcamera \ vorbis-tools \ libopenmpt \ mimic \meta-multimedia/recipes-multimedia/pipewire/pipewire_1.0.0.bb +1
-1@@ -86,7 +86,7 @@ PACKAGECONFIG:class-target ??= " \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \ ${@bb.utils.filter('DISTRO_FEATURES', 'alsa vulkan pulseaudio', d)} \ ${PIPEWIRE_SESSION_MANAGER} \ - ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling libcamera readline \ + ${FFMPEG_AVAILABLE} avahi flatpak gstreamer gsettings jack libusb pw-cat raop sndfile v4l2 udev volume webrtc-echo-cancelling readline \ " # "jack" and "pipewire-jack" packageconfigs cannot be both enabled,
Signature · 3 lines
Regards, Laurent Pinchart
PATCH 20/20 nodejs: backport (partially) python 3.12 support
In reply to Alexander Kanavin--- ...001-build-fix-build-with-Python-3.12.patch | 55 ++++++++++++++++ .../0001-gyp-resolve-python-3.12-issues.patch | 63 +++++++++++++++++++ .../recipes-devtools/nodejs/nodejs_20.8.1.bb | 4 +- 3 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patch
meta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch new file +55 -0
@@ -0,0 +1,55 @@ +From 656f6c91f1da7f1e1ffb01e2de7d9026a84958b5 Mon Sep 17 00:00:00 2001 +From: Luigi Pinca <[email protected]> +Date: Wed, 8 Nov 2023 21:20:53 +0100 +Subject: [PATCH] build: fix build with Python 3.12 + +Replace `distutils.version.StrictVersion` with +`packaging.version.Version`. + +Refs: https://github.com/nodejs/node/pull/50209#issuecomment-1795852539 +PR-URL: https://github.com/nodejs/node/pull/50582 +Reviewed-By: Richard Lau <[email protected]> +Reviewed-By: Chengzhong Wu <[email protected]> + +Upstream-Status: Backport [https://github.com/nodejs/node/commit/95534ad82f4e33f53fd50efe633d43f8da70cba6] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + configure.py | 11 +++++------ + 1 file changed, 5 insertions(+), 6 deletions(-) + +diff --git a/configure.py b/configure.py +index 62f041ce..18fe7c14 100755 +--- a/configure.py ++++ b/configure.py +@@ -14,8 +14,6 @@ import bz2 + import io + from pathlib import Path + +-from distutils.version import StrictVersion +- + # If not run from node/, cd to node/. + os.chdir(Path(__file__).parent) + +@@ -30,6 +28,7 @@ tools_path = Path('tools') + + sys.path.insert(0, str(tools_path / 'gyp' / 'pylib')) + from gyp.common import GetFlavor ++from packaging.version import Version + + # imports in tools/configure.d + sys.path.insert(0, str(tools_path / 'configure.d')) +@@ -1565,10 +1564,10 @@ def configure_openssl(o): + # supported asm compiler for AVX2. See https://github.com/openssl/openssl/ + # blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69 + openssl110_asm_supported = \ +- ('gas_version' in variables and StrictVersion(variables['gas_version']) >= StrictVersion('2.23')) or \ +- ('xcode_version' in variables and StrictVersion(variables['xcode_version']) >= StrictVersion('5.0')) or \ +- ('llvm_version' in variables and StrictVersion(variables['llvm_version']) >= StrictVersion('3.3')) or \ +- ('nasm_version' in variables and StrictVersion(variables['nasm_version']) >= StrictVersion('2.10')) ++ ('gas_version' in variables and Version(variables['gas_version']) >= Version('2.23')) or \ ++ ('xcode_version' in variables and Version(variables['xcode_version']) >= Version('5.0')) or \ ++ ('llvm_version' in variables and Version(variables['llvm_version']) >= Version('3.3')) or \ ++ ('nasm_version' in variables and Version(variables['nasm_version']) >= Version('2.10')) + + if is_x86 and not openssl110_asm_supported: + error('''Did not find a new enough assembler, install one or build with
meta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patch new file +63 -0
63 lines not on this page · raw message
meta-oe/recipes-devtools/nodejs/nodejs_20.8.1.bb +3 -1
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=162595a4a2f3453a0534e60b0afe4e7b" CVE_PRODUCT = "nodejs node.js" -DEPENDS = "openssl file-replacement-native" +DEPENDS = "openssl file-replacement-native python3-packaging-native" DEPENDS:append:class-target = " qemu-native" DEPENDS:append:class-native = " c-ares-native"
@@ -27,6 +27,8 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ file://0001-Revert-io_uring-changes-from-libuv-1.46.0.patch \ file://0002-Revert-io_uring-changes-from-libuv-1.45.0.patch \ file://run-ptest \ + file://0001-build-fix-build-with-Python-3.12.patch \ + file://0001-gyp-resolve-python-3.12-issues.patch \ " SRC_URI:append:class-target = " \
Signature · 1 line
2.39.2
Re: [oe] [PATCH 20/20] nodejs: backport (partially) python 3.12 support
this is regressing some dependent recipe e.g. simpleiot which depends on gyp from nodejs-native
https://github.com/YoeDistro/yoe-distro/actions/runs/7258317572/job/19834510249?pr=882
Quoted 174 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- ...001-build-fix-build-with-Python-3.12.patch | 55 ++++++++++++++++ .../0001-gyp-resolve-python-3.12-issues.patch | 63 +++++++++++++++++++ .../recipes-devtools/nodejs/nodejs_20.8.1.bb | 4 +- 3 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patchmeta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch new file +55
-0@@ -0,0 +1,55 @@ +From 656f6c91f1da7f1e1ffb01e2de7d9026a84958b5 Mon Sep 17 00:00:00 2001 +From: Luigi Pinca <[email protected]> +Date: Wed, 8 Nov 2023 21:20:53 +0100 +Subject: [PATCH] build: fix build with Python 3.12 + +Replace `distutils.version.StrictVersion` with +`packaging.version.Version`. + +Refs: https://github.com/nodejs/node/pull/50209#issuecomment-1795852539 +PR-URL: https://github.com/nodejs/node/pull/50582 +Reviewed-By: Richard Lau <[email protected]> +Reviewed-By: Chengzhong Wu <[email protected]> + +Upstream-Status: Backport [https://github.com/nodejs/node/commit/95534ad82f4e33f53fd50efe633d43f8da70cba6] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + configure.py | 11 +++++------ + 1 file changed, 5 insertions(+), 6 deletions(-) + +diff --git a/configure.py b/configure.py +index 62f041ce..18fe7c14 100755 +--- a/configure.py ++++ b/configure.py +@@ -14,8 +14,6 @@ import bz2 + import io + from pathlib import Path + +-from distutils.version import StrictVersion +- + # If not run from node/, cd to node/. + os.chdir(Path(__file__).parent) + +@@ -30,6 +28,7 @@ tools_path = Path('tools') + + sys.path.insert(0, str(tools_path / 'gyp' / 'pylib')) + from gyp.common import GetFlavor ++from packaging.version import Version + + # imports in tools/configure.d + sys.path.insert(0, str(tools_path / 'configure.d')) +@@ -1565,10 +1564,10 @@ def configure_openssl(o): + # supported asm compiler for AVX2. See https://github.com/openssl/openssl/ + # blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69 + openssl110_asm_supported = \ +- ('gas_version' in variables and StrictVersion(variables['gas_version']) >= StrictVersion('2.23')) or \ +- ('xcode_version' in variables and StrictVersion(variables['xcode_version']) >= StrictVersion('5.0')) or \ +- ('llvm_version' in variables and StrictVersion(variables['llvm_version']) >= StrictVersion('3.3')) or \ +- ('nasm_version' in variables and StrictVersion(variables['nasm_version']) >= StrictVersion('2.10')) ++ ('gas_version' in variables and Version(variables['gas_version']) >= Version('2.23')) or \ ++ ('xcode_version' in variables and Version(variables['xcode_version']) >= Version('5.0')) or \ ++ ('llvm_version' in variables and Version(variables['llvm_version']) >= Version('3.3')) or \ ++ ('nasm_version' in variables and Version(variables['nasm_version']) >= Version('2.10')) + + if is_x86 and not openssl110_asm_supported: + error('''Did not find a new enough assembler, install one or build withmeta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patch new file +63
-0@@ -0,0 +1,63 @@ +From bf8c96ba6936050ed4a0de5bc8aeeaf2b3c50dc1 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Thu, 7 Dec 2023 12:54:30 +0100 +Subject: [PATCH] gyp: resolve python 3.12 issues + +Upstream has updated gyp wholesale in the main branch, so +this patch can be dropped in due time. + +Upstream-Status: Inappropriate [issue will be fixed upstream with the next nodejs LTS update] + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py | 4 ++-- + tools/gyp/pylib/gyp/input.py | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +index d9699a0a..173e9465 100644 +--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py ++++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +@@ -16,7 +16,7 @@ import subprocess + import sys + import threading + import traceback +-from distutils.version import StrictVersion ++from packaging.version import Version + from gyp.common import GypError + from gyp.common import OrderedSet + +@@ -1183,7 +1183,7 @@ def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, buil + else: + ast_code = compile(cond_expr_expanded, "<string>", "eval") + cached_conditions_asts[cond_expr_expanded] = ast_code +- env = {"__builtins__": {}, "v": StrictVersion} ++ env = {"__builtins__": {}, "v": Version} + if eval(ast_code, env, variables): + return true_dict + return false_dict +diff --git a/tools/gyp/pylib/gyp/input.py b/tools/gyp/pylib/gyp/input.py +index 354958bf..ab6112e5 100644 +--- a/tools/gyp/pylib/gyp/input.py ++++ b/tools/gyp/pylib/gyp/input.py +@@ -16,7 +16,7 @@ import subprocess + import sys + import threading + import traceback +-from distutils.version import StrictVersion ++from packaging.version import Version + from gyp.common import GypError + from gyp.common import OrderedSet + +@@ -1190,7 +1190,7 @@ def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, buil + else: + ast_code = compile(cond_expr_expanded, "<string>", "eval") + cached_conditions_asts[cond_expr_expanded] = ast_code +- env = {"__builtins__": {}, "v": StrictVersion} ++ env = {"__builtins__": {}, "v": Version} + if eval(ast_code, env, variables): + return true_dict + return false_dict +-- +2.39.2 +meta-oe/recipes-devtools/nodejs/nodejs_20.8.1.bb +3
-2@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=162595a4a2f3453a0534e60b0afe4e7b" CVE_PRODUCT = "nodejs node.js" -DEPENDS = "openssl file-replacement-native" +DEPENDS = "openssl file-replacement-native python3-packaging-native" DEPENDS:append:class-target = " qemu-native" DEPENDS:append:class-native = " c-ares-native"@@ -27,6 +27,8 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ file://0001-Revert-io_uring-changes-from-libuv-1.46.0.patch \ file://0002-Revert-io_uring-changes-from-libuv-1.45.0.patch \ file://run-ptest \ + file://0001-build-fix-build-with-Python-3.12.patch \ + file://0001-gyp-resolve-python-3.12-issues.patch \ " SRC_URI:append:class-target = " \ --2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107513): https://lists.openembedded.org/g/openembedded-devel/message/107513
Mute This Topic: https://lists.openembedded.org/mt/103186676/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 20/20] nodejs: backport (partially) python 3.12 support
| npm ERR! ModuleNotFoundError: No module named 'packaging'
Looks like python3-packaging needs to be in RDEPENDS as well, I'll make a fix (or you can quickly try to see if it resolves the error).
Alex
Quoted 182 lines · Khem Raj
this is regressing some dependent recipe e.g. simpleiot which depends on gyp from nodejs-native
https://github.com/YoeDistro/yoe-distro/actions/runs/7258317572/job/19834510249?pr=882
Quoted 174 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- ...001-build-fix-build-with-Python-3.12.patch | 55 ++++++++++++++++ .../0001-gyp-resolve-python-3.12-issues.patch | 63 +++++++++++++++++++ .../recipes-devtools/nodejs/nodejs_20.8.1.bb | 4 +- 3 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patchmeta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch new file +55
-0@@ -0,0 +1,55 @@ +From 656f6c91f1da7f1e1ffb01e2de7d9026a84958b5 Mon Sep 17 00:00:00 2001 +From: Luigi Pinca <[email protected]> +Date: Wed, 8 Nov 2023 21:20:53 +0100 +Subject: [PATCH] build: fix build with Python 3.12 + +Replace `distutils.version.StrictVersion` with +`packaging.version.Version`. + +Refs: https://github.com/nodejs/node/pull/50209#issuecomment-1795852539 +PR-URL: https://github.com/nodejs/node/pull/50582 +Reviewed-By: Richard Lau <[email protected]> +Reviewed-By: Chengzhong Wu <[email protected]> + +Upstream-Status: Backport [https://github.com/nodejs/node/commit/95534ad82f4e33f53fd50efe633d43f8da70cba6] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + configure.py | 11 +++++------ + 1 file changed, 5 insertions(+), 6 deletions(-) + +diff --git a/configure.py b/configure.py +index 62f041ce..18fe7c14 100755 +--- a/configure.py ++++ b/configure.py +@@ -14,8 +14,6 @@ import bz2 + import io + from pathlib import Path + +-from distutils.version import StrictVersion +- + # If not run from node/, cd to node/. + os.chdir(Path(__file__).parent) + +@@ -30,6 +28,7 @@ tools_path = Path('tools') + + sys.path.insert(0, str(tools_path / 'gyp' / 'pylib')) + from gyp.common import GetFlavor ++from packaging.version import Version + + # imports in tools/configure.d + sys.path.insert(0, str(tools_path / 'configure.d')) +@@ -1565,10 +1564,10 @@ def configure_openssl(o): + # supported asm compiler for AVX2. See https://github.com/openssl/openssl/ + # blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69 + openssl110_asm_supported = \ +- ('gas_version' in variables and StrictVersion(variables['gas_version']) >= StrictVersion('2.23')) or \ +- ('xcode_version' in variables and StrictVersion(variables['xcode_version']) >= StrictVersion('5.0')) or \ +- ('llvm_version' in variables and StrictVersion(variables['llvm_version']) >= StrictVersion('3.3')) or \ +- ('nasm_version' in variables and StrictVersion(variables['nasm_version']) >= StrictVersion('2.10')) ++ ('gas_version' in variables and Version(variables['gas_version']) >= Version('2.23')) or \ ++ ('xcode_version' in variables and Version(variables['xcode_version']) >= Version('5.0')) or \ ++ ('llvm_version' in variables and Version(variables['llvm_version']) >= Version('3.3')) or \ ++ ('nasm_version' in variables and Version(variables['nasm_version']) >= Version('2.10')) + + if is_x86 and not openssl110_asm_supported: + error('''Did not find a new enough assembler, install one or build withmeta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patch new file +63
-0@@ -0,0 +1,63 @@ +From bf8c96ba6936050ed4a0de5bc8aeeaf2b3c50dc1 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Thu, 7 Dec 2023 12:54:30 +0100 +Subject: [PATCH] gyp: resolve python 3.12 issues + +Upstream has updated gyp wholesale in the main branch, so +this patch can be dropped in due time. + +Upstream-Status: Inappropriate [issue will be fixed upstream with the next nodejs LTS update] + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py | 4 ++-- + tools/gyp/pylib/gyp/input.py | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +index d9699a0a..173e9465 100644 +--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py ++++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +@@ -16,7 +16,7 @@ import subprocess + import sys + import threading + import traceback +-from distutils.version import StrictVersion ++from packaging.version import Version + from gyp.common import GypError + from gyp.common import OrderedSet + +@@ -1183,7 +1183,7 @@ def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, buil + else: + ast_code = compile(cond_expr_expanded, "<string>", "eval") + cached_conditions_asts[cond_expr_expanded] = ast_code +- env = {"__builtins__": {}, "v": StrictVersion} ++ env = {"__builtins__": {}, "v": Version} + if eval(ast_code, env, variables): + return true_dict + return false_dict +diff --git a/tools/gyp/pylib/gyp/input.py b/tools/gyp/pylib/gyp/input.py +index 354958bf..ab6112e5 100644 +--- a/tools/gyp/pylib/gyp/input.py ++++ b/tools/gyp/pylib/gyp/input.py +@@ -16,7 +16,7 @@ import subprocess + import sys + import threading + import traceback +-from distutils.version import StrictVersion ++from packaging.version import Version + from gyp.common import GypError + from gyp.common import OrderedSet + +@@ -1190,7 +1190,7 @@ def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, buil + else: + ast_code = compile(cond_expr_expanded, "<string>", "eval") + cached_conditions_asts[cond_expr_expanded] = ast_code +- env = {"__builtins__": {}, "v": StrictVersion} ++ env = {"__builtins__": {}, "v": Version} + if eval(ast_code, env, variables): + return true_dict + return false_dict +-- +2.39.2 +meta-oe/recipes-devtools/nodejs/nodejs_20.8.1.bb +3
-2@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=162595a4a2f3453a0534e60b0afe4e7b" CVE_PRODUCT = "nodejs node.js" -DEPENDS = "openssl file-replacement-native" +DEPENDS = "openssl file-replacement-native python3-packaging-native" DEPENDS:append:class-target = " qemu-native" DEPENDS:append:class-native = " c-ares-native"@@ -27,6 +27,8 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ file://0001-Revert-io_uring-changes-from-libuv-1.46.0.patch \ file://0002-Revert-io_uring-changes-from-libuv-1.45.0.patch \ file://run-ptest \ + file://0001-build-fix-build-with-Python-3.12.patch \ + file://0001-gyp-resolve-python-3.12-issues.patch \ " SRC_URI:append:class-target = " \ --2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107513): https://lists.openembedded.org/g/openembedded-devel/message/107513
Mute This Topic: https://lists.openembedded.org/mt/103186676/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 20/20] nodejs: backport (partially) python 3.12 support
I fixed it with
https://github.com/YoeDistro/yoe-distro/pull/882/commits/359ac8dbaef7e531143b9ad48e1a7d8824efa6f6
Quoted 191 lines · Alexander Kanavin
| npm ERR! ModuleNotFoundError: No module named 'packaging'
Looks like python3-packaging needs to be in RDEPENDS as well, I'll make a fix (or you can quickly try to see if it resolves the error).
Alex
Quoted 182 lines · Khem Raj
this is regressing some dependent recipe e.g. simpleiot which depends on gyp from nodejs-native
https://github.com/YoeDistro/yoe-distro/actions/runs/7258317572/job/19834510249?pr=882
Quoted 174 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- ...001-build-fix-build-with-Python-3.12.patch | 55 ++++++++++++++++ .../0001-gyp-resolve-python-3.12-issues.patch | 63 +++++++++++++++++++ .../recipes-devtools/nodejs/nodejs_20.8.1.bb | 4 +- 3 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patchmeta-oe/recipes-devtools/nodejs/nodejs/0001-build-fix-build-with-Python-3.12.patch new file +55
-0@@ -0,0 +1,55 @@ +From 656f6c91f1da7f1e1ffb01e2de7d9026a84958b5 Mon Sep 17 00:00:00 2001 +From: Luigi Pinca <[email protected]> +Date: Wed, 8 Nov 2023 21:20:53 +0100 +Subject: [PATCH] build: fix build with Python 3.12 + +Replace `distutils.version.StrictVersion` with +`packaging.version.Version`. + +Refs: https://github.com/nodejs/node/pull/50209#issuecomment-1795852539 +PR-URL: https://github.com/nodejs/node/pull/50582 +Reviewed-By: Richard Lau <[email protected]> +Reviewed-By: Chengzhong Wu <[email protected]> + +Upstream-Status: Backport [https://github.com/nodejs/node/commit/95534ad82f4e33f53fd50efe633d43f8da70cba6] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + configure.py | 11 +++++------ + 1 file changed, 5 insertions(+), 6 deletions(-) + +diff --git a/configure.py b/configure.py +index 62f041ce..18fe7c14 100755 +--- a/configure.py ++++ b/configure.py +@@ -14,8 +14,6 @@ import bz2 + import io + from pathlib import Path + +-from distutils.version import StrictVersion +- + # If not run from node/, cd to node/. + os.chdir(Path(__file__).parent) + +@@ -30,6 +28,7 @@ tools_path = Path('tools') + + sys.path.insert(0, str(tools_path / 'gyp' / 'pylib')) + from gyp.common import GetFlavor ++from packaging.version import Version + + # imports in tools/configure.d + sys.path.insert(0, str(tools_path / 'configure.d')) +@@ -1565,10 +1564,10 @@ def configure_openssl(o): + # supported asm compiler for AVX2. See https://github.com/openssl/openssl/ + # blob/OpenSSL_1_1_0-stable/crypto/modes/asm/aesni-gcm-x86_64.pl#L52-L69 + openssl110_asm_supported = \ +- ('gas_version' in variables and StrictVersion(variables['gas_version']) >= StrictVersion('2.23')) or \ +- ('xcode_version' in variables and StrictVersion(variables['xcode_version']) >= StrictVersion('5.0')) or \ +- ('llvm_version' in variables and StrictVersion(variables['llvm_version']) >= StrictVersion('3.3')) or \ +- ('nasm_version' in variables and StrictVersion(variables['nasm_version']) >= StrictVersion('2.10')) ++ ('gas_version' in variables and Version(variables['gas_version']) >= Version('2.23')) or \ ++ ('xcode_version' in variables and Version(variables['xcode_version']) >= Version('5.0')) or \ ++ ('llvm_version' in variables and Version(variables['llvm_version']) >= Version('3.3')) or \ ++ ('nasm_version' in variables and Version(variables['nasm_version']) >= Version('2.10')) + + if is_x86 and not openssl110_asm_supported: + error('''Did not find a new enough assembler, install one or build withmeta-oe/recipes-devtools/nodejs/nodejs/0001-gyp-resolve-python-3.12-issues.patch new file +63
-0@@ -0,0 +1,63 @@ +From bf8c96ba6936050ed4a0de5bc8aeeaf2b3c50dc1 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Thu, 7 Dec 2023 12:54:30 +0100 +Subject: [PATCH] gyp: resolve python 3.12 issues + +Upstream has updated gyp wholesale in the main branch, so +this patch can be dropped in due time. + +Upstream-Status: Inappropriate [issue will be fixed upstream with the next nodejs LTS update] + +Signed-off-by: Alexander Kanavin <[email protected]> +--- + deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py | 4 ++-- + tools/gyp/pylib/gyp/input.py | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +index d9699a0a..173e9465 100644 +--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py ++++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py +@@ -16,7 +16,7 @@ import subprocess + import sys + import threading + import traceback +-from distutils.version import StrictVersion ++from packaging.version import Version + from gyp.common import GypError + from gyp.common import OrderedSet + +@@ -1183,7 +1183,7 @@ def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, buil + else: + ast_code = compile(cond_expr_expanded, "<string>", "eval") + cached_conditions_asts[cond_expr_expanded] = ast_code +- env = {"__builtins__": {}, "v": StrictVersion} ++ env = {"__builtins__": {}, "v": Version} + if eval(ast_code, env, variables): + return true_dict + return false_dict +diff --git a/tools/gyp/pylib/gyp/input.py b/tools/gyp/pylib/gyp/input.py +index 354958bf..ab6112e5 100644 +--- a/tools/gyp/pylib/gyp/input.py ++++ b/tools/gyp/pylib/gyp/input.py +@@ -16,7 +16,7 @@ import subprocess + import sys + import threading + import traceback +-from distutils.version import StrictVersion ++from packaging.version import Version + from gyp.common import GypError + from gyp.common import OrderedSet + +@@ -1190,7 +1190,7 @@ def EvalSingleCondition(cond_expr, true_dict, false_dict, phase, variables, buil + else: + ast_code = compile(cond_expr_expanded, "<string>", "eval") + cached_conditions_asts[cond_expr_expanded] = ast_code +- env = {"__builtins__": {}, "v": StrictVersion} ++ env = {"__builtins__": {}, "v": Version} + if eval(ast_code, env, variables): + return true_dict + return false_dict +-- +2.39.2 +meta-oe/recipes-devtools/nodejs/nodejs_20.8.1.bb +3
-2@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=162595a4a2f3453a0534e60b0afe4e7b" CVE_PRODUCT = "nodejs node.js" -DEPENDS = "openssl file-replacement-native" +DEPENDS = "openssl file-replacement-native python3-packaging-native" DEPENDS:append:class-target = " qemu-native" DEPENDS:append:class-native = " c-ares-native"@@ -27,6 +27,8 @@ SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.xz \ file://0001-Revert-io_uring-changes-from-libuv-1.46.0.patch \ file://0002-Revert-io_uring-changes-from-libuv-1.45.0.patch \ file://run-ptest \ + file://0001-build-fix-build-with-Python-3.12.patch \ + file://0001-gyp-resolve-python-3.12-issues.patch \ " SRC_URI:append:class-target = " \ --2.39.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107513): https://lists.openembedded.org/g/openembedded-devel/message/107513
Mute This Topic: https://lists.openembedded.org/mt/103186676/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-