libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / developer / gcc-13 / patches / 0002-compare_tests-Use-nawk-1-on-illumos-since-awk-1-is-o.patch
blob92a9dcd0592c18f9a10484c01273b436d9355503
1 From 976216172721d886fbbb6ec469e4366aedfd7616 Mon Sep 17 00:00:00 2001
2 From: Richard Lowe <richlowe@richlowe.net>
3 Date: Tue, 26 Jan 2016 14:24:11 -0500
4 Subject: compare_tests: Use nawk(1) on illumos, since awk(1) is
5 old and bad
7 ---
8 contrib/compare_tests | 11 +++++++++--
9 1 file changed, 9 insertions(+), 2 deletions(-)
11 diff --git a/contrib/compare_tests b/contrib/compare_tests
12 index 2dfa8640756a..6616a201f23b 100755
13 --- a/contrib/compare_tests
14 +++ b/contrib/compare_tests
15 @@ -108,8 +108,15 @@ elif [ -d "$1" -o -d "$2" ] ; then
16 usage "Must specify either two directories or two files"
19 -sed 's/^XFAIL/FAIL/; s/^ERROR/FAIL/; s/^XPASS/PASS/' < "$1" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp1
20 -sed 's/^XFAIL/FAIL/; s/^ERROR/FAIL/; s/^XPASS/PASS/' < "$2" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp2
21 +osrev=`uname -sr`
22 +if [ `expr "$osrev" : "SunOS 5."` -eq "8" ]; then
23 + AWK=/usr/bin/nawk
24 +else
25 + AWK=awk
26 +fi
28 +sed 's/^XFAIL/FAIL/; s/^ERROR/FAIL/; s/^XPASS/PASS/' < "$1" | $AWK '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp1
29 +sed 's/^XFAIL/FAIL/; s/^ERROR/FAIL/; s/^XPASS/PASS/' < "$2" | $AWK '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' | cut -c1-2000 >$tmp2
31 before=$tmp1
32 now=$tmp2