From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8K41DcqWAmLrrgAAgWs5BA (envelope-from ) for ; Tue, 08 Feb 2022 17:14:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oAaBCsqWAmILhQAA9RJhRA (envelope-from ) for ; Tue, 08 Feb 2022 17:14:02 +0100 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 DA4622268F for ; Tue, 8 Feb 2022 17:14:01 +0100 (CET) Received: from localhost ([::1]:50890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHT7x-0005Bm-27 for larch@yhetil.org; Tue, 08 Feb 2022 11:14:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHQdw-0006YZ-9d; Tue, 08 Feb 2022 08:34:52 -0500 Received: from [2001:470:142:3::e] (port=57418 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHQdv-0004e7-Um; Tue, 08 Feb 2022 08:34:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Qi3VF+0144rymkEpK2xSaoliYHjrV/E7w7YqBclK304=; b=B845ur1LMZn8+b6pruuz qAEn94LHYpOKJ6T8XmwmuJuRrk+iJH9ERz0aHP3ZlrfcqPADVp2V/54Qbh0IRl/LZkU5N3JESUdI2 b4880r9cf2C0LVkabsk8X5yJFAmDEEi+1HqXOb/fnJ4XKCv/5s6W6xyLjYRQ0o5pK3ZBvkPBc2PJJ 79uguIntdIrHIn6c/Jsvh4raJcNUSzGS8a5pzNKklxAYt2b/zGJQzNTvDaXrC9uzThlpLoGZbzBvh XFysMGd+pusQXpoe5VwPAUlS+VCctbsyHrU5lhUoYsGytpwsyJbB63b8tnFvvMGQAMVcTBVbpdFRc w/V8CnseuAAISg==; Received: from [2a01:e0a:19b:d9a0:2f3b:16f2:b776:3ef9] (port=54880 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHQdv-0000Ng-GD; Tue, 08 Feb 2022 08:34:51 -0500 From: Mathieu Othacehe To: Maxim Cournoyer Subject: Re: Dropping gzip-compressed substitutes References: <878rum1pph.fsf@gmail.com> Date: Tue, 08 Feb 2022 14:34:49 +0100 In-Reply-To: <878rum1pph.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 07 Feb 2022 13:44:42 -0500") Message-ID: <87tud9jxc6.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel , guix-sysadmin Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644336841; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Qi3VF+0144rymkEpK2xSaoliYHjrV/E7w7YqBclK304=; b=oVIs3oVXVDLgnCZwPQnZ2BRgPLqmiAQWLkp5dK0OblZcCfWFKSu65QUHhmOXvC3K0lwFHv GoxSih+jcunG0KsABaD+cvlCeosWJ0jqkuWmDLP2I3EjrCiMjJNwwxWIYltQ6Q4fkQlaFL zy0yIjpZLu9VaxVBu4rnRIArnEFdwnctyFBZwJw3VeJsNZbFVbxJJBHR6x9iemhEV3ZfcE 3/eZa1aSXA/46+qaFnsGXtFGrG0iXQbXB3V5cO30c1fSl8UTmqn35TpvPrjRmO2kLgC2rc Jz1h+2tUzFNDHDdDbhT4ghmA/eZozpRe26KPl1WBHPANAAKr/gnodAM/2/N+tQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644336841; a=rsa-sha256; cv=none; b=X3ZHleHi6Q5QT79k4iXQmCj5pIwgH8NMlxWWBQY7YztGc3tw0U7sDyQwjZ3EwNHXm3tt7P FuY1iqMvUvFKz0rlOKe/q6bEZZDleijKdL39CU0YOIoO0tuLcVmntFfAsSSQsdS48/RyGF lBNNoXWJ/gHnisFfXP6r5Vq7QfkBmbMwxZno8hBUca2J/eDm3mBcqJwwwAc27hvSoQOgHS Q4PlywHC3Z5BchmabuNV0fL7B2p3Sf0gkJIbNI9mO4NXBxAoDA1cuZfH23GmwA3T9ofrt/ bY96Qj1C8VW2b5Ocnjxm0wJgkgenCRwyD8f9ndpuIr2l9TsB/nVOE8a2+m/7Aw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=B845ur1L; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=B845ur1L; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: DA4622268F X-Spam-Score: -5.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7DQHhXLLbZVC --=-=-= Content-Type: text/plain Hey Maxim, Sound like a fine plan. > 1. Promptly set up both a blog post and a NEWS entry announcing the > support for gzip substitutes is about to be phased out from the build > farm (1 month notice), urging users to upgrade their daemon to a version >>= 1.1.0. I addition, we could warn users with old daemons as proposed by Ludo & Ricardo. There's an attached patch here. > - ;; TODO: Eventually, disable gzip, as discussed at > - ;; . > - (compression '(("gzip" 9) ("lzip" 9) ("zstd" 19))) > + (compression '(("lzip" 9) ("zstd" 19))) > (cache-bypass-threshold cache-bypass-threshold) > (workers publish-workers))) Nice. > 3. Come up with a Guile script that is able to > > a) Strip gzip-related metadata from the .narinfo guix-publish metadata > files > b) recompute and update their 'Signature' field. > > 4. Finally, 'rm -r /var/guix/publish/gzip' and free about 6.5 TiB of data. I hope the script will be able to complete within a reasonable amount of time, but we cannot know before trying it out :). Thanks, Mathieu --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-store-Warn-about-daemon-deprecation.patch Content-Transfer-Encoding: quoted-printable >From bd306a8b20f2033d67755dd332a5d33b2f6b822d Mon Sep 17 00:00:00 2001 From: Mathieu Othacehe Date: Tue, 8 Feb 2022 14:28:56 +0100 Subject: [PATCH 1/1] store: Warn about daemon deprecation. * guix/deprecation.scm (warn-about-old-daemon): New procedure. * guix/store.scm (build-things): Use it to warn about old daemons. --- guix/deprecation.scm | 7 +++++++ guix/store.scm | 2 ++ 2 files changed, 9 insertions(+) diff --git a/guix/deprecation.scm b/guix/deprecation.scm index c66c9367f6..666e178d75 100644 --- a/guix/deprecation.scm +++ b/guix/deprecation.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2019, 2020, 2021 Ludovic Court=C3=A8s +;;; Copyright =C2=A9 2021 Mathieu Othacehe ;;; ;;; This file is part of GNU Guix. ;;; @@ -24,6 +25,8 @@ (define-module (guix deprecation) =20 define-deprecated/public define-deprecated/alias + + warn-about-old-daemon warn-about-deprecation)) =20 ;;; Commentary: @@ -32,6 +35,10 @@ (define-module (guix deprecation) ;;; ;;; Code: =20 +(define (warn-about-old-daemon) + (warning (G_ "Your Guix daemon is seriously outdated, please consider + updating it by following the 'Upgrading Guix' documentation section.~%"))) + (define* (warn-about-deprecation variable properties #:key replacement) (let ((location (and properties (source-properties->location properties)= ))) diff --git a/guix/store.scm b/guix/store.scm index a93e9596d9..11dfc095b1 100644 --- a/guix/store.scm +++ b/guix/store.scm @@ -1442,6 +1442,8 @@ (define build-things things))) (parameterize ((current-store-protocol-version (store-connection-version store))) + (when (< (current-store-protocol-version) 355) ;0x163 + (warn-about-old-daemon)) (if (>=3D (store-connection-minor-version store) 15) (build store things mode) (if (=3D mode (build-mode normal)) --=20 2.34.0 --=-=-=--