-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timezone_data: update to version 2023c #9519
Conversation
/bin/date is from coreutils, what's the relation? libtz.a is also provided without headers by arch linux. Why is there a lib:libtz PROVIDES btw? |
Left over from the original recipe, and my lack of experience, as usual. |
Set make flags also on BUILD(), otherwise tzselect ended up with the wrong location for TZDIR. Previous version failed with: `/bin/tzselect: time zone files are not set up correctly` Now it finds the files ok, but trying to use it further causes /bin/date to crash around 7 times in a row (?!). `> zdump -v America/Buenos_Aires` also works now, while previously failed with: `America/Buenos_Aires: No such file or directory`, or with: ``` > ln -s /boot/system/data/zoneinfo/America/Buenos_Aires /etc/localtime > zdump -v /etc/localtime /etc/localtime: No error ``` Now the latter also works OK.
bd9b8ea
to
d2ba2d7
Compare
Found what causes /bin/date to crash. tzselect calls (eight times in a loop, at line 638): TZdate=`LANG=C TZ="$TZ_for_date" date` At that point, The following works from Terminal:
But tzselect is doing:
And that crashes /bin/date (saved report looks like an exact match to my previous comment). While
does not crashes. This is as far as my skills go so... HALP!? :-D |
Looks like it would deserve an Haiku bug report... |
For reference, done as: https://dev.haiku-os.org/ticket/18598 |
The |
What's left with this PR? |
Nothing else from my end. |
Yup. Seems I misremembered having tested it on 32 bits. I have a working recipe now, after moving it to What are the alternatives here? 1- Adding: if [ "$targetArchitecture" = x86_gcc2 ]; then
REPLACES="
timezone_data
"
fi Would this be enough for now until the Python recipes are changed to require 2- Adding if [ "$targetArchitecture" = x86_gcc2 ]; then
PROVIDES+="
timezone_data
"
fi This shouldn't require changes on other recipes, but as there's a 3- Split the package into pure data (timezones only, Three packages for this seems excessive, but not sure about what to call a package that includes both the 4- Fix the problem with that I don't feel comfortable touching the defines on 5- Something else? |
Seems, for C89, a macro needs to be defined: |
Thanks @korli! Adding |
This workaround works for now. In the future we should probably move this recipe to "_x86". See details on haikuports#9519.
This workaround works for now. In the future we should probably move this recipe to "_x86". See details on #9519.
Set make flags also on BUILD(), otherwise tzselect ended up with the wrong location for TZDIR.
Previous version failed with:
/bin/tzselect: time zone files are not set up correctly
Now it finds the files ok, but trying to use it further causes /bin/date to crash around 7 times in a row (?!).
> zdump -v America/Buenos_Aires
also works now, while previously failed with:America/Buenos_Aires: No such file or directory
,or with:
Now the latter also works OK.