From owner-svn-ports-head@freebsd.org Mon Apr 4 19:00:24 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62DDEB0365C; Mon, 4 Apr 2016 19:00:24 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 353D1135C; Mon, 4 Apr 2016 19:00:24 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u34J0NRj074591; Mon, 4 Apr 2016 19:00:23 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u34J0NrP074590; Mon, 4 Apr 2016 19:00:23 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201604041900.u34J0NrP074590@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Mon, 4 Apr 2016 19:00:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r412524 - head/comms/telldus-core/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2016 19:00:24 -0000 Author: dim (src committer) Date: Mon Apr 4 19:00:23 2016 New Revision: 412524 URL: https://svnweb.freebsd.org/changeset/ports/412524 Log: During the exp-run in bug 208158, it was found that comms/telldus-core gives errors with libc++ 3.8.0 [1]: /wrkdirs/usr/ports/comms/telldus-core/work/telldus-core-2.1.2/service/ProtocolNexa.cpp:59:8: error: call to member function 'insert' is ambiguous str.insert(0, 1, 2); // Repeat two times ~~~~^~~~~~ This is because the third argument to this std::string method is supposed to be a char, not an integer. Fix it by using '\x2' instead. [1] http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_18h30m05s/logs/errors/telldus-core-2.1.2_1.log Approved by: johan@stromnet.se (maintainer) PR: 208523 MFH: 2016Q2 Added: head/comms/telldus-core/files/patch-service-ProtocolNexa.cpp (contents, props changed) Added: head/comms/telldus-core/files/patch-service-ProtocolNexa.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/telldus-core/files/patch-service-ProtocolNexa.cpp Mon Apr 4 19:00:23 2016 (r412524) @@ -0,0 +1,11 @@ +--- service/ProtocolNexa.cpp.orig 2014-03-31 12:30:09.000000000 +0200 ++++ service/ProtocolNexa.cpp 2016-04-04 13:32:35.124699000 +0200 +@@ -56,7 +56,7 @@ std::string ProtocolNexa::getStringForMe + // We also return the last packet so Device::doAction() doesn't + // report TELLSTICK_ERROR_METHOD_NOT_SUPPORTED + +- str.insert(0, 1, 2); // Repeat two times ++ str.insert(0, 1, '\x2'); // Repeat two times + str.insert(0, 1, 'R'); + for (int i = 0; i < 5; ++i) { + controller->send(str);