Codebase list debian-goodies / 73cd2e2
Report if already deleted (or replaced) files were in use Warn that find-dbgsym-packages might report already installed dbgsym packages as necessary to install due to not the needed version being installed. Axel Beckert 5 years ago
2 changed file(s) with 19 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
88 + Prefix all messages to STDERR with either "E:", "W:", or "I:".
99 + Make regular expression in parse_eu_unstrip() more readable by
1010 adding more no-op whitespace (/x mode).
11 + Report if already deleted (or replaced) files were in use. Warn that
12 find-dbgsym-packages might report already installed dbgsym packages
13 as necessary to install due to not the needed version being
14 installed.
1115
1216 -- Axel Beckert <abe@debian.org> Sun, 18 Nov 2018 16:53:41 +0100
1317
3535 my $vdso_regexp = qr/^linux-(gate|vdso\d*)[.]so[.]/;
3636
3737 my %pkgs;
38 my @out_of_date_files;
3839 foreach my $arg (@ARGV) {
3940 my %build_ids;
4041 if ($arg =~ /^\d+$/) {
6364 }
6465 }
6566
67 if (@out_of_date_files) {
68 warn
69 "W: The following files were reported by eu-unstrip as \"deleted\":\n".
70 "W: ".join("\nW: ", @out_of_date_files)."\n".
71 "W: If $0 reports already installed dbgsym packages as necessary,\n".
72 "W: they are not at the expected (usually older) package version.\n";
73 }
74
6675 say join(" ", sort keys %pkgs);
6776
6877 exit 0;
7988 # 0x7fa9b8017000+0x39e9a0 79450f6e36287865d093ea209b85a222209925ff@0x7fa9b8017280 /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/debug/.build-id/79/450f6e36287865d093ea209b85a222209925ff.debug libc.so.6
8089 # 0x7f7f7235e000+0x17000 - /usr/share/locale/de/LC_MESSAGES/bash.mo - /usr/share/locale/de/LC_MESSAGES/bash.mo
8190 # 0x7ffd4098a000+0x2000 de7dac2df9f596f46fa94a387858ef25170603ec@0x7ffd4098a7d0 . - [vdso: 1740]
91 # 0x7f37090fb000+0x2a000 dc5cb16f5e644116cac64a4c3f5da4d081b81a4f@0x7f37090fb248 - - /lib/x86_64-linux-gnu/ld-2.27.so (deleted)
8292 if ($line =~ m{
8393 ^(?: 0 | 0x[[:xdigit:]]+ )
8494 [+]
91101 ( \S+ )
92102 \s+
93103 (?: ( \S+ ) | ( \[vdso: \s+ \d+\] ) )?
104 ( \s+ \(deleted\) )?
94105 $
95106 }ix) {
96107 my $id = $1;
98109 my $debug = $3;
99110 my $name = $4 // $path;
100111 my $vdso = $5;
112 my $deleted = $6;
101113 if ($debug ne '-') {
102114 next;
103115 }
115127 if ($path eq '-' || $path eq '.') {
116128 $path = $name;
117129 $path =~ s{ \(deleted\)$}{};
130 }
131 if (defined $deleted) {
132 push(@out_of_date_files, $path);
118133 }
119134 $ids{$id} = [$path, $name];
120135 } else {