diff options
author | Marius Bakke <[email protected]> | 2022-02-13 14:24:53 +0100 |
---|---|---|
committer | Marius Bakke <[email protected]> | 2022-02-13 14:24:53 +0100 |
commit | 76b6bbdf232b4b82cdd23cfe0d81331a4fd2edec (patch) | |
tree | 0e6a57ba08b9c6f9f5cbcdc5b5d9daeea91e428d /gnu/packages/patches/fenics-dolfin-boost.patch | |
parent | 1a5302435ff0d2822b823f5a6fe01faa7a85c629 (diff) | |
parent | e8af2ea63a7f497b8f8e19e206645109c0646e72 (diff) |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/packages/patches/fenics-dolfin-boost.patch')
-rw-r--r-- | gnu/packages/patches/fenics-dolfin-boost.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/patches/fenics-dolfin-boost.patch b/gnu/packages/patches/fenics-dolfin-boost.patch new file mode 100644 index 0000000000..de56ebb9b3 --- /dev/null +++ b/gnu/packages/patches/fenics-dolfin-boost.patch @@ -0,0 +1,45 @@ +The `BOOST_LITTLE_ENDIAN` and `BOOST_BIG_ENDIAN` macros, along with the +"boost/detail/endian.hpp" header, were deprecated in boost 1.69.0 and finally +removed in boost 1.73.0. They are superseded by the BOOST_ENDIAN_LITTLE_BYTE +and BOOST_ENDIAN_BIG_BYTE macros and "boost/predef/other/endian.h" header. + +Deprecated: https://github.com/boostorg/predef/commit/32d4581c1689370444f2e565cfbb8421d5071807 +Removed: https://github.com/boostorg/predef/commit/aa6e232bf170ad8b856aff9e7c70334f77441c7f + +Adaptation of patch from https://bitbucket.org/fenics-project/dolfin/issues/1116 + +--- a/dolfin/io/VTKFile.cpp ++++ b/dolfin/io/VTKFile.cpp +@@ -20,7 +20,7 @@ + #include <vector> + #include <iomanip> + #include <boost/cstdint.hpp> +-#include <boost/detail/endian.hpp> ++#include <boost/predef/other/endian.h> + + #include "pugixml.hpp" + +@@ -614,9 +614,9 @@ + std::string endianness = ""; + if (encode_string == "binary") + { +- #if defined BOOST_LITTLE_ENDIAN ++ #if defined BOOST_ENDIAN_LITTLE_BYTE + endianness = "byte_order=\"LittleEndian\""; +- #elif defined BOOST_BIG_ENDIAN ++ #elif defined BOOST_ENDIAN_BIG_BYTE + endianness = "byte_order=\"BigEndian\"";; + #else + dolfin_error("VTKFile.cpp", + +--- a/dolfin/io/VTKWriter.cpp ++++ b/dolfin/io/VTKWriter.cpp +@@ -24,7 +24,6 @@ + #include <sstream> + #include <vector> + #include <iomanip> +-#include <boost/detail/endian.hpp> + + #include <dolfin/fem/GenericDofMap.h> + #include <dolfin/fem/FiniteElement.h> +
\ No newline at end of file |