-
Notifications
You must be signed in to change notification settings - Fork 307
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
mlt_property.h: Replace include xlocale.h by locale.h #248
Conversation
xlocale.h was removed in glibc 2.26 Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
@@ -31,7 +31,7 @@ | |||
#endif | |||
|
|||
#if defined(__GLIBC__) || defined(__APPLE__) || (__FreeBSD_version >= 900506) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This #if needs to be broken up if you are addressing a glibc change. Also, I think there should be a glibc version check as well with perhaps older versions still #include xlocale.h.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#if defined(GLIBC) || defined(APPLE) || (__FreeBSD_version >= 900506)
+#if GLIBC_MINOR >= 26
+#include <locale.h>
+#else
#include <xlocale.h>
+#endif
#else
typedef char* locale_t;
#endif
is this ok?
What does "patch as ping" mean? |
On Tue, Aug 8, 2017 at 7:24 PM, Dan Dennedy ***@***.***> wrote:
What does "patch as ping" mean?
Patch as ping meant: Although this patch might not be acceptable - you are
aware of this issue.
However: Travis check passed - is it done on glibc < 2.26? If so: Would it
be enough to split out glibc case only?
|
Travis is using Ubuntu 14.04 with glibc 2.19. It must also build on Debian 8, which is also v2.19.
Yes, I believe so, |
mlt, shotcut and webvfx all have this issue in openSUSE:Factory which has recently updated to glibc-2.26 can I safely patch them to use locale.h until this issue is resolved in version updates? |
On Fri, Aug 25, 2017 at 9:35 AM, Dave Plater ***@***.***> wrote:
mlt, shotcut and webvfx all have this issue in openSUSE:Factory which has
recently updated to glibc-2.26 can I safely patch them to use locale.h
until this issue is resolved in version updates?
OOps - by business stress I forgot this totally - and I don't have much
time to take care at the moment. Somebody to help out here?
|
I've made a patch:
|
The last comment patch looks good to me, and I will apply it over the weekend if you do not want to bother to make a pull request. Thank you for your help. |
I believe something was lost here, possibly due to github formatting. I tried this patch on my system and it would still include xlocale.h and fail to compile. While looking for the cause, I discovered that |
I never noticed that either, yes APPLE also lost it's underscores. Maybe this helps |
Got it, I need a ` on each end |
I just pushed a commit for this underscore issue fbf6a51 |
xlocale.h was removed in glibc 2.26
I could test glibc case only. If it won't work for other environments, please consider this patch as ping.