alfred: License cleanup
Subsystems (2)
cover alfred: License cleanup
Hi,
the kernel community is currently trying to make the licensing status more clear in each file. This is mostly done by adding SPDX license identifiers and defining a set of rules how these license related information has to be stored.
I've used this opportunity to also go through all files of alfred (for example with FSFE's reuse lint) and to annotate the files according to the "Linux licensing rules" and FSFE's REUSE practices.
There are two things which could be seen as controversial:
* change of batman_adv.h to the Linux preferred license (I am waiting for Acks in the batman-adv patchset)
* explicitly mark remaining files as licensed under the GPL-2.0
Kind regards,
Sven
Sven Eckelmann (6):
alfred: Rename LICENSE to Linux's LICENSES/preferred/GPL-2.0
alfred: Add License-Filename to GPL-2.0 files
alfred: Import Linux's LICENSES/preferred/MIT
alfred: Add SPDX license identifier above copyright header
alfred: Mark remaining files as GPL-2.0
alfred: Change batman_adv.h license to MIT
.gitattributes | 3 +++ CHANGELOG.license | 2 ++ LICENSE => LICENSES/preferred/GPL-2.0 | 13 +++++++++++++ LICENSES/preferred/MIT | 30 ++++++++++++++++++++++++++++++ Makefile | 2 ++ README.license | 2 ++ alfred.h | 5 +++-- batadv_query.c | 5 +++-- batadv_query.h | 5 +++-- batadv_querynl.c | 5 +++-- batadv_querynl.h | 5 +++-- batman_adv.h | 27 +++++++++++++++++---------- bitops.h | 1 + client.c | 5 +++-- debugfs.c | 5 +++-- debugfs.h | 5 +++-- gpsd/Makefile | 2 ++ gpsd/alfred-gpsd.c | 5 +++-- gpsd/alfred-gpsd.h | 5 +++-- gpsd/man/alfred-gpsd.8 | 2 ++ hash.c | 5 +++-- hash.h | 5 +++-- list.h | 5 +++-- main.c | 5 +++-- man/alfred.8 | 2 ++ netlink.c | 5 +++-- netlink.h | 5 +++-- netsock.c | 5 +++-- packet.h | 5 +++-- recv.c | 5 +++-- send.c | 5 +++-- server.c | 5 +++-- unix_sock.c | 5 +++-- util.c | 5 +++-- vis/Makefile | 2 ++ vis/man/batadv-vis.8 | 2 ++ vis/vis.c | 5 +++-- vis/vis.h | 5 +++-- 38 files changed, 155 insertions(+), 60 deletions(-) create mode 100644 CHANGELOG.license rename LICENSE => LICENSES/preferred/GPL-2.0 (97%) create mode 100644 LICENSES/preferred/MIT create mode 100644 README.license
Signature · 1 line
2.11.0
PATCH 1/6 alfred: Rename LICENSE to Linux's LICENSES/preferred/GPL-2.0
The alfred project shares files with other projects hosted on open-mesh.org and kernel.org. These other projects use the filename LICENSES/preferred/GPL-2.0 for the GPL-2.0 license. It is therefore required to also use the same name for the license file when these files reference this in their license header.
The SPDX header was imported from Linux but the actual GPL-2.0 text was downloaded from https://www.gnu.org/licenses/gpl-2.0.txt
--- LICENSE => LICENSES/preferred/GPL-2.0 | 13 +++++++++++++ 1 file changed, 13 insertions(+) rename LICENSE => LICENSES/preferred/GPL-2.0 (97%)
LICENSES/preferred/GPL-2.0 renamed from LICENSE +13 -0
@@ -1,3 +1,16 @@ +Valid-License-Identifier: GPL-2.0 +Valid-License-Identifier: GPL-2.0+ +SPDX-URL: https://spdx.org/licenses/GPL-2.0.html +Usage-Guide: + To use this license in source code, put one of the following SPDX + tag/value pairs into a comment according to the placement + guidelines in the licensing rules documentation. + For 'GNU General Public License (GPL) version 2 only' use: + SPDX-License-Identifier: GPL-2.0 + For 'GNU General Public License (GPL) version 2 or any later version' use: + SPDX-License-Identifier: GPL-2.0+ +License-Text: + GNU GENERAL PUBLIC LICENSE Version 2, June 1991
Signature · 1 line
2.11.0
PATCH 2/6 alfred: Add License-Filename to GPL-2.0 files
In reply to Sven EckelmannThe FSFE REUSE practices [1] recommend to add a "License-Filename" tag to files which don't contain the complete license text. The GPL-2.0 files usually only have a small notice at the beginning of the file. The longer license is usually stored in a separate file and therefore should be referenced accordingly.
--- Makefile | 1 + alfred.h | 1 + batadv_query.c | 1 + batadv_query.h | 1 + batadv_querynl.c | 1 + batadv_querynl.h | 1 + client.c | 1 + debugfs.c | 1 + debugfs.h | 1 + gpsd/Makefile | 1 + gpsd/alfred-gpsd.c | 1 + gpsd/alfred-gpsd.h | 1 + hash.c | 1 + hash.h | 1 + list.h | 1 + main.c | 1 + netlink.c | 1 + netlink.h | 1 + netsock.c | 1 + packet.h | 1 + recv.c | 1 + send.c | 1 + server.c | 1 + unix_sock.c | 1 + util.c | 1 + vis/Makefile | 1 + vis/vis.c | 1 + vis/vis.h | 1 + 28 files changed, 28 insertions(+)
Makefile +1 -0
@@ -17,6 +17,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA # +# License-Filename: LICENSES/preferred/GPL-2.0 # alfred build BINARY_NAME = alfred
alfred.h +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #ifndef SOURCE_VERSION
batadv_query.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include "alfred.h"
batadv_query.h +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #ifndef _BATADV_QUERY_H#define _BATADV_QUERY_H
batadv_querynl.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include "batadv_querynl.h"
batadv_querynl.h +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #ifndef _BATADV_QUERYNL_H
client.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <ctype.h>
debugfs.c +1 -0
@@ -16,6 +16,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include "debugfs.h"
debugfs.h +1 -0
@@ -16,6 +16,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #ifndef __DEBUGFS_H__
gpsd/Makefile +1 -0
@@ -17,6 +17,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA # +# License-Filename: LICENSES/preferred/GPL-2.0 # alfred-gpsd build BINARY_NAME = alfred-gpsd
gpsd/alfred-gpsd.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include "alfred-gpsd.h"
gpsd/alfred-gpsd.h +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <stdio.h>
hash.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include "hash.h"
hash.h +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #ifndef _BATMAN_HASH_H#define _BATMAN_HASH_H
list.h +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #ifndef _LINUX_LIST_H
main.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <arpa/inet.h>
netlink.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include "netlink.h"
netlink.h +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #ifndef _ALFRED_NETLINK_H
netsock.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <sys/socket.h>
packet.h +1 -0
@@ -15,6 +15,7 @@* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #ifndef _ALFRED_PACKET_H
recv.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <errno.h>
send.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <netinet/in.h>
server.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <errno.h>
unix_sock.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <errno.h>
util.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <netinet/ether.h>
vis/Makefile +1 -0
@@ -17,6 +17,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA # +# License-Filename: LICENSES/preferred/GPL-2.0 # batadv-vis build BINARY_NAME = batadv-vis
vis/vis.c +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include "vis.h"
vis/vis.h +1 -0
@@ -17,6 +17,7 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA * +* License-Filename: LICENSES/preferred/GPL-2.0 */ #include <sys/socket.h>
Signature · 1 line
2.11.0
PATCH 3/6 alfred: Import Linux's LICENSES/preferred/MIT
In reply to Sven EckelmannThe MIT license is used by alfred for some of the code. Copy the Linux license reference file with SPDX header for completeness sake.
--- LICENSES/preferred/MIT | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 LICENSES/preferred/MIT
LICENSES/preferred/MIT new file +30 -0
@@ -0,0 +1,30 @@ +Valid-License-Identifier: MIT +SPDX-URL: https://spdx.org/licenses/MIT.html +Usage-Guide: + To use the MIT License put the following SPDX tag/value pair into a + comment according to the placement guidelines in the licensing rules + documentation: + SPDX-License-Identifier: MIT +License-Text: + +MIT License + +Copyright (c) <year> <copyright holders> + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE.
Signature · 1 line
2.11.0
PATCH 4/6 alfred: Add SPDX license identifier above copyright header
In reply to Sven EckelmannThe "Linux kernel licensing rules" require that each file has a SPDX license identifier as first line (and sometimes as second line). Since alfred shares source files with the Linux kernel, it is appropriate to use the same identifier.
The FSFE REUSE practices [1] would also require the same tags but have no restrictions on the placement in the source file. Using the "Linux kernel licensing rules" is therefore also fulfilling the FSFE REUSE practices requirements at the same time.
[1] https://reuse.software/practices/
--- Makefile | 1 + alfred.h | 4 ++-- batadv_query.c | 4 ++-- batadv_query.h | 4 ++-- batadv_querynl.c | 4 ++-- batadv_querynl.h | 4 ++-- batman_adv.h | 1 + bitops.h | 1 + client.c | 4 ++-- debugfs.c | 4 ++-- debugfs.h | 4 ++-- gpsd/Makefile | 1 + gpsd/alfred-gpsd.c | 4 ++-- gpsd/alfred-gpsd.h | 4 ++-- hash.c | 4 ++-- hash.h | 4 ++-- list.h | 4 ++-- main.c | 4 ++-- netlink.c | 4 ++-- netlink.h | 4 ++-- netsock.c | 4 ++-- packet.h | 4 ++-- recv.c | 4 ++-- send.c | 4 ++-- server.c | 4 ++-- unix_sock.c | 4 ++-- util.c | 4 ++-- vis/Makefile | 1 + vis/vis.c | 4 ++-- vis/vis.h | 4 ++-- 30 files changed, 55 insertions(+), 50 deletions(-)
Makefile +1 -0
@@ -1,4 +1,5 @@ #!/usr/bin/make -f +# SPDX-License-Identifier: GPL-2.0 # -*- makefile -*- # # Copyright (C) 2012-2017 B.A.T.M.A.N. contributors
alfred.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
batadv_query.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
batadv_query.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
batadv_querynl.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]>, Andrew Lunn <[email protected]> *
batadv_querynl.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]>, Andrew Lunn <[email protected]> *
batman_adv.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: ISC */ /* Copyright (C) 2016-2017 B.A.T.M.A.N. contributors: * * Matthias Schiffer
bitops.h +1 -0
@@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: MIT */ /* Minimal Linux-like bit manipulation helper functions * (reduced version for alfred) *
client.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
debugfs.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2009 Clark Williams <[email protected]> +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2009 Clark Williams <[email protected]> * Copyright (C) 2009 Xiao Guangrong <[email protected]> * * This program is free software; you can redistribute it and/or
debugfs.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2009 Clark Williams <[email protected]> +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2009 Clark Williams <[email protected]> * Copyright (C) 2009 Xiao Guangrong <[email protected]> * * This program is free software; you can redistribute it and/or
gpsd/Makefile +1 -0
@@ -1,4 +1,5 @@ #!/usr/bin/make -f +# SPDX-License-Identifier: GPL-2.0 # -*- makefile -*- # # Copyright (C) 2013-2017 B.A.T.M.A.N. contributors
gpsd/alfred-gpsd.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Andrew Lunn, Simon Wunderlich *
gpsd/alfred-gpsd.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Andrew Lunn, Simon Wunderlich *
hash.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
hash.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2006-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Marek Lindner *
list.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 1991-2013 linux kernel contributors +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 1991-2013 linux kernel contributors * * Linus Torvalds, ... *
main.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
netlink.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]>, Andrew Lunn <[email protected]> *
netlink.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2009-2017 B.A.T.M.A.N. contributors: * * Marek Lindner <[email protected]>, Andrew Lunn <[email protected]> *
netsock.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
packet.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich, Sven Eckelmann *
recv.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
send.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
server.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
unix_sock.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
util.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2012-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
vis/Makefile +1 -0
@@ -1,4 +1,5 @@ #!/usr/bin/make -f +# SPDX-License-Identifier: GPL-2.0 # -*- makefile -*- # # Copyright (C) 2013-2017 B.A.T.M.A.N. contributors
vis/vis.c +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
vis/vis.h +2 -2
@@ -1,5 +1,5 @@ -/* -* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: +/* SPDX-License-Identifier: GPL-2.0 */ +/* Copyright (C) 2013-2017 B.A.T.M.A.N. contributors: * * Simon Wunderlich *
Signature · 1 line
2.11.0
PATCH 5/6 alfred: Mark remaining files as GPL-2.0
In reply to Sven EckelmannSome files were not explicitly marked with any license. It is therefore assumed that these are licensed under the GPL-2.0. Make this unambiguous by adding this information direct to the file using the SPDX license identifier. The FSFE REUSE *.license annotation file is used for files which don't allow comments.
---
Cc: Simon Wunderlich <[email protected]>
Cc: Jonathan Haws <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Anatoliy Lapitskiy <[email protected]>
Feel free to request a different license for these files.
--- .gitattributes | 3 +++ CHANGELOG.license | 2 ++ README.license | 2 ++ gpsd/man/alfred-gpsd.8 | 2 ++ man/alfred.8 | 2 ++ vis/man/batadv-vis.8 | 2 ++ 6 files changed, 13 insertions(+) create mode 100644 CHANGELOG.license create mode 100644 README.license
.gitattributes +3 -0
@@ -1,2 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 +# License-Filename: LICENSES/preferred/GPL-2.0 + /.gitignore export-ignore /.gitattributes export-ignore
CHANGELOG.license new file +2 -0
@@ -0,0 +1,2 @@ +SPDX-License-Identifier: GPL-2.0 +License-Filename: LICENSES/preferred/GPL-2.0
README.license new file +2 -0
@@ -0,0 +1,2 @@ +SPDX-License-Identifier: GPL-2.0 +License-Filename: LICENSES/preferred/GPL-2.0
gpsd/man/alfred-gpsd.8 +2 -0
@@ -1,3 +1,5 @@ +.\" SPDX-License-Identifier: GPL-2.0 +.\" License-Filename: LICENSES/preferred/GPL-2.0 .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
man/alfred.8 +2 -0
@@ -1,3 +1,5 @@ +.\" SPDX-License-Identifier: GPL-2.0 +.\" License-Filename: LICENSES/preferred/GPL-2.0 .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
vis/man/batadv-vis.8 +2 -0
@@ -1,3 +1,5 @@ +.\" SPDX-License-Identifier: GPL-2.0 +.\" License-Filename: LICENSES/preferred/GPL-2.0 .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
Signature · 1 line
2.11.0
PATCH 6/6 alfred: Change batman_adv.h license to MIT
In reply to Sven EckelmannThe ISC license is considered as not recommended in "Linux kernel licensing rules". It should only be used for existing code or for importing code from a different project with that license.
But the kernel still has the similar sounding MIT/Expat license under the preferred licenses. Switching to this license for this relatively new file should therefore allow batman-adv to better follow the new licensing rules.
---
Only apply this change after the change was applied in batman-adv.
Please check
* https://www.gnu.org/licenses/license-list.html
* https://en.wikipedia.org/w/index.php?title=ISC_license&oldid=791486092
* https://en.wikipedia.org/w/index.php?title=MIT_License&oldid=809249689
For more information about these licenses.
--- batman_adv.h | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-)
batman_adv.h +17 -11
@@ -1,19 +1,25 @@ -/* SPDX-License-Identifier: ISC */ +/* SPDX-License-Identifier: MIT */ /* Copyright (C) 2016-2017 B.A.T.M.A.N. contributors: * * Matthias Schiffer * -* Permission to use, copy, modify, and/or distribute this software for any -* purpose with or without fee is hereby granted, provided that the above -* copyright notice and this permission notice appear in all copies. +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: * -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +* DEALINGS IN THE SOFTWARE. */ #ifndef _UAPI_LINUX_BATMAN_ADV_H_
Signature · 1 line
2.11.0
PATCH v2 5/6 alfred: Mark remaining files as GPL-2.0
In reply to Sven EckelmannSome files were not explicitly marked with any license. It is therefore assumed that these are licensed under the GPL-2.0. Make this unambiguous by adding this information direct to the file using the SPDX license identifier. The FSFE REUSE *.license annotation file is used for files which don't allow comments.
---
v2:
- removed CHANGELOG.license and README.license
--- .gitattributes | 3 +++ gpsd/man/alfred-gpsd.8 | 2 ++ man/alfred.8 | 2 ++ vis/man/batadv-vis.8 | 2 ++ 4 files changed, 9 insertions(+)
.gitattributes +3 -0
@@ -1,2 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 +# License-Filename: LICENSES/preferred/GPL-2.0 + /.gitignore export-ignore /.gitattributes export-ignore
gpsd/man/alfred-gpsd.8 +2 -0
@@ -1,3 +1,5 @@ +.\" SPDX-License-Identifier: GPL-2.0 +.\" License-Filename: LICENSES/preferred/GPL-2.0 .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
man/alfred.8 +2 -0
@@ -1,3 +1,5 @@ +.\" SPDX-License-Identifier: GPL-2.0 +.\" License-Filename: LICENSES/preferred/GPL-2.0 .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
vis/man/batadv-vis.8 +2 -0
@@ -1,3 +1,5 @@ +.\" SPDX-License-Identifier: GPL-2.0 +.\" License-Filename: LICENSES/preferred/GPL-2.0 .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
Signature · 1 line
2.11.0
Sven Eckelmann
Acked-by Antonio Quartulli Acked-by Matthias Schiffer Acked-by Simon Wunderlich Acked-by Andrew Lunn on v1 6/6Re: [B.A.T.M.A.N.] [PATCH 6/6] alfred: Change batman_adv.h license to MIT
In reply to Sven EckelmannQuoted 11 lines · On Sonntag, 19. November 2017 15:06:02 CET Sven Eckelmann wrote:
The ISC license is considered as not recommended in "Linux kernel licensing rules". It should only be used for existing code or for importing code from a different project with that license.
But the kernel still has the similar sounding MIT/Expat license under the preferred licenses. Switching to this license for this relatively new file should therefore allow batman-adv to better follow the new licensing rules.
Signed-off-by Sven Eckelmann <[email protected]>---
Only apply this change after the change was applied in batman-adv.
The batman-adv change was applied and it received following Acked-by's [1]
Kind regards,
Sven
Quoted 11 lines · CET Sven Eckelmann
Hi,
the kernel community is currently trying to make the licensing status more clear in each file. This is mostly done by adding SPDX license identifiers and defining a set of rules how these license related information has to be stored.
I've used this opportunity to also go through all files of alfred (for example with FSFE's
reuse lint) and to annotate the files according to the "Linux licensing rules" and FSFE's REUSE practices.
Quoted 6 lines
There are two things which could be seen as controversial:
* change of
batman_adv.hto the Linux preferred license (I am waiting for Acks in the batman-adv patchset)
* explicitly mark remaining files as licensed under the GPL-2.0
I've picked this series.
Thank you!!
Simon