The update to boost 1.83 breaks the build of libime. The diff below
fixes the build and its consumers build as well. I haven't tried
updating to a newer version.
/tmp/pobj/libime-1.0.17/libime-1.0.17/tools/libime_prediction.cpp:32:10: error:
implicit instantiat
ion of undefined template 'std::array<char, 28>'
auto state = model.nullState();
^
/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
1 error generated.
Index: Makefile
===================================================================
RCS file: /cvs/ports/inputmethods/libime/Makefile,v
diff -u -p -r1.5 Makefile
--- Makefile 26 Sep 2023 17:58:08 -0000 1.5
+++ Makefile 17 Nov 2023 15:32:42 -0000
@@ -1,6 +1,7 @@
COMMENT = library to support generic input method implementation
DISTNAME = libime-1.0.17
+REVISION = 0
SHARED_LIBS += IMECore 0.0 # 0.0
SHARED_LIBS += IMEPinyin 0.0 # 0.0
Index: patches/patch-tools_libime_prediction_cpp
===================================================================
RCS file: patches/patch-tools_libime_prediction_cpp
diff -N patches/patch-tools_libime_prediction_cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-tools_libime_prediction_cpp 17 Nov 2023 15:32:42 -0000
@@ -0,0 +1,11 @@
+Index: tools/libime_prediction.cpp
+--- tools/libime_prediction.cpp.orig
++++ tools/libime_prediction.cpp
+@@ -7,6 +7,7 @@
+ #include "libime/core/constants.h"
+ #include "libime/core/datrie.h"
+ #include "libime/core/languagemodel.h"
++#include <array>
+ #include <boost/algorithm/string.hpp>
+ #include <cmath>
+ #include <fcitx-utils/log.h>