From: lukas.woodtli@husqvarnagroup.com
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH v2] python3-cython: upgrade 0.29.36 -> 3.0.5
Date: Thu, 30 Nov 2023 01:12:29 -0800 [thread overview]
Message-ID: <23680.1701335549279273629@lists.openembedded.org> (raw)
In-Reply-To: <20231120215820.1475322-1-tgamblin@baylibre.com>
[-- Attachment #1: Type: text/plain, Size: 5223 bytes --]
Thank you for that patch!
We are very much interested in having a recent cython version in the openembedded-core layer.
How about update to cython 3.0.6 which was just released on Nov 23?
See also remarks about LIC_FILES_CHKSUM and SRC_URI[sha256sum] (in the quoted patches at the bottom of the mail).
Regards,
Lukas
On Mon, Nov 20, 2023 at 10:58 PM, Trevor Gamblin wrote:
>
> License-Update: Update license link to use https
>
> cython 3.0.x attempts to remain compatible with 0.29.x but still makes
> some major changes (in addition to fixing old issues). For a complete
> overview it's best to view the CHANGES.rst doc rather than including
> them here: https://github.com/cython/cython/blob/master/CHANGES.rst.
>
> Note that more source files were added to cython_fix_sources to avoid
> the following:
>
> |WARNING: python3-cython-3.0.5-r0 do_package_qa: QA Issue: File
> /usr/src/debug/python3-cython/3.0.5-r0/Cython/Utils.c in package
> python3-cython-src contains reference to TMPDIR
> |File /usr/src/debug/python3-cython/3.0.5-r0/Cython/StringIOTree.c in
> package python3-cython-src contains reference to TMPDIR
> |File /usr/src/debug/python3-cython/3.0.5-r0/Cython/Compiler/Parsing.c in
> package python3-cython-src contains reference to TMPDIR
> |File /usr/src/debug/python3-cython/3.0.5-r0/Cython/Compiler/Code.c in
> package python3-cython-src contains reference to TMPDIR
> |File /usr/src/debug/python3-cython/3.0.5-r0/Cython/Plex/Machines.c in
> package python3-cython-src contains reference to TMPDIR
> |File /usr/src/debug/python3-cython/3.0.5-r0/Cython/Plex/DFA.c in package
> python3-cython-src contains reference to TMPDIR
> |File /usr/src/debug/python3-cython/3.0.5-r0/Cython/Plex/Transitions.c in
> package python3-cython-src contains reference to TMPDIR [buildpaths]
>
> Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
> ---
> v2 rebases the patch to apply on latest master. There was a previous
> improvement made to the python3-cython recipe that was merged first.
>
> meta/recipes-devtools/python/python-cython.inc | 4 ++--
> ...python3-cython_0.29.36.bb => python3-cython_3.0.5.bb} | 9 ++++++++-
> 2 files changed, 10 insertions(+), 3 deletions(-)
> rename meta/recipes-devtools/python/{python3-cython_0.29.36.bb =>
> python3-cython_3.0.5.bb} (72%)
>
> diff --git a/meta/recipes-devtools/python/python-cython.inc
> b/meta/recipes-devtools/python/python-cython.inc
> index 6aec6b012f1..e757e3f7c87 100644
> --- a/meta/recipes-devtools/python/python-cython.inc
> +++ b/meta/recipes-devtools/python/python-cython.inc
> @@ -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 should be moved into the `bb` file as it changes when the cython version changes.
>
> -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]: Same as LIC_FILES_CHKSUM (should be moved into the `bb` file)
>
>
> -SRC_URI[sha256sum] =
> "41c0cfd2d754e383c9eeb95effc9aa4ab847d0c9747077ddd7c0dcb68c3bc01f"
> +SRC_URI[sha256sum] =
> "39318348db488a2f24e7c84e08bdc82f2624853c0fea8b475ea0b70b27176492"
> UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
>
> inherit pypi
> diff --git a/meta/recipes-devtools/python/python3-cython_0.29.36.bb
> b/meta/recipes-devtools/python/python3-cython_3.0.5.bb
> similarity index 72%
> rename from meta/recipes-devtools/python/python3-cython_0.29.36.bb
> rename to meta/recipes-devtools/python/python3-cython_3.0.5.bb
> index 07638d7ad78..342c0f8f3fe 100644
> --- a/meta/recipes-devtools/python/python3-cython_0.29.36.bb
> +++ b/meta/recipes-devtools/python/python3-cython_3.0.5.bb
> @@ -20,14 +20,21 @@ do_install:append() {
> PACKAGESPLITFUNCS =+ "cython_fix_sources"
>
> cython_fix_sources () {
> - for f in ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FlowControl.c \
> + for f in ${PKGD}${TARGET_DBSRC_DIR}/Cython/Compiler/Code.c \
> + ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FlowControl.c \
> ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FusedNode.c \
> + ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Parsing.c \
> ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Scanning.c \
> ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Visitor.c \
> ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Actions.c \
> + ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/DFA.c \
> + ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Machines.c \
> ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Scanners.c \
> + ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Transitions.c \
> ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Runtime/refnanny.c \
> ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Tempita/_tempita.c \
> + ${PKGD}${TARGET_DBGSRC_DIR}/Cython/StringIOTree.c \
> + ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Utils.c \
> ${PKGD}${libdir}/${PYTHON_DIR}/site-packages/Cython*/SOURCES.txt; do
> if [ -e $f ]; then
> sed -i -e 's#${WORKDIR}/Cython-${PV}#${TARGET_DBGSRC_DIR}#g' $f
> --
> 2.42.0
[-- Attachment #2: Type: text/html, Size: 5652 bytes --]
prev parent reply other threads:[~2023-11-30 9:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-20 21:58 [OE-core][PATCH v2] python3-cython: upgrade 0.29.36 -> 3.0.5 Trevor Gamblin
2023-11-30 9:12 ` lukas.woodtli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23680.1701335549279273629@lists.openembedded.org \
--to=lukas.woodtli@husqvarnagroup.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox