diff -Nru gnucash-4.4/debian/changelog gnucash-4.4/debian/changelog --- gnucash-4.4/debian/changelog 2021-01-06 09:07:35.000000000 +0000 +++ gnucash-4.4/debian/changelog 2021-04-13 16:49:54.000000000 +0000 @@ -1,3 +1,9 @@ +gnucash (1:4.4-1ubuntu1) UNRELEASED; urgency=medium + + * Fix build with new glib + + -- Heather Ellsworth Tue, 13 Apr 2021 16:49:54 +0000 + gnucash (1:4.4-1) unstable; urgency=medium * New upstream release. diff -Nru gnucash-4.4/debian/patches/fix-build-with-new-glib gnucash-4.4/debian/patches/fix-build-with-new-glib --- gnucash-4.4/debian/patches/fix-build-with-new-glib 1970-01-01 00:00:00.000000000 +0000 +++ gnucash-4.4/debian/patches/fix-build-with-new-glib 2021-04-13 16:49:54.000000000 +0000 @@ -0,0 +1,42 @@ + Fix build with new glib + Remove the extern "C" to fix the build with a glib newer than 2.66. + See https://gitlab.gnome.org/GNOME/glib/-/issues/2331 for more info. +. + gnucash (1:4.4-1ubuntu1) UNRELEASED; urgency=medium + . + * Fix build with new glib +Author: Heather Ellsworth + +--- + +--- gnucash-4.4.orig/libgnucash/core-utils/gnc-filepath-utils.cpp ++++ gnucash-4.4/libgnucash/core-utils/gnc-filepath-utils.cpp +@@ -26,7 +26,6 @@ + * @author Copyright (c) 2000 Dave Peticolas + */ + +-extern "C" { + #include + + #include +@@ -62,7 +61,6 @@ extern "C" { + #ifdef MAC_INTEGRATION + #include + #endif +-} + + #include "gnc-locale-utils.hpp" + #include +--- gnucash-4.4.orig/libgnucash/core-utils/gnc-locale-utils.cpp ++++ gnucash-4.4/libgnucash/core-utils/gnc-locale-utils.cpp +@@ -19,10 +19,7 @@ + * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * + * Boston, MA 02110-1301, USA gnu@gnu.org * + \********************************************************************/ +-extern "C" +-{ + #include +-} + #include + #include + #include "gnc-locale-utils.hpp" diff -Nru gnucash-4.4/debian/patches/series gnucash-4.4/debian/patches/series --- gnucash-4.4/debian/patches/series 2020-10-03 05:09:42.000000000 +0000 +++ gnucash-4.4/debian/patches/series 2021-04-13 16:49:54.000000000 +0000 @@ -2,3 +2,4 @@ build-flags.patch #t-skip--python-bindings.patch +fix-build-with-new-glib