Commit c91cb362 authored by Chris Lamb's avatar Chris Lamb 💬

Check for GNU triplet when testing for package-contains-no-arch-dependent-files. (re. #916901)

parent 577e6c1b
......@@ -429,7 +429,9 @@ sub run {
and $finfo
and $finfo !~ m/\bASCII text\b/;
$arch_dep_files = 1 if $file->dirname !~ m,^usr/lib/[^/]+/,o;
if ($file->dirname !~ m,^(?:usr)?/lib/([^/]+)/$,) {
$arch_dep_files = 1 if $TRIPLETS->known($1 // '');
}
if (exists($PATH_DIRECTORIES{$file->dirname})) {
$has_public_executable = 1;
......
......@@ -13,8 +13,8 @@ lintian (2.5.118) UNRELEASED; urgency=medium
processing the uses-dpkg-database-directly tag as these are
invariably legitimate.
+ [CL] Prevent package-contains-no-arch-dependent-files false-positives
by assuming /usr/lib/*/* files are architecture dependent.
(Closes: #916901, #917028)
regarding files under /usr/lib/<gnu-triplet>. Thanks to Andreas
Beckmann. (Closes: #916901, #917028)
* checks/systemd.pm:
+ [CL] Don't emit systemd-service-file-missing-hardening-features for
WantedBy=sleep.target "services" such as autosuspend.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment