src: implement REUSE with SPDX identifiers
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 6 Jul 2023 18:40:50 +0000 (14:40 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Jan 2024 17:19:40 +0000 (12:19 -0500)
The SPDX identifiers [1] are a legally binding shorthand, which can be
used instead of the full boiler plate text. This is the first step
towards implementing the full REUSE spec [2] to help with copyright and
licensing audits and compliance.

This will reduce a lot a manual work required for the licensing audit
required in Debian on each update.

For files that lacked copyright and licensing information, I used the
following guidelines. If a clear author could be determined from the git
history use it, otherwise use 'EfficiOS Inc.'. For build system files,
use 'MIT', for documentation 'CC-BY-4.0' and for data files 'CC0-1.0'.

Freeform text files were converted to Markdown to allow licensing
comments.

[1] https://spdx.org/ids-how
[2] https://reuse.software/tutorial/

Change-Id: I5bebf12931a64f29fa84ee3947b165d0624db13a
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
22 files changed:
src/common/Makefile.am
src/common/events.c
src/common/snprintf/README [deleted file]
src/common/snprintf/README.md [new file with mode: 0644]
src/lib/lttng-ust-ctl.pc.in
src/lib/lttng-ust-cyg-profile/run
src/lib/lttng-ust-cyg-profile/run-fast
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-all/Makefile.am
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-all/Manifest.txt.license [new file with mode: 0644]
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/Makefile.am
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/Manifest.txt.license [new file with mode: 0644]
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-jul/Makefile.am
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-jul/Manifest.txt.license [new file with mode: 0644]
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j/Makefile.am
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j/Manifest.txt.license [new file with mode: 0644]
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j2/Makefile.am
src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j2/Manifest.txt.license [new file with mode: 0644]
src/lib/lttng-ust-java/Makefile.am
src/lib/lttng-ust-java/README [deleted file]
src/lib/lttng-ust-java/README.md [new file with mode: 0644]
src/lib/lttng-ust-libc-wrapper/run
src/lib/lttng-ust.pc.in

index 3561032bbff81efac0b8a7d58cf98aa99eca677b..05d08ade7dab2d5137e2d430f8ef7acdee5f96dd 100644 (file)
@@ -185,4 +185,4 @@ libustcomm_la_SOURCES = \
        ustcomm.c \
        ustcomm.h
 
-EXTRA_DIST = snprintf/README
+EXTRA_DIST = snprintf/README.md
index f70a1b4b09d089c343cd7b93b24cdc5563c34db3..b8b4da05f44a66ca44445a50e3a2081f85969f36 100644 (file)
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
 
 #include <string.h>
 
diff --git a/src/common/snprintf/README b/src/common/snprintf/README
deleted file mode 100644 (file)
index 73cb573..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-This is a signal safe version of snprintf/vsnprintf. The code is
-originally from the OpenBSD libc.
diff --git a/src/common/snprintf/README.md b/src/common/snprintf/README.md
new file mode 100644 (file)
index 0000000..c9d0498
--- /dev/null
@@ -0,0 +1,8 @@
+<!--
+SPDX-FileCopyrightText: 2010 Pierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
+
+SPDX-License-Identifier: CC-BY-4.0
+-->
+
+This is a signal safe version of snprintf/vsnprintf. The code is
+originally from the OpenBSD libc.
index a82a66898f79d34523300f04f0651ddbd1f4bd48..74dede0a38ad4851d72e230ec3bf32ccf5314406 100644 (file)
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2023 EfficiOS Inc.
+#
+# SPDX-License-Identifier: GPL-2.0-only
+
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
index 8df97ff897cc3c36b3c7846aed884ccf43e332e6..1e0bca886428eca7839617343741e4ea1d6c5320 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+
+# SPDX-FileCopyrightText: 2023 EfficiOS, Inc
 #
 # SPDX-License-Identifier: LGPL-2.1-only
 
index 3506bb8b0d525feeceb7e07866c67fe7690481e9..8f53315a238dd4293da99873fda47c7168309756 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+
+# SPDX-FileCopyrightText: 2023 EfficiOS, Inc
 #
 # SPDX-License-Identifier: LGPL-2.1-only
 
index 296bf5a0a1e34b04439d340e2d4a2e175a5dcf5e..437052abb8eaba5a51cb0e8a9f78d2b6daa8368c 100644 (file)
@@ -15,7 +15,9 @@ jarfile_compat_symlink = liblttng-ust-agent.jar
 
 jardir = $(datadir)/java
 
-dist_noinst_DATA = $(jarfile_manifest)
+dist_noinst_DATA = \
+       $(jarfile_manifest) \
+       $(jarfile_manifest).license
 
 jar_DATA = $(jarfile)
 
diff --git a/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-all/Manifest.txt.license b/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-all/Manifest.txt.license
new file mode 100644 (file)
index 0000000..aca70e9
--- /dev/null
@@ -0,0 +1,2 @@
+SPDX-FileCopyrightText: 2014 EfficiOS, Inc
+SPDX-License-Identifier: LGPL-2.1-only
index ec6c0d6440735a92cb959b49a586534cc44e195d..081111e45d7c1070ed30264c7650906b7814c3af 100644 (file)
@@ -40,7 +40,9 @@ dist_noinst_JAVA = $(pkgpath)/AbstractLttngAgent.java \
                                   $(pkgpath)/utils/LttngUstAgentLogger.java
 
 
-dist_noinst_DATA = $(jarfile_manifest)
+dist_noinst_DATA = \
+       $(jarfile_manifest) \
+       $(jarfile_manifest).license
 
 jar_DATA = $(jarfile)
 
diff --git a/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/Manifest.txt.license b/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/Manifest.txt.license
new file mode 100644 (file)
index 0000000..aca70e9
--- /dev/null
@@ -0,0 +1,2 @@
+SPDX-FileCopyrightText: 2014 EfficiOS, Inc
+SPDX-License-Identifier: LGPL-2.1-only
index 5d09e3e38735486a5e8f100aad6292adcdcd10b9..8add8acdbc18023f65eb7ccd96bfa70aee817130 100644 (file)
@@ -20,7 +20,9 @@ dist_noinst_JAVA = $(pkgpath)/LttngJulAgent.java \
                                   $(pkgpath)/LttngJulApi.java \
                                   $(pkgpath)/LttngLogHandler.java
 
-dist_noinst_DATA = $(jarfile_manifest)
+dist_noinst_DATA = \
+       $(jarfile_manifest) \
+       $(jarfile_manifest).license
 
 jar_DATA = $(jarfile)
 
diff --git a/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-jul/Manifest.txt.license b/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-jul/Manifest.txt.license
new file mode 100644 (file)
index 0000000..aca70e9
--- /dev/null
@@ -0,0 +1,2 @@
+SPDX-FileCopyrightText: 2014 EfficiOS, Inc
+SPDX-License-Identifier: LGPL-2.1-only
index 6bdbbba4e66dcc34778203d98de32a789d147079..42722b6b0ada4801842dc5388b58a7de91782ff4 100644 (file)
@@ -20,7 +20,9 @@ dist_noinst_JAVA = $(pkgpath)/LttngLog4jAgent.java \
                                   $(pkgpath)/LttngLog4jApi.java \
                                   $(pkgpath)/LttngLogAppender.java
 
-dist_noinst_DATA = $(jarfile_manifest)
+dist_noinst_DATA = \
+       $(jarfile_manifest) \
+       $(jarfile_manifest).license
 
 jar_DATA = $(jarfile)
 
diff --git a/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j/Manifest.txt.license b/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j/Manifest.txt.license
new file mode 100644 (file)
index 0000000..aca70e9
--- /dev/null
@@ -0,0 +1,2 @@
+SPDX-FileCopyrightText: 2014 EfficiOS, Inc
+SPDX-License-Identifier: LGPL-2.1-only
index 785a98fe429471cd1345009134d4415e6f97d1bd..36c65bf2b8714f090894b3e0a4568c822ef33a23 100644 (file)
@@ -26,7 +26,9 @@ dist_noinst_JAVA = \
        $(pkgpath)/LttngLog4j2Api.java \
        $(pkgpath)/LttngLogAppender.java
 
-dist_noinst_DATA = $(jarfile_manifest)
+dist_noinst_DATA = \
+       $(jarfile_manifest) \
+       $(jarfile_manifest).license
 
 jar_DATA = $(jarfile)
 
diff --git a/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j2/Manifest.txt.license b/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-log4j2/Manifest.txt.license
new file mode 100644 (file)
index 0000000..aca70e9
--- /dev/null
@@ -0,0 +1,2 @@
+SPDX-FileCopyrightText: 2014 EfficiOS, Inc
+SPDX-License-Identifier: LGPL-2.1-only
index 661c30ba964f3a657cc749e076fa2c3e333bff9f..14988db53a886f2f2b9c5481c51a6970696670f0 100644 (file)
@@ -46,7 +46,7 @@ org_lttng_ust_LTTngUst.h:
        $(JAVAH) -classpath $(srcdir) $(JAVAHFLAGS) org.lttng.ust.LTTngUst
 endif
 
-EXTRA_DIST = README
+EXTRA_DIST = README.md
 
 CLEANFILES = $(jarfile) org_lttng_ust_LTTngUst.h
 
diff --git a/src/lib/lttng-ust-java/README b/src/lib/lttng-ust-java/README
deleted file mode 100644 (file)
index d2ca478..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-This directory contains a simple API for instrumenting java applications.
-
-Configuration examples to build this library:
-
-dependency: openjdk-7-jdk
-./configure --enable-jni-interface
-
-Note that the OpenJDK 7 is used for development and continuous integration thus
-we directly support that version for this library. However, it has been tested
-with OpenJDK 6 also. Please let us know if other Java version (commercial or
-not) work with this library.
-
-After building, you can use the liblttng-ust-java.jar file in a Java project.
-It requires the liblttng-ust-java.so* files (which get installed when doing
-`make install') so make sure those are in the linker's library path.
diff --git a/src/lib/lttng-ust-java/README.md b/src/lib/lttng-ust-java/README.md
new file mode 100644 (file)
index 0000000..6572579
--- /dev/null
@@ -0,0 +1,22 @@
+<!--
+SPDX-FileCopyrightText: 2010 Pierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
+
+SPDX-License-Identifier: CC-BY-4.0
+-->
+
+This directory contains a simple API for instrumenting java applications.
+
+Configuration examples to build this library:
+
+dependency: openjdk-7-jdk
+
+    ./configure --enable-jni-interface
+
+Note that the OpenJDK 7 is used for development and continuous integration thus
+we directly support that version for this library. However, it has been tested
+with OpenJDK 6 also. Please let us know if other Java version (commercial or
+not) work with this library.
+
+After building, you can use the liblttng-ust-java.jar file in a Java project.
+It requires the liblttng-ust-java.so* files (which get installed when doing
+`make install') so make sure those are in the linker's library path.
index b784f51ac2d085de47cdef1260f0d929277ffbec..5d5a82a73b16412898a10643099c88493a491ba4 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+
+# SPDX-FileCopyrightText: 2023 EfficiOS, Inc
 #
 # SPDX-License-Identifier: LGPL-2.1-only
 
index bd3600cb40c39a236b860055c8bac6edfbc2ae33..77f84a82e1452f1cdd126ec3539d95ea22dbfa75 100644 (file)
@@ -1,3 +1,7 @@
+# SPDX-FileCopyrightText: 2023 EfficiOS Inc.
+#
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
This page took 0.031483 seconds and 4 git commands to generate.