[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#970274: lintian: False positive globbing-patterns-out-of-order with *.foo wildcards



Package: lintian
Version: 2.94.0
Severity: normal

Dear Maintainer,

In several Qt packages, we have copyright fragments like this:

Files: examples/*
Copyright: 2017-2020 The Qt Company Ltd.
License: BSD-3-clause

Files: *.qdoc
Copyright: 2015-2020 The Qt Company Ltd.
License: GFDL-NIV-1.3

Lintian complains about this:

W: qtquickcontrols2-opensource-src source: globbing-patterns-out-of-order examples/* *.qdoc

However, the second wildcard (*.qdoc) is there to match all *.qdoc files
in the tree, including those in examples. So it partially overrides the
previous section.

E.g. examples/quickcontrols2/gallery/doc/src/qtquickcontrols2-gallery.qdoc
has GFDL license, not BSD.

If I swap these two sections, it would be considered as BSD, which is wrong.

And I don't want to write "examples/*.qdoc" because the same section also
applies to src/*.qdoc and possibly other sub-directories containing qdoc
files.

The copyright specification says:

> Both [wildcards] match slashes (/) and leading dots, unlike shell globs.
> The pattern *.in therefore matches any file whose name ends in .in anywhere
> in the source tree, not just at the top level.

So I think my use of wildcards is valid, and Lintian tag is wrong.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature


Reply to: