all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Subdirectories in GUIX_PACKAGE_PATH
Date: Wed, 05 Jul 2017 10:04:36 +0300	[thread overview]
Message-ID: <87o9sze54r.fsf@gmail.com> (raw)
In-Reply-To: <87mv8lp4pb.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 03 Jul 2017 23:53:52 +0200")

Ludovic Courtès (2017-07-03 23:53 +0200) wrote:

> Hi Alex,
>
> Alex Kost <alezost@gmail.com> skribis:
>
>> Ludovic Courtès (2017-06-30 11:35 +0200) wrote:
>
> [...]

>> I have a (probably not related) question though: in the past, package
>> 'location' contained an *absolute* file name for the packages from
>> GUIX_PACKAGE_PATH.  Now these locations are *relative* file names.  Is
>> this intended?
>>
>> If so, this is a problem for Emacs-Guix: you see, when you try to open a
>> package location (for example, by pressing an according button in *Guix
>> Package Info* buffer), it is expanded against 'guix-directory' variable.
>> So if you open "gnu/packages/guile.scm" location, it works, but now if
>> it is your location like "my-guix-packages/foo.scm", the wrong
>> (non-existent) file will be opened.  Previously it worked, because that
>> location was absolute, like "/home/me/my-guix-packages/foo.scm".
>
> I’ve noticed this but I didn’t think it was a regression.
>
> Basically Guile supports two “file name canonicalization” modes: one
> that returns a file name relative to %load-path, and one that returns an
> absolute file name.  By default, when loading modules, we’re in
> ‘relative’ mode; this is so that modules can be moved on disk and don’t
> record their initial location.

Thanks for the explanation!

> I think the last time this was changed was a year ago in
> 14d5ca2e2e57643b6b4acfb980b18b7474c27e7b.

-- 
Alex

      reply	other threads:[~2017-07-05  7:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-23 20:20 Subdirectories in GUIX_PACKAGE_PATH Christopher Baines
2017-06-24 19:13 ` Alex Kost
2017-06-26 11:22 ` Ricardo Wurmus
2017-06-26 20:15   ` Christopher Baines
2017-06-30  9:35   ` Ludovic Courtès
2017-07-03 18:15     ` Alex Kost
2017-07-03 21:53       ` Ludovic Courtès
2017-07-05  7:04         ` Alex Kost [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=87o9sze54r.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@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.