From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id tOtwHflnVmDnTAAA0tVLHw (envelope-from ) for ; Sat, 20 Mar 2021 21:24:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +NqgGPlnVmDtXAAAbx9fmQ (envelope-from ) for ; Sat, 20 Mar 2021 21:24:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 081A31F375 for ; Sat, 20 Mar 2021 22:24:09 +0100 (CET) Received: from localhost ([::1]:33042 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNj4p-0005KR-R6 for larch@yhetil.org; Sat, 20 Mar 2021 17:24:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNj4k-0005KL-8v for guix-patches@gnu.org; Sat, 20 Mar 2021 17:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNj4k-0007iR-1x for guix-patches@gnu.org; Sat, 20 Mar 2021 17:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lNj4j-0004eX-Tu for guix-patches@gnu.org; Sat, 20 Mar 2021 17:24:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47285] [PATCH 0/4] Update libvirt and friends. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Mar 2021 21:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47285 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47285@debbugs.gnu.org X-Debbugs-Original-To: Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.161627539617832 (code B ref -1); Sat, 20 Mar 2021 21:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Mar 2021 21:23:16 +0000 Received: from localhost ([127.0.0.1]:53211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNj40-0004dX-Cw for submit@debbugs.gnu.org; Sat, 20 Mar 2021 17:23:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:34654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNj3w-0004dO-PB for submit@debbugs.gnu.org; Sat, 20 Mar 2021 17:23:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNj3w-0005H9-GY for guix-patches@gnu.org; Sat, 20 Mar 2021 17:23:12 -0400 Received: from mout.gmx.net ([212.227.17.21]:43759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNj3s-0007KT-1l for guix-patches@gnu.org; Sat, 20 Mar 2021 17:23:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616275384; bh=FZF67gV0ZunrIUHddIDYBGXP94zPCn5s4RCvT56w2MY=; h=X-UI-Sender-Class:From:To:Subject:Date; b=A72mxD4P4KfJyOUfq+hl9B2QnTZZc/OTOMv7lORe/OcusrVI9gsQZbho67Gsbcavl ZP+7mlo8jqmjPN3JJiKEVN6iBIdmIrb7sP+NbKATOT0clsrC7BJC8KfiW3S0QTCpjB cj3NeID8GeYg2GniBLnsleezE94YFjY/gJ+aWKZY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MMofc-1l4xDw1Bo4-00In8f for ; Sat, 20 Mar 2021 22:23:04 +0100 User-agent: mu4e 1.4.15; emacs 27.1 From: Pierre Langlois Date: Sat, 20 Mar 2021 21:23:00 +0000 Message-ID: <87o8fdwmdn.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:9ZdDB5OEjc+m56bVFG3p+Ly1r9w4PZYPQtwy1aeHfCJZYq5CAcE qCV71ZrkZvFNhBdLdBrZfl24IIFpJrntm6Mh5LOBXRwxTZmF25dqAhH9Vl8OpJfDHC5lszZ UFezPP9WMncckv4SVJ6cB/oub9z3mjiEDDjMAYFNPYejylNXOiphUb17Zy/+0/4KjXfbRm5 VttnP55r4WJ6wAWuciitg== X-UI-Out-Filterresults: notjunk:1;V03:K0:NmU6fGuz2c8=:pvXOaGldNiwKA2VJUMri6i CiKT9KG0x2rzwFsMTBiawkKkbfz7J/AdLPZ6FRbmF5O2KAwDTIj0Q6zhp32wOn7Ryg7oVALDk WwQTqonKOM68PiSsnJYyNdhYmb+I9VVtb9OIRGzOANBIj5e/bhu+vFm7pGMjCgpQJdcO1fQ/k J28MYKl+p+K5a+J01SCwotjWuCeKOA+IlncORwPC4im4dAXjaZges2s/lhIb3LC8tLM++kq8u mgVqJte8kCbx5Oi1bcOkw1tYJAfIpGar7ppqxU51fNpn+4ADxaS/5k8m3f3XjZbjEwKaFwn6a Yel9LGA9JyRT49eC1NMw0a82KJFYKMKQc5mEDjaIX79vN72udnE/WMQI3TznmNUCIqLwsJ433 Ot5RC1eZO/GKB7m7Qy377YymVjjRuq2TtOCM+QEbzCBhZzKXuxNbxjctvHWK62duVEGNGuyDT oCit1vkZusOpFZrtzBSdK0UJ3jazc3d6gn69MkxgapOKRW8DCIqCY0eiHylUr2Axh/gWOqtQg Cqm6fufCLV6yvvO7OHeuzOGxEAQfsr4p1VSI1Ft49DH0cuz93ltvQHTt1poZGJkLRtRaGSqpQ h0xvNcPzGzeY3bIEXMCiPBM5tjkjXcAkp3KkYL/TLkEjq20FcXAn5LQJyYrF3OUk/RLVgsGf2 1pdIgjkR7vPsCUJ/gsH5NS1FNJlsqqPYgdmhOAlyEPIEF6VXmn+bbB6K7lEAwD7YPx+jkViSC fSjSG6qLeQSrJsEbxOWLECQQSwztIbJXnzqer0DY6wxqwS5F1uGAT+P3mZWDo8QlP5bAGhcV8 ZLDcn5K8N0GgaygwUDUGBsUNAq0PSMm+xfAAn4Hg8HynCjZhA2mjwf8It7j4Rh5oF8e0dntrJ 3MgOHEvvQbW4MjxQP3VA== Received-SPF: pass client-ip=212.227.17.21; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616275449; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=ogljsvwHR5l6VVWP0IxNGnB1JajExcRZ3jIyD9ZAT6k=; b=RzMmfo0xh8WFCFcQcMMBhR4H19AxQ1aJ6jmxsG3boYhoVAgxfMU7sbO40XdckCPW45uhYv YIxLvTUFxwCxbWLbCFrTmJy1O3+NmABC5eTAbzKLDh/wXBVPtGUffpZ2AR8SCeOkcFk7Tj QroFn1TEWmMdu7XIDP5U2Ym04ZE24eaakrNJTfty2hHgCoEdeAesc4oY58DcHm8xW5hkK6 EJmZ4m0gfrpvjpoKvqpRkwROqoNQJtSy69mWX+DmRchl3b22LNMe/5HscPQHg+6y/+CHfH lyzbSXiWIxGfQsHgGzBYjLImcyrZGAiFURXVlgRAT0vKiXHZ8pfjH54pG6uCng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616275449; a=rsa-sha256; cv=none; b=L1Q9q3nYH1rxfdE7KgbzkKQ1Hz4HI70DWMN4V6se2fSKHugsFcWtvS2B/w9x6qUrM7XFam T/rk3LxCQXTSmE2yb38FekNrWi2sUheAY9iQnsw7N7iblDoSk+gB56Dp4y22bG28a3izGX UYHxFEgPTta8T4zM241CQZwo4pzICpgq5TADbWwkPysHVyfIuS49mP7T7uq6oK/eh2H4Gk Rhe0lEGNDzdrwovFlJui9hjQaChZO9P6s+chxP5k80s0cTAcBVU0PrhPRafUt73C52j4jr eS4139qe5r2DxlfT0Oxhx2PbLLXE69zKP2Lolvo+BSBfTq92jcwsyPs67S1oHQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=A72mxD4P; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=A72mxD4P; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 081A31F375 X-Spam-Score: -0.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: OnuoOSRho66W --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello Guix! This is a patch series that updates libvirt to 7.1.0, now using the meson build system, and then updates a few dependent packages as well. Getting libvirt to build and then work properly was quite tedious, given that we have to build it so that the binaries refer to /etc and /var at runtime, while we set the prefix to the package output. This was relatively straight-forward with the old build system, but with meson I ended up having to patch meson.build so that: - It allows for localstatedir to not be relative to the prefix. And prevent it from trying to create empty directories in /var during installation. - It allows installing configurations, in /gnu/...-libvirt-7.1.0/etc/, but still refer to the system /etc at runtime. An alternative would be to not do any of the installation steps for /etc files, but doing that was more intrusive a change to the build system, and having those configurations installed could be useful examples, or referred to be services. Other than that, the rest is pretty straight-forward. I've tested this using the libvirt service and virt-manager, making sure I could still boot a VM. It's all working fine for me, although my use-case is quite simple, just the defaults: =2D-8<---------------cut here---------------start------------->8--- (services (cons* (service libvirt-service-type (libvirt-configuration (unix-sock-group "libvirt"))) ...)) =2D-8<---------------cut here---------------end--------------->8--- Let me know what you think and if that's good enough to apply! The definition is a bit more hacky than I'd like, so any ideas to improve it would be great. Thanks, Pierre Pierre Langlois (4): gnu: libvirt: Update to 7.1.0. gnu: python-libvirt: Update to 7.1.0. gnu: libvirt-glib: Update to 4.0.0. gnu: virt-manager: Update to 3.2.0. gnu/local.mk | 2 +- .../libvirt-create-machine-cgroup.patch | 48 -------- .../libvirt-do-not-create-var-dirs.patch | 30 +++++ gnu/packages/virtualization.scm | 106 ++++++++---------- 4 files changed, 76 insertions(+), 110 deletions(-) delete mode 100644 gnu/packages/patches/libvirt-create-machine-cgroup.patch create mode 100644 gnu/packages/patches/libvirt-do-not-create-var-dirs.pat= ch =2D-=20 2.31.0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmBWZ7QYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31Ut4MH/08J4vdIow+miAgtwDvFG1Ox Tk+EeoL/MgaOF5xOQoW3c555n044HbIcT2c8jhusJHuvTHm2wfeu++UWgaJ569U9 QdEuVzrqYloVqVSC20XP+DG/ySqIjWc6irPAQl7GvPAUjoP7XMi/qHZuaBlCYg74 ec71exsPUNMnaW1atL6JB53peE7DB5Uz6EE6nGsIMww6NUMpMXtAYmX2Lzr751G/ BIM+lxCXJiDxmZ/otPEdpje9DJxfFpnZjH8/zSiIVJ+V/ZZH4KNuk2JbNhkiF4Qb 2B7bs5e0NuqLDfp3LekBfcZiWDIZTg/oCo8HUELg6o2N/r9RnfPWsf1y++SLCIU= =ZqbC -----END PGP SIGNATURE----- --=-=-=--