From nobody Tue Mar 3 04:51:26 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1772065190; cv=none; d=zohomail.com; s=zohoarc; b=C58VxGRs/24Q3YXirMNtFOg7M2dT9bAXUikoWgmBMl2ZGig0mdOHOj95FAZ9Wo2AA9RW8gjhrA2Eri8lCqmi+Ip5scX+OJD05ccsMHBXOOxg0IboEseBpo2UEE9CoQvg5j+IpRpAS50lXc9devzOjOZd1UZvgGOkY7D9cLnp/+Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772065190; h=Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=3j1eThlH6umCnhFwfLBanL1bOobzYhVwU3HG1jSoq4Y=; b=RcE/IUKNhw7cDmqEDlHJs8gYlttlRYPOhRHTSivS/9f/hV3bTFyU9ClUDqEQXhlvL1Rnw44RRWZZBhSAChf07+IeEJfhKZ6CJ2vl/Gf8jL1Uq4eeSADDu3G9NMhY6VL7Jc0lzO9bxFYeeKc1u3/ltcf6blRQbUutnrfZTu8s0hM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1772065190058156.13551844503797; Wed, 25 Feb 2026 16:19:50 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id 2EA4B43F27; Wed, 25 Feb 2026 19:19:49 -0500 (EST) Received: from [172.19.199.9] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id B3A7E440B8; Wed, 25 Feb 2026 19:15:53 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id D3A6343FCD; Wed, 25 Feb 2026 19:15:48 -0500 (EST) Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 5BB6843F7D for ; Wed, 25 Feb 2026 19:15:35 -0500 (EST) Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4837584120eso2010095e9.1 for ; Wed, 25 Feb 2026 16:15:35 -0800 (PST) Received: from localhost (75-169-10-174.slkc.qwest.net. [75.169.10.174]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2bdd1cefd7esm654352eec.9.2026.02.25.16.15.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Feb 2026 16:15:33 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HELO_MISC_IP,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1772064934; x=1772669734; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=3j1eThlH6umCnhFwfLBanL1bOobzYhVwU3HG1jSoq4Y=; b=FTUQPmqH1yg1jO1/TfltJvLlCZdJ94zztZEszhGpf6HX2H1R5Cw2kRbQRwB9EMzVm2 AstdWfCbIYBEp8192DalIqrXgoCyVlu6+/mxJA29gfVDNQDAJdarn6Fnqxe874e6K1YP iCEpsCYi7BceS6x4DlphXPllIcrIHcVhVBqnhr8gSPiivXTvxCW70Cto5ahdbNkaf2Df z5Erc+YYc4JUJ2k7S0WAJtqe8Zv64dD17OIMP6HPti0yPc5C5+YfNplkCZAJfXvloeTL FJn9pz4mJ6q0Ss7UR4LTUQI4cb/Qovm7KqGn0ZgWu0QZW1DqLmD3U4hQN2TWI1pO/19B bNCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772064934; x=1772669734; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=3j1eThlH6umCnhFwfLBanL1bOobzYhVwU3HG1jSoq4Y=; b=sCM9cTpHsLdKudEOeHize7z0r7QmrisC+g+ZvSLKKH8AsBoM3mf74YasY0+OlZ8gZ5 +gowKfn6La7WfnHy6TlcYAKaPOivK27kvYtCw2DeI7wmjmucRbouZ1W8+z8wu8XMdzg6 lg5+g56R9/5U2js5ZMJXjT7vWfqVxGewf55dVG52oP0LT95ePQal8Fmlcz8o7IRuXPdC oMq1/fKRtOJO98MWEKC2O05AE06uEl2ByYVtQ+qKvaLiz/LIaUgkz84+wYH6YdshVsbq eGI8d2yMow4Zct2vgFthJg/1Tg/oSn4xoMA05e5PdwBfQiDa/lTt14Bsz62GNAaK0IAY Yucw== X-Gm-Message-State: AOJu0YwYCo9/Y07qCOh3fpwccRGpbjeVkcZPWoxHVeqQa6g0aG29GVwf un2VwpBdWR6PBBsrwHYeFVplY+I8P1Z9jNgYX+tfvlYtMeQ+evIPFgeblDWjrvATJkNDeLEAf8E 8hWETSOM= X-Gm-Gg: ATEYQzxTteo1mJKNmsxZZSq/d56LLcx+JINjeIGzdPeUYfy0XaUIhCasOKRN9M4N9JQ 3LSKYwpC5AGck4MHxGiQvjHirJoFWjSTbd7tjaK0/JcfzT1XWsfCdRfi1sOeMjWtPRi4nO14BX1 pACmx5nuOkOb7KM61++uRa21JKc6MFoA9eL5a9w+DX+m+mNVhp6TKWcuIMes3HVqID1sWF8aOWy YfL0c1RfP8zu06IAVRoW7QyzTm1WKfZIBdQppz8jOUM3jRA/+TQBpH3YwO2RH4bOZjRjXKavXOl h2RlWhIhryar3zZqyRjazUcE+4MLyuX7vG2Be6qjpbxYK3Abzv/cGsvJ7DvPT2iWIwuB4k1YJ3N 4ZG5wU8WzbF4H/hWC9jajTJJC2cbKZu84s0NEJ564LAEtHsbch4Fse/USNCYkXchkJW9mXHMgGd le+07/ayR3pvYcOgMgG+m5UKcr9fzEb83cmC1IAAD2Peo= X-Received: by 2002:a05:600c:3acf:b0:483:96d8:9f75 with SMTP id 5b1f17b1804b1-483c21a6df1mr34278555e9.28.1772064934145; Wed, 25 Feb 2026 16:15:34 -0800 (PST) To: devel@lists.libvirt.org Subject: [RFC 2/2] spec: Add option to enable/disable libvirtd Date: Wed, 25 Feb 2026 17:14:40 -0700 Message-ID: <20260226001528.24328-3-jfehlig@suse.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260226001528.24328-1-jfehlig@suse.com> References: <20260226001528.24328-1-jfehlig@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: AWVYQGHD7RFNCSCJRX7AQWIUYQ3K7FWT X-Message-ID-Hash: AWVYQGHD7RFNCSCJRX7AQWIUYQ3K7FWT X-MailFrom: jfehlig@suse.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Jim Fehlig via Devel Reply-To: Jim Fehlig X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1772065191862158500 Content-Type: text/plain; charset="utf-8" From: Jim Fehlig Signed-off-by: Jim Fehlig --- libvirt.spec.in | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 00316a03f2..e3869e0e92 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -31,7 +31,10 @@ %define arches_numad %{arches_x86} %{power64} aarch64 %define arches_ch x86_64 aarch64 =20 -# The hypervisor drivers that run in libvirtd +# The monolithic libvirtd +%define with_libvirtd 0%{!?_without_libvirtd:1} + +# The hypervisor drivers that run in monolithic libvirtd, or a modular dae= mon %define with_lxc 0%{!?_without_lxc:1} %define with_libxl 0%{!?_without_libxl:1} %define with_vbox 0%{!?_without_vbox:1} @@ -304,7 +307,9 @@ URL: https://libvirt.org/ %endif Source: https://download.libvirt.org/%{?mainturl}libvirt-%{version}.tar.xz =20 +%if %{with_libvirtd} Requires: libvirt-daemon =3D %{version}-%{release} +%endif Requires: libvirt-daemon-config-network =3D %{version}-%{release} Requires: libvirt-daemon-config-nwfilter =3D %{version}-%{release} %if %{with_libxl} @@ -1181,6 +1186,12 @@ echo "This RPM requires either Fedora >=3D %{min_fed= ora} or RHEL >=3D %{min_rhel}" exit 1 %endif =20 +%if %{with_libvirtd} + %define arg_libvirtd -Ddriver_libvirtd=3Denabled +%else + %define arg_libvirtd -Ddriver_libvirtd=3Ddisabled +%endif + %if %{with_qemu} %define arg_qemu -Ddriver_qemu=3Denabled %else @@ -1363,7 +1374,7 @@ export SOURCE_DATE_EPOCH=3D$(stat --printf=3D'%Y' %{_= specdir}/libvirt.spec) %{?arg_libxl} \ -Dsasl=3Denabled \ -Dpolkit=3Denabled \ - -Ddriver_libvirtd=3Denabled \ + %{?arg_libvirtd} \ -Ddriver_remote=3Denabled \ -Ddriver_test=3Denabled \ %{?arg_esx} \ @@ -1542,6 +1553,14 @@ cp -a $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter= /*.xml \ # libvirt saves these files with mode 600 chmod 600 $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter/*.xml =20 + %if ! %{with_libvirtd} +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/libvirtd.conf +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apparmor.d/usr.sbin.libvirtd +rm -f $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd +rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd.aug +rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd.aug + %endif + %if ! %{with_qemu} rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug @@ -2075,6 +2094,7 @@ exit 0 %doc AUTHORS.rst NEWS.rst README.rst %doc libvirt-docs/* =20 + %if %{with_libvirtd} %files daemon %{_unitdir}/libvirtd.service %{_unitdir}/libvirtd.socket @@ -2091,6 +2111,7 @@ exit 0 %{_datadir}/augeas/lenses/tests/test_libvirtd.aug %attr(0755, root, root) %{_sbindir}/libvirtd %{_mandir}/man8/libvirtd.8* + %endif =20 %files daemon-common %{_unitdir}/virt-guest-shutdown.target --=20 2.51.0