From ca6f71fa4bb0c72d596ce3087a198f7ea00cfff3 Mon Sep 17 00:00:00 2001 From: "Jason E. Hale" Date: Mon, 21 Nov 2016 12:27:15 +0000 Subject: [PATCH] Fix build of security/gpgme-qt5 with gcc49 In file included from qgpgmebackend.cpp:42:0: ../../../lang/cpp/src/engineinfo.h: In constructor 'GpgME::EngineInfo::Version::Version(const string&)': ../../../lang/cpp/src/engineinfo.h:47:17: error: 'sscanf' is not a member of 'std' std::sscanf(version.c_str(), "%d.%d.%d", &major, &minor, &patch) != 3) { PR: 214687 Submitted by: tcberner --- .../gpgme/files/patch-lang_cpp_src_engineinfo.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 security/gpgme/files/patch-lang_cpp_src_engineinfo.h diff --git a/security/gpgme/files/patch-lang_cpp_src_engineinfo.h b/security/gpgme/files/patch-lang_cpp_src_engineinfo.h new file mode 100644 index 000000000000..38cd5c3bd9c7 --- /dev/null +++ b/security/gpgme/files/patch-lang_cpp_src_engineinfo.h @@ -0,0 +1,17 @@ +In file included from qgpgmebackend.cpp:42:0: +../../../lang/cpp/src/engineinfo.h: In constructor 'GpgME::EngineInfo::Version::Version(const string&)': +../../../lang/cpp/src/engineinfo.h:47:17: error: 'sscanf' is not a member of 'std' + std::sscanf(version.c_str(), "%d.%d.%d", &major, &minor, &patch) != 3) { + ^ + + +--- lang/cpp/src/engineinfo.h.orig 2016-11-20 11:59:52 UTC ++++ lang/cpp/src/engineinfo.h +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + + namespace GpgME + {