On Tuesday 2024-10-29 13:04, Phil Sutter wrote: >> >> Maybe more intuitive to place >> >> +/* SPDX-License-Identifier: GPL-2.0-or-later */ >> >> in the first line of this file? This is what was done in iproute2. > >Fine with me! [...] >When Thomas Gleixner did an equivalent to my patch in commit >0fdebc5ec2ca ("treewide: Replace GPLv2 boilerplate/reference with SPDX - >gpl-2.0_56.RULE (part 1)"), he used double-slash comments, while Greg >Kroah-Hartman chose to use multi-line comments in commit b24413180f56 Where the language offers multiple ways to start comments, parsers must recognize all of them, because humans sure aren't going to change all of their source just for the sake of some puny tool. >BTW: Jan suggested to also (introd)use SPDX-FileCopyrightText label, but >spdx.dev explicitly states: "Therefore, you should not remove or modify >existing copyright notices in files when adding an SPDX ID."[1] What's >your opinion about it? IMO, SPDX markup is popular _because_ everyone took it as a liberty to modify copyright notices — for some interpretation of "modify". The particular interpretation/justification is that boilerplate reduction counts as (re-)formatting rather than a conceptual modification of the owner/year/terms. Anyway, the Linux kernel source was already mass-transformed. LinuxFoundation lawyers surely have an eye on such things (not least because of a recent lawyer-induced patch from Greg KH that drew drama *ahem*). In summary: What's good for the main kernel can't be bad for libnftnl. With the "modify" aspect discussed out of the way, >spdx.dev explicitly states: "Therefore, you should not remove or modify >existing copyright notices in files when adding an SPDX ID."[1] What's >your opinion about it? The https://spdx.dev/learn/handling-license-info/ page introduces the "SPDX-License-Identifier" tag, or "SPDX ID" for short. SPDX-L-I only conveys terms. It is my personal opinion that SPDX-License-Identifier and SPDX-FileCopyrightText[2] *together* can replace the usual copyright notices encountered, pursuant to my observation of the mass transformation (see above). [2] https://spdx.github.io/spdx-spec/v2.3/file-tags/ /* My opinions are not legal advice. */