diff --git a/fcitx5-std-runtime_error.patch b/fcitx5-std-runtime_error.patch new file mode 100644 index 0000000..bffb888 --- /dev/null +++ b/fcitx5-std-runtime_error.patch @@ -0,0 +1,38 @@ +Index: fcitx5-4.99.0+git20200212.9436416/src/lib/fcitx-utils/event.h +=================================================================== +--- fcitx5-4.99.0+git20200212.9436416.orig/src/lib/fcitx-utils/event.h ++++ fcitx5-4.99.0+git20200212.9436416/src/lib/fcitx-utils/event.h +@@ -27,6 +27,8 @@ + #include + #include + ++#include ++ + namespace fcitx { + + enum class IOEventFlag { +Index: fcitx5-4.99.0+git20200212.9436416/src/lib/fcitx-utils/utf8.h +=================================================================== +--- fcitx5-4.99.0+git20200212.9436416.orig/src/lib/fcitx-utils/utf8.h ++++ fcitx5-4.99.0+git20200212.9436416/src/lib/fcitx-utils/utf8.h +@@ -29,6 +29,8 @@ + #include + #include + ++#include ++ + namespace fcitx { + namespace utf8 { + +Index: fcitx5-4.99.0+git20200212.9436416/src/lib/fcitx/candidatelist.cpp +=================================================================== +--- fcitx5-4.99.0+git20200212.9436416.orig/src/lib/fcitx/candidatelist.cpp ++++ fcitx5-4.99.0+git20200212.9436416/src/lib/fcitx/candidatelist.cpp +@@ -18,6 +18,7 @@ + // + + #include "candidatelist.h" ++#include + + namespace fcitx { + diff --git a/fcitx5.changes b/fcitx5.changes index 67235d5..486da10 100644 --- a/fcitx5.changes +++ b/fcitx5.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Sep 2 04:48:40 UTC 2020 - Marguerite Su + +- FTBFS for Tumbleweed + * add fcitx5-std-runtime_error.patch, std::runtime_error is in + stdexcept.h + ------------------------------------------------------------------- Tue Mar 3 21:17:37 UTC 2020 - Xu Zhao diff --git a/fcitx5.spec b/fcitx5.spec index e9c72ce..8f0b8ac 100644 --- a/fcitx5.spec +++ b/fcitx5.spec @@ -30,6 +30,8 @@ Source3: xim.d-fcitx5 Source4: macros.fcitx5 Source99: baselibs.conf Patch: fcitx5-no-download.patch +# PATCH-FIX-UPSTREAM marguerite@opensuse.org fcitx5-std-runtime_error.patch - std::runtime_error is in stdexcept.h +Patch1: fcitx5-std-runtime_error.patch BuildRequires: cldr-emoji-annotation-devel BuildRequires: cmake BuildRequires: extra-cmake-modules @@ -113,6 +115,7 @@ This package provides utility libraries for fcitx5. %prep %setup -q %patch -p1 +%patch1 -p1 cp -r %{S:1} src/modules/spell/dict/ %build