svn commit: r272816 - head/sys/conf

Baptiste Daroussin bapt at FreeBSD.org
Thu Oct 9 12:35:18 UTC 2014


Author: bapt
Date: Thu Oct  9 12:35:17 2014
New Revision: 272816
URL: https://svnweb.freebsd.org/changeset/base/272816

Log:
  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

Modified:
  head/sys/conf/newvers.sh

Modified: head/sys/conf/newvers.sh
==============================================================================
--- head/sys/conf/newvers.sh	Thu Oct  9 12:20:00 2014	(r272815)
+++ head/sys/conf/newvers.sh	Thu Oct  9 12:35:17 2014	(r272816)
@@ -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


More information about the svn-src-all mailing list