Add SPDX license id and copyright banners to source files needing them#545
Conversation
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
|
Assuming PR #546 enables the CI checks to pass for this PR in the near future, my intent is that this PR will be preferred over the earlier #543 for two reasons:
[1] https://github.com/jafingerhut/test-spdx-checker |
…ght-banners-to-source-files
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
|
@chrispsommers @smolkaj I would like to talk about this PR at the next P4Runtime API meeting, in hopes of merging it, or deciding how to change it before it is merged. |
For sure, it'll be on the agenda. Thanks! |
|
From addlicense:
So why are your scripts required, why can't |
My spdx-check.py script is not required. You can call In a repo with 50 files that already have SPDX-License-Identifier lines, and 200 that do not, where you want to put a reasonable copyright author and year that differs across those 200 files, writing all of the Also, |
|
Got it, I didn't realize you needed arguments to addlicense. Your script seems very helpful! |
|
Copying this comment from Steffen, accidentally added to a different PR: Question for Linux foundation from the P4 API WG discussion: What is their recommendation on who the copyright author should be? Should we use individual authors or a group ("The P4Runtime authors")? Should we have a CONTRIBUTORS file? |
|
This has been stale for a while. Do we want to pick it back up? Should we mark it obsolete? |
|
WG update: currently not a priority, but Andy may pick this back up in a coupel of months. |
…ght-banners-to-source-files Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
|
@chrispsommers @smolkaj I fixed the conflicts that had arisen between this PR and latest main branch version since last year, but made no other changes. I think it is reasonable to review it as it is now, and merge if approved. If later we learn that the Linux Foundation has specific recommendations on what name to use on the copyright of files, we can make appropriate modifications at that time. This PR adds a name for the copyright of several files that did not already have a name. In all cases, I used the name of the person who first added the file to this repository, and the year that they added it, which seems legally safe. |
Signed-off-by: Andy Fingerhut <andy_fingerhut@alum.wustl.edu>
Status of this PR as of 2026-Apr-11:
I think it is reasonable to review this as it is now, and merge it if approved. The copyright names I have added to a few of the files match the name of the person who added the file to this repository, and the year they added it.
If later we learn from advice from someone at the Linux Foundation that some other name/year should be used (which seems unlikely to me), we can change it then.
Older status of this PR as of 2025-Mar-05:
Waiting on Andy finding someone that can give legal advice to P4.org as a whole on what the Copyright author and year should be across p4lang repositories.
What is their recommendation on who the copyright author should be? Should we use individual authors or a group ("The P4Runtime authors")? Should we have a CONTRIBUTORS file?