Guix package is hardcoded in guix home

  • Open
  • quality assurance status badge
Details
3 participants
  • Andrew Tropin
  • Gordon Quad
  • Ludovic Courtès
Owner
unassigned
Submitted by
Gordon Quad
Severity
normal
G
G
Gordon Quad wrote on 1 Feb 2022 15:19
(address . bug-guix@gnu.org)
20220201141957.iww6bfabgi6ju23p@citadel.info
guix home uses guix package directly imported from (gnu packages
package-management) gnu/home/services.scm:22


It looks like for now it is used only here gnu/home/services.scm:283


It is quite unfortunte to see guix home to pull whole extra copy of guix
only to use few files to do gettext localization init.

If would be nice to be able to customize guix package used there so I
can make sure guix used by guix home is the same as in my guix daemon.
L
L
Ludovic Courtès wrote on 2 Mar 2022 12:06
(name . Gordon Quad)(address . gordon@niflheim.info)(address . 53700@debbugs.gnu.org)
87v8ww3975.fsf@gnu.org
Hi,

Gordon Quad <gordon@niflheim.info> skribis:

Toggle quote (12 lines)
> guix home uses guix package directly imported from (gnu packages
> package-management) gnu/home/services.scm:22
>
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/home/services.scm#n22
>
> It looks like for now it is used only here gnu/home/services.scm:283
>
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/home/services.scm#n284
>
> It is quite unfortunte to see guix home to pull whole extra copy of guix
> only to use few files to do gettext localization init.

Yes, it’s a bit heavy-handed.

Toggle quote (3 lines)
> If would be nice to be able to customize guix package used there so I
> can make sure guix used by guix home is the same as in my guix daemon.

I’m not sure I understand. As you write, the ‘guix’ package is used in
(gnu home services) only to get gettext catalogs; AFAICS it’s not used
for anything else.

Could you clarify what you had in mind?

Thanks,
Ludo’.
A
A
Andrew Tropin wrote on 31 Mar 06:52 +0200
(address . 53700@debbugs.gnu.org)
87bkk9v7x8.fsf@trop.in
On 2022-03-02 12:06, Ludovic Courtès wrote:

Toggle quote (27 lines)
> Hi,
>
> Gordon Quad <gordon@niflheim.info> skribis:
>
>> guix home uses guix package directly imported from (gnu packages
>> package-management) gnu/home/services.scm:22
>>
>> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/home/services.scm#n22
>>
>> It looks like for now it is used only here gnu/home/services.scm:283
>>
>> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/home/services.scm#n284
>>
>> It is quite unfortunte to see guix home to pull whole extra copy of guix
>> only to use few files to do gettext localization init.
>
> Yes, it’s a bit heavy-handed.
>
>> If would be nice to be able to customize guix package used there so I
>> can make sure guix used by guix home is the same as in my guix daemon.
>
> I’m not sure I understand. As you write, the ‘guix’ package is used in
> (gnu home services) only to get gettext catalogs; AFAICS it’s not used
> for anything else.
>
> Could you clarify what you had in mind?

I was hit by this one yesterday as well. I tried to manage just a few
config files with Guix Home on foreign distro, but it started to
download 46 megabytes of guix package, while I expected it to work
completely offline.

--
Best regards,
Andrew Tropin
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmQmZyMACgkQIgjSCVjB
3rCGfA/+P2DPFnuZW+CxIGaLLK+2NARW0lPbg59p9nSezRZTDfxz/B40CEtAoQ4j
+YYtephdVClndXVmkmhSRc5BigXk2a4Thla4kYFuuS9LS4p2nPIdikRvlx9Mr3UO
/Y75jNuXgbPoKSWp8Fta2EXiFZw70ORP7A4mieDqGWqhDVWNEJaDoQi9XrwIjlJV
f4F64gAlFpAdNGRfNDJHTP1pFHMPTnSnlizRwsOFK2V9J7v4VXDDo0TqVwijPseD
tRJm+79BdfWrtZ30pKQTU7U/o/GvXIebcULobVxG7DLYgO9ywmuBwPSwGhB/XRpL
P4jMV+XoJ1b0ZM1yuiCksWLvKSL1j1p8AkbP5CCR06B1gkD0U7hKkIDXAAgjnlcV
PRjqrrQUkoC6Wh+GU86+11fzpn0x8Kwn5gHDTgeqAJUi8+vvjOQ54tY79OsMPSS0
pqsWFYQnHSQhfT1PgwCzRoJQ8mdP/JUSwbX07Rq2nSRVXPFlaz+PvApP/+vRDbYo
3xfLFHdJ5Sb/+dkaCy1JgelhNQyRPNW1/7q6VbyKAPiXsDwatBDvr7VObE65bFxG
DJOrwYAEOGRCxPPIcLTa5J9M3dk5aieun5zDfpttPv3hu+KvKbN7ScKiavF7+91C
DiRSwZcuD20j19WTsuof9R9IFMfVeCj6bTqAuI4jHbuLTAkHNEA=
=nf7o
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 31 Mar 14:11 +0200
(name . Andrew Tropin)(address . andrew@trop.in)
87o7o95ddf.fsf@gnu.org
Hi,

Andrew Tropin <andrew@trop.in> skribis:

Toggle quote (11 lines)
>> I’m not sure I understand. As you write, the ‘guix’ package is used in
>> (gnu home services) only to get gettext catalogs; AFAICS it’s not used
>> for anything else.
>>
>> Could you clarify what you had in mind?
>
> I was hit by this one yesterday as well. I tried to manage just a few
> config files with Guix Home on foreign distro, but it started to
> download 46 megabytes of guix package, while I expected it to work
> completely offline.

Ouch. We should do better indeed, though I’m not sure how.

One solution would be to not need those catalogs on the build side in
the first place, which means making sure that error handling and logging
always happens on the “host side”, as is the case for pretty much
everything else.

Ludo’.
?