<div dir="ltr"><div><div>Cutting out old data may not buy as much as you'd like. Putting a "timecnt = 0" at the top of "writezone" in "zic.c" and then comparing the produced directories of the original ("tzraw") and modified ("tzcooked") yields:<br><br>    Script started on Thu, May 18, 2017  1:12:37 PM<br>    $ du -s tzraw/tmp/etc tzcooked/tmp/etc<br>    3103    tzraw/tmp/etc<br>    2356    tzcooked/tmp/etc<br>    $ exit<br>    exit<br>    Script done on Thu, May 18, 2017  1:12:49 PM<br><br></div><div>Limited savings is due to disk sector size; as an example, the "America/New_York" produced by an unmodified zic weighs in at 3545 bytes; on a 4096-byte-sector system, the one sector it takes can't be reduced.<br><br></div><div>(Your correspondent is enough of a fossil to have lived in the age of 512-byte sectors.)<br></div><div><br></div>If space is at a premium, be sure to "make REDO=posix_only ..." when building.<br><br></div>    @dashdashado<br><div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 18, 2017 at 12:16 PM, Viktor Sergiienko <span dir="ltr"><<a href="mailto:singalen@gmail.com" target="_blank">singalen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm developing for a pretty small-sized embedded system, and 2.9M of<br>
binaries is a bit too much for us.<br>
The system never uses a date before 2007.<br>
<br>
I estimate I can slim it down too 500K by cutting down the old data.<br>
<br>
1. I made a script to cut down the source data: all the rules and all<br>
the zonelines before 2001.<br>
Compiling this data, I get a lot of errors like:<br>
<br>
> "northamerica", line 2537: %s in ruleless zone<br>
> "northamerica", line 2618: unruly zone<br>
<br>
because some zones are left without rules, but with %s format in them.<br>
<br>
2. I tried to modify zic itself, but apparently understanding it will<br>
take me days.<br>
Just setting min_year to 2001 results in bunch of<br>
<br>
> can't determine time zone abbreviation to use just after until time<br>
<br>
Does anyone have a ready solution?<br>
Thanks!<br>
</blockquote></div><br></div>