app-crypt/gpgme: fix gcc-7 issue
authorAlon Bar-Lev <alonbl@gentoo.org>
Sat, 8 Jul 2017 18:33:55 +0000 (21:33 +0300)
committerAlon Bar-Lev <alonbl@gentoo.org>
Sat, 8 Jul 2017 18:34:51 +0000 (21:34 +0300)
Bug: 623622

Package-Manager: Portage-2.3.6, Repoman-2.3.1

app-crypt/gpgme/files/gpgme-1.8.0-gcc-7.patch [new file with mode: 0644]
app-crypt/gpgme/gpgme-1.8.0-r3.ebuild

diff --git a/app-crypt/gpgme/files/gpgme-1.8.0-gcc-7.patch b/app-crypt/gpgme/files/gpgme-1.8.0-gcc-7.patch
new file mode 100644 (file)
index 0000000..9dd3e85
--- /dev/null
@@ -0,0 +1,16 @@
+diff --git a/lang/qt/src/qgpgmenewcryptoconfig.cpp b/lang/qt/src/qgpgmenewcryptoconfig.cpp
+index eb3af56..af47594 100644
+--- a/lang/qt/src/qgpgmenewcryptoconfig.cpp
++++ b/lang/qt/src/qgpgmenewcryptoconfig.cpp
+@@ -51,2 +51,3 @@
+ #include <cassert>
++#include <functional> /* std::mem_fn */
+ 
+diff --git a/lang/qt/src/threadedjobmixin.h b/lang/qt/src/threadedjobmixin.h
+index 32b23db..c4f85c2 100644
+--- a/lang/qt/src/threadedjobmixin.h
++++ b/lang/qt/src/threadedjobmixin.h
+@@ -53,2 +53,3 @@
+ #include <cassert>
++#include <functional> /* std::function */
+ 
index 852f9033430335adb3942f437032d066cc5e3dd4..c18cb6e64d684c36863b69f6469426b1dacbbb56 100644 (file)
@@ -39,6 +39,7 @@ REQUIRED_USE="qt5? ( cxx ) python? ( ${PYTHON_REQUIRED_USE} )"
 PATCHES=(
        "${FILESDIR}"/${PN}-1.1.8-et_EE.patch
        "${FILESDIR}"/${P}-cmake.patch
+       "${FILESDIR}"/${P}-gcc-7.patch
 )
 
 do_python() {