Skip to content

cargo deny: use -only and -or-later suffixes for GPL licenses #99

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

Merged
merged 1 commit into from
Aug 22, 2025

Conversation

hnez
Copy link
Member

@hnez hnez commented Aug 15, 2025

The cargo deny command has recently learned these suffixes, resulting in our current license allowances no longer matching:

 error[rejected]: failed to satisfy license requirements
   ┌─ /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libsystemd-sys-0.9.3/Cargo.toml:22:12
   │
22 │ license = "LGPL-2.1-or-later WITH GCC-exception-2.0"
   │            ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   │            │
   │            rejected: license is not explicitly allowed
   │
   ├ LGPL-2.1-or-later - GNU Lesser General Public License v2.1 or later:
   ├   - OSI approved
   ├   - FSF Free/Libre
   ├   - Copyleft
   ├ libsystemd-sys v0.9.3
   └── systemd v0.10.0
       └── tacd v0.2.0

 warning[license-not-encountered]: license was not encountered
   ┌─ /home/runner/work/tacd/tacd/deny.toml:38:6
   │
38 │     "LGPL-2.1 WITH GCC-exception-2.0",
   │      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ unmatched license allowance

Use the license names with suffixes.

This fixes half of the build errors in the recent scheduled job run.
The other half is addressed in #98.

@hnez hnez requested a review from KarlK90 August 15, 2025 05:44
@hnez
Copy link
Member Author

hnez commented Aug 22, 2025

I get weekly mails about the failing tests. And I can not merge here without approval.
Can someone else have a look at this, maybe @SmithChart?

Copy link
Member

@SmithChart SmithChart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds like a reasonable change to the license definitions. LGTM.

@SmithChart
Copy link
Member

Can you rebase so we see a successful build before the merge?

The cargo deny command has recently learned these suffixes,
resulting in our current license allowances no longer matching:

     error[rejected]: failed to satisfy license requirements
       ┌─ /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libsystemd-sys-0.9.3/Cargo.toml:22:12
       │
    22 │ license = "LGPL-2.1-or-later WITH GCC-exception-2.0"
       │            ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
       │            │
       │            rejected: license is not explicitly allowed
       │
       ├ LGPL-2.1-or-later - GNU Lesser General Public License v2.1 or later:
       ├   - OSI approved
       ├   - FSF Free/Libre
       ├   - Copyleft
       ├ libsystemd-sys v0.9.3
       └── systemd v0.10.0
           └── tacd v0.2.0

     warning[license-not-encountered]: license was not encountered
       ┌─ /home/runner/work/tacd/tacd/deny.toml:38:6
       │
    38 │     "LGPL-2.1 WITH GCC-exception-2.0",
       │      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ unmatched license allowance

Use the license names with suffixes.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
@hnez hnez force-pushed the cargo-deny-2025-08-15 branch from 42e1048 to 0c9fbb9 Compare August 22, 2025 06:33
@hnez hnez merged commit 0be0427 into linux-automation:main Aug 22, 2025
10 checks passed
@hnez hnez deleted the cargo-deny-2025-08-15 branch August 22, 2025 06:39
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

Successfully merging this pull request may close these issues.

3 participants