On Mon, Nov 14, 2022 at 08:53:09PM +0100, Miroslav Suchý wrote: > MIT and BSD are very common licenses and can be tricky to convert to SPDX > license identifiers. Just today, I got two questions about it. We have this > covered in FAQ > > https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1#I_have_a_package_with_BSD_or_MIT_in_the_License_field,_how_do_I_convert_that? > > But still, it can be confusing. So let me explain more verbosely than we have in the FAQ. > > > You have a package that is licensed under the "MIT" license. So you run > > > ``` > > $ license-fedora2spdx *'*MIT*'* > Warning: more options how to interpret MIT. Possible options: ['mpich2', > 'libtiff', 'SMLNJ', 'SGI-B-2.0', 'NTP', 'MIT', 'MIT-open-group', 'MIT-feh', > 'MIT-enna', 'MIT-Modern-Variant', 'MIT-CMU', 'ICU', 'HPND', 'BSL-1.0', > 'Adobe-Glyph'] > > Adobe-Glyph Interestingly when I run 'license-fedora2spdx MIT' is just always prints 'mpich2', and the list of suggestions is entirely reversed from what you show here. Why 'mpich2' - it is simply because it is last in the list to be loaded. This is rather misleading and unhelpful IMHO. > ``` > > > Can you choose any license from the output? No. Definitely no. In that case, IMHO, the tool should NOT suggest a license from the list at all, and definitely not arbitrarily suggest the last one it loaded, which is highly likely to be wrong. If it wants to suggest, then suggest the most likely option out of the variants. Or can it suggest an intentionally invalid placeholder eg "{MIT choice}" to make it explicit that the maintainer has to actively make a choice. $ license-fedora2spdx "(GPLv2 or MIT or BSD)" Warning: more options how to interpret MIT. Possible options: ['Adobe-Glyph', 'BSL-1.0', 'BSL-1.0', 'HPND', 'HPND', 'ICU', 'MIT-CMU', 'MIT-Modern-Variant', 'MIT-enna', 'MIT-feh', 'MIT-open-group', 'MIT', 'NTP', 'SGI-B-2.0', 'SMLNJ', 'SMLNJ', 'libtiff', 'libtiff', 'mpich2'] Warning: more options how to interpret BSD. Possible options: ['BSD-2-Clause-FreeBSD', 'BSD-2-Clause-Views', 'BSD-2-Clause', 'BSD-3-Clause', 'BSD-3-Clause', 'BSD-3-Clause', 'BSD-3-Clause'] ( GPL-2.0-only OR {{pick MIT choice}} OR {{pick BSD choice}} ) With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue