From patchwork Fri Jun 25 18:09:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= X-Patchwork-Id: 466861 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1723556jao; Fri, 25 Jun 2021 11:10:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMnOa+tk0OXecWVxWWQUK5TdJnr3Zev4QdyJu3odqsVaGZjMp0Zs9M1j9AF6rqVQ1z85tr X-Received: by 2002:aa7:d9d3:: with SMTP id v19mr16684620eds.145.1624644639963; Fri, 25 Jun 2021 11:10:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624644639; cv=none; d=google.com; s=arc-20160816; b=fpGL586ZTZkOYbky893bC1EegZj58GdZgKyN/5mI2oLais6kWGFYXrSg1gU21R/qec dJSwajynS7BxCKeQvO5Lf2TTuF5Q7pHDHiIWbpAAhHor6TnaPNM/8uPavcz30XGWRUEP IkuCdoZxuExnZhN8EwDqWTEAd+ovHx/L1Cu+otVqXbvGCFpDQcH3qtVaZLT80wksQtRK ccBd4PID3BFtrIpxSeTny12RPmOautXFetehMhQqoVgyrLyV6baVoC5m3EpaI8x+cKjf 4TbPrnHbfBBZnNLWEybDXKeIe31IJFUfj92bqOWUwrptSmg41hdLUWxsQxrgjlH3n8f0 H46w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:errors-to:sender:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:cc :mime-version:references:in-reply-to:message-id:date:subject:to:from :delivered-to:dkim-signature; bh=2tNP1PFK+egmIGi4x/ak3GxFelQUZDSETH1h5X4Uhz0=; b=TrjGRBFoM0z2Bkh0wSdeKzAyBcgxSkZgFnB3H7OpbEyCcl1c1e/Gx9ifCnDCP1OIaw 1mLpoA0lAqchPFN9NS4GCZssi03KkhaiexUYZEFRGJ0q7rdLZFJ07goBU+DNmub7awSK Kaq9ulB33OjOS4xym5r5d299t+hePhMC4xf4uh/zp59QuCd+dLWKkmS+mPnxKVS/zWy8 ESTmCrzDgFKBTFQ1zsLlNpCXzr1Nz3DuV1pQAnuMycmOfHEKR7vR5jGHM9TCy9BkFE7W Aee20YP0LcGqU27o4Y6iv5NAraMX7nkhH/lcA6qq12pH1oe6j/iy3b+O2zzhwWc2yZDx zA7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fR0I3ra7; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 170.10.133.124 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 us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com. [170.10.133.124]) by mx.google.com with ESMTPS id w26si6786141ejk.657.2021.06.25.11.10.39 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jun 2021 11:10:39 -0700 (PDT) Received-SPF: pass (google.com: domain of libvir-list-bounces@redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fR0I3ra7; spf=pass (google.com: domain of libvir-list-bounces@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1624644638; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=2tNP1PFK+egmIGi4x/ak3GxFelQUZDSETH1h5X4Uhz0=; b=fR0I3ra7ZDtzw7A0PGb1SzXWd16V1DBKxvCo3r8jeToKfxR/C6MzR6fkU0LJXIe2Wd2/Jy T8CjJA2RXmzZ7sZCcmCJs+VRQyvUk0Ua6IBg1L4LSjnwyLDaNS7PRliT3d7frrc1n704lX QGaeC4NaqslaOhk8jxe4S7J/QmNZANc= 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-138-y7A7WHgzN-2RpZPzcn9Xqg-1; Fri, 25 Jun 2021 14:10:34 -0400 X-MC-Unique: y7A7WHgzN-2RpZPzcn9Xqg-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id EBEFE100C660; Fri, 25 Jun 2021 18:10:29 +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 CC73A5C1B4; Fri, 25 Jun 2021 18:10:29 +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 9A0BC1809CAC; Fri, 25 Jun 2021 18:10:29 +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 15PIA1LK004730 for ; Fri, 25 Jun 2021 14:10:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3BD6D26FCC; Fri, 25 Jun 2021 18:10:01 +0000 (UTC) Delivered-To: libvir-list@redhat.com Received: from localhost.localdomain.com (ovpn-114-183.ams2.redhat.com [10.36.114.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id 693E0391; Fri, 25 Jun 2021 18:10:00 +0000 (UTC) From: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 1/3] spec: drop/update dependencies on systemd-{units, sysv} Date: Fri, 25 Jun 2021 19:09:52 +0100 Message-Id: <20210625180954.454141-2-berrange@redhat.com> In-Reply-To: <20210625180954.454141-1-berrange@redhat.com> References: <20210625180954.454141-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: =?utf-8?q?Zbigniew_J=C4=99drzejewski-Szmek?= 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 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 From: Zbigniew Jędrzejewski-Szmek -sysv was probably a left-over, and the -units deps was outdated and not necessary, see https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_dependencies_on_the_systemd_package. Only for 'systemctl mask' which is executed in %post, we want to make sure that /usr/bin/systemctl is installed, so keep that dependency. (A file dep is used to avoid issues if the systemd package is further split later on.) Ferried over from https://src.fedoraproject.org/rpms/libvirt/pull-request/7. Signed-off-by: Zbigniew Jędrzejewski-Szmek --- libvirt.spec.in | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 2.31.1 diff --git a/libvirt.spec.in b/libvirt.spec.in index c1ccd2f74e..7f12a92b7f 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -247,7 +247,6 @@ BuildRequires: ninja-build BuildRequires: git BuildRequires: perl-interpreter BuildRequires: python3 -BuildRequires: systemd-units %if %{with_libxl} BuildRequires: xen-devel %endif @@ -412,10 +411,7 @@ Requires: polkit >= 0.112 Requires: dmidecode %endif # For service management -Requires(post): systemd-units -Requires(post): systemd-sysv -Requires(preun): systemd-units -Requires(postun): systemd-units +Requires(post): /usr/bin/systemctl %if %{with_numad} Requires: numad %endif