<div dir="ltr"><div dir="ltr">On Wed, Jun 9, 2021 at 12:00 AM Paul Eggert <<a href="mailto:eggert@cs.ucla.edu">eggert@cs.ucla.edu</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 6/8/21 7:14 AM, Joe Culler via tz wrote:<br>
<br>
> I have a program running on Yocto.  When it runs, I get an error:<br>
> /usr/share/zoneinfo/Israel: invalid timezone file: no timezone found in<br>
> OlsonData<br>
> <br>
> If I copy zoneinfo's directory from Linux distros (Debian, Ubutnu,<br>
> ArchLinux),<br>
> the program runs without an error.<br>
> <br>
> I downloaded tzdb-2021a.tar.lz and installed it, encountered the same<br>
> error.<br>
> Did I miss something?  Thanks.<br>
<br>
My guess from the diagnostic's wording is that it comes from the <br>
timezone-olson package for Haskell. If so, possibly you ran into <br>
timezone-olson bug #7 <br>
<<a href="https://github.com/ygale/timezone-olson/issues/7" rel="noreferrer" target="_blank">https://github.com/ygale/timezone-olson/issues/7</a>>, which means that <br>
upgrading the current timezone-olson should fix your problem. If <br>
upgrading doesn't work, possibly a followup bug report there is in order.<br></blockquote><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Thank you Paul. My problem was solved by simply updating timezone-olson to
</span><br>0.2.0.<br></span></div><div><span style="font-family:monospace"><br></span></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
You might also try building your copy of tzdata with 'make <br>
ZFLAGS=-bfat', which will generate fatter TZif files that might work <br>
better with a buggy TZif reader. For Israel, your TZif file should grow <br>
from 1074 to 2388 bytes if you build it that way. I'm attaching copies <br>
of slim and fat TZif files for Israel, and you can use these copies to <br>
check your work. There's a bit more about fat and slim files for Haskell <br>
at <<a href="https://hackage.haskell.org/package/tzdata" rel="noreferrer" target="_blank">https://hackage.haskell.org/package/tzdata</a>>.<br>
<br>
Yet another possibility is that /usr/share/zoneinfo/Israel simply isn't <br>
set up correctly. Typically it's a symbolic or hard link to <br>
/usr/share/zoneinfo/Asia/Jerusalem, and you can check that out. I don't <br>
know Yocto, but it's something like the following on Ubuntu:<br>
<br>
514-day $ ls -li /usr/share/zoneinfo/Israel<br>
1205004 lrwxrwxrwx 1 root root 14 Jan 27 08:51 <br>
/usr/share/zoneinfo/Israel -> Asia/Jerusalem<br>
515-day $ ls -liL /usr/share/zoneinfo/Israel<br>
1194127 -rw-r--r-- 1 root root 2388 Jan 27 08:51 /usr/share/zoneinfo/Israel<br>
516-day $ zdump -V -c 2021,2022 /usr/share/zoneinfo/Israel<br>
/usr/share/zoneinfo/Israel  Thu Mar 25 23:59:59 2021 UT = Fri Mar 26 <br>
01:59:59 2021 IST isdst=0 gmtoff=7200<br>
/usr/share/zoneinfo/Israel  Fri Mar 26 00:00:00 2021 UT = Fri Mar 26 <br>
03:00:00 2021 IDT isdst=1 gmtoff=10800<br>
/usr/share/zoneinfo/Israel  Sat Oct 30 22:59:59 2021 UT = Sun Oct 31 <br>
01:59:59 2021 IDT isdst=1 gmtoff=10800<br>
/usr/share/zoneinfo/Israel  Sat Oct 30 23:00:00 2021 UT = Sun Oct 31 <br>
01:00:00 2021 IST isdst=0 gmtoff=7200<br>
<br>
or the following on Fedora:<br>
<br>
4-penguin $ ls -li /usr/share/zoneinfo/Israel<br>
2494621 -rw-r--r--. 3 root root 2388 Jan 25 19:02 /usr/share/zoneinfo/Israel<br>
5-penguin $ find /usr/share/zoneinfo -inum 2494621<br>
/usr/share/zoneinfo/Israel<br>
/usr/share/zoneinfo/Asia/Jerusalem<br>
/usr/share/zoneinfo/Asia/Tel_Aviv<br>
<br>
with similar zdump output there.<br>
</blockquote></div></div>