Purple Pen licence

Hello,

I would like to thank you for your work. Purple Pen is a beautiful tool that enables clubs around the world to make great things.

I have noticed something about the licensing of the petergolde/PurplePen repository that I think is worth raising. The website says, under Contribute, that “Purple Pen is open source software”. The repository does not say this anywhere a reader, or GitHub itself, can see:

  • 272 of the 2544 .cs files in master carry a full BSD-3-Clause header. The remaining 2272 carry no licence statement at all.
  • There is no LICENSE or COPYING file in any branch, so GitHub shows no licence for the repository.

So the licence is real, but it is partial and it is invisible at the level where people look first. Someone who wants to contribute, or to package the program, has to open a source file at random and hope it is one of the 272.

One thing I ran into while looking: the repository does not contain only your code. src/DotSpatialProjectionsLite is LGPL-2.1 and src/CrashReporter.NET is Ms-PL, and both are built into the program; the other vendored directories are Apache-2.0. So a single statement covering the whole repository would not be accurate, and those two carry conditions the rest do not.

Both are worth a second look, because both upstreams have relicensed since your copies were taken (DotSpatial to MIT in 2016, CrashReporter.NET in 2017), while your own DotSpatialProjectionsLite fork, taken in 2014, is still published as LGPL-2.1. Re-importing from the current upstreams would remove those conditions entirely. Whichever licence you then choose for your own code is yours to decide, and it would sit comfortably with everything around it.

So what I suggest is:

  • stating that choice in a LICENSE file in the root of the repository, and mentioning it in README.md
  • saying there that DotSpatialProjectionsLite, CrashReporter.NET, PdfiumViewer and RobotoFont are under the licences named in their own directories
  • deciding what to do about the two older copies, since re-importing them would remove the only conditions in the tree that your own choice has to work around
  • listing whatever those four end up being in the copyright file the Linux packages ship, which today names .NET, SkiaSharp, HarfBuzz and PDFium and none of the four

For what it is worth, BSD-3-Clause would be the least work, since it is already in your file headers, so writing it down would decide nothing new. That is an observation, not a request.

There is a practical reason for all of this beyond tidiness. Linux distributions will not accept a package whose licence cannot be established from its source; Debian, Fedora and Flathub all require it. The .deb you publish today ships /usr/share/doc/purplepen/copyright, which states BSD-3-Clause and says the full text is “in the source distribution”, but the source distribution does not contain that text, and the file mentions none of the four vendored components. BSD, Apache, MIT and LGPL all require their text to travel with the binary, so this already affects the packages you ship, not only a hypothetical future one.


None of this is urgent while the port to Avalonia is in progress. I bring it up now because version 4 looks like the natural moment for it: a new major version is easier to announce, and easier to get packaged, when the licence is already written down.

Thank you again for Purple Pen.