From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Auxiliary files Date: Sat, 31 Dec 2016 12:34:01 +0100 Message-ID: <87shp42uza.fsf_-_@gnu.org> References: <20161215144849.2990-1-alezost@gmail.com> <877f6sfdz8.fsf@gmail.com> <87tw9mfxau.fsf@gnu.org> <87y3yypitb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNHvL-0004kd-Br for guix-devel@gnu.org; Sat, 31 Dec 2016 06:34:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNHvI-0007a9-76 for guix-devel@gnu.org; Sat, 31 Dec 2016 06:34:07 -0500 In-Reply-To: <87y3yypitb.fsf@gmail.com> (Alex Kost's message of "Thu, 29 Dec 2016 23:43:44 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Alex Kost Cc: guix-devel@gnu.org Hi Alex, Alex Kost skribis: > Ludovic Court=C3=A8s (2016-12-29 18:40 +0100) wrote: > >> Hi! >> >> Alex Kost skribis: [...] >>> What about making "gnu/packages/files" (or another dirname) directory, >>> and putting "guix-emacs.el" and kernel configs ("linux-libre-*.conf") >>> there? >>> >>> I mean "gnu/packages/patches" is not always enough, sometimes we want to >>> use real files in the package recipes (configs for 'linux-libre' or >>> "guix-emacs.el" for 'emacs'), so having "gnu/packages/files" seems >>> reasonable to me, WDYT? >> >> Sounds good. >> >> In general, we can create other subdirectories alongside patches/ and >> bootstrap/. So we could have linux-conf/ and emacs/ there. > > But we keep all patches in a single directory, why should there be > multiple dirs for auxiliary files? I imagine linux-conf/ would contain several files (all the configuration files), and so on. IOW, we can create directories anytime there=E2=80=99s a category of files that go together well. =F0=9D=85=A0 >> We can also >> add regular files like guix-emacs.el directly under gnu/packages (like >> ld-wrapper.in, linux-conf.*, etc.) >> >> All this is fine as long as the files get installed in the right place >> wrt. %load-path. >> >> I=E2=80=99m not sure a catch-all files/ (or aux-files/?) directory is he= lpful >> though. There=E2=80=99s a case for having a linux-conf/ subdirectory no= w; for >> guix-emacs.el, I am slightly inclined to put it directly in >> gnu/packages, but no strong opinion. >> >> Thoughts? > > I don't like keeping such files in "gnu/packages" the most! My opinion > is that only .scm files should be placed there. > > I vote either for a single "aux-files" (I like this name) directory, or > for its sub-directories ("aux-files/emacs", "aux-files/linux"). OK, sounds good. We=E2=80=99ll also need a =E2=80=98search-auxiliary-file= =E2=80=99 procedure (or similar) just like we have =E2=80=98search-patch=E2=80=99, to facilitat= e things. Thanks! Ludo=E2=80=99.