From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EN/3LE3K4V45FAAA0tVLHw (envelope-from ) for ; Thu, 11 Jun 2020 06:08:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6EbkKE3K4V7hCAAA1q6Kng (envelope-from ) for ; Thu, 11 Jun 2020 06:08:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CA828940AF7 for ; Thu, 11 Jun 2020 06:08:12 +0000 (UTC) Received: from localhost ([::1]:38534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjGNl-0001MU-Ks for larch@yhetil.org; Thu, 11 Jun 2020 02:08:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjGNe-0001JJ-Kk for bug-guix@gnu.org; Thu, 11 Jun 2020 02:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjGNe-0004bt-Ag for bug-guix@gnu.org; Thu, 11 Jun 2020 02:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjGNe-00037O-5u for bug-guix@gnu.org; Thu, 11 Jun 2020 02:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#36394: guix.gnu.org/packages lists incorrect sqlite versions Resent-From: Royce Strange Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 11 Jun 2020 06:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36394 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Received: via spool by 36394-submit@debbugs.gnu.org id=B36394.159185566811960 (code B ref 36394); Thu, 11 Jun 2020 06:08:02 +0000 Received: (at 36394) by debbugs.gnu.org; 11 Jun 2020 06:07:48 +0000 Received: from localhost ([127.0.0.1]:35849 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjGNQ-00036q-6h for submit@debbugs.gnu.org; Thu, 11 Jun 2020 02:07:48 -0400 Received: from knopi.disroot.org ([178.21.23.139]:45794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjGNN-00036g-SV for 36394@debbugs.gnu.org; Thu, 11 Jun 2020 02:07:46 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3DD9155F57; Thu, 11 Jun 2020 08:07:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yEKgRTZ6FUGs; Thu, 11 Jun 2020 08:07:42 +0200 (CEST) From: Royce Strange DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1591855662; bh=jUp3IUR//p2uG9svHjD8YrCHIvMf1ASDb/nmyhzQUsw=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=NHVHwv4SuSBHqpFvxrfa0Gsr40nUdAEOeA+rIYQIBvSIvL4fyzSbYdtwjpz2AaPZ+ 1ERUfcx6TxC0FrAy8XoVQYiDRft1CRl7kxeTi/CNkl8TqVkbGJvheqOaNAt8EotKRu Bv4dPyA9o+YAAGhp8ZNclKjtvj9DY0wMjuqd1vNWESRsOw7dIVH5Mz6ZlQ4aM0+IwB GEhzwnnVOZ+VwuJjXlPzcsR+IhpQZxOZ5RWcVhnZMUMvbDutZcgVbt7uCyxuQcfsQy 3qy7CQTOPH3FDQBbPDx0AhLzeFvtd3Mfk3/NjbXw/rvJSWXBJCnEPdJDyCf8L6OOVz sP7fyRD04eDog== References: <87ftnwcixr.fsf@nckx> Date: Thu, 11 Jun 2020 01:07:40 -0500 In-Reply-To: <87ftnwcixr.fsf@nckx> (Tobias Geerinckx-Rice's message of "Wed, 26 Jun 2019 20:14:56 +0200") Message-ID: <87lfkurv83.fsf@disroot.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 36394@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=disroot.org header.s=mail header.b=NHVHwv4S; dmarc=fail reason="SPF not aligned (relaxed)" header.from=disroot.org (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.59 X-TUID: 4uTtHEjIrPQd --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tobias Geerinckx-Rice writes: > Guix, > > The package list at 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 =E2=80=A6 > sqlite 3.24.0 =E2=80=A6 > sqlite-with-column-metadata 3.24.0 =E2=80=A6 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=20 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=20 guix search and keep replaced packages in the list,=20 I can submit an updated patch. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-website-Fix-duplicated-packages-in-the-package-list.patch >From aac774421d5b746e633138c78768dcadb6be1650 Mon Sep 17 00:00:00 2001 From: Royce Strange Date: Thu, 11 Jun 2020 00:41:45 -0500 Subject: [PATCH] website: Fix duplicated packages in the package-list Fixes . * website/apps/packages/data.scm (%package-list): Filter out replaced packages. --- website/apps/packages/data.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/website/apps/packages/data.scm b/website/apps/packages/data.scm index f1fa55d..d1bbc92 100644 --- a/website/apps/packages/data.scm +++ b/website/apps/packages/data.scm @@ -41,11 +41,10 @@ (sort (parameterize ((%package-module-path (last-pair (%package-module-path)))) (fold-packages (lambda (package lst) - (if (package-superseded package) + (if (or (package-superseded package) + (package-replacement package)) lst - (cons (or (package-replacement package) - package) - lst))) + (cons package lst))) '())) (lambda (p1 p2) (string