unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / Atom feed
* bug#25952: offloading: empty machines file leads to error
@ 2017-03-03 16:56 ng0
  2020-05-03 16:43 ` bug#25952: offloading empty machines file zimoun
  2020-05-25 17:12 ` zimoun
  0 siblings, 2 replies; 6+ messages in thread
From: ng0 @ 2017-03-03 16:56 UTC (permalink / raw)
  To: 25952

I have misplaced my log for this, but it is easy to reproduce:

configure offloading on master and build-machine, comment the entire
content of the file which holds the build-machines, run "guix build
hello" and see the error.

This should even work when you haven't configured offloading, just with
an empty machines file.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#25952: offloading empty machines file
  2017-03-03 16:56 bug#25952: offloading: empty machines file leads to error ng0
@ 2020-05-03 16:43 ` zimoun
  2020-05-25 17:12 ` zimoun
  1 sibling, 0 replies; 6+ messages in thread
From: zimoun @ 2020-05-03 16:43 UTC (permalink / raw)
  To: contact.ng0, 25952

Dear,

Digging in the bug tracker, I found this bug report [1].  Could you
expand on the issue? And report the error message?

Thank you in advance.

Best regards,
simon

[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25952




^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#25952: offloading empty machines file
  2017-03-03 16:56 bug#25952: offloading: empty machines file leads to error ng0
  2020-05-03 16:43 ` bug#25952: offloading empty machines file zimoun
@ 2020-05-25 17:12 ` zimoun
  2020-05-25 20:32   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  1 sibling, 1 reply; 6+ messages in thread
From: zimoun @ 2020-05-25 17:12 UTC (permalink / raw)
  To: 25952-done, contact.ng0

Dear,

This bug [1] had not been commented since the last 3 years and it has
been asked more info 3 weeks ago.  Therefore, I am closing.  Feel free
to reopen if I misunderstand something.

[1] http://issues.guix.gnu.org/issue/25952


All the best,
simon




^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#25952: offloading empty machines file
  2020-05-25 17:12 ` zimoun
@ 2020-05-25 20:32   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2020-05-25 22:43     ` zimoun
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2020-05-25 20:32 UTC (permalink / raw)
  To: zimoun; +Cc: 25952, contact.ng0

[-- Attachment #1: Type: text/plain, Size: 812 bytes --]

Simon,

zimoun 写道:
> This bug [1] had not been commented since the last 3 years and 
> it has
> been asked more info 3 weeks ago.

The issue is that files such as /etc/guix/machines.scm (but this 
applies equally to /etc/guix/acl & so on) are expected to evaluate 
to a sexp.

An empty file does not a valid sexp make, so Guix throws an 
prickly backtrace @ your face & dies.  This is unlike most other 
configuration formats where an empty file or one consisting 
entirely of comments is a no-op.

We should decide whether ‘’ is a valid sexp (oh dear, philosophy) 
or throw something softer at people.

> Therefore, I am closing.  Feel free to reopen if I misunderstand 
> something.

I think this bug should remain open until it's decided.  What you?

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#25952: offloading empty machines file
  2020-05-25 20:32   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2020-05-25 22:43     ` zimoun
  2020-09-14 17:26       ` zimoun
  0 siblings, 1 reply; 6+ messages in thread
From: zimoun @ 2020-05-25 22:43 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 25952, contact.ng0

Hi Tobias,

On Mon, 25 May 2020 at 22:32, Tobias Geerinckx-Rice <me@tobias.gr> wrote:

> The issue is that files such as /etc/guix/machines.scm (but this
> applies equally to /etc/guix/acl & so on) are expected to evaluate
> to a sexp.
>
> An empty file does not a valid sexp make, so Guix throws an
> prickly backtrace @ your face & dies.  This is unlike most other
> configuration formats where an empty file or one consisting
> entirely of comments is a no-op.

Hum? I am not sure to get the point.  Are we talking about this kind
of situations, e.g.,

--8<---------------cut here---------------start------------->8---
touch /tmp/empty.scm
guix package -m /tmp/empty.scm -p /tmp/empy
--8<---------------cut here---------------end--------------->8---

or

--8<---------------cut here---------------start------------->8---
echo ";; hello" > /tmp/comment.scm
guix package -m /tmp/comment.scm -p /tmp/comment
--8<---------------cut here---------------end--------------->8---

or

--8<---------------cut here---------------start------------->8---
echo "(define x 42)" > /tmp/answer.scm
guix package -m /tmp/answer.scm -p /tmp/answer
--8<---------------cut here---------------end--------------->8---

?


> We should decide whether ‘’ is a valid sexp (oh dear, philosophy)
> or throw something softer at people.

Throw something more "helping" than e.g.,

--8<---------------cut here---------------start------------->8---
Backtrace:
           1 (primitive-load "/home/simon/.config/guix/current/bin/g…")
In guix/ui.scm:
  1936:12  0 (run-guix-command _ . _)

guix/ui.scm:1936:12: In procedure run-guix-command:
In procedure struct-vtable: Wrong type argument in position 1
(expecting struct): #<unspecified>
--8<---------------cut here---------------end--------------->8---

?


> > Therefore, I am closing.  Feel free to reopen if I misunderstand
> > something.
>
> I think this bug should remain open until it's decided.  What you?

Well, it is a variant of Cunningham's Law, isn't it? :-)
So, let reopen it and decide on the philosophical dilemma. ;-)


Cheers,
simon




^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#25952: offloading empty machines file
  2020-05-25 22:43     ` zimoun
@ 2020-09-14 17:26       ` zimoun
  0 siblings, 0 replies; 6+ messages in thread
From: zimoun @ 2020-09-14 17:26 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 25952, contact.ng0

Dear,

On Tue, 26 May 2020 at 00:43, zimoun <zimon.toutoune@gmail.com> wrote:
> On Mon, 25 May 2020 at 22:32, Tobias Geerinckx-Rice <me@tobias.gr> wrote:
>
>> The issue is that files such as /etc/guix/machines.scm (but this
>> applies equally to /etc/guix/acl & so on) are expected to evaluate
>> to a sexp.
>>
>> An empty file does not a valid sexp make, so Guix throws an
>> prickly backtrace @ your face & dies.  This is unlike most other
>> configuration formats where an empty file or one consisting
>> entirely of comments is a no-op.
>
> Hum? I am not sure to get the point.  Are we talking about this kind
> of situations, e.g.,
>
> touch /tmp/empty.scm
> guix package -m /tmp/empty.scm -p /tmp/empy
>
> or
>
> echo ";; hello" > /tmp/comment.scm
> guix package -m /tmp/comment.scm -p /tmp/comment
>
> or
>
> echo "(define x 42)" > /tmp/answer.scm
> guix package -m /tmp/answer.scm -p /tmp/answer
>
>
> ?

If we are talking about such cases, I think we can close this bug
report.


>> We should decide whether ‘’ is a valid sexp (oh dear, philosophy)
>> or throw something softer at people.
>
> Throw something more "helping" than e.g.,
>
> Backtrace:
>            1 (primitive-load "/home/simon/.config/guix/current/bin/g…")
> In guix/ui.scm:
>   1936:12  0 (run-guix-command _ . _)
>
> guix/ui.scm:1936:12: In procedure run-guix-command:
> In procedure struct-vtable: Wrong type argument in position 1
> (expecting struct): #<unspecified>
>
> ?

More helping as suggested for example in this message:

<https://lists.gnu.org/archive/html/guix-devel/2020-09/msg00125.html>

If yes, the bug report should be renamed.  And probably goes to the
Guile bug tracker. :-)


All the best,
simon





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-09-14 17:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-03 16:56 bug#25952: offloading: empty machines file leads to error ng0
2020-05-03 16:43 ` bug#25952: offloading empty machines file zimoun
2020-05-25 17:12 ` zimoun
2020-05-25 20:32   ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-05-25 22:43     ` zimoun
2020-09-14 17:26       ` zimoun

unofficial mirror of bug-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-bugs/0 guix-bugs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-bugs guix-bugs/ https://yhetil.org/guix-bugs \
		bug-guix@gnu.org
	public-inbox-index guix-bugs

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.bugs
	nntp://news.gmane.io/gmane.comp.gnu.guix.bugs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git