From 72b2ef06e22a1bd71cd5200f60234eaf32ace09b Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 9 Oct 2014 12:35:17 +0000 Subject: [PATCH] Only catch the line from the compiler output where 'version' is a word This allows to build the kernel with gcc 4.9.1 from ports --- sys/conf/newvers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh index 73bf26740c41..f323a0da664c 100644 --- a/sys/conf/newvers.sh +++ b/sys/conf/newvers.sh @@ -89,7 +89,7 @@ fi touch version v=`cat version` u=${USER:-root} d=`pwd` h=${HOSTNAME:-`hostname`} t=`date` i=`${MAKE:-make} -V KERN_IDENT` -compiler_v=$($(${MAKE:-make} -V CC) -v 2>&1 | grep 'version') +compiler_v=$($(${MAKE:-make} -V CC) -v 2>&1 | grep -w 'version') for dir in /usr/bin /usr/local/bin; do if [ ! -z "${svnversion}" ] ; then