All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Julien Olivain <ju.o@free.fr>
Cc: buildroot@buildroot.org, Carlo Caione <carlo.caione@gmail.com>
Subject: Re: [Buildroot] [PATCH 1/1] package/jailhouse: fix build when python helper scripts are enabled
Date: Mon, 28 Oct 2024 21:09:38 +0100	[thread overview]
Message-ID: <20241028210938.29559f13@windsurf> (raw)
In-Reply-To: <a4eb330bb35e5986f04b8356a4434406@free.fr>

Hello,

On Mon, 28 Oct 2024 20:22:09 +0100
Julien Olivain <ju.o@free.fr> wrote:

> I agree, the Python error message is somewhat cryptic ;) The hint is
> "sysconfig.py". A more detailed explanation of the situation would be:
> 
> """
> Jailhouse Python scripts are using setuptools with host-python3 which
> reads its sysconfig data from the target-python3. See:
> https://gitlab.com/buildroot.org/buildroot/-/blob/2024.08.1/package/pkg-python.mk?ref_type=tags#L33
> 
> If the target python3 is not installed, this get expanded as an empty
> string, leading to this "ValueError: Empty module name" error.
> 
> Pure Python packages which are using the python-package infrastructure
> usually get this dependency automatically from:
> https://gitlab.com/buildroot.org/buildroot/-/blob/2024.08.1/package/pkg-python.mk?ref_type=tags#L295
> 
> Here, the jailhouse package rather uses the generic-package
> infrastructure, then installs the Python scripts (if enabled) with
> dedicated macros. This is why the target python3 is needed.
> """
> 
> Do you want me to send a v2 adding that to the commit log?

Yes, would be nice, 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

      reply	other threads:[~2024-10-28 20:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-25 18:05 [Buildroot] [PATCH 1/1] package/jailhouse: fix build when python helper scripts are enabled Julien Olivain
2024-10-28 15:43 ` Thomas Petazzoni via buildroot
2024-10-28 19:22   ` Julien Olivain
2024-10-28 20:09     ` Thomas Petazzoni via buildroot [this message]

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=20241028210938.29559f13@windsurf \
    --to=buildroot@buildroot.org \
    --cc=carlo.caione@gmail.com \
    --cc=ju.o@free.fr \
    --cc=thomas.petazzoni@bootlin.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.