diff --git a/boost-1.78-icl-Avoid-gcc-bugs.patch b/boost-1.78-icl-Avoid-gcc-bugs.patch new file mode 100644 index 0000000000000000000000000000000000000000..a9ba455d413bb2bd824dd6613b96894e0279e11c --- /dev/null +++ b/boost-1.78-icl-Avoid-gcc-bugs.patch @@ -0,0 +1,36 @@ +From 1d176e542576e7e584eccd3e2badca33231768c1 Mon Sep 17 00:00:00 2001 +From: Liu Zixian +Date: Mon, 12 Dec 2022 20:12:26 +0800 +Subject: [PATCH] Avoid gcc bugs + +This testcase triggers a gcc optimization bug. +See https://gitee.com/src-openeuler/gcc/issues/I65UF9 + +Signed-off-by: Liu Zixian +--- + libs/icl/test/fix_tickets_/fix_tickets.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libs/icl/test/fix_tickets_/fix_tickets.cpp b/libs/icl/test/fix_tickets_/fix_tickets.cpp +index 0232c3194..fc207e3f0 100644 +--- a/libs/icl/test/fix_tickets_/fix_tickets.cpp ++++ b/libs/icl/test/fix_tickets_/fix_tickets.cpp +@@ -74,6 +74,7 @@ BOOST_AUTO_TEST_CASE(ticket_6095_Marvin_Sielenkemper_isEmptyTest) + BOOST_CHECK( icl::is_empty(Interval::open(max, max))); + } + ++#ifndef __GNUC__ + BOOST_AUTO_TEST_CASE(ticket_6095_Marvin_Sielenkemper_totalRangeTest) + { + typedef int Value; +@@ -90,6 +91,7 @@ BOOST_AUTO_TEST_CASE(ticket_6095_Marvin_Sielenkemper_totalRangeTest) + + BOOST_CHECK_EQUAL(intervals.iterative_size(), 3); + } ++#endif + + BOOST_AUTO_TEST_CASE(test_ticket_7871) + { +-- +2.36.1 + diff --git a/boost.spec b/boost.spec index 74a60ea486c6b391a32e891dee73a80923df2750..af2eaf2d6158c76730d1f870dab807684edadb72 100644 --- a/boost.spec +++ b/boost.spec @@ -2,7 +2,7 @@ Name: boost Version: 1.78.0 -Release: 14 +Release: 15 Summary: The free peer-reviewed portable C++ source libraries License: Boost Software License 1.0 URL: http://www.boost.org @@ -29,6 +29,7 @@ Patch6: boost-1.78-filesystem-Use-O_NONBLOCK-instead-of-O_NDELAY.patch Patch9000: boost-1.78-python-Update-call_method-hpp.patch Patch9001: boost_1_78_0-sw.patch Patch9002: boost-1.78-graph-Skip-performance-test.patch +Patch9003: boost-1.78-icl-Avoid-gcc-bugs.patch Requires: %{name}-atomic%{?_isa} = %{version}-%{release} Requires: %{name}-chrono%{?_isa} = %{version}-%{release} @@ -299,6 +300,9 @@ cd status ../b2 %{?_smp_mflags} %{opt_feature} cxxflags="$RPM_OPT_FLAGS" %{boost_macros} \ --include-tests=algorithm,graph,intrusive,dynamic_bitset,property_map,crc,lexical_cast,range \ --exclude-tests=mpi,graph_parallel +../b2 %{?_smp_mflags} %{opt_feature} cxxflags="$RPM_OPT_FLAGS" %{boost_macros} \ + --include-tests=bimap,circular_buffer,container,heap,icl,lockfree,logic,multi_array,multi_index,poly_collection,property_tree,ptr_container,sort \ + --exclude-tests=container_hash %install ./b2 %{b2_options} \ @@ -448,6 +452,9 @@ find libs -name example -exec cp {} boost-example --parents -r \; %{_libdir}/*.a %changelog +* Mon Dec 12 2022 Liu Zixian - 1.78.0-15 +- enable more regression tests to covers commonly used container libraries + * Mon Dec 12 2022 Liu Zixian - 1.78.0-14 - backport master build commands and enable some regression test