Invalid SPDX License Identifier for test/lib/strlcat.c
Diederik de Haas
didi.debian at cknow.org
Sun Mar 2 14:03:18 CET 2025
Hi,
On Sat Mar 1, 2025 at 3:54 PM CET, Sean Anderson wrote:
> On 3/1/25 04:39, Diederik de Haas wrote:
>> The file ``test/lib/strlcat.c`` has "SPDX-License-Identifier: GPL-2.1+"
>> and that SPDX identifier doesn't exist.
>> As there is no indication this was a typo it needs to be relicensed by
>> the copyright holders AFAIK.
>
> As noted in the comment, this is adapted from glibc. The referenced file is
> licensed LGPL 2.1+. So license in this file should really be whatever the
> compatible version of the GPL is (I guess 2.0+).
>
> --Sean
IANAL, so I searched a bit which led me via SE [1] (and answers further
down) to the GPL-FAQ [2] which has a link to footnote 7:
7: LGPLv2.1 gives you permission to relicense the code under any
version of the GPL since GPLv2. If you can switch the LGPLed code in
this case to using an appropriate version of the GPL instead (as
noted in the table), you can make this combination.
So I'm guessing you're right.
FWIW, all the other files under ``test/lib/`` are licensed GPL-2.0+.
Cheers,
Diederik
[1] https://opensource.stackexchange.com/questions/5664/linking-from-lgpl-2-1-software-to-apache-2-0-library#5756
[2] https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250302/bfbfd12d/attachment.sig>
More information about the U-Boot
mailing list