Re: [PATCH] pylibfdt: fix with Python 3.10

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



On Thu, Nov 11, 2021 at 10:05 AM Ross Burton <ross.burton@xxxxxxx> wrote:
>
> Since Python 2.5 the argument parsing functions when parsing expressions
> such as s# (string plus length) expect the length to be an int or a
> ssize_t, depending on whether PY_SSIZE_T_CLEAN is defined or not.
>
> Python 3.8 deprecated the use of int, and with Python 3.10 this symbol
> must be defined and ssize_t used[1].
>
> Define the magic symbol when building the extension, and cast the ints
> from the libfdt API to ssize_t as appropriate.
>
> [1] https://docs.python.org/3.10/whatsnew/3.10.html#id2
>
> Signed-off-by: Ross Burton <ross.burton@xxxxxxx>
> ---
>  pylibfdt/libfdt.i | 4 ++--
>  pylibfdt/setup.py | 1 +

setup.py just moved up a level.

With that fixed up,

Tested-by: Rob Herring <robh@xxxxxxxxxx>



[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux