fsfe / reuse-tool

reuse is a tool for compliance with the REUSE recommendations.
https://reuse.software
368 stars 139 forks source link

Missinterpreting license #1001

Closed buhtz closed 1 month ago

buhtz commented 1 month ago

My application do create a css file. That is done by a python file. The python file is GPL licensed. The generated css file will be CC0. Because of that the GPL-licensed Python file do contain a CC0 license string in a variable to inject it into the css file to generate.

Reuse interpret this as two licenses.

FileName: ./src/hyperorg/stylecss.py
SPDXID: SPDXRef-863702eccc7b8a9b1808e6f93b2510b9
FileChecksum: SHA1: 58cbaecb559b9eeefb770b106e2e3af962cc5d2e
LicenseConcluded: NOASSERTION
LicenseInfoInFile: CC0-1.0
LicenseInfoInFile: GPL-3.0-only
FileCopyrightText: <text>SPDX-FileCopyrightText: © 2023 Christian BUHTZ <c.buhtz@posteo.jp></text>

The relevant part of the python file (permalink to original file):

# SPDX-FileCopyrightText: © 2023 Christian BUHTZ <c.buhtz@posteo.jp>
#
# SPDX-License-Identifier: GPL-3.0-only
#
# This file is part of the program "Hyperorg" which is released under GNU
# General Public License v3 (GPLv3).
# See folder LICENSES or go to <https://www.gnu.org/licenses/#GPL>.

# [SNIPPED]

_CSS_LICENSE = f'''
  SPDX-FileCopyrightText: © 2023 Christian BUHTZ <c.buhtz@posteo.jp>
  SPDX-License-Identifier: CC0-1.0

  This file is part of the program "{hyperorg.__name__}". Unlike the program,
  this file is licensed under Creative Commons Zero v1 (CC0-1.0). See folder
  LICENSES or go to <https://creativecommons.org/publicdomain/zero/1.0/>'''

# [SNIPPED]
mxmehl commented 1 month ago

You can exclude specific lines from REUSE compliance testing, a feature which was created for exactly that use case.

Please refer to this FAQ. I assume this fully fixes your problem so I take the liberity of closing the issue.