diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-12-19 14:44:04 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-12-27 09:55:19 -0800 |
commit | b15ce9b591ab3cf96522fa87305d09e7c5de4b2a (patch) | |
tree | 976708447ff9dc05ad2021276f8a9699c0e8ac9d | |
parent | bdfba1e04020bbfb47aba0a6ca12c1faf4403f5d (diff) | |
download | meta-openembedded-b15ce9b591ab3cf96522fa87305d09e7c5de4b2a.tar.gz |
wxwidgets: Fix locale on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/wxwidgets/wxwidgets/musl-locale-l.patch | 32 | ||||
-rw-r--r-- | meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.1.bb | 4 |
2 files changed, 33 insertions, 3 deletions
diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets/musl-locale-l.patch b/meta-oe/recipes-extended/wxwidgets/wxwidgets/musl-locale-l.patch new file mode 100644 index 0000000000..f83d2d4458 --- /dev/null +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets/musl-locale-l.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | these macro'd away functions don't exist in musl (yet) | ||
2 | diff --git a/include/wx/xlocale.h b/include/wx/xlocale.h | ||
3 | index c433d25..3ab9d84 100644 | ||
4 | --- a/include/wx/xlocale.h | ||
5 | +++ b/include/wx/xlocale.h | ||
6 | @@ -33,6 +33,26 @@ | ||
7 | #include "wx/crt.h" // Includes wx/chartype.h, wx/wxcrt.h(wx/string.h) | ||
8 | #include "wx/intl.h" // wxLanguage | ||
9 | |||
10 | +#ifndef strtol_l | ||
11 | +#define strtol_l(s, p, base, l) strtol(s, p, base) | ||
12 | +#endif | ||
13 | + | ||
14 | +#ifndef strtoul_l | ||
15 | +#define strtoul_l(s, p, base, l) strtoul(s, p, base) | ||
16 | +#endif | ||
17 | + | ||
18 | +#ifndef wcstod_l | ||
19 | +#define wcstod_l(s, p, l) wcstod(s, p) | ||
20 | +#endif | ||
21 | + | ||
22 | +#ifndef wcstol_l | ||
23 | +#define wcstol_l(s, p, base, l) wcstol(s, p, base) | ||
24 | +#endif | ||
25 | + | ||
26 | +#ifndef wcstoul_l | ||
27 | +#define wcstoul_l(s, p, base, l) wcstoul(s, p, base) | ||
28 | +#endif | ||
29 | + | ||
30 | // The platform-specific locale type | ||
31 | // If wxXLocale_t is not defined, then only "C" locale support is provided | ||
32 | #ifdef wxHAS_XLOCALE_SUPPORT | ||
diff --git a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.1.bb b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.1.bb index 03a75d8bd3..ae2995db20 100644 --- a/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.1.bb +++ b/meta-oe/recipes-extended/wxwidgets/wxwidgets_3.2.1.bb | |||
@@ -25,6 +25,7 @@ SRC_URI = "gitsm://github.com/wxWidgets/wxWidgets.git;branch=3.2;protocol=https | |||
25 | file://not-append-system-name-to-lib-name.patch \ | 25 | file://not-append-system-name-to-lib-name.patch \ |
26 | file://wx-config-fix-libdir-for-multilib.patch \ | 26 | file://wx-config-fix-libdir-for-multilib.patch \ |
27 | file://0001-locale-Avoid-using-glibc-specific-defines-on-musl.patch \ | 27 | file://0001-locale-Avoid-using-glibc-specific-defines-on-musl.patch \ |
28 | file://musl-locale-l.patch \ | ||
28 | " | 29 | " |
29 | SRCREV= "97e99707c5d2271a70cb686720b48dbf34ced496" | 30 | SRCREV= "97e99707c5d2271a70cb686720b48dbf34ced496" |
30 | S = "${WORKDIR}/git" | 31 | S = "${WORKDIR}/git" |
@@ -39,9 +40,6 @@ EXTRA_OECMAKE += " \ | |||
39 | -DwxUSE_LIBTIFF=sys \ | 40 | -DwxUSE_LIBTIFF=sys \ |
40 | -DwxUSE_REGEX=builtin \ | 41 | -DwxUSE_REGEX=builtin \ |
41 | " | 42 | " |
42 | EXTRA_OECMAKE:append:libc-musl = " \ | ||
43 | -DHAVE_LOCALE_T=OFF \ | ||
44 | " | ||
45 | EXTRA_OECMAKE:append:class-target = ' -DEGREP="/bin/grep -E"' | 43 | EXTRA_OECMAKE:append:class-target = ' -DEGREP="/bin/grep -E"' |
46 | 44 | ||
47 | # OpenGL support currently seems tied to using libglu, which requires x11 | 45 | # OpenGL support currently seems tied to using libglu, which requires x11 |