Subject: Re: [bug#29301] [PATCH] substitute* hard-coded paths with paths from "out"

From: [email-masked] (Ludovic Courtès)
Date: Thu, 23 Nov 2017 22:59:26 +0100

Hi Kristofer,

Kristofer Buffington <[email-masked]> skribis:

> * gnu/packages/guile.scm
> used substitute* to correct some hardcoded paths in the artanis package

[...]

> +                 (substitute* "artanis/config.scm"
> +                   (("/etc/artanis/artanis.conf")
> +                    (string-append out "/etc/artanis.conf"))
> +                   (("/etc/artanis/pages")
> +                    (string-append out "/etc/artanis")))
> +                 (substitute* "etc/artanis/artanis.conf"
> +                   (("/etc/artanis/pages")
> +                    (string-append out "/etc/artanis")))

Shouldn’t we instead configure it with --sysconfdir=/etc?  That would
allow users to provide custom configuration files, whereas currently
OUTPUT/etc/artanis contains immutable configuration files.

WDYT?

Thanks,
Ludo’.