Subject: bug#64187: guix locate: unsupported manifest format

From: Ludovic Courtès <[email-masked]>
Date: Fri, 07 Jul 2023 16:03:37 +0200

Ricardo Wurmus <[email-masked]> skribis:

> Ludovic Courtès <[email-masked]> writes:
>
>> However, how can it happen?  ‘guix locate’ knows all the manifest format
>> version, so maybe it mistook a file for a manifest when in fact it’s
>> something else?
>>
>> Could you ‘strace -o /tmp/log.strace guix locate ls’ to get the name of
>> the offending file for now?
>
> The last manifest it reads is
> /gnu/var/guix/profiles/per-user/wneuber/guix-profile-1-link/manifest
> with the following contents
>
> (manifest
>   (version 1)
>   (packages
>     (("gcc"
>       "4.9.2"
>       "out"
>       "/gnu/store/ym7sybrdifnm3g0rafhclv891niaczcv-gcc-4.9.2"
>       ()))))

Woow, this profile predates May 2015 and commit
dedb17ad010ee9ef67f3f4f3997dd17f226c8090.  And indeed, it’s no longer
recognized since e7e04396c0e91569bf493e1352d6539babc15327 (July 2022).

I’ll work on a fix…

Ludo’.