Date: Tue, 12 Apr 2011 02:07:23 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r220556 - head Message-ID: <201104120207.p3C27N1u006176@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104120207.p3C27N1u006176>