From patchwork Mon Mar 18 19:35:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cole Robinson X-Patchwork-Id: 160504 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp3025027jad; Mon, 18 Mar 2019 12:35:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGZHm0k+x1SyDoajFYUDxQMhjeALT8sllbsmKGZiKjxqvPVYbcns7RwHOLCvJHIKx0YKxf X-Received: by 2002:a37:a887:: with SMTP id r129mr13973487qke.40.1552937739267; Mon, 18 Mar 2019 12:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552937739; cv=none; d=google.com; s=arc-20160816; b=TI1MSrBkrkJQ+wktOZ/ipKNrgGaHKroPFabNu2HKo9cKlR5Feoy4Wv+JytUafzCINN pbOaOQVSowTgVnjPIKPsLRk9Lt8/WUAzH5lrwR3UZxA2bN2shCW7ePM6RZXctQtqfv+X a1jstkquOxie6+hVK5jryLkRwnssq9QKu4tRCfcH1YVEZLEm0ZzmMGMffJaDB9BBSC5T 7xEkgh8LHSLoX+LEIsihxxzDqJhRNom21CEPK/T9c7GIscM5c1oaht36BGTIBWyFtATf K9qFFiR9SNBIZ515HN7c5bgCgC/c1S03P56hLOcp8Q5J6yBL55WmIj9n0EwC7mwSbXOR S1Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:delivered-to; bh=xIEnjBkQuNXwe2SZW+5/S+GksPNk+w66zaFr95IF6KY=; b=RJPN6eWsJGG5HrYNruTIRrVjhXDnxjtlX7DWv49YEnH4QFmSLo4CxSynGqn65a1voi 9OVJNIF2U7B2qwh/HKv6YKE53eObWGZib+/ksZdw5PRzJC4dx/Djm+0myylJmVdrgRU6 kJ086B5mptw29u0/S9q00cAPIlxjbAH9R8tWW9X0K6NtvL/HtPjT5l5Q6lFwfEKX8LTx I/JvFuXnsNO48Bh7CP1ThcgnJkhn8gPIWhLkA5Neu8cZ8QHSA2KA9mbbfC1uncfjsnvy i9oodMB81HMAc6/r/LlPVm3f/niRt60elWjtjg+5WHL1K3Ar5mGH6ee7aBbZFAjn0Snj a5tw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id v198si6253083qka.202.2019.03.18.12.35.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 12:35:39 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B9E913082B4D; Mon, 18 Mar 2019 19:35:36 +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 290CD5C545; Mon, 18 Mar 2019 19:35:35 +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 132DF41F3C; Mon, 18 Mar 2019 19:35:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x2IJZUXA006441 for ; Mon, 18 Mar 2019 15:35:30 -0400 Received: by smtp.corp.redhat.com (Postfix) id A12C560C7F; Mon, 18 Mar 2019 19:35:30 +0000 (UTC) Delivered-To: libvirt-list@redhat.com Received: from worklaptop.redhat.com (ovpn-117-160.phx2.redhat.com [10.3.117.160]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3D7C160BEE; Mon, 18 Mar 2019 19:35:27 +0000 (UTC) From: Cole Robinson To: libvirt-list@redhat.com Date: Mon, 18 Mar 2019 15:35:25 -0400 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] spec: Only call ldconfig on RHEL7 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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Mon, 18 Mar 2019 19:35:38 +0000 (UTC) Since Fedora 28 (our minimum supported build), ldconfig is called automatically for us: https://fedoraproject.org/wiki/Changes/Removing_ldconfig_scriptlets These changes appear to be implemented for rhel > 7 as well, so only run ldconfig on rhel7 Signed-off-by: Cole Robinson --- libvirt.spec.in | 4 ++++ 1 file changed, 4 insertions(+) -- 2.21.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list diff --git a/libvirt.spec.in b/libvirt.spec.in index 1497cad3d2..445fddc801 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1477,12 +1477,16 @@ exit 0 %post client +%if 0%{?rhel} == 7 /sbin/ldconfig +%endif %systemd_post libvirt-guests.service %postun client +%if 0%{?rhel} == 7 /sbin/ldconfig +%endif %systemd_postun libvirt-guests.service %triggerun client -- libvirt < 0.9.4