svn commit: r426708 - head/security/gpgme/files
Jason E. Hale
jhale at FreeBSD.org
Mon Nov 21 12:27:17 UTC 2016
Author: jhale
Date: Mon Nov 21 12:27:15 2016
New Revision: 426708
URL: https://svnweb.freebsd.org/changeset/ports/426708
Log:
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
Added:
head/security/gpgme/files/patch-lang_cpp_src_engineinfo.h (contents, props changed)
Added: head/security/gpgme/files/patch-lang_cpp_src_engineinfo.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/gpgme/files/patch-lang_cpp_src_engineinfo.h Mon Nov 21 12:27:15 2016 (r426708)
@@ -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 <algorithm>
+ #include <string>
+ #include <iostream>
++#include <cstdio>
+
+ namespace GpgME
+ {
More information about the svn-ports-all
mailing list