From nobody Sun May 19 23:34:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 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=1573482288; cv=none; d=zoho.com; s=zohoarc; b=gjQbFwsTQeaDsx4jeQM9BuXYAz+zreMgt6061XH0tirOdfNGm8gB4qvjTFfM5WktOCrt8DSMjtjuhadS0hjKKCXPPaXyQCX2MIhqX7O0zOd7woOIzXpjnl738dWxUuAw7Y/KGGuXXH1v/WGl1lbwFmj3dtkOyj/I1FMtFpiMs2Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573482288; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=lBTOcKgK6GHVRsRnbmahwGwCmNGzvurWDQJITZnx9fA=; b=TIPP37PStCRg+ZTEXZbg4wfUo6zVfhXmrHH1Dr/ocM62ay1XaV5ymX0F+JIo6M7F5EX/FXHH5flcz5DaNQcJyLGuHKoPAEZd+Z7dzD/CBK4a7FuEv4Tt9mdXQHVo6ADKiHlYhJoqZ4L4VUIQScFlitEBDxCYWAVyyk/4EurHTbA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1573482287995512.8108431306968; Mon, 11 Nov 2019 06:24:47 -0800 (PST) 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-36-UMvQdj7kMMWgYUKTB1aFHQ-1; Mon, 11 Nov 2019 09:24:44 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 424A9107B11A; Mon, 11 Nov 2019 14:24:39 +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 0310928DC1; Mon, 11 Nov 2019 14:24:39 +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 AAFD14E562; Mon, 11 Nov 2019 14:24:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xABEObgf019288 for ; Mon, 11 Nov 2019 09:24:37 -0500 Received: by smtp.corp.redhat.com (Postfix) id C8B8A60159; Mon, 11 Nov 2019 14:24:37 +0000 (UTC) Received: from antique-laptop.redhat.com (ovpn-200-52.brq.redhat.com [10.40.200.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 321D560461 for ; Mon, 11 Nov 2019 14:24:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573482286; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=lBTOcKgK6GHVRsRnbmahwGwCmNGzvurWDQJITZnx9fA=; b=A/r5P9yLEA8YlOyA0p97X0ZZSwkTmyquhbPgmEiKHg7EVRBI6J+Ugw6yraCZ/kjIO/eEZy BiOI0O9ur4AsSVHTCBrAAuPgaKWb+H4Wo5lwBY9NeR+1r/Xp0HmuTWPk4vnA+n6wxMIwzU y4byPH4rWGBrGc1C/K8pRUmd8U0cNc8= From: Pavel Hrdina To: libvir-list@redhat.com Date: Mon, 11 Nov 2019 15:24:33 +0100 Message-Id: <190f6132557e3cccaf4d84fe8d4baee637e8c86f.1573482253.git.phrdina@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] spec: fix vpath build on RHEL 7 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.84 on 10.5.11.23 X-MC-Unique: UMvQdj7kMMWgYUKTB1aFHQ-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Macro _vpath_builddir is not defined so we have to define it ourselves. Signed-off-by: Pavel Hrdina Reviewed-by: Daniel P. Berrang=C3=A9 --- libvirt.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index eb8b2df055..2374668722 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -36,6 +36,11 @@ %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} <=3D 7 + %define _vpath_builddir %{_target_platform} +%endif + %ifarch %{qemu_kvm_arches} %define with_qemu_kvm %{with_qemu} %else --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list