Re: [swift-corelibs-dev] TimeZone database

2017-07-13 Thread Robert Thompson via swift-corelibs-dev
For what it’s worth, a temporary workaround that’s working fine for me is just to create a symlink at /var/db/timezone/zoneinfo to point to /usr/share/zoneinfo on my Sierra machine. Obviously, this may not be a solution one can implement if you don’t fully control the machine in question (CI se

Re: [swift-corelibs-dev] TimeZone database

2017-07-10 Thread Tony Parker via swift-corelibs-dev
No solution is imminent - we may need to come up with a more portable workaround. - Tony > On Jul 10, 2017, at 5:48 AM, Ian Partridge wrote: > > Just picking this up again.. is a solution imminent? My hack is > > diff --git a/CoreFoundation/NumberDate.subproj/CFTimeZone.c > b/CoreFoundation/

Re: [swift-corelibs-dev] TimeZone database

2017-07-10 Thread Ian Partridge via swift-corelibs-dev
Just picking this up again.. is a solution imminent? My hack is diff --git a/CoreFoundation/NumberDate.subproj/CFTimeZone.c b/CoreFoundation/NumberDate.subproj/CFTimeZone.c index 434203ab43..86ab6ecb71 100644 --- a/CoreFoundation/NumberDate.subproj/CFTimeZone.c +++ b/CoreFoundation/NumberDate.sub

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Tony Parker via swift-corelibs-dev
ming-lin > > 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 > > From: Simon Evans > To: Youming Lin > Cc: Alex Blewitt , Ian Partridge , > swift-corelibs-dev > D

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Youming Lin via swift-corelibs-dev
From: Simon Evans To: Youming Lin Cc: Alex Blewitt , Ian Partridge , swift-corelibs-dev Date: 07/06/2017 03:20 PM Subject:Re: [swift-corelibs-dev] TimeZone database Looks like timezone files are in the ‘tzdata’ package. Maybe it got uninstalled or

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Simon Evans via swift-corelibs-dev
lblue.local[~]$ docker run -it > --rm > > From: Alex Blewitt > To: Tony Parker > Cc: Youming Lin , Ian Partridge , > swift-corelibs-dev > Date: 07/06/2017 01:42 PM > Subject: Re: [swift-corelibs-dev] TimeZone database > Sent by: alb...@apple.com > > > &g

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Tony Parker via swift-corelibs-dev
Hub: @youming-lin >>> >>> 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 >>> >>> From: Tony Parker via swift-corelibs-dev

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Youming Lin via swift-corelibs-dev
s-dev Date: 07/06/2017 01:42 PM Subject: Re: [swift-corelibs-dev] TimeZone database Sent by:alb...@apple.com It looks like it's /usr/share/zoneinfo on all Ubuntu versions: alblue.local[~]$ docker run -it --rm ubuntu:14.04 find /usr -name zone.tab /usr/shar

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Alex Blewitt via swift-corelibs-dev
t.org>> >> To: Ian Partridge mailto:i...@poncho.org.uk>> >> Cc: swift-corelibs-dev > <mailto:swift-corelibs-dev@swift.org>> >> Date: 07/06/2017 10:31 AM >> Subject: Re: [swift-corelibs-dev] TimeZone database >> Sent by: swift-corelibs-dev-boun

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Tony Parker via swift-corelibs-dev
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 > > From: Tony Parker via swift-corelibs-dev > To: Ian Partridge > Cc: swift-corelibs-dev > Date: 07/06/2017 10:31 A

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Youming Lin via swift-corelibs-dev
, Youming Lin IBM Cloud, Swift@IBM, Kitura developer Austin, TX GitHub: @youming-lin From: Tony Parker via swift-corelibs-dev To: Ian Partridge Cc: swift-corelibs-dev Date: 07/06/2017 10:31 AM Subject:Re: [swift-corelibs-dev] TimeZone database Sent by:swift

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Ian Partridge via swift-corelibs-dev
I've only poked this briefly, but it looks like CFCopySystemVersionString() might give the info we'd need? On 6 July 2017 at 16:28, Tony Parker wrote: > 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

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Tony Parker via swift-corelibs-dev
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. - Tony > On Jul 6, 2017, at 7:37 AM, Ian Partr

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Simon Evans via swift-corelibs-dev
Ian 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? If it has indeed moved between 10.12 and 10.13 it may requi

Re: [swift-corelibs-dev] TimeZone database

2017-07-06 Thread Ian Partridge via swift-corelibs-dev
Good shout Simon, you are right. I'm on Sierra. Compare and contrast: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/tzfile.h #define TZDIR "/usr/share/zoneinfo" /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platfo