templates: Convert license statements to SPDX headers
ClosedPublic

Authored by kossebau on Feb 25 2020, 6:26 AM.

Details

Summary

Also consistently use LGPL-2.1-or-later as default license

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.Feb 25 2020, 6:26 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptFeb 25 2020, 6:26 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
kossebau requested review of this revision.Feb 25 2020, 6:26 AM

Looks good to me and I agree that it is a good idea to consistently license everything as LGPL-2.1-or-later.
My only question is, how is the X-KDE-PluginInfo-License value is evaluated? Are we free to write any value? Or do we have to extend some mechanism? I would be great to also use SPDX identifiers there!

templates/cpp-plasmoid/src/package/metadata.desktop
96

does this work with our PluginInfo mechanism? actually, I did not yet look into the SPDX license handling in desktop files or any other tooling for outbound licenses for libraries, plugins or applications; same question for the same changes below in the desktop files

My only question is, how is the X-KDE-PluginInfo-License value is evaluated? Are we free to write any value? Or do we have to extend some mechanism? I would be great to also use SPDX identifiers there!

From what I can tell, Plasma itself currently ignores the license info, e.g. there is no display of About data for plasmoids or wallpaper plugins (sadly, IMHO, but no resources to fix myself).

In general X-KDE-PluginInfo+* is feed to KPluginMetaData, which just holds the raw string. The string itself is evaluated e,g,in KAboutPluginDialog via KAboutLicense::byKeyword(), the only place I know about currently (besides deprecated KAboutData::fromPluginMetaData, which does the same KAboutLicense::byKeyword).

KAboutLicense itself once was already extended to support keywords (see D6672), but needs update to latest SPDX identifiers,

templates/cpp-plasmoid/src/package/metadata.desktop
96

Hmpf, this is outdated version, forgot to append to commit before arc diff.
Should be "LGPLv21+" as I had found later that KAboutLicense still only supports the meanwhile deprecated spdx key variants.
Will update next.

kossebau updated this revision to Diff 76679.Feb 29 2020, 11:34 AM

Update license keys to what KAboutLicense currently supports

kossebau marked an inline comment as done.Feb 29 2020, 11:34 AM
cordlandwehr accepted this revision.Feb 29 2020, 11:47 AM
This revision is now accepted and ready to land.Feb 29 2020, 11:47 AM
This revision was automatically updated to reflect the committed changes.