Page MenuHomeFreeBSD

Add support for Public Domain (non-)license
ClosedPublic

Authored by AMDmi3 on Nov 13 2015, 2:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 27, 6:34 PM
Unknown Object (File)
Sat, Oct 25, 7:27 AM
Unknown Object (File)
Sep 29 2025, 1:30 AM
Unknown Object (File)
Sep 13 2025, 1:55 AM
Unknown Object (File)
Sep 2 2025, 6:02 AM
Unknown Object (File)
Sep 1 2025, 7:54 PM
Unknown Object (File)
Jul 1 2025, 11:01 PM
Unknown Object (File)
Jun 30 2025, 9:45 AM
Subscribers

Details

Summary

One of most used custom licenses in portstree is public domain. Add
framework support for it, saving ports from redefining name/text/perms
for it.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

AMDmi3 retitled this revision from to Add support for Public Domain (non-)license.
AMDmi3 updated this object.
AMDmi3 edited the test plan for this revision. (Show Details)
mat requested changes to this revision.Nov 13 2015, 3:11 PM
mat added a reviewer: mat.
mat added a subscriber: mat.

It comes up every semester, but, hey...
It is not a license, software that are in the public domain have no license, the rights have either expired or been forfeited. (well, in our case, forfeited is most common.)
I would agree with something along the lines of a NONE license group, something like:

_LICENSE_NAME_NONE= No license (public domain or such)
_LICENSE_GROUPS_NONE= whatever is appropriate.

This revision now requires changes to proceed.Nov 13 2015, 3:11 PM
danfe added inline comments.
games/naev-data/Makefile
27 ↗(On Diff #10160)

Regarding that talks on "PD vs. CC0", shall we retain the above link (and this) somewhere for reference? It might be useful if we ever start making the whole framework more legally clean.

It is not a license, software that are in the public domain have no license, the rights have either expired or been forfeited. (well, in our case, forfeited is most common.)

No one really cares it's not a license. Arch, Gentoo, Fedora, even Debian (which is quite picky about copyright stuff) all list public domain as license. You could say we're listing any kind of conditions on which ports may be distributed. "Licenses" for short.

I would agree with something along the lines of a NONE license group, something like:
_LICENSE_NAME_NONE= No license (public domain or such)

This is utterly incorrect, as no license and public domain are essentially opposite things. No license actually means you cannot distribute (use, modify, ...) the package at all as author has not explicitly allowed you to. Public domain explicitly means you can do whatever you want with it.

games/naev-data/Makefile
27 ↗(On Diff #10160)

As far as I remember, standard licenses say something like "license is well known, please read on web", and this message falls under this statement well enough. If we further improve the framework, we may define links for each license, and http://www.teachingcopyright.org/handout/public-domain-faq could be a candidate link for PD.

Just checked, even FOSSology treats PD as a license.

grep Public-domain install/db/licenseref.sql
INSERT INTO license_ref (rf_pk, rf_shortname, rf_text, rf_url, rf_add_date, rf_copyleft, "rf_OSIapproved", rf_fullname, "rf_FSFfree", "rf_GPLv2compatible", "rf_GPLv3compatible", rf_notes, "rf_Fedora", marydone, rf_active, rf_text_updatable, rf_md5, rf_detector_type) VALUES (512, 'Public-domain', 'Public domain software is software that is not copyrighted. If the source code is ...

I agree with this. The author put the license of "public domain" on their code, WHATEVER THAT MEANS, it is not up to us to decide if that is a "real license". It's a per-government legal thing, just like timezones. We should just pass along the license the author placed on it and let other people care about the impact on their systems. We're already distributing packages and distfiles for these, so there's no reason to not continue to do so. Adding a boilerplate PD license lets us remove excess logic and lets users actually find which ports/packages they have installed that are in this ambiguous "public domain" versus the current situation of not having a consistent "license" for it.

As a side note, I would prefer a more clear PUBLIC_DOMAIN name rather than the obscure PD.

As a side note, I would prefer a more clear PUBLIC_DOMAIN name rather than the obscure PD.

PD is a well-known acronym and most licenses are short acronyms anyway, so I don't see a good reason for it. But may do if you insist.

Also, step back and consider what the purpose of the license framework even is. Not advertising to the user what the author considered the license to be defeats the purpose of the framework.

Also, step back and consider what the purpose of the license framework even is. Not advertising to the user what the author considered the license to be defeats the purpose of the framework.

The only thing it is somewhat used for is restrict distribution of binary packages and maybe distfiles, other than that, I have no idea.

In D4149#87191, @mat wrote:

Also, step back and consider what the purpose of the license framework even is. Not advertising to the user what the author considered the license to be defeats the purpose of the framework.

The only thing it is somewhat used for is restrict distribution of binary packages and maybe distfiles, other than that, I have no idea.

As a vendor, I used it to make a matrix of all licensed packages we had in the system (both in ports and base). The lack of a valid LICENSE on most ports we had (which are all old and likely predate a lot of the framework anyway) meant a lot of manual 'make extract' and grepping on my part. It was tedious. Having the package state what known license is on it helps a lot. I know the word 'license' is loaded and when taken absolutely/literally may not work with "public domain", but it still conveys what the author's wishes with the code are. "Public domain" to many people means "not likely to be sued for using it" vs "no license" meaning "we may get sued for this".

bapt added a reviewer: bapt.
bapt added a subscriber: bapt.

I think we should accept it as is, the GROUP cannot be used to define it as a non license given it is used to express compatiblity and for instance the FSF clearly state Public domain work while not being under a real license is compatible.

Note that this license should not be used for the "unlicense" license or the CC0

In D4149#103396, @bapt wrote:

Note that this license should not be used for the "unlicense" license or the CC0

Sure, the next step planned was to add a bunch of CC licenses including CC0, as they are used widely and may impose restrictions (CCbyNC & friends)