compiling backzone file with zic - How to?
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.
On 6/28/19 10:50 AM, Alois Treindl wrote:
What is the correct command line for zic so that information in backzone is considered?
A comment in 'backzone' says: # This file is not intended to be compiled standalone, as it # assumes rules from other files. In the tz distribution, use # 'make PACKRATDATA=backzone zones' to compile and install this file. That 'make' command eventually runs something like 'zic -d /usr/share/zoneinfo tzdata.zii', where tzdata.zi contains the backzone info.
participants (2)
-
Alois Treindl -
Paul Eggert