All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Vincent Fazio <vfazio@gmail.com>
Cc: James Hilliard <james.hilliard1@gmail.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Asaf Kahlon <asafka7@gmail.com>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/python3: fix cross builds when host and target use the same SOABI
Date: Tue, 9 Apr 2024 23:57:58 +0200	[thread overview]
Message-ID: <ZhW55ig0-Gg-KFyj@landeda> (raw)
In-Reply-To: <20240403211805.3100506-1-vfazio@gmail.com>

Vincent, All,

On 2024-04-03 16:18 -0500, Vincent Fazio spake thusly:
> When python performs a cross compile, it uses a host interpreter to run
> steps on behalf of the foreign architecture to finalize the build.
> 
> When performing these steps, foreign modules may be loaded if the SOABI
> matches that of the host. This can lead to issues if the modules are
> linked against a libc not available on the host or if the binaries
> include instructions unsupported by the host.
> 
> For now, patch the foreign libraries out of PYTHONPATH and explicitly
> define the path to sysconfigdata so builds can complete without error.
> 
> This method currently passes all upstream CI pipelines [0] and should
> also work (with some modifications) for the migration to 3.12 [1].
> 
> Fixes: http://autobuild.buildroot.net/results/c854080e003e9a7d525325073190b472a8f982aa/
> [0]: https://github.com/python/cpython/pull/116294
> [1]: https://lists.buildroot.org/pipermail/buildroot/2024-February/685369.html
> 
> Signed-off-by: Vincent Fazio <vfazio@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-04-09 21:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-03 21:18 [Buildroot] [PATCH 1/1] package/python3: fix cross builds when host and target use the same SOABI Vincent Fazio
2024-04-09 21:57 ` Yann E. MORIN [this message]
2024-05-06 11:47 ` 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=ZhW55ig0-Gg-KFyj@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=asafka7@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=james.hilliard1@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=vfazio@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.