GNU logs - #35266, boring messages


Message sent to bug-guix@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#35266: system init doesn't work with -e
Resent-From: rendaw <7e9wc56emjakcm@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 14 Apr 2019 10:03:01 +0000
Resent-Message-ID: <handler.35266.B.155523613610806 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 35266
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: 35266 <at> debbugs.gnu.org
X-Debbugs-Original-To: submit <at> debbugs.gnu.org
Received: via spool by submit <at> debbugs.gnu.org id=B.155523613610806
          (code B ref -1); Sun, 14 Apr 2019 10:03:01 +0000
Received: (at submit) by debbugs.gnu.org; 14 Apr 2019 10:02:16 +0000
Received: from localhost ([127.0.0.1]:59862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hFbxn-0002oC-8E
	for submit <at> debbugs.gnu.org; Sun, 14 Apr 2019 06:02:15 -0400
Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48417)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <7e9wc56emjakcm@HIDDEN>) id 1hFan3-0000xL-5i
 for submit <at> debbugs.gnu.org; Sun, 14 Apr 2019 04:47:06 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46])
 by mailout.nyi.internal (Postfix) with ESMTP id D890F20CF2
 for <submit <at> debbugs.gnu.org>; Sun, 14 Apr 2019 04:46:59 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute6.internal (MEProxy); Sun, 14 Apr 2019 04:46:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rendaw.me; h=to
 :from:subject:message-id:date:mime-version:content-type
 :content-transfer-encoding; s=fm3; bh=IZPdGep6FQgQEh7DRQgAgvfpli
 oCCcpIp/Z03a1NnwQ=; b=fh2+iDMIGS9g7Kh/oWgvM7wpR24vUFO3JbTNio4bHb
 7CisK3IRno+p6UZQ5sfDPSCYaM37qY7/h5LhnjmSQXElwyxL+cxPZlS7sJWfjVaE
 JFrv/5juXTIgoWC3bOP+akjXgY2LopQMxG4+lEPXGDhA8Iw3yVE1u3GsBwilxRIM
 V7uY+A+l6KBPr7V9q0VpOB0q/6kUGM+j8LFGUJWvcqeVcJmyjtISZb5tHwgHmSUM
 BqKRIMJbg8R8TkZvvC1/HqNy6wRWygGdHg3lrs0NUpvyJtLv15mrU+NqVL+3R2dd
 8q3ORP5VoxZrYIsrNGxh4sc9JQnQ5+YxtPGARsxTlEnQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:content-type
 :date:from:message-id:mime-version:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=IZPdGe
 p6FQgQEh7DRQgAgvfplioCCcpIp/Z03a1NnwQ=; b=fEHH5G3rlzOUeKVF+Wm7cF
 t9OU7Y2MeRveI0/gWNRmpwhH4c5LTpUM2LS4liV8WqQ9u57+OUavlZu+GtcPtAQw
 fkvhCtW6Rswr5EK/Kwn9QjTaePeNjxPmXN+ZTqOBaBBaxIZTEB8u/UHzTJ50GxbG
 blEu2BNyLwZ/jDxgdzu7pJjSQD50scM3DG+TlwqF26ewWdrhQEwnzye0iH4PApw5
 p0ivM9eAhqBZO+ZebD3suPrRFRjAdTQSdRLlglGtJVd37XbCHMEKVc+toL7QAUg8
 VbAA3eYRHfTKKwbSRsjOgOQFB6Wq22FTyer5tI+XcOW5z0QwG9tRNNd9ZCDjXahA
 ==
X-ME-Sender: <xms:g_OyXIN0vEFYypgk9ZWIuKTSylt0Zw8IS71faWv9fYZbYul65bvwow>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrvdejgddtlecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecunecujfgurhepvffhuffkffgfgggtgfesthekredttd
 efjeenucfhrhhomheprhgvnhgurgifuceojegvleiftgehiegvmhhjrghktghmsehsrdhr
 vghnuggrfidrmhgvqeenucfkphepuddukedrvdegfedrvdefiedrudeileenucfrrghrrg
 hmpehmrghilhhfrhhomhepjegvleiftgehiegvmhhjrghktghmsehsrdhrvghnuggrfidr
 mhgvnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:g_OyXLQXMf75TBo4WRMBPsGnanypt6Rz8JRxL9rimPaVStVNn31XKg>
 <xmx:g_OyXA5yGAL1rD64y6T_E_9_PfqBKuL8K7285PJuzNbx2w9bdGFrmQ>
 <xmx:g_OyXN3iDW1Rdj4iX3TKnpDvO-i_Ek4WJPE5ZPj4ZO9Ol6_ZIL4rhg>
 <xmx:g_OyXCTHdsPNiBAmotK_BLHYrdwcgUgDgHdZug2aK3xvvPHKYnsBkw>
Received: from [192.168.1.35] (y236169.dynamic.ppp.asahi-net.or.jp
 [118.243.236.169])
 by mail.messagingengine.com (Postfix) with ESMTPA id 05E5D10319
 for <submit <at> debbugs.gnu.org>; Sun, 14 Apr 2019 04:46:58 -0400 (EDT)
From: rendaw <7e9wc56emjakcm@HIDDEN>
Message-ID: <880d5365-ca15-e70a-97d2-fc20e5a1a713@HIDDEN>
Date: Sun, 14 Apr 2019 17:46:56 +0900
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.5.3
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Mailman-Approved-At: Sun, 14 Apr 2019 06:02:13 -0400
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.7 (-)

Package: guix
Version: 0.16.0

I discussed this on irc and was recommended to ask about it on the
mailing list - I decided to send it to the bug tracker because if it's
decided to be a bug there's one less step.

Loosely copying irc logs:

<rendaw> Hello!  I'm getting "wrong number of arguments for action
'init'" when I do "guix system init -e '(my-func arg1 arg2)' /mnt" - is
there something obvious I'm doing wrong?  I googled around but the only
result I found was logs from 2 years ago that are gone now
<rendaw> Also, the docs aren't specific in this regard - will the
filesystem created by "guix system init" be a bootable system?  Like
disk-image but on a mounted empty filesystem?  The other way I could
interpret the docs for that command are that "init" copies all the files
required to build the system (source files, guix binaries, etc) into a
directory for backup purposes
<kmicu> Hi rendaw. why do you pass -e flag to system init?
<rendaw> To pass arguments into the build
<rendaw> (drive uuids, secrets I don't want to commit to the system
config, etc)
<rendaw> I suppose I image it's the same reason one would want to pass
-e to system disk-image or system-vm or whatever

<samplet> Near the bottom of “guix/scripts/system.scm” it has a “case”
form that checks if the action is “init” and then makes sure the
argument count is exactly two.
<samplet> It would be pretty easy to fix, but I recommend contacting the
mailing list before doing anything, in case there is a good reason for it.

<kmicu> rendaw: ‘-e’ contributor didn’t handle init case, intention was
‘(guix-system): Allow commands taking a file as an argument to use an
expression instead.’ but there is a check for init that doesn’t allow
that currently.
<kmicu> rendaw: more at 5a72ddf176d53a7f4df922985d9d7fd4cfa160f5
<rendaw> kmicu: So I guess it sounds unintentional?
<samplet> rendaw: The main issue seems to be that the “process-action”
procedure assumes the target to be the second argument.  If there were
no configuration file, it would have to be the first.
<samplet> I’m not certain, but I bet with a little tweak to
“process-action”, you could remove the check and everything would work fine.
<rendaw> I suppose none of the other actions have a target parameter
<kmicu> rendaw: yep, you are basically the first user using init with
-e. Congrats xD
<rendaw> :D






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: rendaw <7e9wc56emjakcm@HIDDEN>
Subject: bug#35266: Acknowledgement (system init doesn't work with -e)
Message-ID: <handler.35266.B.155523613610806.ack <at> debbugs.gnu.org>
References: <880d5365-ca15-e70a-97d2-fc20e5a1a713@HIDDEN>
X-Gnu-PR-Message: ack 35266
X-Gnu-PR-Package: guix
Reply-To: 35266 <at> debbugs.gnu.org
Date: Sun, 14 Apr 2019 10:03:02 +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 35266 <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
35266: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35266
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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