From owner-svn-ports-all@freebsd.org Thu Feb 25 12:16:35 2016 Return-Path: Delivered-To: svn-ports-all@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 1EB6FAB15D9; Thu, 25 Feb 2016 12:16:35 +0000 (UTC) (envelope-from rakuco@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 E63DD7E6; Thu, 25 Feb 2016 12:16:34 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1PCGX9h024153; Thu, 25 Feb 2016 12:16:33 GMT (envelope-from rakuco@FreeBSD.org) Received: (from rakuco@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1PCGXBG024150; Thu, 25 Feb 2016 12:16:33 GMT (envelope-from rakuco@FreeBSD.org) Message-Id: <201602251216.u1PCGXBG024150@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rakuco set sender to rakuco@FreeBSD.org using -f From: Raphael Kubo da Costa Date: Thu, 25 Feb 2016 12:16:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409510 - in head/devel/poco: . 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-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 12:16:35 -0000 Author: rakuco Date: Thu Feb 25 12:16:33 2016 New Revision: 409510 URL: https://svnweb.freebsd.org/changeset/ports/409510 Log: Fix the build on 9.3-i386 by working around base GCC's limitations. Add the "LL" suffix to constants that base GCC thinks are too big. PR: 207486 MFH: 2016Q1 Added: head/devel/poco/files/ head/devel/poco/files/patch-Foundation_testsuite_src_StringTest.cpp (contents, props changed) head/devel/poco/files/patch-JSON_testsuite_src_JSONTest.cpp (contents, props changed) Modified: head/devel/poco/Makefile Modified: head/devel/poco/Makefile ============================================================================== --- head/devel/poco/Makefile Thu Feb 25 12:14:01 2016 (r409509) +++ head/devel/poco/Makefile Thu Feb 25 12:16:33 2016 (r409510) @@ -11,8 +11,6 @@ COMMENT= C++ libraries with a network/in LICENSE= BSL -BROKEN_FreeBSD_9_i386= does not build - CONFLICTS= poco-ssl-[0-9]* USES= gmake tar:bzip2 Added: head/devel/poco/files/patch-Foundation_testsuite_src_StringTest.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/poco/files/patch-Foundation_testsuite_src_StringTest.cpp Thu Feb 25 12:16:33 2016 (r409510) @@ -0,0 +1,36 @@ +Workaround for base GCC on 9.3-i386: +src/StringTest.cpp:929: error: integer constant is too large for 'long' type +--- Foundation/testsuite/src/StringTest.cpp.orig 2014-12-22 08:08:19 UTC ++++ Foundation/testsuite/src/StringTest.cpp +@@ -926,10 +926,10 @@ void StringTest::testIntToString() + assert (uIntToStr(0xF0F0F0F0, 2, result)); + assert (result == "11110000111100001111000011110000"); + #if defined(POCO_HAVE_INT64) +- assert (uIntToStr(0xFFFFFFFFFFFFFFFF, 2, result)); +- std::cout << 0xFFFFFFFFFFFFFFFF << std::endl; ++ assert (uIntToStr(0xFFFFFFFFFFFFFFFFLL, 2, result)); ++ std::cout << 0xFFFFFFFFFFFFFFFFLL << std::endl; + assert (result == "1111111111111111111111111111111111111111111111111111111111111111"); +- assert (uIntToStr(0xFF00000FF00000FF, 2, result)); ++ assert (uIntToStr(0xFF00000FF00000FFLL, 2, result)); + assert (result == "1111111100000000000000000000111111110000000000000000000011111111"); + #endif + +@@ -958,14 +958,14 @@ void StringTest::testIntToString() + assert (result == "0x499602D2"); + assert (uIntToStr(1234567890, 0x10, result, true, 15, '0')); + assert (result == "0x00000499602D2"); +- assert (uIntToStr(0x1234567890ABCDEF, 0x10, result, true)); ++ assert (uIntToStr(0x1234567890ABCDEFLL, 0x10, result, true)); + assert (result == "0x1234567890ABCDEF"); + assert (uIntToStr(0xDEADBEEF, 0x10, result)); + assert (result == "DEADBEEF"); + #if defined(POCO_HAVE_INT64) +- assert (uIntToStr(0xFFFFFFFFFFFFFFFF, 0x10, result)); ++ assert (uIntToStr(0xFFFFFFFFFFFFFFFFLL, 0x10, result)); + assert (result == "FFFFFFFFFFFFFFFF"); +- assert (uIntToStr(0xFFFFFFFFFFFFFFFF, 0x10, result, true)); ++ assert (uIntToStr(0xFFFFFFFFFFFFFFFFLL, 0x10, result, true)); + assert (result == "0xFFFFFFFFFFFFFFFF"); + #endif + Added: head/devel/poco/files/patch-JSON_testsuite_src_JSONTest.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/poco/files/patch-JSON_testsuite_src_JSONTest.cpp Thu Feb 25 12:16:33 2016 (r409510) @@ -0,0 +1,33 @@ +Workaround for base GCC on 9.3-i386: +src/JSONTest.cpp:235: error: integer constant is too large for 'long' type +--- JSON/testsuite/src/JSONTest.cpp.orig 2016-02-25 11:53:58 UTC ++++ JSON/testsuite/src/JSONTest.cpp +@@ -232,23 +232,23 @@ void JSONTest::testNumber64Property() + Var test = object.get("test"); + assert(test.isInteger()); + Poco::Int64 value = test; +- assert(value == -5000000000000000); ++ assert(value == -5000000000000000LL); + + DynamicStruct ds = object; + assert (!ds["test"].isEmpty()); + assert (ds["test"].isNumeric()); + assert (ds["test"].isInteger()); +- assert (ds["test"] == -5000000000000000); ++ assert (ds["test"] == -5000000000000000LL); + value = ds["test"]; +- assert(value == -5000000000000000); ++ assert(value == -5000000000000000LL); + + const DynamicStruct& rds = object; + assert (!rds["test"].isEmpty()); + assert (rds["test"].isNumeric()); + assert (rds["test"].isInteger()); +- assert (rds["test"] == -5000000000000000); ++ assert (rds["test"] == -5000000000000000LL); + value = rds["test"]; +- assert(value == -5000000000000000); ++ assert(value == -5000000000000000LL); + } + +