Package: openscad
Version: 2021.01-6
Severity: normal
Tags: ftbfs
X-Debbugs-Cc: reic...@debian.org

Dear maintainer,

your package fails to build with cgal 6.0~beta1-1, which has recently been
uploaded to experimental. See [1] for the release notes with breaking changes.

[1] https://github.com/CGAL/cgal/releases/tag/v6.0-beta1

It seems that the build failure can be easily fixed just by requiring C++17
(see attached patch).

Best regards,
  Joachim
Index: openscad-2021.01/CMakeLists.txt
===================================================================
--- openscad-2021.01.orig/CMakeLists.txt
+++ openscad-2021.01/CMakeLists.txt
@@ -68,7 +68,7 @@ file(MAKE_DIRECTORY ${AUTOGEN_BUILD_DIR}
 
 add_compile_options("$<$<CONFIG:DEBUG>:-DDEBUG>")
 
-set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD 17)
 add_definitions(-D_REENTRANT -DUNICODE -D_UNICODE)
 # Stack size 8MB; github issue 116
 add_definitions(-DSTACKSIZE=8388608)
Index: openscad-2021.01/c++std.pri
===================================================================
--- openscad-2021.01.orig/c++std.pri
+++ openscad-2021.01/c++std.pri
@@ -26,8 +26,8 @@ macx {
 }
 
 c++std {
-  CONFIG += c++14 strict_c++
-  message("Using C++14")
+  CONFIG += c++17 strict_c++
+  message("Using C++17")
 
   *clang*: {
       # 3rd party libraries will probably violate this for a long time

Reply via email to