Re: [HEADS UP] Fedora 39 Python 3.12 rebuilds to start in a side tag this week

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29. 06. 23 22:37, Jerry James wrote:
On Tue, Jun 13, 2023 at 6:03 AM Tomas Hrnciar <thrnciar@xxxxxxxxxx> wrote:
If you'd like to build a package after we already rebuilt it, you should be able to build it in the side tag via:

on branch rawhide:
$ fedpkg build --target=f39-python
$ koji wait-repo f39-python --build <nvr>

I'm trying to help by fixing packages I maintain that failed to build
on the first attempt.  However, I'm having some issues with Cython
generating incorrect code.  The most recent example is the
python-pytest-cython package, which fails because Cython generates
code that accesses the use_tracing field of _PyCFrame.  That field was
removed in python 3.12.

Thanks for your help!

The use_tracing was fixed for most code, but still remained in profiling/tracing support. I filed a PR for Cython: https://src.fedoraproject.org/rpms/Cython/pull-request/46

(Hoping for a Cython 3 release soon -- things are getting fixed properly for 3.0, but the stable branch is pretty much on life support now...)


There are a couple of other packages that have issues with the
representation of a long object.  In python 3.11 and before, we had:

struct _longobject {
     PyObject_VAR_HEAD
     digit ob_digit[1];
};

In python 3.12, we have:

typedef struct _PyLongValue {
     uintptr_t lv_tag; /* Number of digits, sign and flags */
     digit ob_digit[1];
} _PyLongValue;

struct _longobject {
     PyObject_HEAD
     _PyLongValue long_value;
};

The Cython package in the side tag has this in Includes/cpython/longintrepr.pxd:

     ctypedef class __builtin__.py_long [object PyLongObject]:
         cdef digit* ob_digit

which is incorrect for python 3.12.  I think I'm stuck until Cython
has been updated for python 3.12.

Do you have an example of a package that fails on ob_digit?
Uses of that should be behind CYTHON_USE_PYLONG_INTERNALS which should be off by default (and probably will stay off until Cython 3.0).
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux