diff --git a/boost-1.74.patch b/boost-1.74.patch new file mode 100644 index 0000000..8acbd60 --- /dev/null +++ b/boost-1.74.patch @@ -0,0 +1,32 @@ +From a392907978506408482d0bdd388534455ba8dfba Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= +Date: Wed, 28 Oct 2020 21:22:39 +0100 +Subject: [PATCH] core: Add guard for boost 1.74.0 + +This include guards against an issue +in boost::serialization from boost 1.74.0 that leads to compiler error +"explicit specialization of undeclared template struct 'version'" when +including . More details in tickets: +https://github.com/boostorg/serialization/issues/210 +https://github.com/boostorg/serialization/issues/217 + +diff --git a/src/core/grid_based_algorithms/lb_particle_coupling.hpp b/src/core/grid_based_algorithms/lb_particle_coupling.hpp +index de12cb4..13111ab 100644 +--- a/src/core/grid_based_algorithms/lb_particle_coupling.hpp ++++ b/src/core/grid_based_algorithms/lb_particle_coupling.hpp +@@ -21,6 +21,15 @@ + + #include "ParticleRange.hpp" + ++/* This include guards against an issue ++ * in boost::serialization from boost 1.74.0 that leads to compiler error ++ * "explicit specialization of undeclared template struct 'version'" when ++ * including . More details in tickets: ++ * https://github.com/boostorg/serialization/issues/210 ++ * https://github.com/boostorg/serialization/issues/217 ++ */ ++#include ++ + #include + + #include "ParticleRange.hpp" diff --git a/espresso-4.1.3.tar.gz b/espresso-4.1.3.tar.gz deleted file mode 100644 index 01a39a7..0000000 --- a/espresso-4.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:13dd998f71547c6c979a33d918b7f83e1a0e1c5f2bf2ddeeb0d1e99a3dcd6008 -size 16947336 diff --git a/espresso-4.1.4.tar.gz b/espresso-4.1.4.tar.gz new file mode 100644 index 0000000..63ca9a4 --- /dev/null +++ b/espresso-4.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1b68de63755475c5eb3ae8117d8c6d96c8ac36cc0f46dd44417a8e7ebe9242c +size 16950522 diff --git a/python3-espressomd.changes b/python3-espressomd.changes index 91765e1..b8eaa41 100644 --- a/python3-espressomd.changes +++ b/python3-espressomd.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Thu Oct 29 15:42:42 UTC 2020 - Christoph Junghans + +- added boost-1.74.patch to fix build with boost-1.74 + (gh#espressomd/espresso#3864) + +------------------------------------------------------------------- +Tue Oct 20 19:03:28 UTC 2020 - Christoph Junghans + +- Update to 4.1.4, see + https://github.com/espressomd/espresso/blob/4.1.4/NEWS for + details + +------------------------------------------------------------------- +Tue Sep 8 20:26:00 UTC 2020 - Christoph Junghans + +- fix unversioned Obsoletes: statement + ------------------------------------------------------------------- Fri Aug 21 16:36:20 UTC 2020 - Christoph Junghans diff --git a/python3-espressomd.spec b/python3-espressomd.spec index dceee51..5c328ed 100644 --- a/python3-espressomd.spec +++ b/python3-espressomd.spec @@ -35,13 +35,15 @@ %define pkgname espresso %define modname %{pkgname}md Name: python3-%{modname} -Version: 4.1.3 +Version: 4.1.4 Release: 0 Summary: Parallel simulation software for soft matter research License: GPL-3.0-or-later Group: Productivity/Scientific/Chemistry URL: http://espressomd.org Source: https://github.com/%{modname}/%{pkgname}/releases/download/%{version}/%{pkgname}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM boost-1.74.patch gh#espressomd/espresso#3864 +Patch0: boost-1.74.patch BuildRequires: cmake BuildRequires: fftw3-devel BuildRequires: gcc-c++ @@ -63,7 +65,7 @@ BuildRequires: python3-h5py %else BuildRequires: boost-devel %endif -Obsoletes: libEspresso4 +Obsoletes: libEspresso4 < 4.1 Requires: python3-numpy Requires: python3-h5py # make sure rpm pulls in the right dependency @@ -79,6 +81,7 @@ systems, for example DNA and lipid membranes. %prep %setup -q -n %{pkgname} +%patch0 -p1 %build source %{_libdir}/mpi/gcc/%{mpiver}/bin/mpivars.sh @@ -103,7 +106,7 @@ export HDF5_USE_SHLIB=yes rm -f %{buildroot}%{_libdir}/lib*.so %check -# https://github.com/espressomd/espresso/issues/3315 +# gh#espressomd/espresso#3315 %ifarch i586 %define testargs ARGS='-E collision_detection' %endif