From 32b4f6f41f4c9e47f4a174bfd0bbfa01466a0a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= Date: Sun, 9 Oct 2022 14:29:04 +0100 Subject: [PATCH] xmoto: fix musl build --- .../patches/fix_gettext_GNU-isms_musl.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/xmoto/patches/fix_gettext_GNU-isms_musl.patch diff --git a/srcpkgs/xmoto/patches/fix_gettext_GNU-isms_musl.patch b/srcpkgs/xmoto/patches/fix_gettext_GNU-isms_musl.patch new file mode 100644 index 000000000000..f714af9e6fd7 --- /dev/null +++ b/srcpkgs/xmoto/patches/fix_gettext_GNU-isms_musl.patch @@ -0,0 +1,27 @@ +From 7ce512bf0242182306ceb75d7dbe2370aab838f8 Mon Sep 17 00:00:00 2001 +From: _yui +Date: Sun, 9 Oct 2022 14:48:05 +0300 +Subject: [PATCH] i18n: Don't use gettext GNU-isms with musl + +--- + src/common/Locales.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/common/Locales.cpp b/src/common/Locales.cpp +index 5ee395bd..680da00c 100644 +--- a/src/common/Locales.cpp ++++ b/src/common/Locales.cpp +@@ -66,11 +66,13 @@ std::pair Locales::changeLocale( + setlocale(LC_MESSAGES, NULL)); + #endif + ++#ifdef __GLIBC__ + /* Make change known. */ + { + extern int _nl_msg_cat_cntr; + ++_nl_msg_cat_cntr; + } ++#endif + + std::pair locale_str( + locale.first == NULL ? std::string("") : std::string(locale.first),