From c03d36afb745368b78423cbf448dd4b4889d3403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 1 Dec 2022 09:47:57 +0700 Subject: [PATCH] libnest2d: fix build with gcc-12 --- .../patches/boost-geometry-need-cxx-14.patch | 14 ++++++++++++++ srcpkgs/libnest2d/template | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libnest2d/patches/boost-geometry-need-cxx-14.patch diff --git a/srcpkgs/libnest2d/patches/boost-geometry-need-cxx-14.patch b/srcpkgs/libnest2d/patches/boost-geometry-need-cxx-14.patch new file mode 100644 index 00000000000..9de18db50ab --- /dev/null +++ b/srcpkgs/libnest2d/patches/boost-geometry-need-cxx-14.patch @@ -0,0 +1,14 @@ +Index: libnest2d-0.4/CMakeLists.txt +=================================================================== +--- libnest2d-0.4.orig/CMakeLists.txt ++++ libnest2d-0.4/CMakeLists.txt +@@ -2,9 +2,6 @@ cmake_minimum_required(VERSION 3.0) + + project(Libnest2D) + +-set(CMAKE_CXX_STANDARD 11) +-set(CMAKE_CXX_STANDARD_REQUIRED) +- + # Add our own cmake module path. + list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_modules/) + diff --git a/srcpkgs/libnest2d/template b/srcpkgs/libnest2d/template index bb68eac3f97..62fc492badb 100644 --- a/srcpkgs/libnest2d/template +++ b/srcpkgs/libnest2d/template @@ -4,7 +4,7 @@ version=0.4 revision=1 build_style=cmake configure_args="-DBUILD_SHARED_LIBS=ON -DLIBNEST2D_HEADER_ONLY=OFF - -DLIBNEST2D_BUILD_UNITTESTS=ON -DCMAKE_CXX_STANDARD=14" + -DLIBNEST2D_BUILD_UNITTESTS=ON" makedepends="clipper-devel nlopt-devel boost-devel catch2" checkdepends="catch2" short_desc="2D irregular bin packing and nesting library"