Skip to contentSkip to conversation

LICENSES improvements/corrections

PATCH Superseded Andrew Cooper 4 participants 11 messages May 5, 2023 Licenses and spdx stuff

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover LICENSES improvements/corrections

Noticed in light of the recent LGPL changes to libacpi, but sadly only after the fact.

Andrew Cooper (2):
LICENSES: Improve the legibility of these files
LICENSES: Remove the use of deprecated LGPL SPDX tags

 LICENSES/BSD-2-Clause               |  4 ++++
 LICENSES/BSD-3-Clause               |  4 ++++
 LICENSES/BSD-3-Clause-Clear         |  4 ++++
 LICENSES/CC-BY-4.0                  |  5 +++++
 LICENSES/GPL-2.0                    | 17 +++++++++++------
 LICENSES/LGPL-2.0                   | 14 ++++++++++----
 LICENSES/LGPL-2.1                   | 14 ++++++++++----
 LICENSES/MIT                        |  4 ++++
 tools/libacpi/Makefile              |  2 +-
 tools/libacpi/acpi2_0.h             |  2 +-
 tools/libacpi/build.c               |  2 +-
 tools/libacpi/dsdt.asl              |  2 +-
 tools/libacpi/dsdt_acpi_info.asl    |  2 +-
 tools/libacpi/libacpi.h             |  2 +-
 tools/libacpi/mk_dsdt.c             |  2 +-
 tools/libacpi/ssdt_laptop_slate.asl |  2 +-
 tools/libacpi/ssdt_pm.asl           |  2 +-
 tools/libacpi/ssdt_s3.asl           |  2 +-
 tools/libacpi/ssdt_s4.asl           |  2 +-
 tools/libacpi/ssdt_tpm.asl          |  2 +-
 tools/libacpi/static_tables.c       |  2 +-
 21 files changed, 65 insertions(+), 27 deletions(-)
Signature · 1 line
2.30.2
#1 lore raw

PATCH 1/2 LICENSES: Improve the legibility of these files

A few newlines go a very long way

---
CC: George Dunlap <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>

---
 LICENSES/BSD-2-Clause       | 4 ++++
 LICENSES/BSD-3-Clause       | 4 ++++
 LICENSES/BSD-3-Clause-Clear | 4 ++++
 LICENSES/CC-BY-4.0          | 5 +++++
 LICENSES/GPL-2.0            | 5 +++++
 LICENSES/LGPL-2.0           | 6 ++++++
 LICENSES/LGPL-2.1           | 6 ++++++
 LICENSES/MIT                | 4 ++++
 8 files changed, 38 insertions(+)
LICENSES/BSD-2-Clause +4 -0
index da366e2ce50b..694d8c93221c 100644
@@ -1,10 +1,14 @@
 Valid-License-Identifier: BSD-2-Clause
+
 SPDX-URL: https://spdx.org/licenses/BSD-2-Clause.html
+
 Usage-Guide:
+
   To use the BSD 2-clause "Simplified" License put the following SPDX
   tag/value pair into a comment according to the placement guidelines in
   the licensing rules documentation:
     SPDX-License-Identifier: BSD-2-Clause
+
 License-Text:
 
 Copyright (c) <year> <owner> . All rights reserved.
LICENSES/BSD-3-Clause +4 -0
index 34c7f057c8d5..1441947f92e0 100644
@@ -1,10 +1,14 @@
 Valid-License-Identifier: BSD-3-Clause
+
 SPDX-URL: https://spdx.org/licenses/BSD-3-Clause.html
+
 Usage-Guide:
+
   To use the BSD 3-clause "New" or "Revised" License put the following SPDX
   tag/value pair into a comment according to the placement guidelines in
   the licensing rules documentation:
     SPDX-License-Identifier: BSD-3-Clause
+
 License-Text:
 
 Copyright (c) <year> <owner> . All rights reserved.
LICENSES/BSD-3-Clause-Clear +4 -0
index e53b56092b90..2b27f24a65a0 100644
@@ -1,10 +1,14 @@
 Valid-License-Identifier: BSD-3-Clause-Clear
+
 SPDX-URL: https://spdx.org/licenses/BSD-3-Clause-Clear.html
+
 Usage-Guide:
+
   To use the BSD 3-clause "Clear" License put the following SPDX
   tag/value pair into a comment according to the placement guidelines in
   the licensing rules documentation:
     SPDX-License-Identifier: BSD-3-Clause-Clear
+
 License-Text:
 
 The Clear BSD License
LICENSES/CC-BY-4.0 +5 -0
index 27dfefa95ccf..4197ceb180ff 100644
@@ -1,15 +1,20 @@
 Valid-License-Identifier: CC-BY-4.0
+
 SPDX-URL: https://spdx.org/licenses/CC-BY-4.0
+
 Usage-Guide:
+
   Do NOT use this license for code, but it's acceptable for content like artwork
   or documentation. When using it for the latter, it's best to use it together
   with a GPL2 compatible license using "OR", as CC-BY-4.0 texts processed by
   the kernel's build system might combine it with content taken from more
   restrictive licenses.
+
   To use the Creative Commons Attribution 4.0 International license put
   the following SPDX tag/value pair into a comment according to the
   placement guidelines in the licensing rules documentation:
     SPDX-License-Identifier: CC-BY-4.0
+
 License-Text:
 
 Creative Commons Attribution 4.0 International
LICENSES/GPL-2.0 +5 -0
index 9f09528a8bce..0022a7c17788 100644
@@ -2,11 +2,15 @@ Valid-License-Identifier: GPL-2.0
 Valid-License-Identifier: GPL-2.0-only
 Valid-License-Identifier: GPL-2.0+
 Valid-License-Identifier: GPL-2.0-or-later
+
 SPDX-URL: https://spdx.org/licenses/GPL-2.0.html
+
 Usage-Guide:
+
   To use this license in source code, put one of the following SPDX
   tag/value pairs into a comment according to the placement
   guidelines in the licensing rules documentation.
+
   For 'GNU General Public License (GPL) version 2 only' use:
     SPDX-License-Identifier: GPL-2.0-only
   or (now deprecated)
@@ -15,6 +19,7 @@ Usage-Guide:
     SPDX-License-Identifier: GPL-2.0+
   or
     SPDX-License-Identifier: GPL-2.0-or-later
+
 License-Text:
 
 		    GNU GENERAL PUBLIC LICENSE
LICENSES/LGPL-2.0 +6 -0
index 957d798fe037..2fa16d72eabf 100644
@@ -1,15 +1,21 @@
 Valid-License-Identifier: LGPL-2.0
 Valid-License-Identifier: LGPL-2.0+
+
 SPDX-URL: https://spdx.org/licenses/LGPL-2.0.html
+
 Usage-Guide:
+
   To use this license in source code, put one of the following SPDX
   tag/value pairs into a comment according to the placement
   guidelines in the licensing rules documentation.
+
   For 'GNU Library General Public License (LGPL) version 2.0 only' use:
     SPDX-License-Identifier: LGPL-2.0
+
   For 'GNU Library General Public License (LGPL) version 2.0 or any later
   version' use:
     SPDX-License-Identifier: LGPL-2.0+
+
 License-Text:
 
 GNU LIBRARY GENERAL PUBLIC LICENSE
LICENSES/LGPL-2.1 +6 -0
index 27bb4342a3e8..b366c7e49199 100644
@@ -1,15 +1,21 @@
 Valid-License-Identifier: LGPL-2.1
 Valid-License-Identifier: LGPL-2.1+
+
 SPDX-URL: https://spdx.org/licenses/LGPL-2.1.html
+
 Usage-Guide:
+
   To use this license in source code, put one of the following SPDX
   tag/value pairs into a comment according to the placement
   guidelines in the licensing rules documentation.
+
   For 'GNU Lesser General Public License (LGPL) version 2.1 only' use:
     SPDX-License-Identifier: LGPL-2.1
+
   For 'GNU Lesser General Public License (LGPL) version 2.1 or any later
   version' use:
     SPDX-License-Identifier: LGPL-2.1+
+
 License-Text:
 
 GNU LESSER GENERAL PUBLIC LICENSE
LICENSES/MIT +4 -0
index f33a68ceb3ea..eba1549f93e4 100644
@@ -1,10 +1,14 @@
 Valid-License-Identifier: MIT
+
 SPDX-URL: https://spdx.org/licenses/MIT.html
+
 Usage-Guide:
+
   To use the MIT License put the following SPDX tag/value pair into a
   comment according to the placement guidelines in the licensing rules
   documentation:
     SPDX-License-Identifier: MIT
+
 License-Text:
 
 MIT License
Signature · 1 line
2.30.2
#3 lore raw

Re: [PATCH 1/2] LICENSES: Improve the legibility of these files

Quoted 6 lines · Jan Beulich
Quoted 3 lines · Andrew Cooper

A few newlines go a very long way

Although I don't mind either way it should be noted that the LICENSES files came from Linux, and Linux doesn't have the extra spaces.

That said, these are licenses files not code, so we don't necessarily need to keep them in sync over time I think.

So I am fine with this. I am also fine if you drop this patch.

#4 lore raw

PATCH 2/2 LICENSES: Remove the use of deprecated LGPL SPDX tags

In reply to Andrew Cooper

The SPDX forms without an explicit -only or -or-later suffix are deprecated and should not be used. The recent changes to libacpi are the only examples in tree, so fix them all up.

For GPL, we have many examples using deprecated tags. For now, just identify them as such recommend that no new instances get added.

---
CC: George Dunlap <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Wei Liu <[email protected]>
CC: Julien Grall <[email protected]>

Unsure whether this should get some Fixes: tags or not. Note also that Jenny's "[PATCH v4 2/2] acpi: Add TPM2 interface definition." wants its SPDX tag correcting as per this patch.

---
 LICENSES/GPL-2.0                    | 12 ++++++------
 LICENSES/LGPL-2.0                   |  8 ++++----
 LICENSES/LGPL-2.1                   |  8 ++++----
 tools/libacpi/Makefile              |  2 +-
 tools/libacpi/acpi2_0.h             |  2 +-
 tools/libacpi/build.c               |  2 +-
 tools/libacpi/dsdt.asl              |  2 +-
 tools/libacpi/dsdt_acpi_info.asl    |  2 +-
 tools/libacpi/libacpi.h             |  2 +-
 tools/libacpi/mk_dsdt.c             |  2 +-
 tools/libacpi/ssdt_laptop_slate.asl |  2 +-
 tools/libacpi/ssdt_pm.asl           |  2 +-
 tools/libacpi/ssdt_s3.asl           |  2 +-
 tools/libacpi/ssdt_s4.asl           |  2 +-
 tools/libacpi/ssdt_tpm.asl          |  2 +-
 tools/libacpi/static_tables.c       |  2 +-
 16 files changed, 27 insertions(+), 27 deletions(-)
LICENSES/GPL-2.0 +6 -6
index 0022a7c17788..dcd969aa85b5 100644
@@ -1,8 +1,9 @@
-Valid-License-Identifier: GPL-2.0
 Valid-License-Identifier: GPL-2.0-only
-Valid-License-Identifier: GPL-2.0+
 Valid-License-Identifier: GPL-2.0-or-later
 
+Deprecated-Identifier: GPL-2.0
+Deprecated-Identifier: GPL-2.0+
+
 SPDX-URL: https://spdx.org/licenses/GPL-2.0.html
 
 Usage-Guide:
@@ -13,13 +14,12 @@ Usage-Guide:
 
   For 'GNU General Public License (GPL) version 2 only' use:
     SPDX-License-Identifier: GPL-2.0-only
-  or (now deprecated)
-    SPDX-License-Identifier: GPL-2.0
   For 'GNU General Public License (GPL) version 2 or any later version' use:
-    SPDX-License-Identifier: GPL-2.0+
-  or
     SPDX-License-Identifier: GPL-2.0-or-later
 
+  The deprecated tags should not be used for any new additions.  Where
+  possible, their existing uses should be phased out.
+
 License-Text:
 
 		    GNU GENERAL PUBLIC LICENSE
LICENSES/LGPL-2.0 +4 -4
index 2fa16d72eabf..c960ba3ce3b8 100644
@@ -1,5 +1,5 @@
-Valid-License-Identifier: LGPL-2.0
-Valid-License-Identifier: LGPL-2.0+
+Valid-License-Identifier: LGPL-2.0-only
+Valid-License-Identifier: LGPL-2.0-or-later
 
 SPDX-URL: https://spdx.org/licenses/LGPL-2.0.html
 
@@ -10,11 +10,11 @@ Usage-Guide:
   guidelines in the licensing rules documentation.
 
   For 'GNU Library General Public License (LGPL) version 2.0 only' use:
-    SPDX-License-Identifier: LGPL-2.0
+    SPDX-License-Identifier: LGPL-2.0-only
 
   For 'GNU Library General Public License (LGPL) version 2.0 or any later
   version' use:
-    SPDX-License-Identifier: LGPL-2.0+
+    SPDX-License-Identifier: LGPL-2.0-or-later
 
 License-Text:
 
LICENSES/LGPL-2.1 +4 -4
index b366c7e49199..4553664b76bf 100644
@@ -1,5 +1,5 @@
-Valid-License-Identifier: LGPL-2.1
-Valid-License-Identifier: LGPL-2.1+
+Valid-License-Identifier: LGPL-2.1-only
+Valid-License-Identifier: LGPL-2.1-or-later
 
 SPDX-URL: https://spdx.org/licenses/LGPL-2.1.html
 
@@ -10,11 +10,11 @@ Usage-Guide:
   guidelines in the licensing rules documentation.
 
   For 'GNU Lesser General Public License (LGPL) version 2.1 only' use:
-    SPDX-License-Identifier: LGPL-2.1
+    SPDX-License-Identifier: LGPL-2.1-only
 
   For 'GNU Lesser General Public License (LGPL) version 2.1 or any later
   version' use:
-    SPDX-License-Identifier: LGPL-2.1+
+    SPDX-License-Identifier: LGPL-2.1-or-later
 
 License-Text:
 
tools/libacpi/Makefile +1 -1
index aa9c520cbe85..bcfcd852f92f 100644
@@ -1,4 +1,4 @@
-# SPDX-License-Identifier: LGPL-2.1
+# SPDX-License-Identifier: LGPL-2.1-only
 #
 # Copyright (c) 2004, Intel Corporation.
 
tools/libacpi/acpi2_0.h +1 -1
index 212f5ab64182..e00b29854be0 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /*
  * Copyright (c) 2004, Intel Corporation.
  */
tools/libacpi/build.c +1 -1
index 830d37c61f03..3142e0ac84c0 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /*
  * Copyright (c) 2004, Intel Corporation.
  * Copyright (c) 2006, Keir Fraser, XenSource Inc.
tools/libacpi/dsdt.asl +1 -1
index c6691b56a986..32b42f85ae9f 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /******************************************************************************
  * DSDT for Xen with Qemu device model
  *
tools/libacpi/dsdt_acpi_info.asl +1 -1
index c6e82f1fe6a7..6e114fa23404 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 
     Scope (\_SB)
     {
tools/libacpi/libacpi.h +1 -1
index acf012e35578..7ae28525f604 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /******************************************************************************
  * libacpi.h
  * 
tools/libacpi/mk_dsdt.c +1 -1
index c74b270c0c5d..34f6753f6193 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 
 #include <stdio.h>
 #include <stdarg.h>
tools/libacpi/ssdt_laptop_slate.asl +1 -1
index 494f2d048d0a..69fd504c19fc 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /*
  * ssdt_conv.asl
  *
tools/libacpi/ssdt_pm.asl +1 -1
index e577e85c072b..db578d10ac3e 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /*
  * ssdt_pm.asl
  *
tools/libacpi/ssdt_s3.asl +1 -1
index 8f3177ec5adc..f6e9636f4759 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /*
  * ssdt_s3.asl
  *
tools/libacpi/ssdt_s4.asl +1 -1
index 979318eca1f5..8014f5fc9014 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /*
  * ssdt_s4.asl
  *
tools/libacpi/ssdt_tpm.asl +1 -1
index 6c3267218f3b..944658d25177 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /*
  * ssdt_tpm.asl
  *
tools/libacpi/static_tables.c +1 -1
index 631fb911413b..715f46fee05c 100644
@@ -1,4 +1,4 @@
-/* SPDX-License-Identifier: LGPL-2.1 */
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /*
  * Copyright (c) 2004, Intel Corporation.
  * Copyright (c) 2006, Keir Fraser, XenSource Inc.
Signature · 1 line
2.30.2
#5 lore raw

Re: [PATCH 2/2] LICENSES: Remove the use of deprecated LGPL SPDX tags

Quoted 2 lines · Andrew Cooper

The SPDX forms without an explicit -only or -or-later suffix are deprecated and should not be used.

I guess this wants a reference to where this is specified. In particular ...

LICENSES/LGPL-2.1 line 4

Quoted 9 lines
LICENSES/LGPL-2.1 +2 -2
@@ -1,5 +1,5 @@
-Valid-License-Identifier: LGPL-2.1
-Valid-License-Identifier: LGPL-2.1+
+Valid-License-Identifier: LGPL-2.1-only
+Valid-License-Identifier: LGPL-2.1-or-later
 
 SPDX-URL: https://spdx.org/licenses/LGPL-2.1.html

... I can't spot anything like this under e.g. this URL.

Also is there a reason you add Deprecated-Identifier: only to GPL-2.0? Enumerating them would seem reasonable to me, not just for completeness, but also in case we end up importing a file with a deprecated tag.

Jan

#6 lore raw

Re: [PATCH 2/2] LICENSES: Remove the use of deprecated LGPL SPDX tags

Quoted 13 lines · Jan Beulich
Quoted 2 lines · Andrew Cooper

The SPDX forms without an explicit -only or -or-later suffix are deprecated and should not be used.

I guess this wants a reference to where this is specified. In particular ...

Quoted 8 lines
LICENSES/LGPL-2.1 +2 -2
@@ -1,5 +1,5 @@
-Valid-License-Identifier: LGPL-2.1
-Valid-License-Identifier: LGPL-2.1+
+Valid-License-Identifier: LGPL-2.1-only
+Valid-License-Identifier: LGPL-2.1-or-later
 
Quoted 2 lines

LICENSES/LGPL-2.1 line 4

Quoted 1 line
LICENSES/LGPL-2.1 +0 -0
 SPDX-URL: https://spdx.org/licenses/LGPL-2.1.html

... I can't spot anything like this under e.g. this URL.

Hmm yeah, it is irritating.  The statement is at
https://spdx.org/licenses/ but only by virtue of two tables, the second of which is the list of deprecated identifiers.

I'll put a paragraph about this in the commit message.

Quoted 3 lines

Also is there a reason you add Deprecated-Identifier: only to GPL-2.0? Enumerating them would seem reasonable to me, not just for completeness, but also in case we end up importing a file with a deprecated tag.

We have problematic uses of GPL in tree, where we don't for LGPL.

I'm considering a gitlab pass which will reject patches with use an identifier not in the permitted list, and reject in introduction of new uses of the deprecated ones.    For this, the deprecated-but-tolerated tags need calling out in some machine-readable way, but I don't think it's helpful to express the tolerating of a tag we don't have any violations of.

~Andrew

Acked-by
#7 lore raw

Re: [PATCH 2/2] LICENSES: Remove the use of deprecated LGPL SPDX tags

Quoted 27 lines · Andrew Cooper
Quoted 13 lines · Jan Beulich
Quoted 2 lines · Andrew Cooper

The SPDX forms without an explicit -only or -or-later suffix are deprecated and should not be used.

I guess this wants a reference to where this is specified. In particular ...

Quoted 8 lines
LICENSES/LGPL-2.1 +2 -2
@@ -1,5 +1,5 @@
-Valid-License-Identifier: LGPL-2.1
-Valid-License-Identifier: LGPL-2.1+
+Valid-License-Identifier: LGPL-2.1-only
+Valid-License-Identifier: LGPL-2.1-or-later
 
Quoted 2 lines

LICENSES/LGPL-2.1 line 4

Quoted 1 line
LICENSES/LGPL-2.1 +0 -0
 SPDX-URL: https://spdx.org/licenses/LGPL-2.1.html

... I can't spot anything like this under e.g. this URL.

Hmm yeah, it is irritating.  The statement is at
https://spdx.org/licenses/ but only by virtue of two tables, the second of which is the list of deprecated identifiers.

I'll put a paragraph about this in the commit message.

Quoted 3 lines

Also is there a reason you add Deprecated-Identifier: only to GPL-2.0? Enumerating them would seem reasonable to me, not just for completeness, but also in case we end up importing a file with a deprecated tag.

Quoted 8 lines

We have problematic uses of GPL in tree, where we don't for LGPL.

I'm considering a gitlab pass which will reject patches with use an identifier not in the permitted list, and reject in introduction of new uses of the deprecated ones.    For this, the deprecated-but-tolerated tags need calling out in some machine-readable way, but I don't think it's helpful to express the tolerating of a tag we don't have any violations of.

Hmm, okay. With the expanded commit message

Jan

#8 lore raw

Re: [PATCH 2/2] LICENSES: Remove the use of deprecated LGPL SPDX tags

Quoted 28 lines · Jan Beulich
Quoted 27 lines · Andrew Cooper
Quoted 13 lines · Jan Beulich
Quoted 2 lines · Andrew Cooper

The SPDX forms without an explicit -only or -or-later suffix are deprecated and should not be used.

I guess this wants a reference to where this is specified. In particular ...

Quoted 8 lines
LICENSES/LGPL-2.1 +2 -2
@@ -1,5 +1,5 @@
-Valid-License-Identifier: LGPL-2.1
-Valid-License-Identifier: LGPL-2.1+
+Valid-License-Identifier: LGPL-2.1-only
+Valid-License-Identifier: LGPL-2.1-or-later
 
Quoted 2 lines

LICENSES/LGPL-2.1 line 4

Quoted 1 line
LICENSES/LGPL-2.1 +0 -0
 SPDX-URL: https://spdx.org/licenses/LGPL-2.1.html

... I can't spot anything like this under e.g. this URL.

Hmm yeah, it is irritating.  The statement is at
https://spdx.org/licenses/ but only by virtue of two tables, the second of which is the list of deprecated identifiers.

I'll put a paragraph about this in the commit message.

Quoted 3 lines

Also is there a reason you add Deprecated-Identifier: only to GPL-2.0? Enumerating them would seem reasonable to me, not just for completeness, but also in case we end up importing a file with a deprecated tag.

We have problematic uses of GPL in tree, where we don't for LGPL.

Quoted 8 lines
Quoted 6 lines

I'm considering a gitlab pass which will reject patches with use an identifier not in the permitted list, and reject in introduction of new uses of the deprecated ones.    For this, the deprecated-but-tolerated tags need calling out in some machine-readable way, but I don't think it's helpful to express the tolerating of a tag we don't have any violations of.

Hmm, okay. With the expanded commit message

Thanks.  FAOD, here's the full commit message with adjustment:

LICENSES: Remove the use of deprecated LGPL SPDX tags

The SPDX forms without an explicit -only or -or-later suffix are deprecated and should not be used.

Somewhat unhelpfully at the time of writing, this only appears to be indicated
by the separation of the two tables at https://spdx.org/licenses/

The recent changes to libacpi are the only examples of deprecated LGPL tags in
tree, so fix them all up.

For GPL, we have many examples using deprecated tags.  For now, just identify
them as such and recommend that no new instances get added.

#9 lore raw

Re: [PATCH 2/2] LICENSES: Remove the use of deprecated LGPL SPDX tags

In reply to Andrew Cooper
Quoted 10 lines · Andrew Cooper
---
 LICENSES/GPL-2.0                    | 12 ++++++------
 LICENSES/LGPL-2.0                   |  8 ++++----
 LICENSES/LGPL-2.1                   |  8 ++++----
LICENSES/GPL-2.0 +0 -0
index 0022a7c17788..dcd969aa85b5 100644

LICENSES/GPL-2.0 line 7

Quoted 9 lines
LICENSES/GPL-2.0 +3 -2
@@ -1,8 +1,9 @@
-Valid-License-Identifier: GPL-2.0
 Valid-License-Identifier: GPL-2.0-only
-Valid-License-Identifier: GPL-2.0+
 Valid-License-Identifier: GPL-2.0-or-later
 
+Deprecated-Identifier: GPL-2.0
+Deprecated-Identifier: GPL-2.0+
+
 SPDX-URL: https://spdx.org/licenses/GPL-2.0.html

You probably want to update the URLs as well, this one point to a page with a deprecated notice. New url is:

    https://spdx.org/licenses/GPL-2.0-only.html

Same remark for the other licences file changed.

Also, maybe they want to be renamed as well, to match the identifier, I'm not sure.

Cheers,

Signature · 1 line
Anthony PERARD
#10 lore raw

Re: [PATCH 2/2] LICENSES: Remove the use of deprecated LGPL SPDX tags

Quoted 22 lines · Anthony PERARD
Quoted 10 lines · Andrew Cooper
---
 LICENSES/GPL-2.0                    | 12 ++++++------
 LICENSES/LGPL-2.0                   |  8 ++++----
 LICENSES/LGPL-2.1                   |  8 ++++----
LICENSES/GPL-2.0 +0 -0
index 0022a7c17788..dcd969aa85b5 100644

LICENSES/GPL-2.0 line 7

Quoted 9 lines
LICENSES/GPL-2.0 +3 -2
@@ -1,8 +1,9 @@
-Valid-License-Identifier: GPL-2.0
 Valid-License-Identifier: GPL-2.0-only
-Valid-License-Identifier: GPL-2.0+
 Valid-License-Identifier: GPL-2.0-or-later
 
+Deprecated-Identifier: GPL-2.0
+Deprecated-Identifier: GPL-2.0+
+
 SPDX-URL: https://spdx.org/licenses/GPL-2.0.html

You probably want to update the URLs as well, this one point to a page with a deprecated notice. New url is:

Quoted 6 lines
    https://spdx.org/licenses/GPL-2.0-only.html

Same remark for the other licences file changed.

Also, maybe they want to be renamed as well, to match the identifier, I'm not sure.

Hmm, all good points.  I'll update the URLs because that's easy.

For the files however, the GPL ones already discuss both the "only" or "or-later" forms, so the filename already doesn't match the SDPX tag specifically.  I think I'll leave them as-are.

~Andrew