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