Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108584926
D42624.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D42624.diff
View Options
diff --git a/share/zoneinfo/Makefile b/share/zoneinfo/Makefile
--- a/share/zoneinfo/Makefile
+++ b/share/zoneinfo/Makefile
@@ -78,9 +78,9 @@
TZBUILDSUBDIRS+= US Mexico Chile Canada Brazil
.if !defined(_SKIP_BUILD)
-all: zoneinfo
+all: zonefiles
.endif
-META_TARGETS+= zoneinfo install-zoneinfo
+META_TARGETS+= zonefiles install-zoneinfo
#
# Produce “fat” zoneinfo files for backward compatibility.
@@ -89,33 +89,27 @@
.if ${MK_DIRDEPS_BUILD} == "yes"
ZIC= ${STAGE_HOST_OBJTOP}/usr/sbin/zic
+# we do everything in a single visit
+install-zoneinfo: zonefiles
.endif
-zoneinfo: ${TDATA}
+zonefiles: ${TDATA}
mkdir -p ${TZBUILDDIR}
(cd ${TZBUILDDIR}; mkdir -p ${TZBUILDSUBDIRS})
(umask 022; cd ${.CURDIR}; \
${ZIC:Uzic} -D -d ${TZBUILDDIR} ${ZICFLAGS} -m ${NOBINMODE} \
${LEAPFILE} ${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 * -type f | LC_ALL=C sort
-.endif
+ (cd ${TZBUILDDIR} && find * -type f | LC_ALL=C sort) > ${.TARGET}
beforeinstall: install-zoneinfo
install-zoneinfo:
mkdir -p ${DESTDIR}/usr/share/zoneinfo
(cd ${DESTDIR}/usr/share/zoneinfo; mkdir -p ${TZBUILDSUBDIRS})
-.for f in ${TZS}
- ${INSTALL} ${TAG_ARGS} \
- -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
- ${TZBUILDDIR}/${f} ${DESTDIR}/usr/share/zoneinfo/${f}
-.endfor
+ for f in `cat zonefiles`; do \
+ ${INSTALL} ${TAG_ARGS} \
+ -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
+ ${TZBUILDDIR}/$${f} ${DESTDIR}/usr/share/zoneinfo/$${f}; \
+ done
${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${CONTRIBDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
diff --git a/share/zoneinfo/Makefile.depend b/share/zoneinfo/Makefile.depend
--- a/share/zoneinfo/Makefile.depend
+++ b/share/zoneinfo/Makefile.depend
@@ -1,7 +1,6 @@
# Autogenerated - do NOT edit!
DIRDEPS = \
- usr.bin/xinstall.host \
usr.sbin/zic.host \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 3:45 PM (6 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16200251
Default Alt Text
D42624.diff (2 KB)
Attached To
Mode
D42624: Fix share/zoneinfo for DIRDEPS_BUILD
Attached
Detach File
Event Timeline
Log In to Comment