From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aDPbEHfYUGBJaAAA0tVLHw (envelope-from ) for ; Tue, 16 Mar 2021 16:10:31 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oIazDHfYUGCOGQAA1q6Kng (envelope-from ) for ; Tue, 16 Mar 2021 16:10:31 +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 aspmx2.migadu.com (Postfix) with ESMTPS id E37B7ED9A for ; Tue, 16 Mar 2021 17:10:30 +0100 (CET) Received: from localhost ([::1]:52802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMCH8-0008GE-0x for larch@yhetil.org; Tue, 16 Mar 2021 12:10:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMCEk-0006Wy-UO for guix-patches@gnu.org; Tue, 16 Mar 2021 12:08:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57530) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMCEk-00044S-Lc for guix-patches@gnu.org; Tue, 16 Mar 2021 12:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMCEk-0002iZ-Gk for guix-patches@gnu.org; Tue, 16 Mar 2021 12:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47193] [PATCH 1/2] lint: Sort possible vulnerabilities. References: <87im5rm6lw.fsf@nckx> In-Reply-To: <87im5rm6lw.fsf@nckx> Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 16 Mar 2021 16:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47193 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 47193@debbugs.gnu.org Received: via spool by 47193-submit@debbugs.gnu.org id=B47193.161591082410371 (code B ref 47193); Tue, 16 Mar 2021 16:08:02 +0000 Received: (at 47193) by debbugs.gnu.org; 16 Mar 2021 16:07:04 +0000 Received: from localhost ([127.0.0.1]:40841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMCDo-0002h9-Cx for submit@debbugs.gnu.org; Tue, 16 Mar 2021 12:07:04 -0400 Received: from tobias.gr ([80.241.217.52]:40566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMCDm-0002gi-G7 for 47193@debbugs.gnu.org; Tue, 16 Mar 2021 12:07:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=pRogdOwWfN/snsklteKvUi9KNTFvioU54/6uRhMf6To=; h=date:subject:to: from; b=TJGvVyuj5L/N/648up6q2MHE+CvxIa17iFxZyOh1Q2R1gbdu7fDFq4XizA44Iw EVLYoW0kuZwbZFHPR4PT2JNgCOwXh24ndqUxuNHugqRLlr4ATASAvAGYyxi+afcoMX7jMv K1Oaihw/b85ql27YnFMY+mg/AFxjL6v6sD8inWSapPdRwegoEjpqLryFjbvJhpL+qL8o66 cMs/9+2IwSr66acoAHiIOeAQP9mVHNq1mLvRzIQZdFvbpRI7+ex1rIuFyXPgRDyC3r7H6j J9wmuWH2qM6yLp3dlDnRrQtPWv+lqZTnfCOo4Jb9YN00VBJl9rx91dmSWvNk2SjadbIJJA == Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 489a24e1 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO) for <47193@debbugs.gnu.org>; Tue, 16 Mar 2021 16:08:02 +0000 (UTC) Date: Tue, 16 Mar 2021 17:06:52 +0100 Message-Id: <20210316160653.9891-1-me@tobias.gr> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Tobias Geerinckx-Rice X-ACL-Warn: , Tobias Geerinckx-Rice via Guix-patches From: Tobias Geerinckx-Rice via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615911031; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=pRogdOwWfN/snsklteKvUi9KNTFvioU54/6uRhMf6To=; b=s8zQ6r8GHQfIuCKAda5jNC5N+FX1UJRHDylbQEZelKCwa4NJrB+9avvke5Hw5mGnzwbllL YkhqZhiuzSbDF66NpwI3gpx3CBW6hSv+Z/aFG1geoiljFcYtdxp/Qs6mMJUlY6pZEfGhZz 9ZproMIlu23Z0Fi2h2k+FEenYRl9ELzmWdnuJTAbItdtlZicbptUJq7ePpRXp8Ch1AEMLW My9x6ZiHpurk88hld/7RieSOHpz+fECoc3ezrqgw+hP2StpPGQPQuFfWUKsLgoBRKQqxjc saIAMRyLSulCl3MHX8ECKHQ/dL1qbN5H1f6wxRfCeVCfs/AJAKa4TrtNFX+hEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615911031; a=rsa-sha256; cv=none; b=YsBOu0nQT5RwhDUJ5m31WTf93ejWfNdEOeUxyKwbq2OJDGsetkiuYZp+ZJE5Lk0VQ0F/PK omQUleN87gxxnz7P5fsZ/XJiFf2eV7jqTUMmmFCC8S9kGs5VKRuKbqFPkOtbFzWtUmJKVG sWvALeiBp6ojL7wlHCdbdhsVu5BUJJzJduptlkBSG7TblxEavVl8Xg1u2v7Jz0u9MpC3mJ 6YHm4d19Q8xTEt91jduVsLDg9b3OLWrqpUjj9WVVhZGXy2rMumd/5mCA8FBgLwbIihaXZO ZpCoqDsu7me/La1JSJVM+24LurIBxOKPisxSBSIMkliMbSGvc19itei4JxrpEg== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=TJGvVyuj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 1.10 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=TJGvVyuj; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: E37B7ED9A X-Spam-Score: 1.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: +tMvS3KzHscu * guix/lint.scm (check-vulnerabilities): Sort unpatched vulnerabilities by ID. --- guix/lint.scm | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/guix/lint.scm b/guix/lint.scm index 5144fa139d..ed57e19fe2 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -1164,6 +1164,23 @@ the NIST server non-fatal." package-vulnerabilities)) "Check for known vulnerabilities for PACKAGE. Obtain the list of vulnerability records for PACKAGE by calling PACKAGE-VULNERABILITIES." + + (define (vulnerability< v1 v2) + (define (string-list< list1 list2) + (match list1 + ((head1 tail1 ...) + (match list2 + ((head2 tail2 ...) + (if (string=? head1 head2) + (string-list< tail1 tail2) + (string