Details
-
User Story
-
Resolution: Done
-
P3: Somewhat important
-
None
-
None
-
c49c1b7a93 (qt/qttools/dev) c49c1b7a93 (qt/tqtc-qttools/dev) 3afc776ead (qt/qttools/6.4) 3afc776ead (qt/tqtc-qttools/6.4)
Description
Now that Qt sources ship explicit licenses in LICENSES/*.txt, qtattributionsscanner could use these licenses instead of an explicit "LIcenseFile" entry too. This would allow us to avoid multiple literal copies of say the GPL.
Implementation proposal
If a qt_attributions.json entry misses LicenseFile or LicenseFiles information, qtattributionsscanner walks up the hierarchy for a directory called LICENSES. If it finds one, it checks whether there are files matching all existing entries in the LicenseId entry. If it finds all licenses listed there, it uses the files from there.
In case only some or no licenses are found, an error is printed.
Attachments
Issue Links
- resulted from
-
QTBUG-67283 Use SPDX-License-Identifier: XXX in source files
- Closed
For Gerrit Dashboard: QTBUG-104126 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
438347,3 | qtattributionsscanner: Read license files from LICENSES directory | dev | qt/qttools | Status: MERGED | +2 | 0 |
438588,2 | qtattributionsscanner: Read license files from LICENSES directory | 6.4 | qt/qttools | Status: MERGED | +2 | 0 |
438882,2 | Add license text file for Creative Commons Zero (CC0) 1.0 | dev | qt/qtbase | Status: MERGED | +2 | 0 |
438945,3 | Add license text file for Creative Commons Zero (CC0) 1.0 | dev | qt/qtpositioning | Status: MERGED | +2 | 0 |
439109,2 | Add license text file for Creative Commons Zero (CC0) 1.0 | 6.4 | qt/qtpositioning | Status: MERGED | +2 | 0 |
439111,2 | Add license text file for Creative Commons Zero (CC0) 1.0 | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |