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 3822B158020 for ; Sun, 13 Nov 2022 18:42:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DCBD1E08EB; Sun, 13 Nov 2022 18:42:23 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0BDDE085B for ; Sun, 13 Nov 2022 18:42:23 +0000 (UTC) Message-ID: <96483765099dbd059d500bec9a17572c08e79b20.camel@gentoo.org> Subject: Re: [gentoo-dev] [PATCH] metadata: Add license-mapping.conf for SPDX license mapping From: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Date: Sun, 13 Nov 2022 19:42:19 +0100 In-Reply-To: <0494AB01-75DA-4438-AB13-BC2E189FDF91@gentoo.org> References: <20221113115809.1025416-1-mgorny@gentoo.org> <0494AB01-75DA-4438-AB13-BC2E189FDF91@gentoo.org> Organization: Gentoo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 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 X-Archives-Salt: b594060c-36ec-47e4-9916-09582adf6bef X-Archives-Hash: 7f24d723dd45d445c2101d1c52b49bbd On Sun, 2022-11-13 at 17:46 +0000, Sam James wrote: >=20 > > On 13 Nov 2022, at 11:58, Micha=C5=82 G=C3=B3rny wr= ote: > >=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 define= d > > 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/01924bb71411696dce04= 445d85da508d > > [3] https://gitweb.gentoo.org/proj/cargo-ebuild.git/tree/src/license.rs= ?id=3Db4314edc5bb672f5e94dcbc996f443e98fdb4dba > > [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 >=20 > I like the idea. >=20 > If/when we do this: > - Should this be in a GLEP? >=20 I don't think we need a GLEP, the comment on top should be sufficient to explain how it's supposed to work. --=20 Best regards, Micha=C5=82 G=C3=B3rny