From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CIT2ImuDT2O8VAEAbAwnHQ (envelope-from ) for ; Wed, 19 Oct 2022 06:56:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iD/3ImuDT2N3qQAAauVa8A (envelope-from ) for ; Wed, 19 Oct 2022 06:56:11 +0200 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 9378D37207 for ; Wed, 19 Oct 2022 06:56:10 +0200 (CEST) Received: from localhost ([::1]:39120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ol17h-0004b9-8h for larch@yhetil.org; Wed, 19 Oct 2022 00:56:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol17a-0004ay-Jw for guix-patches@gnu.org; Wed, 19 Oct 2022 00:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ol17a-0003Qe-AB for guix-patches@gnu.org; Wed, 19 Oct 2022 00:56:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ol17a-0003He-0n; Wed, 19 Oct 2022 00:56:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58621] [PATCH 0/3] import/utils: spdx-string->license: Match case-insensitively and support '+' operator. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip@philipmcgrath.com, guix-patches@gnu.org Resent-Date: Wed, 19 Oct 2022 04:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58621 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58621@debbugs.gnu.org Cc: Philip McGrath X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Philip McGrath Received: via spool by submit@debbugs.gnu.org id=B.166615531712552 (code B ref -1); Wed, 19 Oct 2022 04:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Oct 2022 04:55:17 +0000 Received: from localhost ([127.0.0.1]:55453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol16q-0003GO-S7 for submit@debbugs.gnu.org; Wed, 19 Oct 2022 00:55:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:57188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ol16o-0003GE-DY for submit@debbugs.gnu.org; Wed, 19 Oct 2022 00:55:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol16m-0004YR-TH for guix-patches@gnu.org; Wed, 19 Oct 2022 00:55:13 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39797) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ol16k-00037K-Qn for guix-patches@gnu.org; Wed, 19 Oct 2022 00:55:12 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 780B35C0190 for ; Wed, 19 Oct 2022 00:55:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 19 Oct 2022 00:55:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:content-transfer-encoding:date:date:from :from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm3; t=1666155308; x=1666241708; bh=ZJ /jqUJetzuo4obAwDOlJ/BxuBfJBgWhOQmuwYssOjY=; b=V0Vn6iuGArFFLk85yZ S60dOhIoIxzYA/jBZIREA5TXlxTQF6YyplOGWZQi4MPzbchvV08FPzeDBFTSm6lS wCfe/S81NbUei1n1PPVmyYwNAtDnT2RF+lTUs/cGHPrAeH/5Ts+oSR18Cb6veM/k Es3WK9A/aTTCQRMdQD+C4qtfmAMaEfGg91C9NaNCjeL2eSpni0S6iD75KDdvH9Id 6p3nnI1isGGyHt+RLM78fN5K1Z80PJERLDrw+DKycsoZL5EXqWJNLBrdTQqb5RXe Zwl5ggHixo/jhDGSHPVzfOXrgCY69Oa3Zh7AtuLyz1X9DH1qhl4zH1htvzHsgves 38Qw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1666155308; x=1666241708; bh=ZJ/jqUJetzuo4obAwDOlJ/BxuBfJBgWhOQm uwYssOjY=; b=fNwJu5pCLGAIXMlDAEM5Slvb4IWD1vBnwWojtDcJKJhIF+myrSL yPLw2bezQdNHDEuVPl/8WkMPbAKGbvqlE45Gm7YCua9SqdX3qsxOlehtmnJdtOCO 4U90sAl9LUTi5LgBsUUGvv0ocy/fbOA0ljuPlJnOCkQEFX/9Ky+tZ6+IRspugHfW HruKtE54hYl7k9NY4m1BOEa4wIz53PzCx4c200uzYD7tnhpOGoOPzG0ZN9zBZtFB 11JIGfiwxgQszX3vsN2eEVW5UvaPf3EQoA5enYrazkWO87wI7hnpDe01JpJwa2yS +1547AUu/frkkOJ8km98oSG4z40GYyc8U1Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeelfedgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomheprfhhihhlihhpucfotgfirhgrthhhuceophhhihhlihhpsehphhhi lhhiphhmtghgrhgrthhhrdgtohhmqeenucggtffrrghtthgvrhhnpedtledthfdugfehke efkeeifeetgfdvgeefgfevffettdekgfevteduffeguddvteenucffohhmrghinheprhgr tghkvghtqdhlrghnghdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehphhhilhhiphesphhhihhlihhpmhgtghhrrghthhdrtghomh X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 19 Oct 2022 00:55:08 -0400 (EDT) From: Philip McGrath Date: Wed, 19 Oct 2022 00:55:05 -0400 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=66.111.4.25; envelope-from=philip@philipmcgrath.com; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666155371; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZJ/jqUJetzuo4obAwDOlJ/BxuBfJBgWhOQmuwYssOjY=; b=gLial1jMoCjk54YicohnSOE8+roeKPpBHYc1gTMj+4qMUVR6wt1nk4FaPHs4FvXa7VuOlX nJKH2DAsz2MWF/aPAn6hCPaCD5gD0U1EocBhEEoPWZl3f5tHE+SSiuPw2CxobXDl8Mw47g fgz5GTfga6pUhK72laiJMiGAwnPWJ3jt17RGLe0QgWT8WhYMYC0yoj/c2HbG3mtyFM7vhG a+PXiIb0mcH0tnMAvGDmWGy0szbUIVmHILg7Y5RXzBYyqXgIqV/DCQVcBOZ7GuRj7F98pC l/y/CR5uBDnnTEY7GkOQr2L02sIrb4GSnAkk8lvzGY3yArk31uanB+37kJHnFg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666155371; a=rsa-sha256; cv=none; b=mPGNw195jzgS1TZw1W9FGfnnBVnzLX1urxYixUIF39+5/dIpdeBNYw6qZRDPR1YxYBA8t+ wleP0UI80KoMpfoIulP9ZprW/iDUmA9/m3mYo+cDyTvbPY2p+nX2LRzyY9Qdke5SWeek9U hNo7QuVwMDPWDgjPeZQLUOdqUhpi+Ah7/ctkOLd/a4Sa2n9jW7md70LyILigapb+Blz9wp SzZqRQfICQXu9SKdNwnO0CefmwHXjnPWKQF5aLpprJG74Y6uLqoybt7vm5nIxmGMl8k46V s5J9/oFTkKlxqa91Yn2h7/hSG3OwHBjzuwNbNmI3zUE7UdQ/Q+Q+TOwap4RRHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b=V0Vn6iuG; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=fNwJu5pC; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.77 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=fm3 header.b=V0Vn6iuG; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=fNwJu5pC; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9378D37207 X-Spam-Score: 2.77 X-Migadu-Scanner: scn0.migadu.com X-TUID: IJsNIEnspZtT Hi, This patch series changes 'spdx-string->license' to match SPDX license identifiers case-insensitively (as the specification instructs) and generalizes support for the '+' operator. It also corrects the docstring. My concrete motivation is to more completely translate Racket's "license S-expressions": https://docs.racket-lang.org/pkg/metadata.html#(tech._license._s._expression) For example, this package, which is part of the main Racket distribution, uses the '+' operator: https://pkgs.racket-lang.org/package/scribble-lib (In turn, my impetus for proposing license S-expressions for Racket was to be able to use them in 'guix import racket'.) -Philip Philip McGrath (3): import/utils: spdx-string->license: Fix incorrect docstring. import/utils: spdx-string->license: Match case-insensitively. import/utils: spdx-string->license: Support '+' operator. guix/import/utils.scm | 261 ++++++++++++++++++++++-------------------- 1 file changed, 140 insertions(+), 121 deletions(-) base-commit: 3bb145b6e2a8c84e7739ead9ae76dc4d42bb9850 -- 2.38.0