From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHzXR-0001Zj-L4 for guix-patches@gnu.org; Thu, 23 Nov 2017 17:00:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHzXO-0007ZF-JR for guix-patches@gnu.org; Thu, 23 Nov 2017 17:00:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:45589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eHzXO-0007Y4-Ga for guix-patches@gnu.org; Thu, 23 Nov 2017 17:00:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eHzXO-0005tQ-5v for guix-patches@gnu.org; Thu, 23 Nov 2017 17:00:02 -0500 Subject: [bug#29301] [PATCH] substitute* hard-coded paths with paths from "out" Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <8760accpzl.fsf@gmail.com> Date: Thu, 23 Nov 2017 22:59:26 +0100 In-Reply-To: <8760accpzl.fsf@gmail.com> (Kristofer Buffington's message of "Tue, 14 Nov 2017 19:41:36 -0500") Message-ID: <87shd4odvl.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Kristofer Buffington Cc: 29301@debbugs.gnu.org Hi Kristofer, Kristofer Buffington 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=E2=80=99t we instead configure it with --sysconfdir=3D/etc? That w= ould allow users to provide custom configuration files, whereas currently OUTPUT/etc/artanis contains immutable configuration files. WDYT? Thanks, Ludo=E2=80=99.