<html><body><p><font size="2">Thanks for pointing me to the package. Turns out it was intentional:<br></font><a href="https://github.com/docker-library/official-images/issues/2863"><font size="2">https://github.com/docker-library/official-images/issues/2863</font></a><font size="2"><br><br>A caveat to Swift developers using official Docker Ubuntu images in the future.<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__=8FBB0BC6DFE262F98f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for Simon Evans ---07/06/2017 03:20:57 PM---Looks like timezone files are in the ‘tzdata’ package. Mayb"><font size="2" color="#424282">Simon Evans ---07/06/2017 03:20:57 PM---Looks like timezone files are in the ‘tzdata’ package. Maybe it got uninstalled or was never install</font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">Simon Evans <si@si.org></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">Youming Lin <ylin@us.ibm.com></font><br><font size="2" color="#5F5F5F">Cc: </font><font size="2">Alex Blewitt <alblue@apple.com>, Ian Partridge <ian@poncho.org.uk>, swift-corelibs-dev <swift-corelibs-dev@swift.org></font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">07/06/2017 03:20 PM</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">Re: [swift-corelibs-dev] TimeZone database</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br>Looks like timezone files are in the ‘tzdata’ package. Maybe it got uninstalled or was never installed as part of the base. An ‘apt-get install tzdata’ might fix it.<br><br>Simon<br>
<ul><ul>On 6 Jul 2017, at 20:20, Youming Lin 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>
<p><font size="2">That's odd. Maybe my ubuntu:16.04 image is outdated or something, but here are my outputs:<br></font><font face="Monaco"><br>ylin@youming-mbpr:~/Swift/Kitura-Markdown$ docker run -it --rm ubuntu:16.04 find /usr -name zone.tab<br>ylin@youming-mbpr:~/Swift/Kitura-Markdown$ docker run -it --rm ubuntu:14.04 find /usr -name zone.tab<br>/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></font><font face="Monaco"><br>ylin@youming-mbpr:~/Swift/Kitura-Markdown$ docker images<br>REPOSITORY TAG IMAGE ID CREATED SIZE<br>ubuntu 16.04 7b9b13f7b9c0 4 weeks ago 118MB<br>ubuntu 14.04 132b7427a3b4 4 weeks ago 188MB</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><graycol.gif><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><font size="2" color="#5F5F5F"><br>From: </font><font size="2">Alex Blewitt <</font><a href="mailto:alblue@apple.com"><u><font size="2" color="#0000FF">alblue@apple.com</font></u></a><font size="2">></font><font size="2" color="#5F5F5F"><br>To: </font><font size="2">Tony Parker <</font><a href="mailto:anthony.parker@apple.com"><u><font size="2" color="#0000FF">anthony.parker@apple.com</font></u></a><font size="2">></font><font size="2" color="#5F5F5F"><br>Cc: </font><font size="2">Youming Lin <</font><a href="mailto:ylin@us.ibm.com"><u><font size="2" color="#0000FF">ylin@us.ibm.com</font></u></a><font size="2">>, Ian Partridge <</font><a href="mailto:ian@poncho.org.uk"><u><font size="2" color="#0000FF">ian@poncho.org.uk</font></u></a><font size="2">>, swift-corelibs-dev <</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">></font><font size="2" color="#5F5F5F"><br>Date: </font><font size="2">07/06/2017 01:42 PM</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:alblue@apple.com"><u><font size="2" color="#0000FF">alblue@apple.com</font></u></a><p><hr width="100%" size="2" align="left" noshade><br><br><br>It looks like it's /usr/share/zoneinfo on all Ubuntu versions:<br><font size="2"><br>alblue.local[~]$ docker run -it --rm ubuntu:14.04 find /usr -name zone.tab<br>/usr/share/zoneinfo/zone.tab<br>alblue.local[~]$ docker run -it --rm ubuntu:16.04 find /usr -name zone.tab<br>/usr/share/zoneinfo/zone.tab<br>alblue.local[~]$ docker run -it --rm ubuntu:16.10 find /usr -name zone.tab<br>/usr/share/zoneinfo/zone.tab</font><br><br>This is the same that's coming from CFTimeZone.c:<br><u><font color="#0000FF"><br></font></u><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
<ul><ul><ul><ul>On 6 Jul 2017, at 19:22, Tony Parker 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>Is the path to zoneinfo different on the Ubuntu docker image?<br><br>- Tony
<ul><ul><ul><ul>On Jul 6, 2017, at 9:36 AM, Youming Lin <<a href="mailto:ylin@us.ibm.com"><u><font color="#0000FF">ylin@us.ibm.com</font></u></a>> wrote:
<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><br>Thanks,<br><br>Youming Lin<br>IBM Cloud, Swift@IBM, Kitura developer<br>Austin, TX<br>GitHub: @youming-lin</font><br><br><graycol.gif><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><font size="2" color="#5F5F5F"><br><br>From: </font><font size="2">Tony Parker via swift-corelibs-dev <</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">></font><font size="2" color="#5F5F5F"><br>To: </font><font size="2">Ian Partridge <</font><a href="mailto:ian@poncho.org.uk"><u><font size="2" color="#0000FF">ian@poncho.org.uk</font></u></a><font size="2">></font><font size="2" color="#5F5F5F"><br>Cc: </font><font size="2">swift-corelibs-dev <</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">></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><br><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><ul><ul><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:<font size="2" face="Helvetica"><br><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 "/usr/share/zoneinfo"<br><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"<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 <</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><ul><ul><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</font><ul><ul><ul><ul><ul><ul><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 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></ul></ul></ul></ul></ul></ul></ul></ul></ul></ul></ul></ul><font size="2" face="Helvetica"><br><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></ul></ul></ul></ul><tt><font size="2">_______________________________________________<br>swift-corelibs-dev mailing list</font></tt><u><font color="#0000FF"><br></font></u><a href="mailto:swift-corelibs-dev@swift.org"><tt><u><font size="2" color="#0000FF">swift-corelibs-dev@swift.org</font></u></tt></a><u><font color="#0000FF"><br></font></u><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></ul></ul></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><u><font color="#0000FF"><br></font></u><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><u><font color="#0000FF">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</font></u></a></ul></ul></ul></ul><br><br><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>