guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subdirectories in GUIX_PACKAGE_PATH


From: Ricardo Wurmus
Subject: Re: Subdirectories in GUIX_PACKAGE_PATH
Date: Mon, 26 Jun 2017 13:22:40 +0200
User-agent: mu4e 0.9.18; emacs 25.2.1

Christopher Baines <address@hidden> writes:

> Recently I had problems with the way GUIX_PACKAGE_PATH was working with
> govuk-guix [1]. Currently, I'm using a separate directory for the
> GUIX_PACKAGE_PATH that contains symlinks to a subset of the Guile
> modules necessary for the packages in the repository.
>
> I think support (whether intentional or otherwise) for this approach was
> removed in [2].

Looks like this was removed in an attempt to improve performance over
NFS.  The “scheme-files” procedure now includes a comment:

  ;; XXX: We don't recurse if we find a symlink.

Would it not be better to fix this instead of adding support for special
syntax in GUIX_PACKAGE_PATH?

> I've attached a rough patch that sets this up, such that you can do
> something like:
>
>   export GUIX_PACKAGE_PATH="/tmp/foo^bar/baz:/tmp/cats"
>
> Where ^ acts as the separator, and bar/baz is the subdirectory.

I sympathize with the desire to work around this problem, but for some
reason I really don’t like adding special notation to path variables.
(“texmf.cnf” of TeX Live has a similar feature where e.g. a trailing
“//” indicates recursion.)

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]