#1140537 licenserecon: mishandles wildcards

Package:
licenserecon
Source:
licenserecon
Description:
Reconcile licenses from debian/copyright against licensecheck
Submitter:
Julian Andres Klode
Date:
2026-06-29 15:39:01 UTC
Severity:
normal
#1140537#5
Date:
2026-06-22 10:26:22 UTC
From:
To:
Wildcards like * and ? match / in the specification, yet
the attached test case produces a mismatch:

Expat            | Apache-2.0        a/b/test.c

#1140537#10
Date:
2026-06-22 10:58:00 UTC
From:
To:
Hi Julian,

licenserecon handles wildcards using /usr/bin/ls
 From your example:

ls */*.c
ls: cannot access '*/*.c': No such file or directory

However;
ls */*/*.c
a/b/test.c

ISTM that it's your test copyright that mishandles wildcards ;-)

Cheers,
Peter

#1140537#15
Date:
2026-06-22 20:15:00 UTC
From:
To:
On second thoughts, I realise you are correct here.

DEP-5 spec 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."

See also https://bugs.debian.org/1086136

With your example file
Files: a/*.c

would work with lrc as it stands.
But if there are multiple asterisks in the Files: field
lrc currently reverts to a shell glob.

Are you having issues with a particular package that I could look at?

Regards,
Peter