From nobody Sun Apr 28 07:33:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1628157568; cv=none; d=zohomail.com; s=zohoarc; b=IKWvPaFxl0I9Tr1zMUNKDy2byFNF30GABlkcLxnAOVo6Eg6pAsuGZECXvdm/et5OAYnMG30I3DBI03qQGYCL9r+L5wcmw4u+T0B9tyk2pOh3hGxRs7VN8DWG6gcuZHTxLDN4srsFGbYSrKlQIdM/ihpHJwa7s70EBJAsyUYsB9w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628157568; 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=miOGicTkClYXHWo5Mo7bXbpOtNxdG8dVcK2vwCwiWcw=; b=CoFdSj3b0UsyESxNZDtyfA9iQmm3oBbJmq3gIaCQ37SenT7bVqB3SaqYfEoKqYr7W6q+cjPQN2h0o0kKJZX1aQnclO869lx0/4Tv8iTfuZTAPTQ/mNczy25Fzg0uljIIsTnAcFQk+8HoE73W4b0jQYWKmRHZGBsrA9k5r/bX0hA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1628157568439532.5052772340376; Thu, 5 Aug 2021 02:59:28 -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-158-DGvTLfoOOzCVAcIh7VcYzA-1; Thu, 05 Aug 2021 05:59:25 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EBC1E100F76E; Thu, 5 Aug 2021 09:59:19 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BA24D1000358; Thu, 5 Aug 2021 09:59:18 +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 5141D1800FFC; Thu, 5 Aug 2021 09:59:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1759xFwE019190 for ; Thu, 5 Aug 2021 05:59:15 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3B4C03AC1; Thu, 5 Aug 2021 09:59:15 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.39.194.147]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5EC5F5D6B1; Thu, 5 Aug 2021 09:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628157567; 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=miOGicTkClYXHWo5Mo7bXbpOtNxdG8dVcK2vwCwiWcw=; b=ej6gfiRgmuSPHAcJp2Y2nCl+mJeFztvdZVp1gV1Z/iXUzAdPzbUHL0aSMkM+p5WhU4oUTe JXD3nQTQhKIzF60sHPqABedhiFkz9EbiifJW87XOixyzkSSsxj8MtKwYze3sKM7aQQNQTs +UIiS7NXlIpkjYxktTfbqvV+lYlsU0M= X-MC-Unique: DGvTLfoOOzCVAcIh7VcYzA-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [PATCH] rpm: add conditionals around post scripts Date: Thu, 5 Aug 2021 10:59:09 +0100 Message-Id: <20210805095909.3538595-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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.84 on 10.5.11.22 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1628157569025100001 The hypervisor drivers can be disabled in certain build scenarios, so their corresponding post scripts need to match. Signed-off-by: Daniel P. Berrang=C3=A9 Reviewed-by: Michal Privoznik --- libvirt.spec.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libvirt.spec.in b/libvirt.spec.in index a162bc333d..011f5dd49e 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1458,6 +1458,7 @@ fi %libvirt_daemon_perform_restart virtstoraged =20 =20 +%if %{with_qemu} %post daemon-driver-qemu %if %{with_modular_daemons} %libvirt_daemon_systemd_post virtqemud @@ -1469,8 +1470,10 @@ fi =20 %posttrans daemon-driver-qemu %libvirt_daemon_perform_restart virtqemud +%endif =20 =20 +%if %{with_lxc} %post daemon-driver-lxc %if %{with_modular_daemons} %libvirt_daemon_systemd_post virtlxcd @@ -1482,8 +1485,10 @@ fi =20 %posttrans daemon-driver-lxc %libvirt_daemon_perform_restart virtlxcd +%endif =20 =20 +%if %{with_vbox} %post daemon-driver-vbox %if %{with_modular_daemons} %libvirt_daemon_systemd_post virtvboxd @@ -1495,8 +1500,10 @@ fi =20 %posttrans daemon-driver-vbox %libvirt_daemon_perform_restart virtvboxd +%endif =20 =20 +%if %{with_libxl} %post daemon-driver-libxl %if %{with_modular_daemons} %libvirt_daemon_systemd_post virtxend @@ -1508,6 +1515,7 @@ fi =20 %posttrans daemon-driver-libxl %libvirt_daemon_perform_restart virtxend +%endif =20 =20 %post daemon-config-network --=20 2.31.1