From c83196b0df4340209f260ffaf90e787c711c268e Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 17 Nov 2015 11:43:49 +0100 Subject: Force rereading TZDEFRULES after it was used to set DST rules only (bug #19253) If the TZDEFRULES file was used to set the DST rules when $TZ didn't provide any we need to make sure that the next time it is used we recompute everything as __tzfile_default changes some setting from what is provided by TZDEFRULES. --- timezone/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'timezone') diff --git a/timezone/Makefile b/timezone/Makefile index e6a6a088a2..dee7568c7e 100644 --- a/timezone/Makefile +++ b/timezone/Makefile @@ -40,7 +40,8 @@ ifeq ($(run-built-tests),yes) # List zones generated by separate commands running zic on the host. # Each such zic run counts as a separate test. test-zones := America/New_York Etc/UTC UTC Europe/Berlin \ - Australia/Melbourne America/Sao_Paulo Asia/Tokyo + Australia/Melbourne America/Sao_Paulo Asia/Tokyo \ + $(posixrules-file) tests-special += $(addprefix $(testdata)/, $(test-zones)) endif @@ -91,6 +92,8 @@ zic-deps = $(objpfx)zic $(leapseconds) yearistype $(testdata)/America/New_York: northamerica $(zic-deps) $(build-testdata) +$(testdata)/$(posixrules-file): $(testdata)/America/New_York + $(make-link); $(evaluate-test) $(testdata)/Etc/UTC: etcetera $(zic-deps) $(build-testdata) # Use a pattern rule to indicate the command produces both targets at once. -- cgit v1.2.3