svn commit: r220734 - stable/8

Bjoern A. Zeeb bz at FreeBSD.org
Sat Apr 16 23:38:36 UTC 2011


Author: bz
Date: Sat Apr 16 23:38:35 2011
New Revision: 220734
URL: http://svn.freebsd.org/changeset/base/220734

Log:
  MFC r220556:
  
    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.

Modified:
  stable/8/Makefile   (contents, props changed)

Modified: stable/8/Makefile
==============================================================================
--- stable/8/Makefile	Sat Apr 16 23:30:53 2011	(r220733)
+++ stable/8/Makefile	Sat Apr 16 23:38:35 2011	(r220734)
@@ -173,7 +173,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


More information about the svn-src-all mailing list