From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Ralf Dragon <hypnotoad@lindra.de>
Cc: gwenhael.goavec-merou@trabucayre.com, yann.morin.1998@free.fr,
asafka7@gmail.com, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/2] python-sip: fix compile error
Date: Sun, 17 Dec 2023 23:03:03 +0100 [thread overview]
Message-ID: <20231217230303.3200b052@windsurf> (raw)
In-Reply-To: <20231212160112.94272-1-hypnotoad@lindra.de>
Hello Ralf,
Thanks for the patch! I have applied it, with some changes, see below.
On Tue, 12 Dec 2023 17:01:11 +0100
Ralf Dragon <hypnotoad@lindra.de> wrote:
> Without the patch, python-sip fails to compile with:
>
> siplib.c: In function ‘sip_api_get_frame’:
> siplib.c:13750:22: error: invalid use of undefined type ‘struct _frame’
> 13750 | frame = frame->f_back;
>
> This likely fixes bug 15201 [1].
>
> [1] https://bugs.buildroot.org/show_bug.cgi?id=15201
I am not sure it fixes this bug. This bug is more about upgrading
python-sip, which indeed would be very nice to do as SIP 4.x is no
longer maintained, as you pointed out.
However, your patch fixes
http://autobuild.buildroot.net/results/7b01739e7514e48c06182bc1804b32497ce2e414/
for sure, so I've used that in the commit log.
> diff --git a/package/python-sip/0002-fixframe.patch b/package/python-sip/0002-fixframe.patch
> new file mode 100644
> index 0000000000..befe76fc73
> --- /dev/null
> +++ b/package/python-sip/0002-fixframe.patch
> @@ -0,0 +1,55 @@
> +siplib: fix build with python >= 3.11
> +
> +With python 3.11, the PyFrameObject structure members have been
> +removed from the public C API:
> +
> +https://docs.python.org/3.11/whatsnew/3.11.html#whatsnew311-c-api-porting
> +https://docs.python.org/3.11/whatsnew/3.11.html#pyframeobject-3-11-hiding
> +
> +This patch migrates to the opaque PyFrameObject.
> +
> +Signed-off-by: Ralf Dragon <hypnotoad@lindra.de>
> +Upstream: N/A as SIP v4 is no longer supported. 4.19.25 is the last release.
I reformatted this patch using "git format-patch" to be like patch
0001. I also slightly improved the commit log.
See the final commit:
https://gitlab.com/buildroot.org/buildroot/-/commit/3ef6884e6d59744d83649170822a4829eed146fc
Thanks a lot!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-12-17 22:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-12 16:01 [Buildroot] [PATCH 1/2] python-sip: fix compile error Ralf Dragon
2023-12-12 16:01 ` [Buildroot] [PATCH 2/2] python-qt5: add PyQt5.sip module Ralf Dragon
2023-12-17 22:07 ` Thomas Petazzoni via buildroot
2023-12-18 18:22 ` Ralf Dragon
2023-12-18 19:51 ` Thomas Petazzoni via buildroot
[not found] ` <f329f198-4cb1-4e61-8e47-0653cab03893@lindra.de>
2023-12-19 19:36 ` Ralf Dragon
2024-01-02 21:48 ` Ralf Dragon
2023-12-18 18:58 ` Ralf Dragon
2024-01-10 19:21 ` Julien Olivain
2024-01-10 19:58 ` Thomas Petazzoni via buildroot
2024-03-10 13:25 ` Julien Olivain
2023-12-17 22:03 ` Thomas Petazzoni via buildroot [this message]
2024-01-05 12:41 ` [Buildroot] [PATCH 1/2] python-sip: fix compile error Peter Korsgaard
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=20231217230303.3200b052@windsurf \
--to=buildroot@buildroot.org \
--cc=asafka7@gmail.com \
--cc=gwenhael.goavec-merou@trabucayre.com \
--cc=hypnotoad@lindra.de \
--cc=thomas.petazzoni@bootlin.com \
--cc=yann.morin.1998@free.fr \
/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