mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
ad46f43a26
commit
efc6da7058
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue