<div dir="ltr"><div><div>Cutting out old data may not buy as much as you&#39;d like. Putting a &quot;timecnt = 0&quot; at the top of &quot;writezone&quot; in &quot;zic.c&quot; and then comparing the produced directories of the original (&quot;tzraw&quot;) and modified (&quot;tzcooked&quot;) 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 &quot;America/New_York&quot; produced by an unmodified zic weighs in at 3545 bytes; on a 4096-byte-sector system, the one sector it takes can&#39;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 &quot;make REDO=posix_only ...&quot; 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">&lt;<a href="mailto:singalen@gmail.com" target="_blank">singalen@gmail.com</a>&gt;</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&#39;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>
&gt; &quot;northamerica&quot;, line 2537: %s in ruleless zone<br>
&gt; &quot;northamerica&quot;, 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>
&gt; can&#39;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>