<html><body><p><font size="2">That's odd. Maybe my ubuntu:16.04 image is outdated or something, but here are my outputs:<br><br></font><font face="Monaco">ylin@youming-mbpr:~/Swift/Kitura-Markdown$ docker run -it --rm ubuntu:16.04 find /usr -name zone.tab</font><br><font face="Monaco">ylin@youming-mbpr:~/Swift/Kitura-Markdown$ docker run -it --rm ubuntu:14.04 find /usr -name zone.tab</font><br><font face="Monaco">/usr/share/zoneinfo/zone.tab</font><font size="2"><br><br>The file is found in ubuntu:14.04 but not in ubuntu:16.04.<br><br>Here are my images:<br><br></font><font face="Monaco">ylin@youming-mbpr:~/Swift/Kitura-Markdown$ docker images</font><br><font face="Monaco">REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE</font><br><font face="Monaco">ubuntu              16.04               7b9b13f7b9c0        4 weeks ago         118MB</font><br><font face="Monaco">ubuntu              14.04               132b7427a3b4        4 weeks ago         188MB</font><font size="2"><br></font><br><font size="2">Thanks,<br><br>Youming Lin<br>IBM Cloud, Swift@IBM, Kitura developer<br>Austin, TX<br>GitHub: @youming-lin</font><br><br><img width="16" height="16" src="cid:1__=8FBB0BC6DFFA18788f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Alex Blewitt ---07/06/2017 01:42:22 PM---It looks like it's /usr/share/zoneinfo on all Ubuntu version"><font size="2" color="#424282">Alex Blewitt ---07/06/2017 01:42:22 PM---It looks like it's /usr/share/zoneinfo on all Ubuntu versions: alblue.local[~]$ docker run -it --rm</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Alex Blewitt &lt;alblue@apple.com&gt;</font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">Tony Parker &lt;anthony.parker@apple.com&gt;</font><br><font size="2" color="#5F5F5F">Cc:        </font><font size="2">Youming Lin &lt;ylin@us.ibm.com&gt;, Ian Partridge &lt;ian@poncho.org.uk&gt;, swift-corelibs-dev &lt;swift-corelibs-dev@swift.org&gt;</font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">07/06/2017 01:42 PM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [swift-corelibs-dev] TimeZone database</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">alblue@apple.com</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br>It looks like it's /usr/share/zoneinfo on all Ubuntu versions:<br><br><font size="1">alblue.local[~]$ docker run -it --rm ubuntu:14.04 find /usr -name zone.tab</font><br><font size="1">/usr/share/zoneinfo/zone.tab</font><br><font size="1">alblue.local[~]$ docker run -it --rm ubuntu:16.04 find /usr -name zone.tab</font><br><font size="1">/usr/share/zoneinfo/zone.tab</font><br><font size="1">alblue.local[~]$ docker run -it --rm ubuntu:16.10 find /usr -name zone.tab</font><br><font size="1">/usr/share/zoneinfo/zone.tab</font><br><br>This is the same that's coming from CFTimeZone.c:<br><br><a href="https://github.com/apple/swift-corelibs-foundation/blob/2611dcd0d9b91fecace537838294bd85f0220503/CoreFoundation/NumberDate.subproj/CFTimeZone.c#L36-L39"><u><font color="#0000FF">https://github.com/apple/swift-corelibs-foundation/blob/2611dcd0d9b91fecace537838294bd85f0220503/CoreFoundation/NumberDate.subproj/CFTimeZone.c#L36-L39</font></u></a><br><br>Is it possible that the MacOS header is being included and defining TZDIR before the CFTimeZone.c file is compiled?<br><br>Alex<br>
<ul><ul>On 6 Jul 2017, at 19:22, Tony Parker via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org"><u><font color="#0000FF">swift-corelibs-dev@swift.org</font></u></a>&gt; wrote:<br><br>Is the path to zoneinfo different on the Ubuntu docker image?<br><br>- Tony<br>
<ul><ul>On Jul 6, 2017, at 9:36 AM, Youming Lin &lt;<a href="mailto:ylin@us.ibm.com"><u><font color="#0000FF">ylin@us.ibm.com</font></u></a>&gt; wrote:<br>
<p><font size="2">We were seeing this on Travis too. Specifically, on a Travis matrix build using Swift 3.1.1 on a Ubuntu 16.04 docker image running inside a Travis 14.04 VM.<br><br>The issue was specific to the Ubuntu 16.04 docker image; when I tested in Ubuntu 16.04 OS as a guest VM, the issue went away.</font><br><font size="2"><br>Thanks,<br><br>Youming Lin<br>IBM Cloud, Swift@IBM, Kitura developer<br>Austin, TX<br>GitHub: @youming-lin</font><br><br>&lt;graycol.gif&gt;<font size="2" color="#424282">Tony Parker via swift-corelibs-dev ---07/06/2017 10:31:15 AM---Yes, we’re discussing this one internally too and trying to figure out what the right answer is. May</font><br><font size="2" color="#5F5F5F"><br>From: </font><font size="2">Tony Parker via swift-corelibs-dev &lt;</font><a href="mailto:swift-corelibs-dev@swift.org"><u><font size="2" color="#0000FF">swift-corelibs-dev@swift.org</font></u></a><font size="2">&gt;</font><font size="2" color="#5F5F5F"><br>To: </font><font size="2">Ian Partridge &lt;</font><a href="mailto:ian@poncho.org.uk"><u><font size="2" color="#0000FF">ian@poncho.org.uk</font></u></a><font size="2">&gt;</font><font size="2" color="#5F5F5F"><br>Cc: </font><font size="2">swift-corelibs-dev &lt;</font><a href="mailto:swift-corelibs-dev@swift.org"><u><font size="2" color="#0000FF">swift-corelibs-dev@swift.org</font></u></a><font size="2">&gt;</font><font size="2" color="#5F5F5F"><br>Date: </font><font size="2">07/06/2017 10:31 AM</font><font size="2" color="#5F5F5F"><br>Subject: </font><font size="2">Re: [swift-corelibs-dev] TimeZone database</font><font size="2" color="#5F5F5F"><br>Sent by: </font><a href="mailto:swift-corelibs-dev-bounces@swift.org"><u><font size="2" color="#0000FF">swift-corelibs-dev-bounces@swift.org</font></u></a><p><hr width="100%" size="2" align="left" noshade><br><br><br>Yes, we’re discussing this one internally too and trying to figure out what the right answer is. Maybe the best solution for now is to find a good mechanism to check the underlying version of the OS and split it out into a function as you suggest.<br><br>- Tony
<ul><ul><ul><ul>On Jul 6, 2017, at 7:37 AM, Ian Partridge via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org"><u><font color="#0000FF">swift-corelibs-dev@swift.org</font></u></a>&gt; wrote:<br><font size="2" face="Helvetica"><br>Good shout Simon, you are right. I'm on Sierra. Compare and contrast:<br><br>/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/tzfile.h<br>#define TZDIR &quot;/usr/share/zoneinfo&quot;<br><br>/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/tzfile.h<br>#define TZDIR &quot;/var/db/timezone/zoneinfo&quot;<br><br>so I guess if I installed the High Sierra beta it would work OK.<br><br>I hacked CF to force it to use /usr/share/zoneinfo and TestFoundation<br>is much happier, but that's not a solution.<br><br>On 6 July 2017 at 15:20, Simon Evans &lt;</font><a href="mailto:si@si.org"><u><font size="2" color="#0000FF" face="Helvetica">si@si.org</font></u></a><font size="2" face="Helvetica">&gt; wrote:</font><ul><ul><ul><ul><font size="2" face="Helvetica">Ian<br><br>I also saw this error, I think its because the TZDIR is different in the headers shipped with Xcode 9. Maybe the location of the timezone directory was moved between Sierra and High Sierra. What version of macOS are you testing on?<br><br>If it has indeed moved between 10.12 and 10.13 it may require a runtime version check to dynamically return TZDIR.<br><br>Simon<br></font><ul><ul><ul><ul><font size="2" face="Helvetica">On 6 Jul 2017, at 15:09, Ian Partridge via swift-corelibs-dev &lt;</font><a href="mailto:swift-corelibs-dev@swift.org"><u><font size="2" color="#0000FF" face="Helvetica">swift-corelibs-dev@swift.org</font></u></a><font size="2" face="Helvetica">&gt; wrote:<br><br>Hi,<br><br>I'm seeing quite a lot of tests failing when running the<br>TestFoundation target in Xcode. The failures are timezone related.<br>Most simply, the code<br><br>let timeZone = TimeZone(abbreviation: &quot;GMT&quot;)<br><br>is returning nil.<br><br>Walking through the CF code which sets things up, it seems to be<br>trying to read the timezone database from<br>/var/db/timezone/zoneinfo/zone.tab which doesn't exist on my macOS<br>system.<br><br>/usr/share/zoneinfo/zone.tab is there and seems to be the right<br>location (?), but CF is picking up TZDIR from tzfile.h which says:<br><br>#define TZDIR &quot;/var/db/timezone/zoneinfo&quot;<br><br>Any thoughts? I feel like I'm missing something obvious and have gone<br>too far down the rabbit hole.<br><br>--<br>Ian Partridge<br>_______________________________________________<br>swift-corelibs-dev mailing list</font><u><font color="#0000FF"><br></font></u><a href="mailto:swift-corelibs-dev@swift.org"><u><font size="2" color="#0000FF" face="Helvetica">swift-corelibs-dev@swift.org</font></u></a><u><font size="2" color="#0000FF" face="Helvetica"><br></font></u><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><u><font size="2" color="#0000FF" face="Helvetica">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</font></u></a></ul></ul></ul></ul></ul></ul></ul></ul><br><font size="2" face="Helvetica"><br><br>-- <br>Ian Partridge<br>_______________________________________________<br>swift-corelibs-dev mailing list</font><u><font color="#0000FF"><br></font></u><a href="mailto:swift-corelibs-dev@swift.org"><u><font size="2" color="#0000FF" face="Helvetica">swift-corelibs-dev@swift.org</font></u></a><u><font color="#0000FF"><br></font></u><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><u><font size="2" color="#0000FF" face="Helvetica">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</font></u></a></ul></ul></ul></ul><tt><font size="2">_______________________________________________<br>swift-corelibs-dev mailing list</font></tt><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="mailto:swift-corelibs-dev@swift.org"><tt><u><font size="2" color="#0000FF">swift-corelibs-dev@swift.org</font></u></tt></a><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><tt><u><font size="2" color="#0000FF">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</font></u></tt></a><br><br><br></ul></ul><br>_______________________________________________<br>swift-corelibs-dev mailing list<u><font color="#0000FF"><br></font></u><a href="mailto:swift-corelibs-dev@swift.org"><u><font color="#0000FF">swift-corelibs-dev@swift.org</font></u></a><br><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a></ul></ul><br><br><BR>
</body></html>