aboutsummaryrefslogtreecommitdiff
path: root/share/zoneinfo
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-02-06 23:12:16 +0000
committerWarner Losh <imp@FreeBSD.org>2018-02-06 23:12:16 +0000
commit3182fd63c405644d35360b71c2f98bca927c4c04 (patch)
tree76fe2f7d6708a3ebe8452e6682dbe21e60ccae7f /share/zoneinfo
parent7cbd6d338ed142b0beae01cd7bd67caef4aaf7cf (diff)
downloadsrc-3182fd63c405644d35360b71c2f98bca927c4c04.tar.gz
src-3182fd63c405644d35360b71c2f98bca927c4c04.zip
Avoid find -s, use find | sort instead.
find -s was introduced to make the metalog more deterministic. However, find -s is not portable. find | sort is portable and accomplishes the same goals, even if it isn't pedantically the same. TZS is the same before / after the change so any fussy differences between the two are moot and there won't be METALOG churn across this change. Differential Revision: https://reviews.freebsd.org/D14231
Notes
Notes: svn path=/head/; revision=328958
Diffstat (limited to 'share/zoneinfo')
-rw-r--r--share/zoneinfo/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/zoneinfo/Makefile b/share/zoneinfo/Makefile
index fbe47ff570a6..6b06d6913d69 100644
--- a/share/zoneinfo/Makefile
+++ b/share/zoneinfo/Makefile
@@ -95,8 +95,13 @@ zoneinfo: yearistype ${TDATA}
zic -D -d ${TZBUILDDIR} -p ${POSIXRULES} -m ${NOBINMODE} \
${LEAPFILE} -y ${.OBJDIR}/yearistype ${TZFILES}
+#
+# Sort TZS to ensure they are the same every build. find -s might
+# be a shorter way to express this, but it's non-portable. Any
+# differences between the two don't matter for this purpose.
+#
.if make(*install*)
-TZS!= cd ${TZBUILDDIR} && find -s * -type f
+TZS!= cd ${TZBUILDDIR} && find * -type f | env LC_ALL=C sort
.endif
beforeinstall: install-zoneinfo