From nobody Sun Feb 8 08:22:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1689864661; cv=none; d=zohomail.com; s=zohoarc; b=e+hMIzf0U4bsufbrdcNEoEVKdtKDmJlvI5SG6v6/xfaz2cW7kj4b4N6nKc2d9wxxeyinYkStDL4/eQx2oH7/p99JbvLuF+nNTj6oDfqlwD6jgkxn0E+Df/avDqYa9eqCnqeGHW7VjtHTdMl7An4+pX+Q2AgOlaeqXlEfsZec6UM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1689864661; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=xu5Hsd5zMAWeUsRSY7Ome/dAcWere4sXTHzHgoXlymA=; b=hvs5leCNQmgSLn+2Mu0eVR1vhNlUV6O94WfuTeg7lkYxbV+59grwe60P40sWN8wgm2xdfCfZUIdGj1J/O37bv8u8H+3IE2d/Bf1+Xk/HohauTolpWmkeAiGEW118unwfk9lsdfJ+doxaLEvqY/g6iFUUgSREFZAUXQW9i34pn7w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1689864661866973.9705833056538; Thu, 20 Jul 2023 07:51:01 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-147-zM1jqGHPP0m0IhifFP0_ew-1; Thu, 20 Jul 2023 10:50:58 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 630A03C0E441; Thu, 20 Jul 2023 14:50:56 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4E587F77AD; Thu, 20 Jul 2023 14:50:56 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 84C0E1946A45; Thu, 20 Jul 2023 14:50:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 378C819452C9 for ; Thu, 20 Jul 2023 14:50:20 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 248B0F77BD; Thu, 20 Jul 2023 14:50:15 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.42.28.86]) by smtp.corp.redhat.com (Postfix) with ESMTP id ADB40F6CDC; Thu, 20 Jul 2023 14:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689864660; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=xu5Hsd5zMAWeUsRSY7Ome/dAcWere4sXTHzHgoXlymA=; b=NK1cyvf2mexB+UEpp8YSYF/KzlQl2Cz1qET5+BGRskpEZWuTgc+UVIzErzEB+xLUYa5Asz JJzmL4t0RKwKcBS9yf7K8euYrXhIASmJ3r3ESME/IyoThAsNphxpeTKv8ZGyRWO/kX8NkS k05S5BzAFosUZCBePtkZiKzy0Y0VdWY= X-MC-Unique: zM1jqGHPP0m0IhifFP0_ew-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [PATCH RFC 2/4] rpm: use %{qemu_sysemu_host_arches} Date: Thu, 20 Jul 2023 15:50:09 +0100 Message-ID: <20230720145011.20402-3-berrange@redhat.com> In-Reply-To: <20230720145011.20402-1-berrange@redhat.com> References: <20230720145011.20402-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1689864663539100001 This macros reflects the architectures on which QEMU system emulators are built. Signed-off-by: Daniel P. Berrang=C3=A9 --- libvirt.spec.in | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 73a8faae6e..641ff179e7 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -12,15 +12,24 @@ %define with_qemu_macros 0 %endif =20 -%define arches_qemu_kvm %{ix86} x86_64 %{power64} %{arm} aarch64 s= 390x -%if 0%{?rhel} - %if 0%{?rhel} > 8 - %define arches_qemu_kvm x86_64 aarch64 s390x +%if ! %{with_qemu_macros} + %if 0%{?rhel} + %if 0%{?rhel} > 8 + %define qemu_sysemu_host_arches aarch64 s390x x86_64 + %else + %define qemu_sysemu_host_arches aarch64 s390x %{power64} x86_64 + %endif %else - %define arches_qemu_kvm x86_64 %{power64} aarch64 s390x + %define qemu_sysemu_host_arches aarch64 %{arm} %{ix86} %{mips} %{p= ower64} riscv64 s390x x86_64 %endif %endif =20 +%if 0%{?rhel} + %define arches_qemu_kvm %{qemu_sysemu_host_arches} +%else + %define arches_qemu_kvm %{ix86} x86_64 %{power64} %{arm} aarch64 s390x +%endif + %define arches_64bit x86_64 %{power64} aarch64 s390x riscv64 %define arches_x86 %{ix86} x86_64 =20 @@ -37,7 +46,11 @@ %define arches_numad %{arches_x86} %{power64} aarch64 =20 # The hypervisor drivers that run in libvirtd +%ifarch %{qemu_sysemu_host_arches} %define with_qemu 0%{!?_without_qemu:1} +%else +%define with_qemu 0 +%endif %define with_lxc 0%{!?_without_lxc:1} %define with_libxl 0%{!?_without_libxl:1} %define with_vbox 0%{!?_without_vbox:1} @@ -55,10 +68,6 @@ %define with_qemu_tcg 0 %endif =20 -%if ! %{with_qemu_tcg} && ! %{with_qemu_kvm} - %define with_qemu 0 -%endif - # Then the hypervisor drivers that run outside libvirtd, in libvirt.so %define with_openvz 0%{!?_without_openvz:1} %define with_vmware 0%{!?_without_vmware:1} --=20 2.41.0