guix package: error: package glibc-locales@2.37 does not support x86_64-linux

  • Done
  • quality assurance status badge
Details
3 participants
  • Ludovic Courtès
  • Nils Landt
  • TakeV
Owner
unassigned
Submitted by
Nils Landt
Severity
normal
N
N
Nils Landt wrote on 2 Dec 2023 18:03
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
1922031272.72615.1701536628290@office.mailbox.org
Hello,

I use guix home for almost everything, but I have installed glibc-locales in my "regular" guix (just by running guix package install glibc-locales).
Now, running guix package --upgrade fails with:
guix package: error: package glibc-locales@2.37 does not support x86_64-linux

But from my reading of (gnu packages base), glibc-locales version should be the same as glibc version. This is not the case for me though:
guix repl
GNU Guile 3.0.9
Copyright (C) 1995-2023 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guix-user)> ,use (gnu packages)
scheme@(guix-user)> (specification->package "glibc-locales")
$1 = #<package glibc-locales@2.37 gnu/packages/base.scm:1276 7f4de8bd0420>
scheme@(guix-user)> (specification->package "glibc")
$2 = #<package glibc@2.35 gnu/packages/base.scm:795 7f4de8bb76e0>

In my home profile, I was able to fix it by using (make-glibc-locales glibc) instead of (specification->package "glibc-locales").
T
T
TakeV wrote on 3 Dec 2023 23:11
(address . 67586@debbugs.gnu.org)
5d62d622-b46f-a140-ed22-4a1aaba4e8a7@disroot.org
Came to report the same thing. Looks like every system seems to be
missing from glibc-locales@2.37
Attachment: OpenPGP_signature
L
L
Ludovic Courtès wrote on 6 Dec 2023 23:58
(name . Nils Landt)(address . nils@landt.email)
87jzprey5e.fsf@gnu.org
Hi,

Nils Landt <nils@landt.email> skribis:

Toggle quote (4 lines)
> I use guix home for almost everything, but I have installed glibc-locales in my "regular" guix (just by running guix package install glibc-locales).
> Now, running guix package --upgrade fails with:
> guix package: error: package glibc-locales@2.37 does not support x86_64-linux

Fixed with 4a6cef9d66ff26e96d63f2f1f886b8212154ca00.

The problem was that glibc-locales@2.37 is marked as supported for
i586-gnu only (that’s GNU/Hurd).

The workaround on GNU/Linux would have been to run:

guix install glibc-locales@2.35

but of course, hard to guess given the error message.

Thanks,
Ludo’.
L
L
Ludovic Courtès wrote on 6 Dec 2023 23:58
control message for bug #67586
(address . control@debbugs.gnu.org)
87il5bey55.fsf@gnu.org
close 67586
quit
N
N
Nils Landt wrote on 7 Dec 2023 09:00
Re: bug#67586: guix package: error: package glibc-locales@2.37 does not support x86_64-linux
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 67586@debbugs.gnu.org)
688533078.370112.1701936055582@office.mailbox.org
Toggle quote (16 lines)
> Ludovic Courtès <ludo@gnu.org> hat am 06.12.2023 23:58 CET geschrieben:
>
>
> Hi,
>
> Nils Landt <nils@landt.email> skribis:
>
> > I use guix home for almost everything, but I have installed glibc-locales in my "regular" guix (just by running guix package install glibc-locales).
> > Now, running guix package --upgrade fails with:
> > guix package: error: package glibc-locales@2.37 does not support x86_64-linux
>
> Fixed with 4a6cef9d66ff26e96d63f2f1f886b8212154ca00.
>
> The problem was that glibc-locales@2.37 is marked as supported for
> i586-gnu only (that’s GNU/Hurd).

Thank you for the quick fix!
But isn't the the real bug that guix package (--install, --upgrade) consider an unsupported package as the version to install / upgrade to? Expected behaviour for me would be that it checks for the newest version that can actually be installed on the architecture.

Toggle quote (4 lines)
> The workaround on GNU/Linux would have been to run:
>
> guix install glibc-locales@2.35

Is this version pin persisted anywhere? Because I executed that, and --upgrade still tried tried to install 2.37.
L
L
Ludovic Courtès wrote on 14 Dec 2023 19:11
(name . Nils Landt)(address . nils@landt.email)(address . 67586@debbugs.gnu.org)
87a5qcvelj.fsf@gnu.org
Hi,

Nils Landt <nils@landt.email> skribis:

Toggle quote (19 lines)
>> Ludovic Courtès <ludo@gnu.org> hat am 06.12.2023 23:58 CET geschrieben:
>>
>>
>> Hi,
>>
>> Nils Landt <nils@landt.email> skribis:
>>
>> > I use guix home for almost everything, but I have installed glibc-locales in my "regular" guix (just by running guix package install glibc-locales).
>> > Now, running guix package --upgrade fails with:
>> > guix package: error: package glibc-locales@2.37 does not support x86_64-linux
>>
>> Fixed with 4a6cef9d66ff26e96d63f2f1f886b8212154ca00.
>>
>> The problem was that glibc-locales@2.37 is marked as supported for
>> i586-gnu only (that’s GNU/Hurd).
>
> Thank you for the quick fix!
> But isn't the the real bug that guix package (--install, --upgrade) consider an unsupported package as the version to install / upgrade to? Expected behaviour for me would be that it checks for the newest version that can actually be installed on the architecture.

Yes, you’re right, we should fix this.

Thanks,
Ludo’.
?
Your comment

This issue is archived.

To comment on this conversation send an email to 67586@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 67586
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch