Page MenuHomeFreeBSD

SPDX: Add canonical licenses for indirect SPDX references in the tree
AcceptedPublic

Authored by imp on Mar 11 2021, 9:18 PM.

Details

Reviewers
jhb
emaste
gnn
Summary

Add the SPDX 2.2 specification we follow, as well as the acceptable licenses in
the FreeBSD tree to be referneced indirectly. Write up this policy and include
it in the README.txt file.

Please note: BSD-2-Clause-FreeBSD and BSD-2-Clause-NetBSD have been omitted
from this list as they have been deprecated by SPDX. It's unclaer what the
proper thing to do here is, so err on the side of caution by requiring the
exact licenses to be included in these files for now.

Also note: Do not go removing license text from files in the FreeBSD
tree just yet.

Test Plan

Preliminary framework for in-tree indirect license references

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 37783
Build 34672: arc lint + arc unit

Event Timeline

imp requested review of this revision.Mar 11 2021, 9:18 PM
imp added reviewers: jhb, emaste.
imp removed a reviewer: Core Team.

Note: all the licenses were taken from SPDX's text version of their web site.

gnn added a subscriber: gnn.

LGTM

This revision is now accepted and ready to land.Mar 11 2021, 11:22 PM

Can we just provide a link to SPDX-specification-2-2.pdf rather than including the PDF?

We can include portions of it in README.md/LICENSE.md etc.?

Can we just provide a link to SPDX-specification-2-2.pdf rather than including the PDF?

We can include portions of it in README.md/LICENSE.md etc.?

I'm unsure. I'm still seeking advice for which of the many different ways this is done will fit the project's needs best.

I think we can cache a copy of the pdf somewhere against future need, but point to the spdx.org pdf, though. How much of the most important sections we need to include and where is an open question for me at the moment.

FWIW, I got the BSD-1-Clause License approved by OSI, Approval is not terribly important as we only use it for a couple of files in the tree.
OTOH the very simplistic license would be useful to adopt for source header files (*.h).

share/license/text/BSD-1-Clause.txt
1

FWIW, You should replace mentions of BSDI with [Name of Organization], and the stuff like the year as in:

https://opensource.org/licenses/BSD-1-Clause

9

Same comment from line 1 applies here.

share/license/text/BSD-1-Clause.txt
1

I just pulled in what the SPDX guys published verbatim.

It is a question I have out to a friend, though, since I don't think any of these files should have a copyright in them. That should always be in the source.