From 0fd0bea4ebe83c3dbf25bcc6fa1517cb59ee5fa8 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 28 Jan 2019 17:20:36 +0530 Subject: Extend licensing scheme, install & package licenses Licensing was incorrect, incomplete, and at best, ambiguous. Some recipes were picking one license when there were many, others were listing all the licenses and you had to pick one. On the other hand, many projects are licensed under multiple BSD-like licenses, and you must adhere to the terms of all of them, and there was no way to know how from the binary packages. Now we have an extended syntax for declaring the licensing properties of a recipe. The licenses array can now also contain dictionaries with License enums as keys and relative paths to files in the source tree as values. All files specified in this way will be copied into `share/licenses/$recipe_name`. Common license texts which are copied verbatim by projects without adding any specific author/copyright information have been copied into `data/licenses/` and will be copied into `share/licenses/$recipe_name` when a license is specified without a corresponding source tree file. `share/licenses/$recipe_name/README-LICENSE-INFO.txt` contains a disclaimer that this is not legal advice, and uses (AND) and (OR) operators to declare the combinations of licenses you can pick when adhering to the license requirements of a project. `share/licenses/$recipe_name` is, of course, now also copied into the devel binary packages. I have made a best-effort to check and update the licenses in each recipe, but I have probably missed things. Reviews and updates are welcome. I also did not bother updating the toolchain recipe licenses too carefully since we do not ship them with our binary packages; except mingw-runtime.recipe (which does have an updated license). --- recipes/openssl.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/openssl.recipe') diff --git a/recipes/openssl.recipe b/recipes/openssl.recipe index a4f0fccf..d5a2eb73 100644 --- a/recipes/openssl.recipe +++ b/recipes/openssl.recipe @@ -11,7 +11,7 @@ class Recipe(recipe.Recipe): # whenever a new release comes out, so make sure to mirror to fdo when # bumping the release! version = '1.1.1' - licenses = [License.OPENSSL] + licenses = [{License.OPENSSL: ['LICENSE']}] stype = SourceType.TARBALL url = 'https://ftp.openssl.org/source/{0}-{1}.tar.gz'.format(name, version) tarball_checksum = '2836875a0f89c03d0fdf483941512613a50cfb421d6fd94b9f41d7279d586a3d' -- cgit v1.2.3