public inbox for qemu-trivial@nongnu.org
 help / color / mirror / Atom feed
* [PATCH] configure: Set $PYTHON in the configuration of the optionroms
@ 2026-01-14  8:33 Thomas Huth
  2026-01-14 11:56 ` Daniel P. Berrangé
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Huth @ 2026-01-14  8:33 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel; +Cc: Alex Bennée, qemu-trivial

From: Thomas Huth <thuth@redhat.com>

pc-bios/optionrom/Makefile uses $(PYTHON) for running a Python script,
but this variable is never initialized here. So the script gets run
via its shebang line - which fails if the "python3" binary is not
available on the system. To fix this, write the PYTHON configuration
to the config.mak file of the optionroms.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 55e0bd34256..f7e8d7ad4c8 100755
--- a/configure
+++ b/configure
@@ -1643,6 +1643,7 @@ probe_target_compiler() {
 }
 
 write_target_makefile() {
+  echo "PYTHON=$python"
   echo "EXTRA_CFLAGS=$target_cflags"
   if test -z "$target_cc" && test -z "$target_as"; then
     test -z "$container_image" && error_exit "Internal error: could not find cross compiler for $1?"
-- 
2.52.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] configure: Set $PYTHON in the configuration of the optionroms
  2026-01-14  8:33 [PATCH] configure: Set $PYTHON in the configuration of the optionroms Thomas Huth
@ 2026-01-14 11:56 ` Daniel P. Berrangé
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel P. Berrangé @ 2026-01-14 11:56 UTC (permalink / raw)
  To: Thomas Huth; +Cc: Paolo Bonzini, qemu-devel, Alex Bennée, qemu-trivial

On Wed, Jan 14, 2026 at 09:33:06AM +0100, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
> 
> pc-bios/optionrom/Makefile uses $(PYTHON) for running a Python script,
> but this variable is never initialized here. So the script gets run
> via its shebang line - which fails if the "python3" binary is not
> available on the system. To fix this, write the PYTHON configuration
> to the config.mak file of the optionroms.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  configure | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-14 11:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-14  8:33 [PATCH] configure: Set $PYTHON in the configuration of the optionroms Thomas Huth
2026-01-14 11:56 ` Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox