GNU bug report logs - #43238
`guix system build -n` to be more informative (builds/substitutes)

Previous Next

Package: guix;

Reported by: Vitaliy Shatrov <guix.vits <at> disroot.org>

Date: Sun, 6 Sep 2020 10:30:02 UTC

Severity: normal

To reply to this bug, email your comments to 43238 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#43238; Package guix. (Sun, 06 Sep 2020 10:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vitaliy Shatrov <guix.vits <at> disroot.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 06 Sep 2020 10:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vitaliy Shatrov <guix.vits <at> disroot.org>
To: "Magst Tom tomaten\?" <bug-guix <at> gnu.org>
Subject: `guix system build -n` to be more informative (builds/substitutes)
Date: Sun, 06 Sep 2020 17:30:23 +0700
Hello Guix.

I did:
`guix system build -n config.scm`

I get a message, something like:
"3 packages (guix, modules, and ?) would be downloaded."

I ran `sudo guix system build config.scm`.  Guix told me it will build
the linux kernel.  It was unexpected.

The `guix system build/reconfigure` upgrades the daemon first. Right?

So, if `guix` cannot know beforehand will the User get any substitutes..
Maybe:
   * `guix` should stop and ask in case there is a build ahead?
   * add a separate 'update-daemon-only' command (or flag) to `system`?


Background:
With `update-daemon-only`, one can just walk away.  Then look-up, if any
builds are ahead.  Of course i understood that the system-wide config
should be keept minimal.  So not that big trouble: just i had an
substitute offered to me (for kernel), but (as `system build -n` didn't
warned me) decided to not use it (as i thought the kernel will not be
updated).  When i found out that kernel actually going to be build, i
canceled it.  Then switched to kernel that has substitute (same config,
different hash).


---
Thank You for the attention, Vitaliy.







Information forwarded to bug-guix <at> gnu.org:
bug#43238; Package guix. (Sun, 06 Sep 2020 10:43:02 GMT) Full text and rfc822 format available.

Message #8 received at 43238 <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Vitaliy Shatrov <guix.vits <at> disroot.org>
Cc: 43238 <at> debbugs.gnu.org
Subject: Re: bug#43238: `guix system build -n` to be more informative
 (builds/substitutes)
Date: Sun, 06 Sep 2020 12:43:25 +0200
Vitaliy Shatrov <guix.vits <at> disroot.org> writes:

> Hello Guix.
>
> I did:
> `guix system build -n config.scm`
>
> I get a message, something like:
> "3 packages (guix, modules, and ?) would be downloaded."
>
> I ran `sudo guix system build config.scm`.  Guix told me it will build
> the linux kernel.  It was unexpected.

Are these the same “guix” programs?  “sudo guix” probably gives you the
root user’s “guix”, whereas just “guix” will give you the current user’s
“guix”.

That’s why we recommend “sudo -E guix” or similar.

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#43238; Package guix. (Sun, 06 Sep 2020 13:38:02 GMT) Full text and rfc822 format available.

Message #11 received at 43238 <at> debbugs.gnu.org (full text, mbox):

From: Vitaliy Shatrov <guix.vits <at> disroot.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 43238 <at> debbugs.gnu.org
Subject: Re: bug#43238: `guix system build -n` to be more informative
 (builds/substitutes)
Date: Sun, 06 Sep 2020 20:38:40 +0700
Hello Ricardo.

I made a typo:  I do not need a root for `build`.

How it really was:

`guix system build -n config.scm`
---> 3 packages download

sudo guix system _RECONFIGURE_ config.scm
---> Hey-ho: building Linux!

C-c

edit config.scm, use kernel that has substitute.

guix build -n config.scm --substitute-url=URL
---> Will download Linux.

sudo guix sytem reconfugure config.scm
---> download, apply.  ahm cool.


---
Am sorry, Vitaliy.




Information forwarded to bug-guix <at> gnu.org:
bug#43238; Package guix. (Sun, 06 Sep 2020 20:00:02 GMT) Full text and rfc822 format available.

Message #14 received at 43238 <at> debbugs.gnu.org (full text, mbox):

From: Mark H Weaver <mhw <at> netris.org>
To: Vitaliy Shatrov <guix.vits <at> disroot.org>, 43238 <at> debbugs.gnu.org
Subject: Re: bug#43238: `guix system build -n` to be more informative
 (builds/substitutes)
Date: Sun, 06 Sep 2020 15:58:21 -0400
Hi Vitaliy,

I reported this issue in April as bug #40612, so this is a duplicate.

  https://bugs.gnu.org/40612

That bug is still open, but it seems blocked on differences of opinion.

      Mark




This bug report was last modified 3 years and 203 days ago.

Previous Next


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