diff --git a/debian/changelog b/debian/changelog index 47e2059..b40f4a1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +pstoedit (3.77-1deepin1) unstable; urgency=medium + + * Fix build with GCC 12 + + -- Clansty Mon, 09 Jan 2023 18:29:14 +0800 + pstoedit (3.77-1) unstable; urgency=medium * New upstream release diff --git a/debian/patches/fix-riscv.patch b/debian/patches/fix-riscv.patch new file mode 100644 index 0000000..8f99793 --- /dev/null +++ b/debian/patches/fix-riscv.patch @@ -0,0 +1,19 @@ +Description: Fix build with GCC 12 + pstoedit (3.77-1deepin1) unstable; urgency=medium + . + * Fix build on RISC-V +Author: Clansty + +--- pstoedit-3.77.orig/src/drvpptx.cpp ++++ pstoedit-3.77/src/drvpptx.cpp +@@ -66,6 +66,10 @@ long lroundf(float f) { + + #include + ++#if __GNUC__ > 11 ++#include ++#endif ++ + #ifdef _MSC_VER + // MS VC++ Windows + // handle this warning: diff --git a/debian/patches/series b/debian/patches/series index 4c43a0c..ac43fdd 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 0001-spelling.patch +fix-riscv.patch