all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: John Darrington <jmd@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add Kerberos client service.
Date: Sat, 03 Dec 2016 16:13:17 +0100	[thread overview]
Message-ID: <87shq5avw2.fsf@gnu.org> (raw)
In-Reply-To: <1480768049-18696-1-git-send-email-jmd@gnu.org> (John Darrington's message of "Sat, 3 Dec 2016 13:27:29 +0100")

John Darrington <jmd@gnu.org> skribis:

> * doc/guix.texi (Kerberos Services)[Krb5 Service]: New subsubheading.
> * gnu/services/kerberos.scm (krb5-service-type): New variable.
> * gnu/services/configuration.scm (configuration-field-serializer,
>   configuration-field-getter): Export variables.

[...]

> +@subsubheading Krb5 Service
> +
> +Programs using Kerberos client library packages normally

s/Kerberos client library packages/a Kerberos client library/

> +No keytab filea are provided by this service.  You must explicitly create these.
                 ^
Typo.

Also ``keytab'', since we don't know what that is.

> +(define (serialize-string/unset field-name val)
> +  (if (not (eq? val unset-field))
> +      (serialize-field* field-name val)))
> +
> +(define (serialize-integer/unset field-name val)
> +  (if (not (eq? val unset-field))
> +      (serialize-field* field-name val)))
> +
> +(define (serialize-boolean/unset field-name val)
> +  (if (not (eq? val unset-field))
> +      (serialize-field* field-name
> +                        (if val "true" "false"))))
> +

Please use ‘when’ or ‘unless’ for single-arm ‘if’ (there are other
occurrences of this further down in this file.)  It makes it clear that
this is for effect.

(At some point we should add an explicit ‘port’ parameter for these
serialize procedures.)

> +;; An end-point is an address such as "192.168.0.1"
> +;; or an address port pair ("string/unset.example.com" . 109)
> +(define (end-point? val)
> +  (or (string? val)
> +      (and (pair? val)
> +           (string? (car val))
> +           (integer? (cdr val)))))

See <https://lists.gnu.org/archive/html/guix-devel/2016-11/msg01252.html>.

> +(define (serialize-end-point field-name val)
> +  (serialize-field* field-name
> +                   (if (string? val)
> +                       ;; The [] are needed in the case of IPv6 addresses
> +                       (format #f "[~a]" val)
> +                       (format #f "[~a]:~a" (car val) (cdr val)))))

See <https://lists.gnu.org/archive/html/guix-devel/2016-11/msg01252.html>.

> +(define (serialize-space-separated-string-list/unset field-name val)
> +  (if (not (eq? val unset-field))
> +      (serialize-field* field-name (string-join val " "))))

‘unless’.

OK with all these changes.

In the future, could you write a short summary of the changes when you
submit a new revision of a patch, to make it easier to keep track of it?

Thanks,
Ludo’.

      reply	other threads:[~2016-12-03 15:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-09 19:58 [PATCH] gnu: Add kerberos service John Darrington
2016-11-18 15:23 ` John Darrington
2016-11-18 22:51 ` Ludovic Courtès
2016-11-19  6:57   ` John Darrington
2016-11-21  8:59     ` Ludovic Courtès
2016-11-22 17:52       ` [PATCH] gnu: Add Kerberos client service John Darrington
2016-11-23 22:01         ` Ludovic Courtès
2016-11-29 18:39           ` John Darrington
2016-11-29 18:39             ` John Darrington
2016-11-30 13:09               ` Ludovic Courtès
2016-11-30 13:44                 ` John Darrington
2016-11-30 13:52                 ` Andy Wingo
2016-12-03 12:27                   ` John Darrington
2016-12-03 15:13                     ` Ludovic Courtès [this message]

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=87shq5avw2.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=jmd@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 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.