From: Zbigniew Jędrzejewski-Szmek Date: Tue, 27 Oct 2020 17:32:27 +0000 (+0100) Subject: headers: add spdx tags to imported files with a known license X-Git-Tag: v247-rc2~41^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=448e7440c2d6e682d55032d15076b840521ab120;p=thirdparty%2Fsystemd.git headers: add spdx tags to imported files with a known license I added the header in the cases where the license text is present and it is easy to find the appropriate SPDX header. For "public domain" stuff: SDPX treats each "public domain" license as unique [1], but luckily the one in siphash24.c is one of the identified variants. There are some other cases which specify "public domain" but there doesn't seem to be a SPDX identifier. [1] https://wiki.spdx.org/view/Legal_Team/Decisions/Dealing_with_Public_Domain_within_SPDX_Files gunicode.[ch] are imported from glib, which is licensed as LGPL2.1+, see https://gitlab.gnome.org/GNOME/glib/-/blob/master/glib/gunicode.h. --- diff --git a/src/basic/gunicode.c b/src/basic/gunicode.c index c51b1a7a181..02637d74e91 100644 --- a/src/basic/gunicode.c +++ b/src/basic/gunicode.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ /* gunicode.c - Unicode manipulation functions * * Copyright (C) 1999, 2000 Tom Tromey diff --git a/src/basic/gunicode.h b/src/basic/gunicode.h index a16b7b6ff1b..765077db832 100644 --- a/src/basic/gunicode.h +++ b/src/basic/gunicode.h @@ -1,10 +1,10 @@ -#pragma once - +/* SPDX-License-Identifier: LGPL-2.1+ */ /* gunicode.h - Unicode manipulation functions * * Copyright (C) 1999, 2000 Tom Tromey * Copyright © 2000, 2005 Red Hat, Inc. */ +#pragma once #include #include diff --git a/src/basic/siphash24.c b/src/basic/siphash24.c index 61180819b1b..7c61eb145d9 100644 --- a/src/basic/siphash24.c +++ b/src/basic/siphash24.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + /* SipHash reference C implementation @@ -10,7 +12,7 @@ worldwide. This software is distributed without any warranty. You should have received a copy of the CC0 Public Domain Dedication along with - this software. If not, see . + this software. If not, see . (Minimal changes made by Lennart Poettering, to make clean for inclusion in systemd) (Refactored by Tom Gundersen to split up in several functions and follow systemd diff --git a/src/basic/siphash24.h b/src/basic/siphash24.h index fe43256882e..90a6de00e4f 100644 --- a/src/basic/siphash24.h +++ b/src/basic/siphash24.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: CC0-1.0 */ + #pragma once #include diff --git a/src/boot/efi/sha256.c b/src/boot/efi/sha256.c index 40da636dc71..005e1902d4b 100644 --- a/src/boot/efi/sha256.c +++ b/src/boot/efi/sha256.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ + /* Stolen from glibc and converted to UEFI style. In glibc it comes with the following copyright blurb: */ /* Functions to compute SHA256 message digest of files or memory blocks. diff --git a/src/shared/initreq.h b/src/shared/initreq.h index 1d7ff81df1f..1bf5b8edd7f 100644 --- a/src/shared/initreq.h +++ b/src/shared/initreq.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2+ */ /* * initreq.h Interface to talk to init through /dev/initctl. * diff --git a/src/shared/linux/nl80211.h b/src/shared/linux/nl80211.h index b065c1fe4df..65edfff1ca4 100644 --- a/src/shared/linux/nl80211.h +++ b/src/shared/linux/nl80211.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: MIT */ + #ifndef __LINUX_NL80211_H #define __LINUX_NL80211_H /*