From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1696466-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id E66591581F3
	for <garchives@archives.gentoo.org>; Mon,  2 Dec 2024 14:50:48 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 76A36E07EE;
	Mon,  2 Dec 2024 14:50:47 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 6F241E07EA
	for <gentoo-commits@lists.gentoo.org>; Mon,  2 Dec 2024 14:50:46 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 71A33342FB2
	for <gentoo-commits@lists.gentoo.org>; Mon,  2 Dec 2024 14:50:45 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id CD76B1E15
	for <gentoo-commits@lists.gentoo.org>; Mon,  2 Dec 2024 14:50:43 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1733150873.041d616da19f824cb11898ed3a65c4c8bb603f9b.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/qemu/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-emulation/qemu/qemu-8.2.3.ebuild app-emulation/qemu/qemu-8.2.7.ebuild app-emulation/qemu/qemu-8.2.8.ebuild app-emulation/qemu/qemu-9.0.4.ebuild app-emulation/qemu/qemu-9.1.2.ebuild app-emulation/qemu/qemu-9999.ebuild
X-VCS-Directories: app-emulation/qemu/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 041d616da19f824cb11898ed3a65c4c8bb603f9b
X-VCS-Branch: master
Date: Mon,  2 Dec 2024 14:50:43 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 9fcfcac0-1e69-4360-b83a-5fc789b412e4
X-Archives-Hash: a62398fbaf9d767604f85a698ae25735

commit:     041d616da19f824cb11898ed3a65c4c8bb603f9b
Author:     Michal Privoznik <michal.privoznik <AT> gmail <DOT> com>
AuthorDate: Mon Dec  2 11:16:11 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec  2 14:47:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=041d616d

app-emulation/qemu: Pass --python=${PYTHON} to configure

QEMU expects python during compilation (plenty of build scripts
are written in python). And up until upstream commit [1] it
wasn't much of a problem. But starting from that commit, the
configure script creates a venv unconditionally and installs
various packages there. At the same time, the configure script is
free to chose whatever python version it deems usable (in
practice it finds python3 first). Well, it may chose python
without ensurepip USE flag.

Tell the configure script which python to use explicitly by
passing --python=${PYTHON}.

1: https://gitlab.com/qemu-project/qemu/-/commit/81e2b198a8cb4ee5fdf108bd438f44b193ee3a36
Closes: https://bugs.gentoo.org/942518
Signed-off-by: Michal Privoznik <michal.privoznik <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39562
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-emulation/qemu/qemu-8.2.3.ebuild | 1 +
 app-emulation/qemu/qemu-8.2.7.ebuild | 1 +
 app-emulation/qemu/qemu-8.2.8.ebuild | 1 +
 app-emulation/qemu/qemu-9.0.4.ebuild | 1 +
 app-emulation/qemu/qemu-9.1.2.ebuild | 1 +
 app-emulation/qemu/qemu-9999.ebuild  | 1 +
 6 files changed, 6 insertions(+)

diff --git a/app-emulation/qemu/qemu-8.2.3.ebuild b/app-emulation/qemu/qemu-8.2.3.ebuild
index 6fbc52d1a747..01ec0ca376eb 100644
--- a/app-emulation/qemu/qemu-8.2.3.ebuild
+++ b/app-emulation/qemu/qemu-8.2.3.ebuild
@@ -515,6 +515,7 @@ qemu_src_configure() {
 		--disable-guest-agent
 		--disable-strip
 		--disable-download
+		--python="${PYTHON}"
 
 		# bug #746752: TCG interpreter has a few limitations:
 		# - it does not support FPU

diff --git a/app-emulation/qemu/qemu-8.2.7.ebuild b/app-emulation/qemu/qemu-8.2.7.ebuild
index 6d3d77d66526..4f1e891938a1 100644
--- a/app-emulation/qemu/qemu-8.2.7.ebuild
+++ b/app-emulation/qemu/qemu-8.2.7.ebuild
@@ -515,6 +515,7 @@ qemu_src_configure() {
 		--disable-guest-agent
 		--disable-strip
 		--disable-download
+		--python="${PYTHON}"
 
 		# bug #746752: TCG interpreter has a few limitations:
 		# - it does not support FPU

diff --git a/app-emulation/qemu/qemu-8.2.8.ebuild b/app-emulation/qemu/qemu-8.2.8.ebuild
index 55910aad6115..7c5adb09c144 100644
--- a/app-emulation/qemu/qemu-8.2.8.ebuild
+++ b/app-emulation/qemu/qemu-8.2.8.ebuild
@@ -515,6 +515,7 @@ qemu_src_configure() {
 		--disable-guest-agent
 		--disable-strip
 		--disable-download
+		--python="${PYTHON}"
 
 		# bug #746752: TCG interpreter has a few limitations:
 		# - it does not support FPU

diff --git a/app-emulation/qemu/qemu-9.0.4.ebuild b/app-emulation/qemu/qemu-9.0.4.ebuild
index e713c9e7834e..13ae2d10fa0b 100644
--- a/app-emulation/qemu/qemu-9.0.4.ebuild
+++ b/app-emulation/qemu/qemu-9.0.4.ebuild
@@ -521,6 +521,7 @@ qemu_src_configure() {
 		--disable-guest-agent
 		--disable-strip
 		--disable-download
+		--python="${PYTHON}"
 
 		# bug #746752: TCG interpreter has a few limitations:
 		# - it does not support FPU

diff --git a/app-emulation/qemu/qemu-9.1.2.ebuild b/app-emulation/qemu/qemu-9.1.2.ebuild
index 61886a5726eb..80d4d3ac6ea3 100644
--- a/app-emulation/qemu/qemu-9.1.2.ebuild
+++ b/app-emulation/qemu/qemu-9.1.2.ebuild
@@ -520,6 +520,7 @@ qemu_src_configure() {
 		--disable-guest-agent
 		--disable-strip
 		--disable-download
+		--python="${PYTHON}"
 
 		# bug #746752: TCG interpreter has a few limitations:
 		# - it does not support FPU

diff --git a/app-emulation/qemu/qemu-9999.ebuild b/app-emulation/qemu/qemu-9999.ebuild
index e4f3ea185d13..e82bd167c807 100644
--- a/app-emulation/qemu/qemu-9999.ebuild
+++ b/app-emulation/qemu/qemu-9999.ebuild
@@ -518,6 +518,7 @@ qemu_src_configure() {
 		--disable-guest-agent
 		--disable-strip
 		--disable-download
+		--python="${PYTHON}"
 
 		# bug #746752: TCG interpreter has a few limitations:
 		# - it does not support FPU