[tz] compiling backzone file with zic - How to?

Alois Treindl alois at astro.ch
Fri Jun 28 17:50:24 UTC 2019


I am trying to compile the zonefiles with zic, and I want to include the 
backzone file.

I expect that
zoneinfo/Africa/Mbabane
comes out differently from
zoneinfo/Africa/Johannesburg

because in backzone there is

# Eswatini (formerly Swaziland)
Zone    Africa/Mbabane  2:04:24 -       LMT     1903 Mar
                         2:00    -       SAST

(Swaziland did not observe South African DST in 1942-1944 and I want to 
see that respected in the binary
zonefile Africa/Mbabane)

while in file africa there is:
# South Africa
# Rule  NAME    FROM    TO      TYPE    IN      ON      AT SAVE    LETTER/S
Rule    SA      1942    1943    -       Sep     Sun>=15 2:00    1:00    -
Rule    SA      1943    1944    -       Mar     Sun>=15 2:00    0       -

Zone Africa/Johannesburg 1:52:00 -      LMT     1892 Feb 8
                         1:30    -       SAST    1903 Mar
                         2:00    SA      SAST
Link Africa/Johannesburg Africa/Mbabane    # Eswatini


I use the command:

./zic -d ./tzdata/etc/zoneinfo africa antarctica asia australasia 
backward backzone etcetera europe factory northamerica pacificnew 
southamerica systemv

and expect the information in 'backzone' to override the information in 
'africa'.

But it does not.

These two files are generated but are binary identical.

zoneinfo/Africa/Mbabane
zoneinfo/Africa/Johannesburg

What is the correct command line for zic so that information in backzone 
is considered?

I have tried putting backzone at he begin or end of the list of files, 
but that made no difference in the binary output.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mm.icann.org/pipermail/tz/attachments/20190628/cfd6eab8/attachment.html>


More information about the tz mailing list