kde-runtime: fix for gpgme >= 1.6.0

This commit is contained in:
Jürgen Buchmüller 2015-10-09 01:20:15 +02:00
parent 238336d166
commit dedea6949c
2 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,25 @@
Our gpgme package (>= 1.6.0) expects _FILE_OFFSET_BITS = 64
to be defined when gpgme.h is included.
--- kwalletd/backend/backendpersisthandler.cpp 2014-10-31 00:50:20.000000000 +0100
+++ kwalletd/backend/backendpersisthandler.cpp 2015-10-09 01:11:46.115305255 +0200
@@ -26,6 +26,8 @@
#include <kmessagebox.h>
#include <klocalizedstring.h>
#ifdef HAVE_QGPGME
+#undef _FILE_OFFSET_BITS
+#define _FILE_OFFSET_BITS 64
#include <gpgme.h>
#include <gpgme++/context.h>
#include <gpgme++/key.h>
--- kwalletd/knewwalletdialog.cpp 2014-10-31 00:50:20.000000000 +0100
+++ kwalletd/knewwalletdialog.cpp 2015-10-09 01:17:44.690277279 +0200
@@ -24,6 +24,8 @@
#include <QTimer>
#include <QTableWidget>
#include <QTableWidgetItem>
+#undef _FILE_OFFSET_BITS
+#define _FILE_OFFSET_BITS 64
#include <gpgme.h>
#include <gpgme++/context.h>
#include <gpgme++/key.h>

View File

@ -1,7 +1,7 @@
# Template file for 'kde-runtime'
pkgname=kde-runtime
version=4.14.3
revision=2
revision=3
build_style=cmake
configure_args="-Wno-dev -DKDE4_BUILD_TESTS=OFF DWITH_QNtrack=OFF -DWITH_NepomukCore=OFF"
# XXX OpenSLP