bug-guix
[Top][All Lists]
Advanced

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

bug#48398: many packages become nonfunctional if not install in fixed pr


From: Leo Prikler
Subject: bug#48398: many packages become nonfunctional if not install in fixed profile like ~/.guix-profile
Date: Thu, 13 May 2021 23:55:20 +0200
User-agent: Evolution 3.34.2

Am Donnerstag, den 13.05.2021, 19:56 +0530 schrieb Shyam Saran:
> many packages become nonfunctional if not install in fixed profiles
> (e.g. ~/.guix-profile)
While this is true, there is not necessarily a common cause for all
such instances.  Even among packages, that hardcode ~/.guix-profile,
there might be differences, so it's better to focus on specific
instances or groups of instances, in which one fix can be applied to
all of them.

> 1. blueman
Please provide more information on blueman.
> 2. font-conf so most of font like font-lohit will not be available
This one has a history.  Instead of exposing itself to the dangers of
environment variables, fontconfig took the reasonable approach of
letting itself be controlled by XML files, so if you want it to work
differently from how it usually behaves, you have to edit those.

> I had noticed that fixed profiles have become part of many
> packages/services definition which could be the reason that many of
> these packages/services become dependent on these fixed profiles.
Which packages/services in particular?

> It can be checked with
> 
> $ ag   --scheme  '.guix-profile'
> $ grep -r '.guix-profile'
> 
> in code
I find 65 matches including documentation.  Even assuming every one of
them was a package, it would affect about 1% of packages, many of which
would probably be leaf packages.  So while this number is definitely
large enough to intimidate those who want to quickly fix a number of
them, it is also smaller in scale than the report would imply.

> 
> Also
> 
> We provides necessary services through putting environment variables
> in each profiles
> 
> PROFILE_PATH/etc/profile
> 
>   like for pidgin/purple
>   PURPLE_PLUGIN_PATH
> 
>   for libraries
>   LIBRARY_PATH
> 
> 
> As suggestion
> 
> We could first provide augment all variables with guix specific
> prefix e.g. GUIX_PEV_...
> (PVS profile environment variables.)
> 
> So these all variables will become
> 
> 
>   GUIX_PEV_PURPLE_PLUGIN_PATH
>   GUIX_PEV_LIBRARY_PATH
> 
> then we could or could not (left to user) to set them
>   PURPLE_PLUGIN_PATH=$GUIX_PEV_PURPLE_PLUGIN_PATH
>   LIBRARY_PATH=$GUIX_PEV_LIBRARY_PATH
> 
> 
> So with prefixed env vars, in first look one will know it is coming
> from guix related profiles.
> maybe it will also help in removing dependencies on fixed profiles.
Guix already prefixes some environment variables, that might cause
issues if they are read by all variants of a package with GUIX_.  I
don't think this needs to be done for every search path, however. 
Again, specific instances like GUIX_PYTHONPATH can (and should be)
discussed, but I don't think this solves the relation to fixed
profiles.

Regards,
Leo






reply via email to

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