From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 79FE2158020 for ; Sun, 13 Nov 2022 17:47:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A412EE092B; Sun, 13 Nov 2022 17:46:59 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68807E0891 for ; Sun, 13 Nov 2022 17:46:59 +0000 (UTC) Content-Type: multipart/signed; boundary="Apple-Mail=_7CAF3C38-FF28-4B18-BFCC-365BA4AFCD16"; protocol="application/pgp-signature"; micalg=pgp-sha512 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Re: [gentoo-dev] [PATCH] metadata: Add license-mapping.conf for SPDX license mapping From: Sam James In-Reply-To: <20221113115809.1025416-1-mgorny@gentoo.org> Date: Sun, 13 Nov 2022 17:46:43 +0000 Cc: =?utf-8?B?TWljaGHFgiBHw7Nybnk=?= Message-Id: <0494AB01-75DA-4438-AB13-BC2E189FDF91@gentoo.org> References: <20221113115809.1025416-1-mgorny@gentoo.org> To: gentoo-dev@lists.gentoo.org X-Mailer: Apple Mail (2.3731.200.110.1.12) X-Archives-Salt: c82773ca-7665-4376-aa20-39153e4bec52 X-Archives-Hash: 009df5d3191690bf5313997c362bc882 --Apple-Mail=_7CAF3C38-FF28-4B18-BFCC-365BA4AFCD16 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 13 Nov 2022, at 11:58, Micha=C5=82 G=C3=B3rny = wrote: >=20 > Add a file defining mapping of SPDX-2.0 license identifiers to Gentoo > ebuild licenses. This was originally discussed on Gentoo Bugzilla = [1], > the submitted to the gentoo-dev ml [2]. >=20 > The proposed file uses the common key-value format used for > configuration files. Currently only `spdx-to-ebuild` section is = defined > but other kinds of mapping can be added in the future. As described > in the top comment, it provides the ability to map SPDX-2.0 license > identifiers along with the `+` and `WITH` operators to arbitrary > Gentoo LICENSE strings (including all-of and any-of groups). >=20 > The initial list is taken from cargo-ebuild's license.rs [3], > courtesy of Leonardo H. Neumann and Georgy Yakovlev. A parser for = this > file format is implemented in pycargoebuild [4]. >=20 > [1] https://bugs.gentoo.org/706472 > [2] = https://archives.gentoo.org/gentoo-dev/message/01924bb71411696dce04445d85d= a508d > [3] = https://gitweb.gentoo.org/proj/cargo-ebuild.git/tree/src/license.rs?id=3Db= 4314edc5bb672f5e94dcbc996f443e98fdb4dba > [4] https://github.com/projg2/pycargoebuild/ >=20 > Signed-off-by: Micha=C5=82 G=C3=B3rny > --- > metadata/license-mapping.conf | 171 ++++++++++++++++++++++++++++++++++ > 1 file changed, 171 insertions(+) > create mode 100644 metadata/license-mapping.conf >=20 I like the idea. If/when we do this: - Should this be in a GLEP? - It needs pkgcheck support for e.g. invalid entries, duplicates. --Apple-Mail=_7CAF3C38-FF28-4B18-BFCC-365BA4AFCD16 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY3EthF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kFVFAP0YMbY4Ev79K9RFkhmFoo/Pnhlb+5MSWyR9AOBBvbYxRwEAhQg6NimslHft ndp+LPZJGdZ44ksRaGqCq+ZPKYdL/gA= =Ojwj -----END PGP SIGNATURE----- --Apple-Mail=_7CAF3C38-FF28-4B18-BFCC-365BA4AFCD16--