diff -Nru gpgme1.0-1.17.0/debian/changelog gpgme1.0-1.17.0/debian/changelog --- gpgme1.0-1.17.0/debian/changelog 2022-03-04 20:25:35.000000000 +0000 +++ gpgme1.0-1.17.0/debian/changelog 2022-03-04 21:45:58.000000000 +0000 @@ -1,3 +1,10 @@ +gpgme1.0 (1.17.0-0ubuntu1~20.04.sav1) focal; urgency=medium + + * Due FTBFS for i386 only (_FILE_OFFSET_BITS undefined for new Qt util.cpp): + - d/patches/: Add fix-ftbfs-for-i386-only.patch + + -- Rob Savoury Fri, 04 Mar 2022 13:45:58 -0800 + gpgme1.0 (1.17.0-0ubuntu1~20.04.sav0) focal; urgency=medium * New upstream release diff -Nru gpgme1.0-1.17.0/debian/patches/fix-ftbfs-for-i386-only.patch gpgme1.0-1.17.0/debian/patches/fix-ftbfs-for-i386-only.patch --- gpgme1.0-1.17.0/debian/patches/fix-ftbfs-for-i386-only.patch 1970-01-01 00:00:00.000000000 +0000 +++ gpgme1.0-1.17.0/debian/patches/fix-ftbfs-for-i386-only.patch 2022-03-04 21:44:39.000000000 +0000 @@ -0,0 +1,25 @@ +From: Rob Savoury +Date: Fri, 04 Mar 2022 13:41:43 -0800 +Subject: Fix FTBFS for i386 only + +New Qt util.{h,cpp} (GPGME 1.17.0) causes FTBFS on i386 due _FILE_OFFSET_BITS +being undefined only for i386. Make sure that _FILE_OFFSET_BITS is defined. +--- + lang/qt/src/util.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/lang/qt/src/util.h b/lang/qt/src/util.h +index 94c9733..3bb1434 100644 +--- a/lang/qt/src/util.h ++++ b/lang/qt/src/util.h +@@ -34,6 +34,10 @@ + #ifndef __QGPGME_UTIL_H__ + #define __QGPGME_UTIL_H__ + ++#ifndef _FILE_OFFSET_BITS ++# define _FILE_OFFSET_BITS 64 ++#endif ++ + #include + + #include diff -Nru gpgme1.0-1.17.0/debian/patches/series gpgme1.0-1.17.0/debian/patches/series --- gpgme1.0-1.17.0/debian/patches/series 2022-03-02 20:20:40.000000000 +0000 +++ gpgme1.0-1.17.0/debian/patches/series 2022-03-04 21:45:58.000000000 +0000 @@ -2,3 +2,4 @@ 0004-drop-python2-support.patch 0006-Ship-python-examples-with-python3-in-shebang-line.patch qt-fix-abi-compatibility-with-1.16.0.patch +fix-ftbfs-for-i386-only.patch