Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 907232 - =dev-python/ruamel-yaml-clib-0.2.7[python_targets_python3_12] fails to compile
Summary: =dev-python/ruamel-yaml-clib-0.2.7[python_targets_python3_12] fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-26 23:42 UTC by Nick
Modified: 2023-05-27 02:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,75.95 KB, text/plain)
2023-05-26 23:43 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick 2023-05-26 23:42:42 UTC
If and only if python3.12 is added to the package python targets, build fails with error:

error: ‘PyLongObject’ {aka ‘struct _longobject’} has no member named ‘ob_digit’

$ emerge -pqv '=dev-python/ruamel-yaml-clib-0.2.7::gentoo'
[ebuild   R   ] dev-python/ruamel-yaml-clib-0.2.7  USE="-debug" PYTHON_TARGETS="python3_10 python3_11 python3_12* -pypy3"

Reproducible: Always

Steps to Reproduce:
1. Ensure python_targets_python3_12 is enabled for =dev-python/ruamel-yaml-clib-0.2.7
2. emerge =dev-python/ruamel-yaml-clib-0.2.7
Actual Results:  
Build fails

Expected Results:  
Build succeeds
Comment 1 Nick 2023-05-26 23:43:14 UTC
Created attachment 862681 [details]
build.log

Build log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-26 23:53:05 UTC
What cython version?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-27 02:19:36 UTC
I can reproduce w/ 0.29.35.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-27 02:45:22 UTC
commit 8d3d6ac7e5935463fd877b6b31c3605dbd16af96 (HEAD -> master, origin/master, origin/HEAD)
Author: Sam James <sam@gentoo.org>
Date:   Sat May 27 03:43:37 2023 +0100

    dev-python/ruamel-yaml-clib: fix cythonize call to always regenerate

    Ionen took a look and ended up spotting that it wasn't really regenerating it
    (and that the Clang 16 patch is touching only the generated sources, so is being
    overwritten now).

    Also, while here, I noticed it doesn't respect MAKEOPTS, so fix that.

    Now Python 3.12 builds again.

    Bug: https://bugs.gentoo.org/880651
    Signed-off-by: Sam James <sam@gentoo.org>