From owner-svn-src-all@FreeBSD.ORG Fri Jun 19 15:31:40 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E41A91065676; Fri, 19 Jun 2009 15:31:40 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D13348FC1C; Fri, 19 Jun 2009 15:31:40 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5JFVeZP047230; Fri, 19 Jun 2009 15:31:40 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5JFVe2K047228; Fri, 19 Jun 2009 15:31:40 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200906191531.n5JFVe2K047228@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Fri, 19 Jun 2009 15:31:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194492 - in stable/7/sys: . conf contrib/pf X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jun 2009 15:31:41 -0000 Author: bz Date: Fri Jun 19 15:31:40 2009 New Revision: 194492 URL: http://svn.freebsd.org/changeset/base/194492 Log: MFC: r187413,187486,190514 Reduce the impact of svnversion. Just scan the src/sys tree, not all of src. Initially done by peter in 183528, backed out in 183566 due to problems with newvers.sh also called from other places during world build. Those two commits were not MFCed. A working solution was put back in in the MFCed r190514. Also strip the machine arch from SRCDIR in case it is a cross build so svnversion works, done by thompsa r187413,187486. Modified: stable/7/sys/ (props changed) stable/7/sys/conf/newvers.sh stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/conf/newvers.sh ============================================================================== --- stable/7/sys/conf/newvers.sh Fri Jun 19 13:08:49 2009 (r194491) +++ stable/7/sys/conf/newvers.sh Fri Jun 19 15:31:40 2009 (r194492) @@ -91,13 +91,22 @@ for dir in /bin /usr/bin /usr/local/bin; if [ -x "${dir}/svnversion" ]; then svnversion=${dir}/svnversion SRCDIR=${d##*obj} + if [ -n "$MACHINE" ]; then + SRCDIR=${SRCDIR##/$MACHINE} + fi SRCDIR=${SRCDIR%%/sys/*} break fi done if [ -n "$svnversion" -a -d "${SRCDIR}/.svn" ] ; then - svn=" r`cd $SRCDIR && $svnversion`" + # If we are called from the kernel build, limit + # the scope of svnversion to sys/ . + if [ -e "${SRCDIR}/sys/conf/newvers.sh" ] ; then + svn=" r`cd $SRCDIR/sys && $svnversion`" + else + svn=" r`cd $SRCDIR && $svnversion`" + fi else svn="" fi