GNU bug report logs - #36394
guix.gnu.org/packages lists incorrect sqlite versions

Previous Next

Package: guix;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Wed, 26 Jun 2019 18:16:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36394 in the body.
You can then email your comments to 36394 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#36394; Package guix. (Wed, 26 Jun 2019 18:16:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 26 Jun 2019 18:16:01 GMT) Full text and rfc822 format available.

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

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: bug-guix <at> gnu.org
Subject: guix.gnu.org/packages lists incorrect sqlite versions
Date: Wed, 26 Jun 2019 20:14:56 +0200
[Message part 1 (text/plain, inline)]
Guix,

The package list at <https://guix.gnu.org/packages/S/page/4/> 
displays the wrong versions for sqlite:

 sqlite 3.26.0
 sqlite 3.26.0
 sqlite-with-column-metadata 3.26.0

Which should be:

 $ guix pull && guix package -A ^sqlite
 sqlite	3.26.0	…
 sqlite	3.24.0	…
 sqlite-with-column-metadata	3.24.0	…

At first glance it looks like the Web list iterates over package 
names instead of package records, then looks up the ‘default’ 
package for each name  …  but packages like ‘gcc-objc’[0] are 
listed correctly, so maybe that's not what's happening.

Noticed by sebboh on #guix.

Kind regards,

T G-R

[0]: https://guix.gnu.org/packages/G/
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#36394; Package guix. (Thu, 11 Jun 2020 06:08:02 GMT) Full text and rfc822 format available.

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

From: Royce Strange <royball <at> disroot.org>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 36394 <at> debbugs.gnu.org
Subject: Re: bug#36394: guix.gnu.org/packages lists incorrect sqlite versions
Date: Thu, 11 Jun 2020 01:07:40 -0500
[Message part 1 (text/plain, inline)]
Tobias Geerinckx-Rice <me <at> tobias.gr> writes:

> Guix,
>
> The package list at <https://guix.gnu.org/packages/S/page/4/> displays
> the wrong versions for sqlite:
>
>  sqlite 3.26.0
>  sqlite 3.26.0
>  sqlite-with-column-metadata 3.26.0
>
> Which should be:
>
>  $ guix pull && guix package -A ^sqlite
>  sqlite	3.26.0	…
>  sqlite	3.24.0	…
>  sqlite-with-column-metadata	3.24.0	…

It looks like the duplicates happen to replaced packages:
https://guix.gnu.org/packages/G/page/9/
(see gnutls, as sqlite is one package now)

Narrowed it down to the code that generates the packages list 
for the website in the guix-artwork repo.

It looks like the original intent was to filter out replaced packages,
instead of keeping them in the list (which is what guix search does).
This will affect https://guix.gnu.org/packages.json which I believe feeds
guix package information in repology.

Attached is a patch to filter out the replaced packages.
If it is more appropriate for the website to be consistent with 
guix search and keep replaced packages in the list, 
I can submit an updated patch.
[0001-website-Fix-duplicated-packages-in-the-package-list.patch (text/x-patch, attachment)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 13 Jun 2020 20:44:02 GMT) Full text and rfc822 format available.

Notification sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
bug acknowledged by developer. (Sat, 13 Jun 2020 20:44:02 GMT) Full text and rfc822 format available.

Message #13 received at 36394-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Royce Strange <royball <at> disroot.org>
Cc: 36394-done <at> debbugs.gnu.org, Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: Re: bug#36394: guix.gnu.org/packages lists incorrect sqlite versions
Date: Sat, 13 Jun 2020 22:43:21 +0200
Hi,

Royce Strange <royball <at> disroot.org> skribis:

> From aac774421d5b746e633138c78768dcadb6be1650 Mon Sep 17 00:00:00 2001
> From: Royce Strange <royball <at> disroot.org>
> Date: Thu, 11 Jun 2020 00:41:45 -0500
> Subject: [PATCH] website: Fix duplicated packages in the package-list
>
> Fixes <https://bugs.gnu.org/36394>.
>
> * website/apps/packages/data.scm (%package-list):
> Filter out replaced packages.

Applied, thanks!

I think duplicates come from replacements that are also public (and thus
traversed by ‘fold-packages’), which is not necessarily the case, but
it’s good to do it this way.

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 12 Jul 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 285 days ago.

Previous Next


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