diff --git a/4538-32bit-compatible.patch b/4538-32bit-compatible.patch new file mode 100644 index 0000000..1cdef10 --- /dev/null +++ b/4538-32bit-compatible.patch @@ -0,0 +1,56 @@ +From 8182bb208e31cf9244dd3e6f567d3e27a33c973e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= +Date: Wed, 20 Jul 2022 21:25:34 +0200 +Subject: [PATCH 1/2] tests: Fix integral size on 32bit archs + +--- + src/scafacos/src/Scafacos.cpp | 13 ------------- + src/utils/tests/integral_parameter_test.cpp | 6 +++--- + 2 files changed, 3 insertions(+), 16 deletions(-) + +--- a/src/scafacos/src/Scafacos.cpp ++++ b/src/scafacos/src/Scafacos.cpp +@@ -21,7 +21,6 @@ + + #include "utils.hpp" + +-#include + #include + #include + #include +@@ -71,18 +70,6 @@ std::vector Scafacos::avail + return methods; + } + +-static std::string parse_method_parameters( +- std::vector> const ¶meters) { +- std::string method_params = ""; +- for (auto const ¶meter : parameters) { +- for (auto const &value : parameter) { +- method_params += " " + value; +- } +- } +- std::replace(method_params.begin(), method_params.end(), ' ', ','); +- return method_params.substr(1); +-} +- + Scafacos::Scafacos(MPI_Comm comm, std::string method, std::string parameters) + : m_method_name{std::move(method)}, m_parameters{std::move(parameters)} { + +--- a/src/utils/tests/integral_parameter_test.cpp ++++ b/src/utils/tests/integral_parameter_test.cpp +@@ -38,11 +38,11 @@ BOOST_AUTO_TEST_CASE(integral_parameter_ + std::pair>::value, + ""); + +- BOOST_CHECK(std::make_pair(1ul, 13) == ++ BOOST_CHECK(std::make_pair(std::size_t{1u}, 13) == + (Utils::integral_parameter(1, 13))); +- BOOST_CHECK(std::make_pair(3ul, 13) == ++ BOOST_CHECK(std::make_pair(std::size_t{3u}, 13) == + (Utils::integral_parameter(3, 13))); +- BOOST_CHECK(std::make_pair(5ul, 13) == ++ BOOST_CHECK(std::make_pair(std::size_t{5u}, 13) == + (Utils::integral_parameter(5, 13))); + BOOST_CHECK_THROW((Utils::integral_parameter(6, 13)), + std::exception); diff --git a/python3-espressomd.changes b/python3-espressomd.changes index 9b5c418..5393967 100644 --- a/python3-espressomd.changes +++ b/python3-espressomd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 21 10:36:18 UTC 2022 - Matej Cepl + +- Add 4538-32bit-compatible.patch to make 32bit build. + ------------------------------------------------------------------- Tue Jul 19 19:40:59 UTC 2022 - Matej Cepl diff --git a/python3-espressomd.spec b/python3-espressomd.spec index 04ffa14..66f17c3 100644 --- a/python3-espressomd.spec +++ b/python3-espressomd.spec @@ -51,7 +51,10 @@ Patch2: hdf5.patch # PATCH-FIX-OPENSUSE rpath.patch boo#1198352 Patch3: rpath.patch # According to gh#espressomd/espresso#4537 32bit architectures are not supported any more -ExcludeArch: %{ix86} +# PATCH-FIX-UPSTREAM 4538-32bit-compatible.patch gh#espressomd/espresso#4537 mcepl@suse.com +# This should help +Patch4: 4538-32bit-compatible.patch +# ExcludeArch: %{ix86} BuildRequires: cmake BuildRequires: fftw3-devel BuildRequires: gcc-c++