#1079715 source-is-missing false positive for patch with 'ELF' in its header

Package:
lintian
Source:
lintian
Submitter:
Ben Hutchings
Date:
2025-03-20 02:03:04 UTC
Severity:
normal
Tags:
#1079715#5
Date:
2024-08-26 18:02:18 UTC
From:
To:
A patch that starts with:

    From: Jiri Olsa <jolsa@kernel.org>
    Date: Sat, 13 Feb 2021 17:46:48 +0100
    Subject: btf_encoder: Match ftrace addresses within ELF functions

is reported by file as:

    unified diff output text, 1st line "From: Jiri Olsa <jolsa@kernel.org>", 2nd line "Date: Sat, 13 Feb 2021 17:46:48 +0100", 3rd line "Subject: btf_encoder: Match ftrace addresses within ELF functions", ASCII text

which satisifies the test:

        if ($item->file_type =~ m{\bELF\b}x) {

in Lintian/Check/Files/SourceMissing.pm, resulting in a false
source-is-missing error (and a source-contains-prebuilt-binary
pedantic note, but I can quite happily ignore that).

Please use a stricter regex that will only match file output for ELF
binaries.

Ben.

#1079715#12
Date:
2025-03-20 01:58:44 UTC
From:
To:
Control: tags -1 + moreinfo

Could you please provide the full patch, it's path in the source tree,
and specify which package was affected? I've been unable to reproduce
this problem.

Thanks.

#1079715#17
Date:
2025-03-20 01:58:44 UTC
From:
To:
Control: tags -1 + moreinfo

Could you please provide the full patch, it's path in the source tree,
and specify which package was affected? I've been unable to reproduce
this problem.

Thanks.