Control: tags -1 + patch
* Andrey Rahmatullin <[email protected]>, 2013-06-26, 23:24:
dh_strip gets the build ID by parsing readelf -n output with a regex.
Current binutils emit localized output so dh_strip fails to parse it
and silently assumes there is no build ID.
Patch attached.
--
Jakub Wilk
diff --git a/dh_strip b/dh_strip
--- a/dh_strip
+++ b/dh_strip
@@ -163,7 +163,7 @@
my ($base_file)=$file=~/^\Q$tmp\E(.*)/;
my $debug_path;
if (! compat(8) &&
- `readelf -n $file`=~ /^\s+Build ID: ([0-9a-f]{2})([0-9a-f]+)$/m) {
+ `LC_ALL=C readelf -n $file`=~ /^\s+Build ID: ([0-9a-f]{2})([0-9a-f]+)$/m) {
$debug_path=$desttmp."/usr/lib/debug/.build-id/$1/$2.debug"
}
else {