From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6Kg4Oxek22TCvAAASxT56A (envelope-from ) for ; Tue, 15 Aug 2023 18:13:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KEs+Ohek22QNMwAAG6o9tA (envelope-from ) for ; Tue, 15 Aug 2023 18:13:11 +0200 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 8FE2C3AD8E for ; Tue, 15 Aug 2023 18:13:11 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=rXxuwJ9a; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692115991; 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:resent-to: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=NhBSd3/+z0xt4cD6VRs0kozw7KTwyBU9I28E/dhQpJY=; b=BM4tN8QRqxUfyiDGmLX0BBk4hdPeDzFdJMmhGkz8nfu5DGTEu0v8o70lqKZ96PEgqsIunF zE+TwV24g2QvKs+ID62wQLQqZ87LQP8GQ2hEbZhB5hh4V4/CMUeaHIGiUpCaJEmmExdOqh QAAqT5+CIG2dNFVR0NC7P6EFPs1eWrGZhWMhOf2A4xPQkloAaHVAp38D5w9bSdG/ragzGR ivS1rMz6GYq7LER9vZIF+R603GxxIWK467L7VQ1a/Kw+XeK4ZiDpblmSMQZza+wDA0cQyf oJgd3YWbKxmarPSUk7gmpP/6salXJftk7lbgZD+HX5aLhKC+4qi4PrJsYCOfVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=rXxuwJ9a; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692115991; a=rsa-sha256; cv=none; b=gIufvF3NVpcvDUx4LQ7f2ZY1P8kGBfURhLu3v8HXSQfsRY7+DBNpVGzFV/aMB3a+IijMhw C3HTrXq/8BK0k3/rOM38ERfk9bQ6vdiXxYVV4ZEbITl4/FrPT5aVp41naK4/kLXPsxY+mF +l+IDEuwzP/m5RPEPhykmZ138GQ7wnP6M7MeI696TMwjpxPGFTFNmIoNV7zts7m0MkR9VJ eC3aRm6pOw0oa57VSDbFifUJ8obwa44HnR+BvgiPTS5odBG2+mjS6m+os6MIRXbSKuVNab /gSW9SPjnBCLDsAzkiiBpOKTT0kkpNP/quGRio9on8jwgLZidAY5CI0AXnYDjQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVudV-0007hB-8r; Tue, 15 Aug 2023 10:03:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVudT-0007fy-7T for guix-patches@gnu.org; Tue, 15 Aug 2023 10:03:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qVudS-00047G-Vt for guix-patches@gnu.org; Tue, 15 Aug 2023 10:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qVudS-0006th-Ry for guix-patches@gnu.org; Tue, 15 Aug 2023 10:03:02 -0400 Subject: bug#65235: [PATCH] refresh: Add --to-version option. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 15 Aug 2023 14:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 65235 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 65235-done@debbugs.gnu.org, Josselin Poiret , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , Ricardo Wurmus , Christopher Baines Mail-Followup-To: 65235@debbugs.gnu.org, maxim.cournoyer@gmail.com, maxim.cournoyer@gmail.com Received: via spool by 65235-done@debbugs.gnu.org id=D65235.169210818226494 (code D ref 65235); Tue, 15 Aug 2023 14:03:02 +0000 Received: (at 65235-done) by debbugs.gnu.org; 15 Aug 2023 14:03:02 +0000 Received: from localhost ([127.0.0.1]:36394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVudR-0006tC-EA for submit@debbugs.gnu.org; Tue, 15 Aug 2023 10:03:01 -0400 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:60494) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVudP-0006sv-QV for 65235-done@debbugs.gnu.org; Tue, 15 Aug 2023 10:03:00 -0400 Received: by mail-qk1-x736.google.com with SMTP id af79cd13be357-76cab6fe9c0so488316485a.0 for <65235-done@debbugs.gnu.org>; Tue, 15 Aug 2023 07:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692108174; x=1692712974; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=NhBSd3/+z0xt4cD6VRs0kozw7KTwyBU9I28E/dhQpJY=; b=rXxuwJ9ah/twVN7eBOPtUE8/g4wlplWorAXIHvl6F7vltVqvC3rSPbDtjqbcsv56qD cBitJXq3sAAZT7Ud7FzMWKkackYBLtFcne9adRVgaNHj/W9llo9V4vfqLby1BhV/6Ymc mJ2j7EEXOBf0M72e665PH0hNJvgJWqos1XB/LQJTvYrxCbpAvayZMbdsvtEwYD6gOn5N g7aCmEZFxXXqBmYY3HzbSy1Bmj8rF2qkmdW3D3LR9GdtAfVgJlPRHTcz3r4mNxxWaCnk JJScHG5c8vmZEjEART3l6m8LuEo+2n7kjyRq4gDV5lvJ2gUNOZOhLQXjR66dnfdIf9mx gvDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692108174; x=1692712974; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NhBSd3/+z0xt4cD6VRs0kozw7KTwyBU9I28E/dhQpJY=; b=heHthRfRnAqC0bb/axGC4I5cGFjJWvvsiBU+A8VDj5ltbbrwyTs6DPvRYh+FZrsHub wiXGTd9uITFI2v5BtOwMb3Hwy3m8vOKAMhAtd3E/W3YFln4MUQoO/KDw0BWo4b4XTuEQ UxsDDdyApLMVAD6zxlgji5qFUQrjEaNI4eVV/c8mXPufyqA39W3rU8jH8Qyo6ML/xxNn lPeb3+M9BSF6uxORxesIwlUmqbbllQfNR5OQ6jbtlrt4SDk/sA6w6ck+eshs5natyqvC xgkxF1pG2+KiMTaIg8xuuiT5jrAlxlX3JB//PY94ItxyvNPOY99vCJgyHV0v2hUHT/Px RRxA== X-Gm-Message-State: AOJu0YxqPMdND43H1HvL2nDjKceNFMTUAmIJO3GwOyiICR1UlxoClwPp 0Am4xApWFetyQNN1xeRDFtg= X-Google-Smtp-Source: AGHT+IFDcUMFi0JiG/mf/zchu2hG+VIM1L6L0h2CGYqUuHb3eAUU8xzXxGrgHf097gAUDJXQ84fl+w== X-Received: by 2002:ad4:56ed:0:b0:63d:4a9b:b29f with SMTP id cr13-20020ad456ed000000b0063d4a9bb29fmr9809677qvb.65.1692108174221; Tue, 15 Aug 2023 07:02:54 -0700 (PDT) Received: from hurd (dsl-148-65.b2b2c.ca. [66.158.148.65]) by smtp.gmail.com with ESMTPSA id e27-20020a0caa5b000000b0063cdeac3419sm4192010qvb.110.2023.08.15.07.02.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Aug 2023 07:02:53 -0700 (PDT) From: Maxim Cournoyer References: <7abba6f5c3c2cc32a0f21fa701e64fffe7d27861.1691790311.git.maxim.cournoyer@gmail.com> <87fs4ka8sr.fsf@gnu.org> Date: Tue, 15 Aug 2023 10:02:52 -0400 In-Reply-To: <87fs4ka8sr.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 15 Aug 2023 12:39:48 +0200") Message-ID: <87o7j8jtdf.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 8FE2C3AD8E X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: 4.31 X-Migadu-Spam-Score: 4.31 X-TUID: Uhw2LN+7qG2h Hi, Ludovic Court=C3=A8s writes: > Hi Maxim, > > Maxim Cournoyer skribis: > >> * guix/scripts/refresh.scm (%options): Register 'to-version' long versio= n. >> (update-specification->update-spec): Add a fallback-version argument. >> (options->update-specs): Honor to-version option. >> * tests/guix-refresh.sh: Test it. >> * doc/guix.texi (Invoking guix refresh): Document it. > > [...] > >> +In some specific cases, you may have many packages specified via a >> +manifest or a module selection which should all be updated together; for >> +these cases, the @option{--to-version} option can be provided to have >> +them all refreshed to the same version, as shown in the examples below: >> + >> +@example >> +$ guix refresh qtbase qtdeclarative --to-version=3D6.5.2 >> +gnu/packages/qt.scm:1248:13: qtdeclarative would be upgraded from 6.3.2= to 6.5.2 >> +gnu/packages/qt.scm:584:2: qtbase would be upgraded from 6.3.2 to 6.5.2 >> +@end example >> + >> +@example >> +$ guix refresh --manifest=3Dqt5-manifest.scm --to-version=3D5.15.10 >> +gnu/packages/qt.scm:1173:13: qtxmlpatterns would be upgraded from 5.15.= 8 to 5.15.10 >> +gnu/packages/qt.scm:1202:13: qtdeclarative would be upgraded from 5.15.= 8 to 5.15.10 >> +gnu/packages/qt.scm:1762:13: qtserialbus would be upgraded from 5.15.8 = to 5.15.10 >> +gnu/packages/qt.scm:2070:13: qtquickcontrols2 would be upgraded from 5.= 15.8 to 5.15.10 >> +@dots{} >> +@end example > > So the main goal is to avoid repeating the =E2=80=98=3D=E2=80=99 sign as = in > =E2=80=98qtbase=3D6.5.2=E2=80=99, right? That makes a lot of sense to me. > > I=E2=80=99d maybe prefer =E2=80=98--target-version=E2=80=99 but otherwise= LGTM! I've attempted a quick poll on #guix and Efraim also voted vote --target-version, so I've made change and pushed! Tobias had suggested '--update-version', which also made sense. Thanks for the review! --=20 Maxim