Article View: linux.debian.bugs.dist
Article #6035Bug#1155194: debcargo: GPL-2.0-only SPDX identifier is not recognized.
From: Mike Hommey
Date: Wed, 25 Nov 2026 04:40
Date: Wed, 25 Nov 2026 04:40
30 lines
2636 bytes
2636 bytes
Package: debcargo
Version: 2.8.4-6
Severity: normal
Dear Maintainer,
The GPL-2.0 identifier is deprecated in favor of GPL-2.0-only[1], but the
latter is not recognized by debcargo, which outputs this in
copyright.debcargo.hint:
License: GPL-2.0-only
FIXME (overlay): Unrecognized crate license, please find the full license text in the rest of the crate source code and copy-paste it here
1. https://spdx.org/licenses/GPL-2.0-only.html
The following patch should be enough to make it recognized:
```
--- a/src/debian/copyright.rs
+++ b/src/debian/copyright.rs
@@ -268,6 +268,7 @@ fn get_licenses(license: &str) -> Result<Vec<License>> {
("bsd-3-clause", include_str!("licenses/BSD-3-Clause")),
("cc0-1.0", include_str!("licenses/CC0-1.0")),
("gpl-2.0", include_str!("licenses/GPL-2.0")),
+ ("gpl-2.0-only", include_str!("licenses/GPL-2.0")),
("gpl-3.0", include_str!("licenses/GPL-3.0")),
("isc", include_str!("licenses/ISC")),
("lgpl-2.0", include_str!("licenses/LGPL-2.0")),
```
Technical Details
Message-ID:
<O3cXv-e0gt-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Mike Hommey <mh+reportbug@glandium.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1155194: debcargo: GPL-2.0-only SPDX identifier is not recognized. Date: Wed, 25 Nov 2026 05:40:01 +0100 Message-ID: <O3cXv-e0gt-1@gated-at.bofh.it> X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Wed Nov 25 04:35:08 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.651 Reply-To: Mike Hommey <mh+reportbug@glandium.org>, 1155194@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-rust-maintainers@alioth-lists.debian.net X-Debian-Pr-Message: report 1155194 X-Debian-Pr-Package: debcargo X-Debian-Pr-Source: rust-debcargo Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: reportbug 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2004819 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 30 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Wed, 25 Nov 2026 13:33:29 +0900 X-Original-Message-ID: <179558120929.3332087.16414365162413661170.reportbug@goemon>