]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
headers: add spdx tags to imported files with a known license
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 27 Oct 2020 17:32:27 +0000 (18:32 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 29 Oct 2020 10:32:24 +0000 (11:32 +0100)
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.

src/basic/gunicode.c
src/basic/gunicode.h
src/basic/siphash24.c
src/basic/siphash24.h
src/boot/efi/sha256.c
src/shared/initreq.h
src/shared/linux/nl80211.h

index c51b1a7a18108fd3e47f8a0dd1395527ce4806e1..02637d74e91d06d176b4894629a6b717e43531ea 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /* gunicode.c - Unicode manipulation functions
  *
  *  Copyright (C) 1999, 2000 Tom Tromey
index a16b7b6ff1b0deaa082564372519bda40c3d4d6f..765077db83200962b25d8781b6f1a27449f7f624 100644 (file)
@@ -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 <stdbool.h>
 #include <stdint.h>
index 61180819b1bf0f995cddb9ca2ee9f02e1be9bb28..7c61eb145d9ddd3e080cc294d5827a9365ffc616 100644 (file)
@@ -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 <http://creativecommons.org/publicdomain/zero/1.0/>.
+   this software. If not, see <https://creativecommons.org/publicdomain/zero/1.0/>.
 
    (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
index fe43256882eccf86fe112310c11de5887247f9e1..90a6de00e4f2f531849989e705b6c2f6b207fc19 100644 (file)
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: CC0-1.0 */
+
 #pragma once
 
 #include <inttypes.h>
index 40da636dc712aaa0372dafe8ce595136a27bd200..005e1902d4bed5d42c92e5109ecc8e2f3c22c085 100644 (file)
@@ -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.
index 1d7ff81df1f2131c6929016249fd75a50939b3d5..1bf5b8edd7f04445802614223e402ef96e7cfd6c 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2+ */
 /*
  * initreq.h   Interface to talk to init through /dev/initctl.
  *
index b065c1fe4df5d5d71da9c204e97c0c5bc142c57b..65edfff1ca4bda0112d7e3e7755242e2369ed8fa 100644 (file)
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: MIT */
+
 #ifndef __LINUX_NL80211_H
 #define __LINUX_NL80211_H
 /*