all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: "Nils Landt" <nils@landt.email>,
	"Rostislav Svoboda" <rostislav.svoboda@gmail.com>,
	"Clément Lassieur" <clement@lassieur.org>
Cc: 66659@debbugs.gnu.org
Subject: bug#66659: (home-)on-first-login script broken when no gexps are added
Date: Sat, 28 Oct 2023 00:22:29 +0200	[thread overview]
Message-ID: <87lebnaeoq.fsf_-_@gnu.org> (raw)
In-Reply-To: <1963527562.259546.1698141941111@office.mailbox.org> (Nils Landt's message of "Tue, 24 Oct 2023 12:05:41 +0200 (CEST)")

Hi,

Nils Landt <nils@landt.email> skribis:

> I'm afraid this did not fix the issue. It results in
> (when (claim-first-run flag-file-path) (begin))
>
> which leads to the new error message "Syntax error:
> /home/nl/.guix-home/on-first-login:3:1272: sequence of zero expressions in form (begin)"

Oops, my bad.  (I did check at the REPL that (begin) was fine but forgot
that I was checking the top-level ‘begin’ form, which is not the same as
the sequencing ‘begin’ form…)

Rostislav Svoboda <rostislav.svoboda@gmail.com> skribis:

> Adding *unspecified* works for me. I.e.:
>
>     (when (claim-first-run flag-file-path)
>       ;; GEXPS can be empty, hence 'begin *unspecified*'. Having just
>       ;; 'begin' without '*unspecified*' leads to
>       ;; "Syntax error: ... sequence of zero expressions in form (begin)"
>       (begin *unspecified* #$@gexps))
>
> The patch is in the attachment.

Thanks Rostislav and everyone, and apologies for not replying earlier!

Ludo’.




  parent reply	other threads:[~2023-10-27 22:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-21  6:14 bug#66659: (home-)on-first-login script broken when no gexps are added Nils Landt
2023-10-21  9:27 ` Carlo Zancanaro
2023-10-21  9:39   ` bug#66659: [PATCH] home: services: Don't crash on-first-login when nothing to do Carlo Zancanaro
2023-10-21 14:15   ` bug#66659: (home-)on-first-login script broken when no gexps are added Ludovic Courtès
     [not found] ` <handler.66659.D66659.169789774918233.notifdone@debbugs.gnu.org>
2023-10-24 10:05   ` bug#66659: closed (Re: bug#66659: (home-)on-first-login script broken when no gexps are added) Nils Landt
2023-10-24 23:19     ` bug#66659: (home-)on-first-login script broken when no gexps are added Clément Lassieur
2023-10-27 22:22     ` Ludovic Courtès [this message]
2023-10-24 14:17 ` Rostislav Svoboda
2023-10-27 14:53   ` Clément Lassieur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lebnaeoq.fsf_-_@gnu.org \
    --to=ludo@gnu.org \
    --cc=66659@debbugs.gnu.org \
    --cc=clement@lassieur.org \
    --cc=nils@landt.email \
    --cc=rostislav.svoboda@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.