Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] CC-PDM-1.0 is not recognized with lint command #1140

Open
gondolyr opened this issue Feb 15, 2025 · 1 comment
Open

[Bug] CC-PDM-1.0 is not recognized with lint command #1140

gondolyr opened this issue Feb 15, 2025 · 1 comment

Comments

@gondolyr
Copy link

gondolyr commented Feb 15, 2025

System Information

  • REUSE tool version: 5.0.2
  • Python version: 3.10.12
  • uname -a output:
    Linux ubuntu 6.9.3-76060903-generic #202405300957~1738770968~22.04~d5f7c84 SMP PREEMPT_DYNAMIC Wed F x86_64 x86_64 x86_64 GNU/Linux
    

Description

I have marked a media file with the CC-PDM-1.0 license and the lint command is outputting the following:

$ reuse lint
reuse.project - WARNING - Could not resolve SPDX License Identifier of LICENSES/CC-PDM-1.0.txt, resolving to CC-PDM-1.0. Make sure the license is in the license list found at <https://spdx.org/licenses/> or that it starts with 'LicenseRef-', and that it has a file extension.
# BAD LICENSES

'CC-PDM-1.0' found in:
* LICENSES/CC-PDM-1.0.txt
* doc/bmbf_en.jpg


# SUMMARY

* Bad licenses: CC-PDM-1.0
* Deprecated licenses: 0
* Licenses without file extension: 0
* Missing licenses: 0
* Unused licenses: 0
* Used licenses: CC-BY-SA-4.0, LGPL-2.1-or-later, MPL-2.0, CC-PDM-1.0, Apache-2.0, MIT
* Read errors: 0
* Files with copyright information: 121 / 121
* Files with license information: 121 / 121

Unfortunately, your project is not compliant with version 3.3 of the REUSE Specification :-(


# RECOMMENDATIONS

* Fix bad licenses: At least one license in the LICENSES directory and/or
  provided by 'SPDX-License-Identifier' tags is invalid. They are either not
  valid SPDX License Identifiers or do not start with 'LicenseRef-'. FAQ about
  custom licenses: https://reuse.software/faq/#custom-license

The tool was able to download the license from https://github.com/spdx/license-list-data/blob/main/text/CC-PDM-1.0.txt and is listed on the SPDX website here: https://spdx.org/licenses/CC-PDM-1.0.html.

I see that the CC-PDDC license is listed as a supported license with reuse supported-licenses, however, I do not see it listed on the Creative Commons website so I am assuming CC-PDDC is a deprecated license.
https://creativecommons.org/public-domain/

This bug is blocking https://codeberg.org/libobscura/libobscura/pulls/18.

Steps to Reproduce

  1. Download and install the 5.0.2 REUSE tool.
  2. Create a project and add any kind of file.
  3. Specify the license of the file with the following header (or .license file) information:
    SPDX-FileCopyrightText: NONE
    
    SPDX-License-Identifier: CC-PDM-1.0
    
  4. Run reuse lint.

Additional Resources

@gondolyr
Copy link
Author

gondolyr commented Feb 15, 2025

It seems CC-PDM-1.0 was added to the license-list-data after the 5.0.2 REUSE tool release.


Solution to fix the bug

The licenses.json file needs to be updated from 3.25.0 to 3.26.0 to support CC-PDM-1.0, among other license additions/changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant