diff -Nru lib2geom-1.2.2/debian/changelog lib2geom-1.2.2/debian/changelog --- lib2geom-1.2.2/debian/changelog 2023-01-10 08:51:24.000000000 +0800 +++ lib2geom-1.2.2/debian/changelog 2023-09-16 14:52:37.000000000 +0800 @@ -1,3 +1,12 @@ +lib2geom (1.2.2-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * use -fexcess-precision=fast to compile 2geom (Closes: #1051980) + Since gcc-13, excess precision support has been implemented for C++. + -fexcess-precision=fast restores previous behavior. + + -- Shengjing Zhu Sat, 16 Sep 2023 14:52:37 +0800 + lib2geom (1.2.2-3) unstable; urgency=medium * Upload to unstable. diff -Nru lib2geom-1.2.2/debian/patches/0001-use-fexcess-precision-fast-to-compile-2geom.patch lib2geom-1.2.2/debian/patches/0001-use-fexcess-precision-fast-to-compile-2geom.patch --- lib2geom-1.2.2/debian/patches/0001-use-fexcess-precision-fast-to-compile-2geom.patch 1970-01-01 08:00:00.000000000 +0800 +++ lib2geom-1.2.2/debian/patches/0001-use-fexcess-precision-fast-to-compile-2geom.patch 2023-09-16 14:52:37.000000000 +0800 @@ -0,0 +1,27 @@ +From: Shengjing Zhu +Date: Sat, 16 Sep 2023 14:48:23 +0800 +Subject: use -fexcess-precision=fast to compile 2geom + +Since gcc-13, excess precision support has been implemented for C++. +-fexcess-precision=fast restores previous behavior. + +Debian-Bug: https://bugs.debian.org/1051980 +--- + CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d2b06b9..077d0c8 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -44,6 +44,10 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) + set(2GEOM_STANDALONE TRUE) + endif() + ++if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13) ++ add_compile_options(-fexcess-precision=fast) ++endif() ++ + option(2GEOM_TESTING "Build tests" "${2GEOM_STANDALONE}") + + if (2GEOM_TESTING) diff -Nru lib2geom-1.2.2/debian/patches/series lib2geom-1.2.2/debian/patches/series --- lib2geom-1.2.2/debian/patches/series 1970-01-01 08:00:00.000000000 +0800 +++ lib2geom-1.2.2/debian/patches/series 2023-09-16 14:52:37.000000000 +0800 @@ -0,0 +1 @@ +0001-use-fexcess-precision-fast-to-compile-2geom.patch