Date: Mon, 21 Nov 2016 12:27:16 +0000 (UTC) From: "Jason E. Hale" <jhale@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r426708 - head/security/gpgme/files Message-ID: <201611211227.uALCRG2F043486@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 + {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611211227.uALCRG2F043486>