From nobody Mon Feb 9 13:58:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1602235659; cv=none; d=zohomail.com; s=zohoarc; b=H0z4orC/XcsjI+QCebmGSuRk5qNpVA4oLxseB++SMEUnuMClek+4aiy29qmDI2Wlcq4PGeFupRK8SvICX30ccnNRelYElzSwNzPpqiPCcb5S8e7726XHNwnC9wNv4wFn3UKrzbc7z5XqwkY9AccCnt1CIPXd+7rZhZ/2sVPh4FU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602235659; 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=+uG9G/QnwzXHrF7NAB2+Fgu2dOFP5XKtK2s70hVXy0o=; b=hT37kvHQVo2Ih8zInAsBh48iCnJjniM5ZJ1g/4ISPivmud1wz3lsVXPJ11qTkR6tvHawSp4chGKMWqIAjlK+COKe/AgJ1cD1cEzYa3FVNGN7stnvAEBOclpG0BMC2DsBZITzAcH33S3O4beV2QFPXBK4YWVNF0AyW9Cq1Hbdv2c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1602235659221491.0247977235522; Fri, 9 Oct 2020 02:27:39 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-533-vk6DAeqhNH226ox3w7tPkw-1; Fri, 09 Oct 2020 05:26:30 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C5A8B425F0; Fri, 9 Oct 2020 09:26:21 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A60747665A; Fri, 9 Oct 2020 09:26:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 70A158C7D9; Fri, 9 Oct 2020 09:26:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0999Q1P5009404 for ; Fri, 9 Oct 2020 05:26:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id 4D38D21E95; Fri, 9 Oct 2020 09:26:01 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.40.195.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5CE7C196FE for ; Fri, 9 Oct 2020 09:26:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602235658; 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=+uG9G/QnwzXHrF7NAB2+Fgu2dOFP5XKtK2s70hVXy0o=; b=eUqxs1cHhW4bXC1renqdGqMzwT2jWuoxsn77UyJWbYgXRSUr7NNg8vIHjtYVPh87cYK+ra gmkMHi95o406dEn4LKamy5UzrRuTCM106q4Sahx7tjmLerLcFlslVnIu45mPAct8Yckr0E pX0CArAhbAXDfgGhiKsh0Gu0azOmOrI= X-MC-Unique: vk6DAeqhNH226ox3w7tPkw-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH v2 6/9] spec: Move _vpath_builddir definition Date: Fri, 9 Oct 2020 11:25:43 +0200 Message-Id: <20201009092546.15546-7-abologna@redhat.com> In-Reply-To: <20201009092546.15546-1-abologna@redhat.com> References: <20201009092546.15546-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" It belongs before package-specific feature flags are defined. Signed-off-by: Andrea Bolognani Reviewed-by: Neal Gompa --- libvirt.spec.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index ae6381fe3e..dd2247d712 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -12,6 +12,11 @@ %define supported_platform 0 %endif =20 +# On RHEL 7 and older macro _vpath_builddir is not defined. +%if 0%{?rhel} && 0%{?rhel} <=3D 7 + %define _vpath_builddir %{_target_platform} +%endif + # The hypervisor drivers that run in libvirtd %define with_qemu 0%{!?_without_qemu:1} %define with_lxc 0%{!?_without_lxc:1} @@ -31,11 +36,6 @@ %define qemu_kvm_arches x86_64 %{power64} aarch64 s390x %endif =20 -# On RHEL 7 and older macro _vpath_builddir is not defined. -%if 0%{?rhel} && 0%{?rhel} <=3D 7 - %define _vpath_builddir %{_target_platform} -%endif - %ifarch %{qemu_kvm_arches} %define with_qemu_kvm %{with_qemu} %else --=20 2.26.2