unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob de56ebb9b32c03064a7b525f2646fd6b57d287b5 1466 bytes (raw)
name: packages/patches/fenics-dolfin-boost.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 
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>
  

debug log:

solving de56ebb9b32c03064a7b525f2646fd6b57d287b5 ...
found de56ebb9b32c03064a7b525f2646fd6b57d287b5 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).