From cfb023720af8f7cb1fa8334752d3e9d668799b10 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 8 Jun 2022 18:13:49 -0700 Subject: [PATCH] domoticz: fix compilation with GCC12 Upstream backport Signed-off-by: Rosen Penev --- utils/domoticz/patches/010-gcc12.patch | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 utils/domoticz/patches/010-gcc12.patch diff --git a/utils/domoticz/patches/010-gcc12.patch b/utils/domoticz/patches/010-gcc12.patch new file mode 100644 index 0000000000..676e6a30cb --- /dev/null +++ b/utils/domoticz/patches/010-gcc12.patch @@ -0,0 +1,29 @@ +From 2975b1113d9540f39b6bade3b6d459b61c2e5007 Mon Sep 17 00:00:00 2001 +From: Arjen de Korte +Date: Sun, 15 May 2022 19:00:02 +0200 +Subject: [PATCH] Fix compilation with GCC12 + +Building domoticz fails under GCC12 with the following error: + +In file included from /usr/include/c++/12/utility:68, + from /home/abuild/rpmbuild/BUILD/domoticz-2022.1/main/LuaTable.cpp:10: +/usr/include/c++/12/bits/stl_relops.h:86:5: error: template with C linkage + 86 | template + | ^~~~~~~~ +--- + main/LuaTable.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/main/LuaTable.cpp ++++ b/main/LuaTable.cpp +@@ -6,9 +6,9 @@ extern "C" { + #include + #include + #include ++} + + #include +-} + + CLuaTable::CLuaTable(lua_State *lua_state, const std::string &Name) + { -- 2.30.2