Date: Sat, 1 Sep 2018 09:42:11 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r478665 - head/finance/openhbci/files Message-ID: <201809010942.w819gBOf032773@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Sat Sep 1 09:42:10 2018 New Revision: 478665 URL: https://svnweb.freebsd.org/changeset/ports/478665 Log: finance/openhbci: Fix build with Clang 6 value.cpp:145:10: error: no viable conversion from 'std::__1::basic_istream<char>' to 'bool' bool readsuccess = (ist >> _value); ^ ~~~~~~~~~~~~~~~ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p478276_s338342/logs/errors/openhbci-0.9.17.2_1.log api.cpp:1263:13: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] "*"PLUGIN_EXT, ^ Added: head/finance/openhbci/files/patch-src_openhbci_api.cpp (contents, props changed) head/finance/openhbci/files/patch-src_openhbci_core_value.cpp (contents, props changed) head/finance/openhbci/files/patch-src_plugins_keyfile_keyfile.cpp (contents, props changed) Added: head/finance/openhbci/files/patch-src_openhbci_api.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/finance/openhbci/files/patch-src_openhbci_api.cpp Sat Sep 1 09:42:10 2018 (r478665) @@ -0,0 +1,11 @@ +--- src/openhbci/api.cpp.orig 2018-09-01 02:43:47 UTC ++++ src/openhbci/api.cpp +@@ -1260,7 +1260,7 @@ void API::_addPluginsFromDirs(Pointer<MediumPluginList + goon=false; + else { + if (-1!=parser::cmpPattern(entry, +- "*"PLUGIN_EXT, ++ "*" PLUGIN_EXT, + false)) { + Pointer<MediumPluginFile> mpf; + Added: head/finance/openhbci/files/patch-src_openhbci_core_value.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/finance/openhbci/files/patch-src_openhbci_core_value.cpp Sat Sep 1 09:42:10 2018 (r478665) @@ -0,0 +1,16 @@ +value.cpp:145:10: error: no viable conversion from 'std::__1::basic_istream<char>' to 'bool' + bool readsuccess = (ist >> _value); + ^ ~~~~~~~~~~~~~~~ + +--- src/openhbci/core/value.cpp.orig 2018-09-01 02:40:24 UTC ++++ src/openhbci/core/value.cpp +@@ -142,7 +142,8 @@ Value::Value(const string &strvalue) + setlocale(LC_NUMERIC, "C"); + + // Read float (double) value according to C-locale rules. +- bool readsuccess = (ist >> _value); ++ ist >> _value; ++ bool readsuccess = ist.good(); + + // Reset locale to cached string. + setlocale(LC_NUMERIC, oldloc.c_str()); Added: head/finance/openhbci/files/patch-src_plugins_keyfile_keyfile.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/finance/openhbci/files/patch-src_plugins_keyfile_keyfile.cpp Sat Sep 1 09:42:10 2018 (r478665) @@ -0,0 +1,11 @@ +--- src/plugins/keyfile/keyfile.cpp.orig 2018-09-01 02:44:43 UTC ++++ src/plugins/keyfile/keyfile.cpp +@@ -314,7 +314,7 @@ Error _checkVersion(const API *api) { + ERROR_LEVEL_NORMAL, + HBCI_ERROR_CODE_MEDIUM, + ERROR_ADVISE_DONTKNOW, +- "need OpenHBCI v"OPENHBCI_VERSION_FULL_STRING ++ "need OpenHBCI v" OPENHBCI_VERSION_FULL_STRING + " or newer"); + } +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809010942.w819gBOf032773>