Debian Bug report logs - #1000319
lintian should provide an error when Debian::Copyright fails

version graph

Package: lintian; Maintainer for lintian is Debian Lintian Maintainers <[email protected]>; Source for lintian is src:lintian (PTS, buildd, popcon).

Reported by: Yadd <[email protected]>

Date: Sun, 21 Nov 2021 13:27:02 UTC

Severity: wishlist

Found in version lintian/2.111.0

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#1000319; Package lintian. (Sun, 21 Nov 2021 13:27:03 GMT) (full text, mbox, link).


Acknowledgement sent to Yadd <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Lintian Maintainers <[email protected]>. (Sun, 21 Nov 2021 13:27:03 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Yadd <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: lintian should provide an error when Debian::Copyright fails
Date: Sun, 21 Nov 2021 14:23:17 +0100
Package: lintian
Version: 2.111.0
Severity: wishlist

Hi Felix,

lintian should provide an error when Debian::Copyright fails and
debian/copyright declares to be compatible with
https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Example with salsa.debian.org/js-team/uglifyjs

Cheers,
Yadd



Information forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#1000319; Package lintian. (Sun, 21 Nov 2021 16:33:02 GMT) (full text, mbox, link).


Acknowledgement sent to Felix Lechner <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Lintian Maintainers <[email protected]>. (Sun, 21 Nov 2021 16:33:02 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Felix Lechner <[email protected]>
To: Yadd <[email protected]>, [email protected]
Cc: Debian Bug Tracking System <[email protected]>
Subject: Re: Bug#1000319: lintian should provide an error when Debian::Copyright fails
Date: Sun, 21 Nov 2021 08:28:33 -0800
Hi Yadd,

On Sun, Nov 21, 2021 at 5:27 AM Yadd <[email protected]> wrote:
>
> lintian should provide an error when Debian::Copyright fails

Which failure did you have in mind, please? Lintian parses
machine-readable files—which is what uglifyjs ships [1]—in the nearby
check Debian::Copyright::Dep5. [2] Thanks!

Kind regards
Felix Lechner

[1] https://tracker.debian.org/media/packages/u/uglifyjs/copyright-2.8.29-8
[2] https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Debian/Copyright/Dep5.pm



Information forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#1000319; Package lintian. (Sun, 21 Nov 2021 16:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Felix Lechner <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Lintian Maintainers <[email protected]>. (Sun, 21 Nov 2021 16:33:04 GMT) (full text, mbox, link).


Information forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#1000319; Package lintian. (Sun, 21 Nov 2021 17:12:02 GMT) (full text, mbox, link).


Acknowledgement sent to Yadd <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Lintian Maintainers <[email protected]>. (Sun, 21 Nov 2021 17:12:02 GMT) (full text, mbox, link).


Message #20 received at [email protected] (full text, mbox, reply):

From: Yadd <[email protected]>
To: Felix Lechner <[email protected]>, [email protected]
Subject: Re: Bug#1000319: lintian should provide an error when Debian::Copyright fails
Date: Sun, 21 Nov 2021 18:08:41 +0100
Le 21/11/2021 à 17:28, Felix Lechner a écrit :
> Hi Yadd,
> 
> On Sun, Nov 21, 2021 at 5:27 AM Yadd <[email protected]> wrote:
>>
>> lintian should provide an error when Debian::Copyright fails
> 
> Which failure did you have in mind, please? Lintian parses
> machine-readable files—which is what uglifyjs ships [1]—in the nearby
> check Debian::Copyright::Dep5. [2] Thanks!
> 
> Kind regards
> Felix Lechner

I wrote some scripts which use Debian::Copyright to automatize some JS
things, but when Debian::Copyright is unable to read debian/copyright,
automatic tools fail.

Here is a simple test:

  my $c = Debian::Copyright->new();
  $c->read('debian/copyright');



Information forwarded to [email protected], Debian Lintian Maintainers <[email protected]>:
Bug#1000319; Package lintian. (Sun, 21 Nov 2021 17:39:02 GMT) (full text, mbox, link).


Acknowledgement sent to Felix Lechner <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Lintian Maintainers <[email protected]>. (Sun, 21 Nov 2021 17:39:02 GMT) (full text, mbox, link).


Message #25 received at [email protected] (full text, mbox, reply):

From: Felix Lechner <[email protected]>
To: [email protected]
Cc: Yadd <[email protected]>
Subject: Re: Bug#1000319: lintian should provide an error when Debian::Copyright fails
Date: Sun, 21 Nov 2021 09:35:02 -0800
Hi,

On Sun, Nov 21, 2021 at 9:08 AM Yadd <[email protected]> wrote:
>
> I wrote some scripts which use Debian::Copyright

Sorry, I did not realize you were referring to functionality provided
by libdebian-copyright-perl.

If you are just extracting information—Lintian does the validation—you
may be better off using a better parser. I could upload mine to the
archive, if you would like to try it. [1] For starters, field names
are case-insensitive (a requirement of the Deb822 spec). There are
also many field extraction functions, such as '->trimmed_list' [2]
(with an optional separator). The way to check for the presence of a
field is with '->declares'. [3] Most significantly, there are no NULL
pointers. [4]

It would be a little bit of a philosophical stretch for Lintian to
alert users to problems with other parsers, rather than the document
itself.

Kind regards
Felix Lechner

[1] Plus two surrounding files,
https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Deb822/Section.pm
[2] https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Team/PkgJs/Testsuite.pm#L55-56
[3] https://salsa.debian.org/lintian/lintian/-/blob/master/lib/Lintian/Check/Debian/Copyright/Dep5.pm#L404-408
[4] https://www.infoq.com/presentations/Null-References-The-Billion-Dollar-Mistake-Tony-Hoare/



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 08:33:43 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.