[genivi-dlt] [PATCH] SPDX license headers

Jeremiah Foster jeremiah.foster at pelagicore.com
Tue Feb 23 09:30:19 EST 2016


Hi,

I've written a little perl script that goes through all the files in a
given directory to check if there is a SPDX License Identifier tag found in
source code. The tool is called "SPDXl" and lives on GitHub if you're
interested. I'm using it to test that GENIVI components have followed
GENIVI's licensing policy as defined by GENIVI's License Review Team and
mentioned in the Public Licensing policy document found here;
http://docs.projects.genivi.org/License/Public_Policy_for_GENIVI_Licensing_and_Copyright_v_1.5.pdf

I can see that many files in the dlt-daemon repo are following the policy
explicitly but some of the files are not. For example, shell scripts in
the dlt-daemon/tests/ repo have no licensing information whatsoever.
Attached is a patch to add that information to one of the shell scripts.
This patch is merely meant to serve as a template, the information in the
patch may or may not be accurate -- it needs to be checked by the
contributor of the script.

Here is the output of SPDXl on the dlt-daemon/tests dir;

File: /home/jeremiah/GENIVI/repos/dlt-daemon/tests/CMakeLists.txt
File:
/home/jeremiah/GENIVI/repos/dlt-daemon/tests/dlt-test-cpp-extension.cpp  *
SPDX license identifier: MPL-2.0
File:
/home/jeremiah/GENIVI/repos/dlt-daemon/tests/dlt-test-preregister-context.c
 * SPDX license identifier: MPL-2.0
File: /home/jeremiah/GENIVI/repos/dlt-daemon/tests/dlt_env_ll_unit_test.cpp
 * SPDX license identifier: MPL-2.0
File: /home/jeremiah/GENIVI/repos/dlt-daemon/tests/dlt_test_receiver.c  *
SPDX license identifier: MPL-2.0
File: /home/jeremiah/GENIVI/repos/dlt-daemon/tests/gtest_dlt_common.cpp  *
SPDX license identifier: MPL-2.0
File:
/home/jeremiah/GENIVI/repos/dlt-daemon/tests/gtest_dlt_daemon_common.cpp  *
SPDX license identifier: MPL-2.0
File: /home/jeremiah/GENIVI/repos/dlt-daemon/tests/gtest_dlt_user.cpp  *
SPDX license identifier: MPL-2.0
File:
/home/jeremiah/GENIVI/repos/dlt-daemon/tests/start_filetransfer_test.sh
File:
/home/jeremiah/GENIVI/repos/dlt-daemon/tests/start_system_logger_test.sh
File:
/home/jeremiah/GENIVI/repos/dlt-daemon/tests/start_systemd_journal_test.sh
File: /home/jeremiah/GENIVI/repos/dlt-daemon/tests/testfile.dlt
File:
/home/jeremiah/GENIVI/repos/dlt-daemon/tests/testfile_filetransfer.txt
File: /home/jeremiah/GENIVI/repos/dlt-daemon/tests/testfilter.txt
File:
/home/jeremiah/GENIVI/repos/dlt-daemon/tests/mod_system_logger/Makefile
File:
/home/jeremiah/GENIVI/repos/dlt-daemon/tests/mod_system_logger/mod_system_logger.c

One can see the file name (after the prefix "File:") and then a SPDX
license identifier tag after it if it is found in the file. Its not printed
if it isn't found. This means we ought to look at the
mod_system_logger/mod_system_logger.c file as well as the *.sh scripts to
make sure they have proper headers. Obviously the patch is merely a
formality for the artifacts, the actual license policy for the software
ought to be made explicitly through a contribution policy like GENIVI's:
https://at.projects.genivi.org/wiki/display/PROJ/How+to+contribute+to+GENIVI
in conjunction with the maintainers of the component.

Feel free to send any questions to me or to GENIVI PMO should you have any.

Regards,

Jeremiah

-- 
Jeremiah C. Foster
GENIVI COMMUNITY MANAGER

Pelagicore AB
Ekelundsgatan 4, 6tr, SE-411 18
Gothenburg, Sweden
M: +46 (0)73 093 0506
jeremiah.foster at pelagicore.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160223/7132e824/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PELAGICORE_RGB_Black_horizontal.png
Type: image/png
Size: 11841 bytes
Desc: not available
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160223/7132e824/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Adding-license-header-to-shell-script.patch
Type: text/x-patch
Size: 1219 bytes
Desc: not available
URL: <http://lists.genivi.org/pipermail/genivi-diagnostic-log-and-trace_lists.genivi.org/attachments/20160223/7132e824/attachment.patch>


More information about the genivi-diagnostic-log-and-trace mailing list