retitle 1154771 FTBFS against libixion 0.21/liborcus 0.22: C++20 needed; API
changes(?)
thanks
Hi again,
Am 22.11.26 12:32, schrieb Rene Engelhard:
> I did the usual
[...]
> (which probably should be upstreamed in any case.) But that of course fails
> to build later:
[...]
> Which is the C++20 change, so probably hides a lot of the actual API changes.
After an additional
--- labplot-2.12.1.orig/CMakeLists.txt
+++ labplot-2.12.1/CMakeLists.txt
@@ -6,7 +6,7 @@ set(YEAR 2025)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
-set(CMAKE_CXX_STANDARD 17)
+set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
@@ -130,7 +130,7 @@ if(NOT APPLE)
endif()
set (GENERIC_C_FLAGS "${GENERIC_FLAGS} -fno-exceptions")
# liborigin needs exceptions
-set (GENERIC_CXX_FLAGS "${GENERIC_FLAGS} -fexceptions -std=c++17")
+set (GENERIC_CXX_FLAGS "${GENERIC_FLAGS} -fexceptions -std=c++20")
if("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
message(STATUS "GNU C compiler ${CMAKE_C_COMPILER_VERSION} detected,
adding compile flags")
@@ -261,7 +261,7 @@ if(CMAKE_VERSION VERSION_GREATER "3.5")
message(STATUS "Clang-tidy supported, found and enabled:
${CLANG_TIDY_EXE}")
set(CLANG_TIDY_CHECKS
"modernize-*,-modernize-use-trailing-return-type,clang-analyzer-*,-clang-analyzer-cplusplus*")
#set(CLANG_TIDY_CHECKS "-*,modernize-*,clang-analyzer-*")
- # -extra-arg=--std=c++17
+ # -extra-arg=--std=c++20
set(CMAKE_CXX_CLANG_TIDY
"${CLANG_TIDY_EXE};-checks=${CLANG_TIDY_CHECKS};-header-filter='${CMAKE_SOURCE_DIR}/*'"
CACHE STRING "" FORCE)
else()
This astonishinly builds.
Still running, so no tests (but they fail before and the results are
ignored anyway...). No idea whether that actually works...
Regards,
Rene