From owner-svn-src-all@FreeBSD.ORG Tue Apr 12 02:07:24 2011 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 193C9106564A; Tue, 12 Apr 2011 02:07:24 +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 067358FC13; Tue, 12 Apr 2011 02:07:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p3C27NkZ006178; Tue, 12 Apr 2011 02:07:23 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p3C27N1u006176; Tue, 12 Apr 2011 02:07:23 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <201104120207.p3C27N1u006176@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Tue, 12 Apr 2011 02:07:23 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220556 - head 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: Tue, 12 Apr 2011 02:07:24 -0000 Author: bz Date: Tue Apr 12 02:07:23 2011 New Revision: 220556 URL: http://svn.freebsd.org/changeset/base/220556 Log: If building (custom) FreeBSD images people tend to patch param.h. In case this happens just before the build is started (within the same second) CHECK_TIME actually triggers thinking param.h is in the future (see f_Xtime, c_Xtime logi in find(1) sources for the details in !F_EXACTTIME case). Using the -mtime -0s (seconds, rather than no unit) avoids this 1s race. Submitted by: ed (2009-05-03) Reviewed by: cperciva (2009-05-03), emaste Tested by: bz (for almost two years) MFC after: 4 days Modified: head/Makefile Modified: head/Makefile ============================================================================== --- head/Makefile Tue Apr 12 01:19:23 2011 (r220555) +++ head/Makefile Tue Apr 12 02:07:23 2011 (r220556) @@ -214,7 +214,7 @@ ${TGTS}: .MAIN: all STARTTIME!= LC_ALL=C date -CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0 +CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0s .if !empty(CHECK_TIME) .error check your date/time: ${STARTTIME} .endif