Hello,
Just thought to report it down. I encountered this problem while running test scripts at git://git.fedorapeople.org/~roland/debuginfo-test-scripts.git . Had to do some adjustments so as to eliminate all bogons it reported. This happened in pack-debuginfo.sh do_collect method because
find usr/lib* -type f -print0 | xargs --no-run-if-empty -0 file -N -F ' ' -i gives "usr/lib/debug/usr/bin/gtnameserv.debug application/x-executable; charset=binary"
As you can see it has NF = 3 and $2 has ';' at end and both were missing from awk command, so had to adjust script (though adjustments may not be fine, as I don't have much clue about awk) so as e, d, r and a get incremented, otherwise it was reporting everything as bogons.
Thanks,
Hmm, the "file" output details must have changed since I did that. I think I only ran it on F-10 before.
Does this change (instead of your patch) fix it?
Thanks, Roland
diff --git a/pack-debuginfo.sh b/pack-debuginfo.sh index 21432f2..0000000 100755 --- a/pack-debuginfo.sh +++ b/pack-debuginfo.sh @@ -29,7 +29,7 @@ do_collect() find usr/lib* -type f -print0 | xargs --no-run-if-empty -0 file -N -F ' ' -i | awk -v dir="$dir" -v src="$size" ' BEGIN { e = d = r = u = a = 0 } -NF > 2 && $2 ~ "application/x-" { sub(/, .*$/, "") } +NF > 2 && $2 ~ "application/x-" { sub(/[;,] .*$/, "") } NF == 2 && $2 == "application/x-executable" { print $1 > "exec" ; ++e; next } NF == 2 && $2 == "application/x-sharedlib" { print $1 > "dyn" ; ++d; next } NF == 2 && $2 == "application/x-object" { print $1 > "rel" ; ++r; next }
2009/10/1 Roland McGrath wrote: [..]
Does this change (instead of your patch) fix it?
[..]
Works, thanks.
elfutils-devel@lists.fedorahosted.org