Commit Graph

58 Commits

Author SHA1 Message Date
Emmanuel Vadot
6b68fdbbf7 pkgbase: Put zoneinfo file in their own package
Those files take some amount of diskspace and one might not want them
installed on some situation (mfsdisk, small embedded system etc ...)

Reviewed by:	bapt, emaste
Differential Revision:	https://reviews.freebsd.org/D27709
2021-01-04 16:18:36 +01:00
Philip Paeps
b6d54565c2 share/zoneinfo: fix minor documentation nit
The `git tag` command wants a tag name.
2020-12-30 21:23:17 +08:00
Philip Paeps
24c7311bff share/zoneinfo: update import documentation for Git
Document the steps needed to import and MFC new versions of tzdata now
that FreeBSD has moved from Subversion to Git.
2020-12-26 10:55:57 +08:00
Xin LI
f5b7695d2d Always install backward compatibility timezones, as they are installed
on all major Linux distributions as well as NetBSD and OpenBSD.

Remove the undocumented ZONEINFO_OLD_TIMEZONES_SUPPORT and the deprecated
OLDTIMEZONES knobs as they are now the default.

Reviewed by:		ngie, rgrimes
MFC after:		2 weeks
Differential Revision:	https://reviews.freebsd.org/D24306
2020-04-09 05:11:18 +00:00
Thomas Munro
513419f404 tzsetup: upgrade to zone1970.tab
zone.tab is deprecated.  Install zone1970.tab alongside it, and use it
for tzsetup(8).  This is also useful for other applications that need
the modern better maintained file.

Reviewed by: philip
Approved by: allanjude (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20646
2019-07-17 06:17:27 +00:00
Warner Losh
8162ec9b35 We don't actually need env here, so drop it. All shells allow setting
of shell variables for the next command like this.
2018-02-09 15:50:32 +00:00
Warner Losh
3182fd63c4 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
2018-02-06 23:12:16 +00:00
Enji Cooper
d511b20a69 Add HAS_TESTS to all Makefiles that are currently using the
`SUBDIR.${MK_TESTS}+= tests` idiom.

This is a follow up to r321912.
2017-08-02 08:50:42 +00:00
Enji Cooper
4b330699f8 Convert traditional ${MK_TESTS} conditional idiom for including test
directories to SUBDIR.${MK_TESTS} idiom

This is being done to pave the way for future work (and homogenity) in
^/projects/make-check-sandbox .

No functional change intended.

MFC after:	1 weeks
2017-08-02 08:35:51 +00:00
Enji Cooper
f37852c173 Add tests to help verify Links functionality for .../contrib/tzdata/backwards
MFC after:	1 month
MFC with:	r320702
2017-07-06 04:30:06 +00:00
Enji Cooper
c5cba06079 Formalize LEAPSECONDS and OLDTIMEZONES in share/zoneinfo/... as
`MK_ZONEINFO_LEAPSECONDS_SUPPORT == yes` and
`MK_ZONEINFO_OLD_TIMEZONES_SUPPORT == yes`.

Keep `LEAPSECONDS` and `OLDTIMEZONES` for backwards compatibility,
but print out a warning notifying users that they should use the new
variables, in an effort to migrate them to the variables. This is being
done mostly for automated build tools, etc, that might rely on these
variables being set. The variables will be removed in the future on
^/head, e.g., after ^/stable/12 is cut.

MFC after:      1 month
Relnotes:       yes
Reviewed by:	bdrewery
Differential Revision:	D11376
2017-07-06 04:19:33 +00:00
Cy Schubert
ad6481dddc Allow parallel installworld (-j N) and poudriere installworld
(poudriere jail -c and poudriere jail -u) to proceed.

Reviewed by:	trasz@
Tested by:	trasz@, cy@
MFC after:	1 month
X-MFC-with:	r320362
2017-06-28 19:05:04 +00:00
Edward Tomasz Napierala
1621f5fe16 Provide visual feedback when timezone files are installed.
After r320003 it wasn't being shown in any way.

Submitted by:	bdrewery
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D11154
2017-06-26 15:40:24 +00:00
Edward Tomasz Napierala
05f3dec72e Don't print all timezones during installworld.
Submitted by:	Alex Richardson <alr48@cl.cam.ac.uk>
Reviewed by:	gjb
MFC after:	1 month
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D11154
2017-06-16 14:19:23 +00:00
Enji Cooper
e44885ac01 share: normalize paths using SRCTOP-relative paths or :H when possible
This simplifies make logic/output

MFC after:	1 month
Sponsored by:	Dell EMC Isilon
2017-03-04 11:26:40 +00:00
Julian Elischer
9d7c990f62 If you are going to be run individually to make a new timezone set
then ensure the destination directories exist.
Especially if you define OLDTIMEZONES because the mtree pass
doesn't do it for you.

MFC after:	1 week
Sponsored by:	Panzura
2016-12-22 18:30:29 +00:00
Julian Elischer
06723a8e57 When you select make OLDTIMEZONES=1 then you need a few added directories
to be made or the command fails

Sponsored by:	panzura
2016-11-15 06:37:44 +00:00
Glen Barber
86bd190ce9 Reimplement r301944 using the correct install(1) invocation, which again
fixes packaging tzdata/zoneinfo.

Thank you to hrs for the pointer on what I did incorrectly.

Approved by:	re (blanket, pkgbase)
Sponsored by:	The FreeBSD Foundation
2016-06-16 13:34:20 +00:00
Glen Barber
5647bfaab0 Revert r301944, which apparently broke zoneinfo install during
installworld (although I am not sure why).  I'll revisit this
change after I further understand the cause of the breakage.

Thanks to our secret canary (dhw) for the report.

Approved by:	re (blanket, pkgbase)
Sponsored by:	The FreeBSD Foundation
2016-06-16 11:55:24 +00:00
Glen Barber
a71f05bcf0 Fix zoneinfo file packaging.
This change fixes 468 of 488 zoneinfo file packaging issues,
the rest still to be investigated.

Approved by:	re (blanket, pkgbase)
Sponsored by:	The FreeBSD Foundation
2016-06-16 03:00:10 +00:00
Bryan Drewery
94086cea27 Rework META_TARGETS so that it automatically adds META_DEPS to the targets.
This will only be done if the target is defined, so if the target is
defined after bsd.sys.mk is included then it needs to manually add
${META_DEPS} still.

Sponsored by:	EMC / Isilon Storage Division
2016-04-14 21:04:42 +00:00
Bryan Drewery
b7d28aff10 META_MODE: Simplify the META_COOKIE handling to use .USE/.USEBEFORE.
Extend it to other cases of meta mode cookies so they get the proper rm
cookie behavior when a .meta file detects it needs to rebuild and fails.

Sponsored by:	EMC / Isilon Storage Division
2016-03-11 23:45:28 +00:00
Bryan Drewery
bffd819972 DIRDEPS_BUILD: Reduce restaging here.
This also fixes meta tracking for the beforeinstall since it had been
marked .PHONY before (in bsd.sys.mk).

Sponsored by:	EMC / Isilon Storage Division
2016-03-11 23:45:20 +00:00
Bryan Drewery
5e8745cc86 DIRDEPS_BUILD: Fix building during dirdeps.
Sponsored by:	EMC / Isilon Storage Division
2016-03-11 23:45:17 +00:00
Enji Cooper
9b209ed23e Install share/zoneinfo in a deterministic way by sorting the results from find
This helps produce deterministic METALOG output

PR: 200674
Submitted by: Fabian Keil <fk@fabiankeil.de>
Reviewed by: emaste
MFC after: 1 week
Obtained from: ElectroBSD
2015-10-17 09:26:16 +00:00
Xin LI
1bb0c0bd8d Fix build when LEAPSECONDS is enabled.
MFC after:	2 weeks
2015-08-22 07:41:28 +00:00
Ed Maste
e527e84592 Avoid ./ in zoneinfo entries in METALOG
Use of "find ." resulted in METALOG entries with an extra ./ -- e.g.,
./usr/share/zoneinfo/./America/Toronto.  Avoid this by using globbing
via "find *" instead.

Reviewed by:	brooks
Sponsored by:	DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D719
2014-09-03 18:51:33 +00:00
Sergey Kandaurov
1a326e5730 Fix comments on updating tzdata releases. 2014-08-27 19:34:49 +00:00
Brooks Davis
22c2069fc3 Use find -exec to install zoneinfo instead of requiring xargs to be an
install tool.

Suggested by:	delphij
2013-01-11 18:37:51 +00:00
Brooks Davis
78e832b82d Rather than using zic to both compile and install zoneinfo files,
generate the files during the build and install them with install(1).
This was the one place in installworld where files (vs links) were
installed by a tool other than install.

Reviewed by:	edwin, jilles
2013-01-10 19:46:08 +00:00
Edwin Groothuis
b92fc60991 Officially speaking, the zoneinfo data files are contributed data.
Therefore treat them as such.
2010-02-25 06:44:16 +00:00
Norikatsu Shigemura
4bca136727 Fix a installation issue with $DESTDIR.
Approved by:	imp (mentor)
2010-02-11 15:34:54 +00:00
Edwin Groothuis
62d9857501 Move comments to the beginning of the line to make it look better.
Thank to ru@ for his noticing of it.

MFC after:	1 week
2009-10-22 20:59:51 +00:00
Edwin Groothuis
38a96a6838 After the installation of the /usr/share/zoneinfo, run tzsetup if
/var/db/zoneinfo exists.

MFC after:	1 week
2009-10-21 20:59:12 +00:00
Edwin Groothuis
4d3caeacf3 update the manual on how to import and MFV new tzdata releases 2008-10-14 04:09:33 +00:00
Edwin Groothuis
f281c10a84 Replace description on how to do CVS imports on this module with a
description on how to do SVN imports on this module.

Approved by:	bde (implicit)
2008-08-08 04:37:43 +00:00
Edwin Groothuis
4add124f9a Describe the process of importing new zoneinfo data and updating
it into CVS.

PR:		conf/116901
Approved by:	re (Ken Smith), grog@ (mentor)
2007-10-08 21:16:38 +00:00
Garrett Wollman
9d08bdaaa6 Move "systemv" into OLDTIMEZONES clause; "backward" is a prerequisite.
("systemv" is even more backward than "backward" is!)

Obliquely pointed out by:	jhay
2005-08-31 01:33:26 +00:00
Ruslan Ermilov
09a25e1fb1 - Removed the .CURDIR/.OBJDIR magic, it is not necessary here.
- Let the built-in sys.mk rule produce the "yearistype" script.
- Install zone files with mode 444 (now that the -m option of
  zic(8) has been fixed).
2004-10-19 20:38:49 +00:00
Ruslan Ermilov
d2893b161b Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
2002-07-29 09:40:17 +00:00
Ruslan Ermilov
0b87f79976 s/${INSTALL} -c/${INSTALL} ${COPY}/ 2002-07-18 12:07:49 +00:00
Ruslan Ermilov
ce3edc3a22 Don't create missing directories; that's the duty of mtree(8).
Don't depend on chown(8) in ${INSTALLTMP}; -u/-g have been
supported since at least RELENG_4_BP.
2001-09-11 14:27:11 +00:00
Peter Wemm
7f3dea244c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
Bruce Evans
93a4679a23 Don't use a dot in the chown command. Fixed some minor style bugs.
Building things at install time under ${DESTDIR} was too hard to fix.

Bruce
1997-03-09 09:41:44 +00:00
Peter Wemm
b97fa2ef50 Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Bruce Evans
6392a49415 ${COPY} -> -c. ${COPY} should never be used for installing sources since
it might be empty.
1996-11-29 12:54:10 +00:00
Andrey A. Chernov
50b440f1bf Add missing ${COPY} to install options, zone.tab 1996-11-27 23:32:10 +00:00
Garrett Wollman
cadbe55eb2 Update to the latest version from the vendor branch. These files are
now identical with the distributed versions, which may cause some
abbreviations to change for people in obscure zones.  (The abbreviations
can be changed again if need be.)  It also changes the abbreviation
of Central European Time to `CET' from its previous value of `MET'
(a curious German-English hybrid).  Finally, we have finally rid
ourselves of those nasty ZONE-DESCR comments, which were a maintenance
nightmare, in favor of the new zone.tab file.  We are not using the
distribution's iso3166.tab file because we have our own list.

Obtained from: Arthur David Olson; ftp://elsie.nci.nih.gov
1996-11-19 19:17:19 +00:00
Jordan K. Hubbard
cd9a2f5c28 Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
1996-06-24 04:26:21 +00:00