Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conclude binary license based on sources' licenses #3

Open
swinslow opened this issue Oct 4, 2020 · 0 comments
Open

Conclude binary license based on sources' licenses #3

swinslow opened this issue Oct 4, 2020 · 0 comments

Comments

@swinslow
Copy link
Owner

swinslow commented Oct 4, 2020

Currently, cmake-spdx can determine:

  • a source code file's license (if it has an SPDX-License-Identifier: tag); and
  • which source code file(s) are built into a binary file (to the extent that the CMake file API response contains that info).

It would be interesting to explore whether this can be used to auto-conclude the binary file's license -- in other words, to fill in LicenseConcluded with some value other than NOASSERTION.

The most obvious approach would be to simply AND together the licenses of all the source files and/or libraries that are used as inputs. So, for instance, if a binary has four source file inputs, three of which contain Apache-2.0 licenses and the other containing ISC, then cmake-spdx could follow the relationships to determine that those are the four files used to create the binary, and then conclude the binary's license as Apache-2.0 AND ISC.

@swinslow swinslow mentioned this issue Oct 4, 2020
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant