diff options
author | Gene Carlson | 2023-09-09 08:14:41 +0200 |
---|---|---|
committer | Matteo Bernardini | 2024-04-20 17:23:46 +0200 |
commit | 54831ca06c5fb4187b21fcfdd2e708c5c0c2f7d2 (patch) | |
tree | 24e4a3fb29f7fe86c0127070d70ea46a8ec98f77 | |
parent | 7348664936073e3ad54706addd43560c23807ed8 (diff) | |
download | slackbuilds-fcitx5-mozc.tar.gz |
misc/fcitx5-mozc: Add missing include for gcc >= 13.x.fcitx5-mozc
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | misc/fcitx5-mozc/0013-mozc-includes.patch | 20 | ||||
-rw-r--r-- | misc/fcitx5-mozc/fcitx5-mozc.SlackBuild | 3 |
2 files changed, 23 insertions, 0 deletions
diff --git a/misc/fcitx5-mozc/0013-mozc-includes.patch b/misc/fcitx5-mozc/0013-mozc-includes.patch new file mode 100644 index 0000000000..b437f24e8b --- /dev/null +++ b/misc/fcitx5-mozc/0013-mozc-includes.patch @@ -0,0 +1,20 @@ +--- third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc 2023-09-05 17:36:23.973250174 +0900 ++++ third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc 2023-09-05 17:37:06.585477262 +0900 +@@ -5,6 +5,7 @@ + #include <algorithm> + #include <cassert> + #include <cmath> ++#include <cstdint> + #include <limits> + #include <string> + +--- third_party/abseil-cpp/absl/strings/internal/str_format/extension.h 2023-09-05 17:45:04.104106229 +0900 ++++ third_party/abseil-cpp/absl/strings/internal/str_format/extension.h 2023-09-05 17:45:24.484098612 +0900 +@@ -20,6 +20,7 @@ + + #include <cstddef> + #include <cstring> ++#include <cstdint> + #include <ostream> + + #include "absl/base/config.h" diff --git a/misc/fcitx5-mozc/fcitx5-mozc.SlackBuild b/misc/fcitx5-mozc/fcitx5-mozc.SlackBuild index 2d679c9fce..eb7836e054 100644 --- a/misc/fcitx5-mozc/fcitx5-mozc.SlackBuild +++ b/misc/fcitx5-mozc/fcitx5-mozc.SlackBuild @@ -165,6 +165,9 @@ cd src/ # Build with gcc instead of clang echo "... Apply 0012-mozc-build-gcc.patch" patch -p1 < $CWD/0012-mozc-build-gcc.patch +# gcc-13 compatibility +echo "... Apply 0013-mozc-includes.patch" +patch -p0 < $CWD/0013-mozc-includes.patch # Fix compatibility with google-glog 0.3.3 (symbol conflict) CFLAGS="${CFLAGS} -fvisibility=hidden" |