Skip to contentSkip to conversation

devtool/standard: correctly escape \

PATCH In review Alexander Kanavin 3 participants 12 messages Jan 5, 2024 – Jan 9, 2024 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 devtool/standard: correctly escape \

python 3.12 points out that:

SyntaxWarning: invalid escape sequence '\*'

---
 scripts/lib/devtool/standard.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/lib/devtool/standard.py +1 -1
index 559fd45676c..c20c0321a35 100644
@@ -772,7 +772,7 @@ def get_staging_kver(srcdir):
 def get_staging_kbranch(srcdir):
     staging_kbranch = ""
     if os.path.exists(srcdir) and os.listdir(srcdir):
-        (branch, _) = bb.process.run('git branch | grep \* | cut -d \' \' -f2', cwd=srcdir)
+        (branch, _) = bb.process.run('git branch | grep \\* | cut -d \' \' -f2', cwd=srcdir)
         staging_kbranch = "".join(branch.split('\n')[0])
     return staging_kbranch
 
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/3 python3-pyaaml: make compatible with cython 3.x

This has been rejected by upstream in favour of requiring obsolete cython until there's 'proper' 3.x support. Months later, there's still no progress so let's just take the rejected fix, as it does work (as reported by others as well), and allows moving forward with cython.

---
 .../0001-Fix-builds-with-Cython-3.patch       | 54 +++++++++++++++++++
 .../python/python3-pyyaml_6.0.1.bb            |  1 +
 2 files changed, 55 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pyyaml/0001-Fix-builds-with-Cython-3.patch
meta/recipes-devtools/python/python3-pyyaml/0001-Fix-builds-with-Cython-3.patch new file +54 -0
new file mode 100644
index 00000000000..a87d588b6a1
@@ -0,0 +1,54 @@
+From 9cc23db56add79357b8f8257fe6fc0d6879d4579 Mon Sep 17 00:00:00 2001
+From: "Andrew J. Hesford" <[email protected]>
+Date: Fri, 21 Jul 2023 09:50:00 -0400
+Subject: [PATCH] Fix builds with Cython 3
+
+This is a *de minimis* fix for building with Cython 3. Recent Cython<3
+releases provided `Cython.Distutils.build_ext` as an alias to
+`Cython.Distutils.old_build_ext.old_build_ext`; Cython 3 drops this
+alias and instead uses a wholly new `Cython.Distutils.build_ext` that
+does not provide the `cython_sources` function used in `setup.py`.
+
+Explicitly importing `old_build_ext` preserves the existing behavior for
+recent Cython<3 and uses the correct behavior for Cython 3. Should the
+import fail (*e.g.*, because the version of Cython available predates
+the availability of `old_build_ext`), the import falls back to just
+`Cython.Distutils.build_ext`.
+
+Signed-off-by: Andrew J. Hesford <[email protected]>
+Upstream-Status: Denied [https://github.com/yaml/pyyaml/pull/731]
+Signed-off-by: Alexander Kanavin <[email protected]>
+---
+ pyproject.toml | 2 +-
+ setup.py       | 6 +++++-
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 4bc04c0..2bf5ec8 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,3 +1,3 @@
+ [build-system]
+-requires = ["setuptools", "wheel", "Cython<3.0"]
++requires = ["setuptools", "wheel", "Cython"]
+ build-backend = "setuptools.build_meta"
+diff --git a/setup.py b/setup.py
+index 65b0ea0..4461580 100644
+--- a/setup.py
++++ b/setup.py
+@@ -82,7 +82,11 @@ if 'sdist' in sys.argv or os.environ.get('PYYAML_FORCE_CYTHON') == '1':
+     with_cython = True
+ try:
+     from Cython.Distutils.extension import Extension as _Extension
+-    from Cython.Distutils import build_ext as _build_ext
++    try:
++        from Cython.Distutils.old_build_ext import old_build_ext as _build_ext
++    except ImportError:
++        from Cython.Distutils import build_ext as _build_ext
++
+     with_cython = True
+ except ImportError:
+     if with_cython:
+-- 
+2.39.2
+
meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb +1 -0
index 4ab8f038f42..61f7cbc6b36 100644
@@ -9,6 +9,7 @@ PYPI_PACKAGE = "PyYAML"
 
 inherit pypi python_setuptools_build_meta
 
+SRC_URI += "file://0001-Fix-builds-with-Cython-3.patch"
 SRC_URI[sha256sum] = "bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"
 
 RDEPENDS:${PN} += "\
Signature · 1 line
2.39.2
#2 lore raw

Re: [OE-core] [PATCH 2/3] python3-pyaaml: make compatible with cython 3.x

Hello,

You have a typo in the subject.

Quoted 97 lines · Alexander Kanavin

This has been rejected by upstream in favour of requiring obsolete cython until there's 'proper' 3.x support. Months later, there's still no progress so let's just take the rejected fix, as it does work (as reported by others as well), and allows moving forward with cython.

---
 .../0001-Fix-builds-with-Cython-3.patch       | 54 +++++++++++++++++++
 .../python/python3-pyyaml_6.0.1.bb            |  1 +
 2 files changed, 55 insertions(+)
 create mode 100644 meta/recipes-devtools/python/python3-pyyaml/0001-Fix-builds-with-Cython-3.patch
meta/recipes-devtools/python/python3-pyyaml/0001-Fix-builds-with-Cython-3.patch new file +54 -0
new file mode 100644
index 00000000000..a87d588b6a1
@@ -0,0 +1,54 @@
+From 9cc23db56add79357b8f8257fe6fc0d6879d4579 Mon Sep 17 00:00:00 2001
+From: "Andrew J. Hesford" <[email protected]>
+Date: Fri, 21 Jul 2023 09:50:00 -0400
+Subject: [PATCH] Fix builds with Cython 3
+
+This is a *de minimis* fix for building with Cython 3. Recent Cython<3
+releases provided `Cython.Distutils.build_ext` as an alias to
+`Cython.Distutils.old_build_ext.old_build_ext`; Cython 3 drops this
+alias and instead uses a wholly new `Cython.Distutils.build_ext` that
+does not provide the `cython_sources` function used in `setup.py`.
+
+Explicitly importing `old_build_ext` preserves the existing behavior for
+recent Cython<3 and uses the correct behavior for Cython 3. Should the
+import fail (*e.g.*, because the version of Cython available predates
+the availability of `old_build_ext`), the import falls back to just
+`Cython.Distutils.build_ext`.
+
+Signed-off-by: Andrew J. Hesford <[email protected]>
+Upstream-Status: Denied [https://github.com/yaml/pyyaml/pull/731]
+Signed-off-by: Alexander Kanavin <[email protected]>
+---
+ pyproject.toml | 2 +-
+ setup.py       | 6 +++++-
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/pyproject.toml b/pyproject.toml
+index 4bc04c0..2bf5ec8 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,3 +1,3 @@
+ [build-system]
+-requires = ["setuptools", "wheel", "Cython<3.0"]
++requires = ["setuptools", "wheel", "Cython"]
+ build-backend = "setuptools.build_meta"
+diff --git a/setup.py b/setup.py
+index 65b0ea0..4461580 100644
+--- a/setup.py
++++ b/setup.py
+@@ -82,7 +82,11 @@ if 'sdist' in sys.argv or os.environ.get('PYYAML_FORCE_CYTHON') == '1':
+     with_cython = True
+ try:
+     from Cython.Distutils.extension import Extension as _Extension
+-    from Cython.Distutils import build_ext as _build_ext
++    try:
++        from Cython.Distutils.old_build_ext import old_build_ext as _build_ext
++    except ImportError:
++        from Cython.Distutils import build_ext as _build_ext
++
+     with_cython = True
+ except ImportError:
+     if with_cython:
+-- 
+2.39.2
+
meta/recipes-devtools/python/python3-pyyaml_6.0.1.bb +1 -0
index 4ab8f038f42..61f7cbc6b36 100644
@@ -9,6 +9,7 @@ PYPI_PACKAGE = "PyYAML"
 
 inherit pypi python_setuptools_build_meta
 
+SRC_URI += "file://0001-Fix-builds-with-Cython-3.patch"
 SRC_URI[sha256sum] = "bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"
 
 RDEPENDS:${PN} += "\
Signature · 11 lines
2.39.2



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193356): https://lists.openembedded.org/g/openembedded-core/message/193356
Mute This Topic: https://lists.openembedded.org/mt/103542145/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH 3/3 python3-cython: update 0.29.36 -> 3.0.7

In reply to Alexander Kanavin

pep517 build backends require cython 3.x when python is at 3.12, so we can't hold this update any longer. There are only a few things in meta-oe and meta that break anymore, and fixes for them are provided at the same time as this patch.

License-update: http -> https

---
 meta/recipes-devtools/python/python-cython.inc             | 7 +++++--
 .../{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} | 0
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} (100%)
meta/recipes-devtools/python/python-cython.inc +5 -2
index 6aec6b012f1..bc1953c5045 100644
@@ -5,11 +5,11 @@ It's designed to bridge the gap between the nice, high-level, easy-to-use world
 and the messy, low-level world of C."
 SECTION = "devel/python"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
 PYPI_PACKAGE = "Cython"
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI[sha256sum] = "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
+SRC_URI[sha256sum] = "fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213"
 UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
 
 inherit pypi
@@ -39,4 +39,7 @@ do_install:append() {
 	for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
 		sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
 	done
+
+        # remove build paths from generated sources
+        sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
 }
meta/recipes-devtools/python/python3-cython_3.0.7.bb renamed from meta/recipes-devtools/python/python3-cython_0.29.36.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
rename to meta/recipes-devtools/python/python3-cython_3.0.7.bb
Signature · 1 line
2.39.2
#4 lore raw

Patchtest results for [PATCH 3/3] python3-cython: update 0.29.36 -> 3.0.7

Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:

---
Testing patch /home/patchtest/share/mboxes/3-3-python3-cython-update-0.29.36---3.0.7.patch

FAIL: test lic files chksum modified not mentioned: LIC_FILES_CHKSUM changed without "License-Update:" tag and description in commit message (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)

PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE check ignore (test_metadata.TestMetadata.test_cve_check_ignore)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files (test_metadata.TestMetadata.test_src_uri_left_files)

SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test CVE tag format: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing lists (test_mbox.TestMbox.test_target_mailing_list)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!

#5 lore raw

Re: [OE-core] [PATCH 3/3] python3-cython: update 0.29.36 -> 3.0.7

In reply to Alexander Kanavin

Hello,

I believe this causes those failures on fedora, oe-selftest passed on the other hosts:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6287/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6288/steps/14/logs/stdio

Or maybe fedora38-ty-4 is the issue, I've started a build without the patch on this worker now.

Quoted 58 lines · Alexander Kanavin

pep517 build backends require cython 3.x when python is at 3.12, so we can't hold this update any longer. There are only a few things in meta-oe and meta that break anymore, and fixes for them are provided at the same time as this patch.

License-update: http -> https

---
 meta/recipes-devtools/python/python-cython.inc             | 7 +++++--
 .../{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} | 0
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} (100%)
meta/recipes-devtools/python/python-cython.inc +5 -2
index 6aec6b012f1..bc1953c5045 100644
@@ -5,11 +5,11 @@ It's designed to bridge the gap between the nice, high-level, easy-to-use world
 and the messy, low-level world of C."
 SECTION = "devel/python"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
 PYPI_PACKAGE = "Cython"
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI[sha256sum] = "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
+SRC_URI[sha256sum] = "fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213"
 UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
 
 inherit pypi
@@ -39,4 +39,7 @@ do_install:append() {
 	for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
 		sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
 	done
+
+        # remove build paths from generated sources
+        sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
 }
meta/recipes-devtools/python/python3-cython_3.0.7.bb renamed from meta/recipes-devtools/python/python3-cython_0.29.36.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
rename to meta/recipes-devtools/python/python3-cython_3.0.7.bb
Signature · 11 lines
2.39.2



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193357): https://lists.openembedded.org/g/openembedded-core/message/193357
Mute This Topic: https://lists.openembedded.org/mt/103542146/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#6 lore raw

Re: [OE-core] [PATCH 3/3] python3-cython: update 0.29.36 -> 3.0.7

2024-01-07 15:06:26,597 - oe-selftest - INFO - FAIL:

devtool.DevtoolAddTests.test_devtool_add_fetch_simple (subunit.RemotedTestCase)
ERROR: Nothing PROVIDES 'pv'

2024-01-07 06:40:56,859 - oe-selftest - INFO - FAIL:

devtool.DevtoolAddTests.test_devtool_add_git_style1 (subunit.RemotedTestCase)
ERROR: Nothing PROVIDES 'mbedtls'

I'm totally puzzled. Why do you suspect cython?

Alex

Quoted 78 lines · Alexandre Belloni

Hello,

I believe this causes those failures on fedora, oe-selftest passed on the other hosts:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6287/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6288/steps/14/logs/stdio

Or maybe fedora38-ty-4 is the issue, I've started a build without the patch on this worker now.

Quoted 50 lines · Alexander Kanavin

pep517 build backends require cython 3.x when python is at 3.12, so we can't hold this update any longer. There are only a few things in meta-oe and meta that break anymore, and fixes for them are provided at the same time as this patch.

License-update: http -> https

---
 meta/recipes-devtools/python/python-cython.inc             | 7 +++++--
 .../{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} | 0
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} (100%)
meta/recipes-devtools/python/python-cython.inc +5 -2
index 6aec6b012f1..bc1953c5045 100644
@@ -5,11 +5,11 @@ It's designed to bridge the gap between the nice, high-level, easy-to-use world
 and the messy, low-level world of C."
 SECTION = "devel/python"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
 PYPI_PACKAGE = "Cython"
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI[sha256sum] = "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
+SRC_URI[sha256sum] = "fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213"
 UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
 
 inherit pypi
@@ -39,4 +39,7 @@ do_install:append() {
      for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
              sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
      done
+
+        # remove build paths from generated sources
+        sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
 }
meta/recipes-devtools/python/python3-cython_3.0.7.bb renamed from meta/recipes-devtools/python/python3-cython_0.29.36.bb +0 -1
similarity index 100%
rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
rename to meta/recipes-devtools/python/python3-cython_3.0.7.bb
--

2.39.2

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193357): https://lists.openembedded.org/g/openembedded-core/message/193357
Mute This Topic: https://lists.openembedded.org/mt/103542146/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#7 lore raw

Re: [OE-core] [PATCH 3/3] python3-cython: update 0.29.36 -> 3.0.7

Quoted 11 lines · Alexander Kanavin
2024-01-07 15:06:26,597 - oe-selftest - INFO - FAIL:

devtool.DevtoolAddTests.test_devtool_add_fetch_simple (subunit.RemotedTestCase)
ERROR: Nothing PROVIDES 'pv'

2024-01-07 06:40:56,859 - oe-selftest - INFO - FAIL:

devtool.DevtoolAddTests.test_devtool_add_git_style1 (subunit.RemotedTestCase)
ERROR: Nothing PROVIDES 'mbedtls'

I'm totally puzzled. Why do you suspect cython?

I didn't have much else to suspect and I ran the same branch without this patch successfully (but on fedora38-ty-3). Apart from this, I guess I'm as puzzled as you are.

Quoted 83 lines

Alex

Quoted 78 lines · Alexandre Belloni

Hello,

I believe this causes those failures on fedora, oe-selftest passed on the other hosts:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6287/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6288/steps/14/logs/stdio

Or maybe fedora38-ty-4 is the issue, I've started a build without the patch on this worker now.

Quoted 50 lines · Alexander Kanavin

pep517 build backends require cython 3.x when python is at 3.12, so we can't hold this update any longer. There are only a few things in meta-oe and meta that break anymore, and fixes for them are provided at the same time as this patch.

License-update: http -> https

---
 meta/recipes-devtools/python/python-cython.inc             | 7 +++++--
 .../{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} | 0
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} (100%)
meta/recipes-devtools/python/python-cython.inc +5 -2
index 6aec6b012f1..bc1953c5045 100644
@@ -5,11 +5,11 @@ It's designed to bridge the gap between the nice, high-level, easy-to-use world
 and the messy, low-level world of C."
 SECTION = "devel/python"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
 PYPI_PACKAGE = "Cython"
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI[sha256sum] = "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
+SRC_URI[sha256sum] = "fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213"
 UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
 
 inherit pypi
@@ -39,4 +39,7 @@ do_install:append() {
      for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
              sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
      done
+
+        # remove build paths from generated sources
+        sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
 }
meta/recipes-devtools/python/python3-cython_3.0.7.bb renamed from meta/recipes-devtools/python/python3-cython_0.29.36.bb +0 -1
similarity index 100%
rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
rename to meta/recipes-devtools/python/python3-cython_3.0.7.bb
--

2.39.2

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193357): https://lists.openembedded.org/g/openembedded-core/message/193357
Mute This Topic: https://lists.openembedded.org/mt/103542146/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#8 lore raw

Re: [OE-core] [PATCH 3/3] python3-cython: update 0.29.36 -> 3.0.7

Quoted 11 lines · Alexandre Belloni
Quoted 10 lines · Alexander Kanavin
2024-01-07 15:06:26,597 - oe-selftest - INFO - FAIL:

devtool.DevtoolAddTests.test_devtool_add_fetch_simple (subunit.RemotedTestCase)
ERROR: Nothing PROVIDES 'pv'

2024-01-07 06:40:56,859 - oe-selftest - INFO - FAIL:

devtool.DevtoolAddTests.test_devtool_add_git_style1 (subunit.RemotedTestCase)
ERROR: Nothing PROVIDES 'mbedtls'

Quoted 5 lines
Quoted 1 line

I'm totally puzzled. Why do you suspect cython?

I didn't have much else to suspect and I ran the same branch without this patch successfully (but on fedora38-ty-3). Apart from this, I guess I'm as puzzled as you are.

Note that dmesg on the worker had a bunch of mips64-poky-linux-<something> and prelink-rtld segfaults that are not unusual.

But also an interesting

[435224.430115] mmap: qemu-ppc (2739864): VmData 1126244352 exceed data ulimit 16777216. Update limits or use boot option ignore_rlimit_data.

I don't believe this is related to this issue.

Quoted 89 lines
Quoted 84 lines

Alex

Quoted 78 lines · Alexandre Belloni

Hello,

I believe this causes those failures on fedora, oe-selftest passed on the other hosts:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6287/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6288/steps/14/logs/stdio

Or maybe fedora38-ty-4 is the issue, I've started a build without the patch on this worker now.

Quoted 50 lines · Alexander Kanavin

pep517 build backends require cython 3.x when python is at 3.12, so we can't hold this update any longer. There are only a few things in meta-oe and meta that break anymore, and fixes for them are provided at the same time as this patch.

License-update: http -> https

---
 meta/recipes-devtools/python/python-cython.inc             | 7 +++++--
 .../{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} | 0
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} (100%)
meta/recipes-devtools/python/python-cython.inc +5 -2
index 6aec6b012f1..bc1953c5045 100644
@@ -5,11 +5,11 @@ It's designed to bridge the gap between the nice, high-level, easy-to-use world
 and the messy, low-level world of C."
 SECTION = "devel/python"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
 PYPI_PACKAGE = "Cython"
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI[sha256sum] = "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
+SRC_URI[sha256sum] = "fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213"
 UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
 
 inherit pypi
@@ -39,4 +39,7 @@ do_install:append() {
      for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
              sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
      done
+
+        # remove build paths from generated sources
+        sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
 }
meta/recipes-devtools/python/python3-cython_3.0.7.bb renamed from meta/recipes-devtools/python/python3-cython_0.29.36.bb +0 -1
similarity index 100%
rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
rename to meta/recipes-devtools/python/python3-cython_3.0.7.bb
--

2.39.2

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193357): https://lists.openembedded.org/g/openembedded-core/message/193357
Mute This Topic: https://lists.openembedded.org/mt/103542146/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

#10 lore raw

Re: [OE-core] [PATCH 3/3] python3-cython: update 0.29.36 -> 3.0.7

Quoted 11 lines · Alexandre Belloni via lists.openembedded.org

Hello,

I believe this causes those failures on fedora, oe-selftest passed on the other hosts:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6287/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6288/steps/14/logs/stdio

Or maybe fedora38-ty-4 is the issue, I've started a build without the patch on this worker now.

Amazingly, I can't reproduce anymore...

Quoted 70 lines · Alexander Kanavin
Quoted 52 lines

pep517 build backends require cython 3.x when python is at 3.12, so we can't hold this update any longer. There are only a few things in meta-oe and meta that break anymore, and fixes for them are provided at the same time as this patch.

License-update: http -> https

---
 meta/recipes-devtools/python/python-cython.inc             | 7 +++++--
 .../{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} | 0
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} (100%)
meta/recipes-devtools/python/python-cython.inc +5 -2
index 6aec6b012f1..bc1953c5045 100644
@@ -5,11 +5,11 @@ It's designed to bridge the gap between the nice, high-level, easy-to-use world
 and the messy, low-level world of C."
 SECTION = "devel/python"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
 PYPI_PACKAGE = "Cython"
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI[sha256sum] = "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
+SRC_URI[sha256sum] = "fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213"
 UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
 
 inherit pypi
@@ -39,4 +39,7 @@ do_install:append() {
 	for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
 		sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
 	done
+
+        # remove build paths from generated sources
+        sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
 }
meta/recipes-devtools/python/python3-cython_3.0.7.bb renamed from meta/recipes-devtools/python/python3-cython_0.29.36.bb +0 -0
similarity index 100%
rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
rename to meta/recipes-devtools/python/python3-cython_3.0.7.bb
Signature · 1 line
2.39.2
Signature · 12 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193390): https://lists.openembedded.org/g/openembedded-core/message/193390
Mute This Topic: https://lists.openembedded.org/mt/103542146/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#11 lore raw

Re: [OE-core] [PATCH 3/3] python3-cython: update 0.29.36 -> 3.0.7

I suspect this might have been a transient network issue. Both tests fetch stuff from 3rd party servers.

Alex

Quoted 92 lines · Alexandre Belloni
Quoted 11 lines · Alexandre Belloni via lists.openembedded.org

Hello,

I believe this causes those failures on fedora, oe-selftest passed on the other hosts:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6287/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6288/steps/14/logs/stdio

Or maybe fedora38-ty-4 is the issue, I've started a build without the patch on this worker now.

Amazingly, I can't reproduce anymore...

Quoted 62 lines · Alexander Kanavin
Quoted 46 lines

pep517 build backends require cython 3.x when python is at 3.12, so we can't hold this update any longer. There are only a few things in meta-oe and meta that break anymore, and fixes for them are provided at the same time as this patch.

License-update: http -> https

---
 meta/recipes-devtools/python/python-cython.inc             | 7 +++++--
 .../{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} | 0
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} (100%)
meta/recipes-devtools/python/python-cython.inc +5 -2
index 6aec6b012f1..bc1953c5045 100644
@@ -5,11 +5,11 @@ It's designed to bridge the gap between the nice, high-level, easy-to-use world
 and the messy, low-level world of C."
 SECTION = "devel/python"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
 PYPI_PACKAGE = "Cython"
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI[sha256sum] = "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
+SRC_URI[sha256sum] = "fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213"
 UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
 
 inherit pypi
@@ -39,4 +39,7 @@ do_install:append() {
    for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
            sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
    done
+
+        # remove build paths from generated sources
+        sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
 }
meta/recipes-devtools/python/python3-cython_3.0.7.bb renamed from meta/recipes-devtools/python/python3-cython_0.29.36.bb +0 -1
similarity index 100%
rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
rename to meta/recipes-devtools/python/python3-cython_3.0.7.bb
--
Quoted 6 lines

2.39.2

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193390): https://lists.openembedded.org/g/openembedded-core/message/193390
Mute This Topic: https://lists.openembedded.org/mt/103542146/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#12 lore raw

Re: [OE-core] [PATCH 3/3] python3-cython: update 0.29.36 -> 3.0.7

Quoted 2 lines · Alexander Kanavin

I suspect this might have been a transient network issue. Both tests fetch stuff from 3rd party servers.

This is super weird but I added the cython upgrade and got this one, on fedora38-ty-4 again:
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6296/steps/14/logs/stdio

I'll try to reproduce without the other patches I'm carrying.

Quoted 101 lines

Alex

Quoted 82 lines · Alexandre Belloni
Quoted 11 lines · Alexandre Belloni via lists.openembedded.org

Hello,

I believe this causes those failures on fedora, oe-selftest passed on the other hosts:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6287/steps/14/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6288/steps/14/logs/stdio

Or maybe fedora38-ty-4 is the issue, I've started a build without the patch on this worker now.

Amazingly, I can't reproduce anymore...

Quoted 56 lines · Alexander Kanavin
Quoted 46 lines

pep517 build backends require cython 3.x when python is at 3.12, so we can't hold this update any longer. There are only a few things in meta-oe and meta that break anymore, and fixes for them are provided at the same time as this patch.

License-update: http -> https

---
 meta/recipes-devtools/python/python-cython.inc             | 7 +++++--
 .../{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} | 0
 2 files changed, 5 insertions(+), 2 deletions(-)
 rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb => python3-cython_3.0.7.bb} (100%)
meta/recipes-devtools/python/python-cython.inc +5 -2
index 6aec6b012f1..bc1953c5045 100644
@@ -5,11 +5,11 @@ It's designed to bridge the gap between the nice, high-level, easy-to-use world
 and the messy, low-level world of C."
 SECTION = "devel/python"
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=e23fadd6ceef8c618fc1c65191d846fa"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
 PYPI_PACKAGE = "Cython"
 BBCLASSEXTEND = "native nativesdk"
 
-SRC_URI[sha256sum] = "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
+SRC_URI[sha256sum] = "fb299acf3a578573c190c858d49e0cf9d75f4bc49c3f24c5a63804997ef09213"
 UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
 
 inherit pypi
@@ -39,4 +39,7 @@ do_install:append() {
    for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
            sed -i -e '1s|^#!.*|#!/usr/bin/env ${PYTHON_PN}|' $PYTHSCRIPT
    done
+
+        # remove build paths from generated sources
+        sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
 }
meta/recipes-devtools/python/python3-cython_3.0.7.bb renamed from meta/recipes-devtools/python/python3-cython_0.29.36.bb +0 -1
similarity index 100%
rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
rename to meta/recipes-devtools/python/python3-cython_3.0.7.bb
--
Quoted 6 lines

2.39.2

Quoted 8 lines

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Quoted 4 lines

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193396): https://lists.openembedded.org/g/openembedded-core/message/193396
Mute This Topic: https://lists.openembedded.org/mt/103542146/3617179
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com