apply upstream fixes for failing random tests
This commit is contained in:
parent
33b1e83abc
commit
39785c3bbd
28
boost-1.81.0-random-test-fixes.patch
Normal file
28
boost-1.81.0-random-test-fixes.patch
Normal file
@ -0,0 +1,28 @@
|
||||
diff -up boost_1_81_0/libs/random/test/multiprecision_float_test.cpp.testfix boost_1_81_0/libs/random/test/multiprecision_float_test.cpp
|
||||
--- boost_1_81_0/libs/random/test/multiprecision_float_test.cpp.testfix 2023-08-29 16:07:40.127905519 -0400
|
||||
+++ boost_1_81_0/libs/random/test/multiprecision_float_test.cpp 2023-08-29 16:08:44.114856281 -0400
|
||||
@@ -77,7 +77,7 @@ typedef boost::mpl::list <
|
||||
boost::random::lognormal_distribution<big_float>,
|
||||
boost::random::normal_distribution<big_float>,
|
||||
#ifndef BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS
|
||||
- boost::random::piecewise_constant_distribution<big_float>,
|
||||
+ boost::random::piecewise_constant_distribution<big_float, big_float>,
|
||||
boost::random::piecewise_linear_distribution<big_float>,
|
||||
#endif
|
||||
boost::random::student_t_distribution<big_float>,
|
||||
diff -up boost_1_81_0/libs/random/test/multiprecision_int_test.cpp.testfix boost_1_81_0/libs/random/test/multiprecision_int_test.cpp
|
||||
--- boost_1_81_0/libs/random/test/multiprecision_int_test.cpp.testfix 2023-08-29 16:06:58.543287627 -0400
|
||||
+++ boost_1_81_0/libs/random/test/multiprecision_int_test.cpp 2023-08-29 16:07:26.788707316 -0400
|
||||
@@ -216,7 +216,11 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(discrete_d
|
||||
ss >> d2;
|
||||
BOOST_CHECK(d == d2);
|
||||
|
||||
- boost::random::independent_bits_engine<boost::random::mt19937, std::numeric_limits<boost::multiprecision::uint1024_t>::digits, boost::multiprecision::uint1024_t > big_random;
|
||||
+ //
|
||||
+ // The number of digits in the independent_bits_engine must be low enough that we don't overflow
|
||||
+ // when converting to a double (see other_distributions declared above).
|
||||
+ //
|
||||
+ boost::random::independent_bits_engine<boost::random::mt19937, std::numeric_limits<boost::multiprecision::uint1024_t>::digits - 2, boost::multiprecision::uint1024_t > big_random;
|
||||
for(unsigned i = 0; i < 200; ++i)
|
||||
{
|
||||
result_type r = d(big_random);
|
@ -42,7 +42,7 @@ Name: boost
|
||||
%global real_name boost
|
||||
Summary: The free peer-reviewed portable C++ source libraries
|
||||
Version: 1.81.0
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
License: BSL-1.0 AND MIT AND Python-2.0.1
|
||||
|
||||
# Replace each . with _ in %%{version}
|
||||
@ -155,6 +155,10 @@ Patch6: boost-1.81-phoenix-multiple-defn.patch
|
||||
# PR https://github.com/boostorg/accumulators/pull/54
|
||||
Patch7: boost-1.81.0-always-initialize-member-variable.patch
|
||||
|
||||
# https://github.com/boostorg/random/commit/7561690135c67ecf88c2133bad7680ebd2665c36
|
||||
# https://github.com/boostorg/random/commit/4239d93dad32a11e4c3829050f8070d456266133
|
||||
Patch8: boost-1.81.0-random-test-fixes.patch
|
||||
|
||||
%bcond_with tests
|
||||
%bcond_with docs_generated
|
||||
|
||||
@ -1284,6 +1288,9 @@ fi
|
||||
%{_mandir}/man1/b2.1*
|
||||
|
||||
%changelog
|
||||
* Tue Aug 29 2023 Tom Callaway <spot@fedoraproject.org> - 1.81.0-9
|
||||
- apply upstream fixes for failing random tests
|
||||
|
||||
* Sun Aug 20 2023 Kefu Chai <tchaikov@fedoraproject.org> - 1.81.0-8
|
||||
- Add patch for Boost.Accumulators bug
|
||||
See https://github.com/boostorg/accumulators/pull/54
|
||||
|
Loading…
Reference in New Issue
Block a user