#1004313 overrides for dbgsym package not parsed

#1004313#5
Date:
2022-01-24 19:36:41 UTC
From:
To:
Hi,

I wanted to silence those pesky "elf-error In proram headers" warnings
that have been resulting from #1000977 and #1000449 since weeks.

For example, I get:

W: sudo-dbgsym: elf-error In program headers: Unable to find program interpreter name [usr/lib/debug/.build-id/21/0aef602898438de8e2b8ff7d9d78aef04ae2be.debug]

and put

$ cat debian/sudo-dbgsym.lintian-overrides
# lintian bug, #1000977, #1000449
sudo-dbgsym: elf-error In program headers: Unable to find program interpreter name *
$

In strace, I see debian/sudo-dbgsym.lintian-overrides being opened and
ead. In debug output, I see nothing, because the debug output just says
Base directory for processable: /tmp/lintian-pool-GRZESmDB6r/sudo/sudo_1.9.8p2-2~1_source-amd64_changes
Loading overrides file (if any) ...
wthout saying whether there are any. Wishlist item: Please give debug
output saying which override files are being read.

I therefore applied the following patch to
/usr/share/lintian/lib/Lintian/Group.pm:
--- /home/mh/Group.pm   2022-01-24 19:58:53.720765500 +0100
+++ /usr/share/lintian/lib/Lintian/Group.pm     2022-01-24 20:06:23.349479431 +0100
@@ -210,6 +210,10 @@
                   if !ref $err || $err->errno != ENOENT;
             }

+use Data::Dumper;
+            say {*STDERR} encode_utf8('declared overrides '. Dumper($declared_overrides))
+              if $option->{debug};
+
             my %alias = %{$self->profile->known_aliases};
             my @renamed_overrides
               = grep { length $alias{$_} } keys %{$declared_overrides};

I see that $declared_overrides is empty for sudo-dbgsym, but not for
sudo and sudo-ldap. So there must be something different for the dbgsym
package that the file is read but not parsed.

Wishlist item: Please print the actual overrides read from the file in
debug output, maybe a little more pretty like my makeshift patch does.

After adding a dummy stanza for sudo-dbgsym to debian/control this
changes, and $declared_overrides is now filled. Lintian's output is
weird after that, but at least it looks like the processing of an
override file depends on whether the package is mentioned in
debian/control.

I think that implicitly generated packages such as -dbgsym packages
should have their lintian-overrides files honored.

Greetings
Marc

#1004313#10
Date:
2026-01-10 10:08:08 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.