From: ludo@gnu.org (Ludovic Courtès)
To: "Clément Lassieur" <clement@lassieur.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] services: Fix 'mkdir-p' in activation scripts.
Date: Tue, 24 Jan 2017 22:21:07 +0100 [thread overview]
Message-ID: <87sho85f3w.fsf@gnu.org> (raw)
In-Reply-To: <20170124002419.20893-1-clement@lassieur.org> ("Clément Lassieur"'s message of "Tue, 24 Jan 2017 01:24:19 +0100")
Clément Lassieur <clement@lassieur.org> skribis:
> * gnu/services/cuirass.scm (cuirass-activation): Import (guix build utils) and
> remove (with-imported-modules '((guix build utils))).
> * gnu/services/cups.scm (%cups-activation): Idem.
> * gnu/services/networking.scm (ntp-service-activation): Idem.
>
> * gnu/services/mail.scm (opensmtpd-activation): Import (guix build utils).
> * gnu/services/spice.scm (spice-vdagent-activation): Idem.
> * gnu/services/ssh.scm (openssh-activation): Idem.
> (dropbear-activation): Idem.
> * gnu/services/vpn.scm (%openvpn-activation): Idem.
Good catch!
> (db (dirname (cuirass-configuration-database config)))
> (user (cuirass-configuration-user config))
> (group (cuirass-configuration-group config)))
> - (with-imported-modules '((guix build utils))
> - #~(begin
> - (use-modules (guix build utils))
> + #~(begin
> + (use-modules (guix build utils))
> + (mkdir-p #$cache)
> + (mkdir-p #$db)
The ‘with-imported-modules’ form should be preserved: it ensures that
(guix build utils) is present in the build and/or execution environment.
It’s the other places, those that lack it, that should be fixed. That
should go into a different patch though, and there’s no rush since those
gexps are actually used in a context where (guix build utils) happens to
be available anyway.
> (define %cups-activation
> ;; Activation gexp.
> - (with-imported-modules '((guix build utils))
> - #~(begin
Same here.
Apart from that the patch LGTM. Could you send an updated version just
without these two things?
Thank you!
Ludo’.
next prev parent reply other threads:[~2017-01-24 21:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-19 23:57 [PATCH] services: prosody: Fix activation script Clément Lassieur
2017-01-23 13:57 ` Ludovic Courtès
2017-01-24 0:24 ` [PATCH] services: Fix 'mkdir-p' in activation scripts Clément Lassieur
2017-01-24 21:21 ` Ludovic Courtès [this message]
2017-01-24 22:49 ` Clément Lassieur
2017-01-24 22:50 ` Clément Lassieur
2017-01-25 13:05 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sho85f3w.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=clement@lassieur.org \
--cc=guix-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).