Gentoo Archives: gentoo-dev

From: Sam James <sam@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-dev] [PATCH] metadata: Add license-mapping.conf for SPDX license mapping
Date: Sun, 13 Nov 2022 17:47:03
Message-Id: 0494AB01-75DA-4438-AB13-BC2E189FDF91@gentoo.org
In Reply to: [gentoo-dev] [PATCH] metadata: Add license-mapping.conf for SPDX license mapping by "Michał Górny"
1 > On 13 Nov 2022, at 11:58, Michał Górny <mgorny@g.o> wrote:
2 >
3 > Add a file defining mapping of SPDX-2.0 license identifiers to Gentoo
4 > ebuild licenses. This was originally discussed on Gentoo Bugzilla [1],
5 > the submitted to the gentoo-dev ml [2].
6 >
7 > The proposed file uses the common key-value format used for
8 > configuration files. Currently only `spdx-to-ebuild` section is defined
9 > but other kinds of mapping can be added in the future. As described
10 > in the top comment, it provides the ability to map SPDX-2.0 license
11 > identifiers along with the `+` and `WITH` operators to arbitrary
12 > Gentoo LICENSE strings (including all-of and any-of groups).
13 >
14 > The initial list is taken from cargo-ebuild's license.rs [3],
15 > courtesy of Leonardo H. Neumann and Georgy Yakovlev. A parser for this
16 > file format is implemented in pycargoebuild [4].
17 >
18 > [1] https://bugs.gentoo.org/706472
19 > [2] https://archives.gentoo.org/gentoo-dev/message/01924bb71411696dce04445d85da508d
20 > [3] https://gitweb.gentoo.org/proj/cargo-ebuild.git/tree/src/license.rs?id=b4314edc5bb672f5e94dcbc996f443e98fdb4dba
21 > [4] https://github.com/projg2/pycargoebuild/
22 >
23 > Signed-off-by: Michał Górny <mgorny@g.o>
24 > ---
25 > metadata/license-mapping.conf | 171 ++++++++++++++++++++++++++++++++++
26 > 1 file changed, 171 insertions(+)
27 > create mode 100644 metadata/license-mapping.conf
28 >
29
30 I like the idea.
31
32 If/when we do this:
33 - Should this be in a GLEP?
34 - It needs pkgcheck support for e.g. invalid entries, duplicates.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies