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,
--
Rakesh Pandit
https://fedoraproject.org/
freedom, friends, features, first
diff --git a/pack-debuginfo.sh b/pack-debuginfo.sh
index 21432f2..840b456 100755
--- a/pack-debuginfo.sh
+++ b/pack-debuginfo.sh
@@ -30,10 +30,10 @@ do_collect()
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-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 }
-NF == 2 && $2 == "application/x-archive" { print $1 > "archive" ; ++a; next }
+NF == 3 && $2 == "application/x-executable;" { print $1 > "exec" ; ++e; next }
+NF == 3 && $2 == "application/x-sharedlib;" { print $1 > "dyn" ; ++d; next }
+NF == 3 && $2 == "application/x-object;" { print $1 > "rel" ; ++r; next }
+NF == 3 && $2 == "application/x-archive;" { print $1 > "archive" ; ++a; next }
{ print "unexpected line from", dir ": " $0 > "/dev/stderr";
++u; print $0 > "bogon"; next }
END {