github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/build/builder/ncurses.patch (about)

     1  --- ncurses/base/MKlib_gen.sh   2015-08-07 00:48:24.000000000 +0000
     2  +++ ncurses/base/MKlib_gen.sh   2017-10-03 07:12:40.873640729 +0000
     3  @@ -72,7 +72,7 @@
     4   # appears in gcc 5.0 and (with modification) in 5.1, making it necessary to
     5   # determine if we are using gcc, and if so, what version because the proposed
     6   # solution uses a nonstandard option.
     7  -PRG=`echo "$1" | $AWK '{ sub(/^[[:space:]]*/,""); sub(/[[:space:]].*$/, ""); print; }' || exit 0`
     8  +PRG=`echo "$1" | $AWK '{ sub(/^[ 	]*/,""); sub(/[ 	].*$/, ""); print; }' || exit 0`
     9   FSF=`"$PRG" --version 2>/dev/null || exit 0 | fgrep "Free Software Foundation" | head -n 1`
    10   ALL=`"$PRG" -dumpversion 2>/dev/null || exit 0`
    11   ONE=`echo "$ALL" | sed -e 's/\..*$//'`