GNU logs - #50473, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#50473: Unordered =?UTF-8?Q?=E2=80=99%actions=E2=80=99?= process from =?UTF-8?Q?=E2=80=99guix_?= =?UTF-8?Q?package=E2=80=99?=
Resent-From: zimoun <zimon.toutoune@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Wed, 08 Sep 2021 12:44:01 +0000
Resent-Message-ID: <handler.50473.B.16311050056939 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 50473
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 50473 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN 
Received: via spool by submit <at> debbugs.gnu.org id=B.16311050056939
          (code B ref -1); Wed, 08 Sep 2021 12:44:01 +0000
Received: (at submit) by debbugs.gnu.org; 8 Sep 2021 12:43:25 +0000
Received: from localhost ([127.0.0.1]:58862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mNwvE-0001np-TE
	for submit <at> debbugs.gnu.org; Wed, 08 Sep 2021 08:43:25 -0400
Received: from lists.gnu.org ([209.51.188.17]:34706)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1mNwvD-0001ni-Fy
 for submit <at> debbugs.gnu.org; Wed, 08 Sep 2021 08:43:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45004)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1mNwvD-0002Cd-37
 for bug-guix@HIDDEN; Wed, 08 Sep 2021 08:43:23 -0400
Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:38457)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <zimon.toutoune@HIDDEN>)
 id 1mNwvB-0005Nj-9n
 for bug-guix@HIDDEN; Wed, 08 Sep 2021 08:43:22 -0400
Received: by mail-wm1-x335.google.com with SMTP id
 k5-20020a05600c1c8500b002f76c42214bso1495835wms.3
 for <bug-guix@HIDDEN>; Wed, 08 Sep 2021 05:43:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:subject:date:message-id:mime-version;
 bh=JLzO5smS4TTchNQpfKyt8tDMkWJifOXlsS1xrWg39n0=;
 b=P/VOS7XvxQTwrbzM+r23CsOOIMakEhMMRY4S6V+PQuub7sHO6QbiU7iEnpA8pT918m
 bCzHlgPEjBaAdTedSIf4Dv+LuTC3droj0XFVbEFDnoa0IT09+p/r6a1128T8vFQFm/3w
 BBhVOTGMxbpFf3fcvvv72lgdkFms5t17dWvfqJuSs/9BBemmOk/74n83FuAEwerfbERp
 4nMsmfknQIV90DLMKogshYIDnu5pEGWrIiZyvprxUUvH4RUP21Hwaf/znRCRea8Ob9qa
 8nETOp4C19JkiyPCoEaELTP1yDkz3UamKB0TY6BeefuTwbTQtRguZz31d8Pgh0lRuq8I
 7NgA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=JLzO5smS4TTchNQpfKyt8tDMkWJifOXlsS1xrWg39n0=;
 b=MBJNA/XYYQtF2Wb5vBVXH3ubXrNplHJdRyk7b+cJI4vLGivPwO/iR68hg8lmvsyB32
 gfjVsShBdyyIgL9DpRmrflJokL4fcQ5sVqhyoJnhVzWmSeGm09r2ZSZT+6DlZM1ZwJyg
 Fz0mo8YQNuAH2ma97YiyPQW+hUJZxc2OS/dsD18j1UkLv1xnbNm2jcdWCVD0VwfedFXY
 +5lGswpRfXzxy9wninh/tGivUcvAfETlLEu1Q5ij2MPodXr4wHpv2ORuOgfO2xQ0XZ8X
 YxB+Abevdrn7gBJTheBatjs874npQ0zBw3lxbfuE8UJ3NZldhNbLiPJprZSLCC/Is11s
 GAXw==
X-Gm-Message-State: AOAM531W2I8R8iui9Kj00ZPtozVE7qfXZKUsHFLwlaIHH+emspNjs9tv
 LypCnDhfbm49+3Hx0gg92qDNTd/X/oI=
X-Google-Smtp-Source: ABdhPJyucbCqPAOByy60t6oPPBbObE1+BSdpNoeqdRKlP8FvaG6QZlDZ46pMe/fwS0l4VvUffITwDw==
X-Received: by 2002:a05:600c:4fc1:: with SMTP id
 o1mr3479776wmq.4.1631104999961; 
 Wed, 08 Sep 2021 05:43:19 -0700 (PDT)
Received: from jack-Precision-7820-Tower ([193.48.40.117])
 by smtp.gmail.com with ESMTPSA id r129sm1947146wmr.7.2021.09.08.05.43.19
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 08 Sep 2021 05:43:19 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
Date: Wed, 08 Sep 2021 14:43:12 +0200
Message-ID: <864kav2q73.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::335;
 envelope-from=zimon.toutoune@HIDDEN; helo=mail-wm1-x335.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.3 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi,

Let consider:

    $ guix package -S 17 -d 18

but 

    $ guix package -d 18 -S 17

does not the same thing.  The '%actions' (roll-back, delete-generation,
switch-generation) are processed in reversed order as they appear on the
command-line -- because 'for-each' and 'assoc-ref'.

However, the transaction plan is always the same:

   step0 process %actions
   step1 remove
   step2 install
   step3 manifest

Therefore, I propose to split the 'for-each' on '%actions' (step0) into
fixed steps, such as the transaction always happens using this plan:

 1. roll-back
 2. switch-generation
 3. delete-generation
 4. remove
 5. install
 6. manifest

whatever the order in the command line.

On one hand, it reduces the "power" of combining '-S', '-d' and
'--roll-back'.  On the other hand, it enforces commutativity which is
somehow what we want a transaction to be.

WDYT?  I can come up with a patch.  This initial issue had been reported
by bug#40549 [1].

(Note that an issue about short-name with optional argument can also
happen and tracked by bug#50472 [2].)

All the best,
simon

1: <http://issues.guix.gnu.org/40549>
2: <http://issues.guix.gnu.org/50472>




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: zimoun <zimon.toutoune@HIDDEN>
Subject: bug#50473: Acknowledgement (Unordered =?UTF-8?Q?=E2=80=99%actions=E2=80=99?=
 process from =?UTF-8?Q?=E2=80=99guix_?= =?UTF-8?Q?package=E2=80=99?=)
Message-ID: <handler.50473.B.16311050056939.ack <at> debbugs.gnu.org>
References: <864kav2q73.fsf@HIDDEN>
X-Gnu-PR-Message: ack 50473
X-Gnu-PR-Package: guix
Reply-To: 50473 <at> debbugs.gnu.org
Date: Wed, 08 Sep 2021 12:44:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guix@HIDDEN

If you wish to submit further information on this problem, please
send it to 50473 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
50473: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D50473
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 8 Sep 2021 13:26:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 08 09:26:12 2021
Received: from localhost ([127.0.0.1]:58982 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mNxae-0002uV-Ef
	for submit <at> debbugs.gnu.org; Wed, 08 Sep 2021 09:26:12 -0400
Received: from tobias.gr ([80.241.217.52]:52880)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1mNxac-0002uN-Jh
 for control <at> debbugs.gnu.org; Wed, 08 Sep 2021 09:26:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=9f/5b3EMR+G27
 3a4BG2LJVD5pEPDyKT4Bipwj3os76E=; h=to:from:date; d=tobias.gr;
 b=JDGpeV
 B8Uur/fIEPWrxSZ/v5HSM7EoaG5FXM+HRJowzviAbbucrAEqVIA26zSX82AWAQUlgIKGZN
 ER4z+OtYWIHmlL84xn5G4i1entYYXzqqlK4dnJy8BOWfXR34S42jrytRYeWNGHVUF7+cnu
 qgpKSTzkhdcJVLoetVCeHN76MhUPFHr9d8MF0g3qSvgCTLX1qLP0z1vvnB1OzJzneHGPAD
 130w4b+daqWvV0+Jx9xalDaAHa+IfoxI4JvMc/LrC904hkHcv6UaPAIUshbIzXr29xfNfY
 +UtumaUnV03POUwqCD466D6SAL9P3qZRIbmlYYttLe0NAxSNb7VEYx+g==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id 03061bde
 for <control <at> debbugs.gnu.org>; Wed, 8 Sep 2021 13:26:04 +0000 (UTC)
MIME-Version: 1.0
Date: Wed, 08 Sep 2021 15:26:04 +0200
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: Control <control <at> debbugs.gnu.org>
Message-ID: <d422af4c32c9d6f6271546e9794add94@HIDDEN>
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: retitle 50473 'guix package' processes command-line %actions
 in reverse thanks ('Failed to set the title of 50473: Non-printable characters
 are not allowed in bug titles.' -- FFS...) 
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [80.241.217.52 listed in list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.8 MISSING_SUBJECT        Missing Subject: header
 0.2 NO_SUBJECT             Extra score for no subject
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 1.0 (+)

retitle 50473 'guix package' processes command-line %actions in reverse
thanks

('Failed to set the title of 50473: Non-printable characters are not 
allowed in bug titles.' -- FFS...)





Last modified: Wed, 8 Sep 2021 13:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.