THE SPDX WIKI IS NO LONGER ACTIVE. ALL CONTENT HAS BEEN MOVED TO https://github.com/spdx
Technical Team/Use Cases/2.0/Consuming code snippets
From SPDX Wiki
< Technical Team | Use Cases/2.0
Revision as of 13:21, 7 March 2013 by MartinMichlmayr (Talk | contribs)
- Title: Consuming Code Snippets
- Primary Actor: Committer / submitter of code to either an open source project or a commercial product
- Goal in Context: To include small amounts of code with implement specific functionality or algorithms developed by the open source community
- Stakeholders and Interests:
- Committers to the open source project:
- Leverage pre-existing algorithms or functionality (e.g. MD5 Hash Algorithm) within a license compatible with the open source license
- Submitter to a commercial product:
- Leverage pre-existing algorithms or functionality (e.g. MD5 Hash Algorithm) within a license compatible with the commercial license
- Downstream consumers of the resultant software:
- Adhere to the license obligations of the code snippet
- Legal/compliance for the consuming organization:
- Adhere to the license obligations of the code snippet
- Committers to the open source project:
- Preconditions:
- Open source project containing code snippet is available/accessible
- Licensing for the project containing the code snippet is available or the author can be contacted for permission to use
- Main Success Scenario: Given that a snippet within a file (subset of file) is determined to have originated from somewhere else under some license, licensing information is included in the SPDX file provided with the source code product along with information on the location of the code snippet. Downstream consumer aggregate the license information from the Snippet with the license information from the rest of the package(s) to determine the full obligations. (Regardless of whether the snippet includes comments indicating the origin of the code snippets.)
- Failed End Condition:
- Committer / submitter does not indicate the inclusion of the code snippet
- Originator of the code snippet does not provide adequate licensing information
- If insufficient info to determine if a conflict exists between the license used for the code snippet and the license for the large component
- Trigger:
- Development of code
- Example: A file implementing a verification algorithm specific to a package needs to implement an hash algorithm in a compatible manner to another open source project. The code implementing the hash is copied into the source file which implements the verification algorithm.