<html><body><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.<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__=8FBB0BC6DFC928908f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Tony Parker via swift-corelibs-dev ---07/06/2017 10:31:15 AM---Yes, we’re discussing this one intern"><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><br><font size="2" color="#5F5F5F">From: </font><font size="2">Tony Parker via swift-corelibs-dev <swift-corelibs-dev@swift.org></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">Ian Partridge <ian@poncho.org.uk></font><br><font size="2" color="#5F5F5F">Cc: </font><font size="2">swift-corelibs-dev <swift-corelibs-dev@swift.org></font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">07/06/2017 10:31 AM</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">swift-corelibs-dev-bounces@swift.org</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><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<br>
<ul><ul>On Jul 6, 2017, at 7:37 AM, Ian Partridge via swift-corelibs-dev <<a href="mailto:swift-corelibs-dev@swift.org"><u><font color="#0000FF">swift-corelibs-dev@swift.org</font></u></a>> wrote:<br><br><font size="2" face="Helvetica">Good shout Simon, you are right. I'm on Sierra. Compare and contrast:</font><br><font size="2" face="Helvetica"><br>/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/tzfile.h<br>#define TZDIR "/usr/share/zoneinfo"</font><br><font size="2" face="Helvetica"><br>/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/tzfile.h<br>#define TZDIR "/var/db/timezone/zoneinfo"</font><br><font size="2" face="Helvetica"><br>so I guess if I installed the High Sierra beta it would work OK.</font><br><font size="2" face="Helvetica"><br>I hacked CF to force it to use /usr/share/zoneinfo and TestFoundation<br>is much happier, but that's not a solution.</font><br><font size="2" face="Helvetica"><br>On 6 July 2017 at 15:20, Simon Evans <</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">> wrote:</font><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><br></font><ul><ul><font size="2" face="Helvetica">On 6 Jul 2017, at 15:09, Ian Partridge via swift-corelibs-dev <</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">> 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: "GMT")<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 "/var/db/timezone/zoneinfo"<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 size="2" color="#0000FF" face="Helvetica"><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><font size="2" face="Helvetica"><br></font><font size="2" face="Helvetica"><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a></font></ul></ul></ul></ul><br><br><font size="2" face="Helvetica"><br>-- <br>Ian Partridge<br>_______________________________________________<br>swift-corelibs-dev mailing list</font><u><font size="2" color="#0000FF" face="Helvetica"><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><tt><font size="2">_______________________________________________<br>swift-corelibs-dev mailing list<br>swift-corelibs-dev@swift.org<br></font></tt><tt><font size="2"><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a></font></tt><tt><font size="2"><br></font></tt><br><br><BR>
</body></html>