Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2020 13:37:33 +0000 (UTC)
From:      Ashish SHUKLA <ashish@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r531320 - head/net-im/ejabberd/files
Message-ID:  <202004101337.03ADbXcQ099179@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004101337.03ADbXcQ099179>