diff -Nru inkscape-1.2.2/debian/changelog inkscape-1.2.2/debian/changelog --- inkscape-1.2.2/debian/changelog 2023-09-06 04:09:36.000000000 +0800 +++ inkscape-1.2.2/debian/changelog 2023-09-16 14:43:10.000000000 +0800 @@ -1,3 +1,11 @@ +inkscape (1.2.2-2ubuntu4) mantic; urgency=medium + + * use -fexcess-precision=fast to compile 2geom. (LP: #2036181) + Since gcc-13, excess precision support has been implemented for C++. + -fexcess-precision=fast restores previous behavior. + + -- Shengjing Zhu Sat, 16 Sep 2023 14:43:10 +0800 + inkscape (1.2.2-2ubuntu3) mantic; urgency=medium * Add patch to specify Deja Vu Sans font to fix lpetest diff -Nru inkscape-1.2.2/debian/patches/series inkscape-1.2.2/debian/patches/series --- inkscape-1.2.2/debian/patches/series 2023-09-06 04:09:36.000000000 +0800 +++ inkscape-1.2.2/debian/patches/series 2023-09-16 14:43:10.000000000 +0800 @@ -9,3 +9,4 @@ skip-test-glyph-big-endian.patch skip-test-use.patch Fix-LPE-test-sensitivity-to-system-fonts-list.patch +use-fexcess-precision-fast-to-compile-2geom.patch diff -Nru inkscape-1.2.2/debian/patches/use-fexcess-precision-fast-to-compile-2geom.patch inkscape-1.2.2/debian/patches/use-fexcess-precision-fast-to-compile-2geom.patch --- inkscape-1.2.2/debian/patches/use-fexcess-precision-fast-to-compile-2geom.patch 1970-01-01 08:00:00.000000000 +0800 +++ inkscape-1.2.2/debian/patches/use-fexcess-precision-fast-to-compile-2geom.patch 2023-09-16 14:43:10.000000000 +0800 @@ -0,0 +1,27 @@ +From: Shengjing Zhu +Date: Sat, 16 Sep 2023 14:42:22 +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. + +Ubuntu-Bug: https://launchpad.net/bugs/2036181 +--- + src/3rdparty/2geom/CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/3rdparty/2geom/CMakeLists.txt b/src/3rdparty/2geom/CMakeLists.txt +index d2b06b9..987e004 100644 +--- a/src/3rdparty/2geom/CMakeLists.txt ++++ b/src/3rdparty/2geom/CMakeLists.txt +@@ -77,6 +77,10 @@ endif() + add_compile_options(-Wall -Wformat-security -Woverloaded-virtual -Wpointer-arith -Werror=return-type) + add_compile_options(-O2) + ++if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13) ++ add_compile_options(-fexcess-precision=fast) ++endif() ++ + # suppress the very annoying "#pragma ms_struct" Clang warning, caused by -mms-bitfield required for GTK + if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + if(WIN32)