GNU bug report logs - #57932
Mes has a catch-all search path

Previous Next

Package: guix;

Reported by: Ekaitz Zarraga <ekaitz <at> elenq.tech>

Date: Mon, 19 Sep 2022 11:18:02 UTC

Severity: normal

Full log


Message #8 received at 57932 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Ekaitz Zarraga <ekaitz <at> elenq.tech>, 57932 <at> debbugs.gnu.org,
 control <at> debbugs.gnu.org
Subject: Re: bug#57932: Mes has overly-generic MES_PREFIX search path (was:
 `environment_variables` in build containers are set wrong)
Date: Mon, 19 Sep 2022 15:18:21 +0200
[Message part 1 (text/plain, inline)]
retitle 57392 Mes has overly-generic MES_PREFIX search path
thanks

On 19-09-2022 13:17, Ekaitz Zarraga wrote:
> Hi,
> 
> I have a package that depends on `mes`.
> 
> When I build it with `guix build $package -K` and I jump to the resulting build directory, the `environment_variables` file looks like this:
> 
> ```
> [...]
> export MES_PREFIX="/gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/"
> ```
> 
> The `MES_PREFIX` is set to Perl's installation directory, which is also the first element in `LIBRARY_PATH`.
> 
> If I change the order of the package inputs the order of the `LIBRARY_PATH` changes, which is not important, but the first element of `LIBRARY_PATH` is always the one in the `MES_PREFIX`. This doesn't look like the proper behavior: it should always be /gnu/store/*-mes-*

Looking at the search paths of 'mes', it has

           (search-path-specification
            (variable "MES_PREFIX")
            (separator #f)
            (files '("")))))

so it 'accept's _all_ the store items.  As such, I've renamed the issue 
(if you think the new name is inappropriate, feel free to rename it back.)

How about, instead of having a $MES_PREFIX environment variable and 
search path, substitute* uses of MES_PREFIX to #$output in a phase?

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 2 years and 265 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.