From owner-svn-ports-all@freebsd.org Fri Apr 10 13:37:33 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 60C3B2BE495; Fri, 10 Apr 2020 13:37:33 +0000 (UTC) (envelope-from ashish@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48zJwY1tjzz43nv; Fri, 10 Apr 2020 13:37:33 +0000 (UTC) (envelope-from ashish@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2305B26F0B; Fri, 10 Apr 2020 13:37:33 +0000 (UTC) (envelope-from ashish@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03ADbXmo099180; Fri, 10 Apr 2020 13:37:33 GMT (envelope-from ashish@FreeBSD.org) Received: (from ashish@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03ADbXcQ099179; Fri, 10 Apr 2020 13:37:33 GMT (envelope-from ashish@FreeBSD.org) Message-Id: <202004101337.03ADbXcQ099179@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ashish set sender to ashish@FreeBSD.org using -f From: Ashish SHUKLA Date: Fri, 10 Apr 2020 13:37:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r531320 - head/net-im/ejabberd/files X-SVN-Group: ports-head X-SVN-Commit-Author: ashish X-SVN-Commit-Paths: head/net-im/ejabberd/files X-SVN-Commit-Revision: 531320 X-SVN-Commit-Repository: ports 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.29 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: Fri, 10 Apr 2020 13:37:33 -0000 Author: ashish Date: Fri Apr 10 13:37:32 2020 New Revision: 531320 URL: https://svnweb.freebsd.org/changeset/ports/531320 Log: - Add patch to fix build error on i386 architecture: Compiling c_src/double-conversion/strtod.cc c_src/double-conversion/strtod.cc:41:18: error: unused variable 'kMaxExactDoubleIntegerDecimalDigits' [-Werror,-Wunused-const-variable] static const int kMaxExactDoubleIntegerDecimalDigits = 15; ^ c_src/double-conversion/strtod.cc:58:21: error: variable 'exact_powers_of_ten' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration] static const double exact_powers_of_ten[] = { ^ c_src/double-conversion/strtod.cc:84:18: error: unused variable 'kExactPowersOfTenSize' [-Werror,-Wunused-const-variable] static const int kExactPowersOfTenSize = ARRAY_SIZE(exact_powers_of_ten); ^ Thanks to jrm@ for help with testing Reported by: pkg-fallout Added: head/net-im/ejabberd/files/patch-deps_jiffy_c__src_double-conversion_strtod.cc (contents, props changed) Added: head/net-im/ejabberd/files/patch-deps_jiffy_c__src_double-conversion_strtod.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/ejabberd/files/patch-deps_jiffy_c__src_double-conversion_strtod.cc Fri Apr 10 13:37:32 2020 (r531320) @@ -0,0 +1,28 @@ +--- deps/jiffy/c_src/double-conversion/strtod.cc.orig 2020-04-10 09:23:29 UTC ++++ deps/jiffy/c_src/double-conversion/strtod.cc +@@ -38,7 +38,9 @@ namespace double_conversion { + // 2^53 = 9007199254740992. + // Any integer with at most 15 decimal digits will hence fit into a double + // (which has a 53bit significand) without loss of precision. ++#if defined(DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS) + static const int kMaxExactDoubleIntegerDecimalDigits = 15; ++#endif + // 2^64 = 18446744073709551616 > 10^19 + static const int kMaxUint64DecimalDigits = 19; + +@@ -55,6 +57,7 @@ static const int kMinDecimalPower = -324; + static const uint64_t kMaxUint64 = UINT64_2PART_C(0xFFFFFFFF, FFFFFFFF); + + ++#if defined(DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS) + static const double exact_powers_of_ten[] = { + 1.0, // 10^0 + 10.0, +@@ -82,6 +85,7 @@ static const double exact_powers_of_ten[] = { + 10000000000000000000000.0 + }; + static const int kExactPowersOfTenSize = ARRAY_SIZE(exact_powers_of_ten); ++#endif + + // Maximum number of significant digits in the decimal representation. + // In fact the value is 772 (see conversions.cc), but to give us some margin