Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/xylib Stop using boost/detail/endian.hpp



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a21b30662ea5
branches:  trunk
changeset: 431122:a21b30662ea5
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat May 09 15:19:02 2020 +0000

description:
Stop using boost/detail/endian.hpp

diffstat:

 math/xylib/distinfo                     |   6 ++++--
 math/xylib/patches/patch-configure      |  15 +++++++++++++++
 math/xylib/patches/patch-configure.ac   |  13 +++++++++++++
 math/xylib/patches/patch-xylib_util.cpp |  21 ++++++++++++++++++---
 4 files changed, 50 insertions(+), 5 deletions(-)

diffs (89 lines):

diff -r ff8b09bcc727 -r a21b30662ea5 math/xylib/distinfo
--- a/math/xylib/distinfo       Sat May 09 15:18:32 2020 +0000
+++ b/math/xylib/distinfo       Sat May 09 15:19:02 2020 +0000
@@ -1,9 +1,11 @@
-$NetBSD: distinfo,v 1.9 2020/01/07 13:35:44 nros Exp $
+$NetBSD: distinfo,v 1.10 2020/05/09 15:19:02 joerg Exp $
 
 SHA1 (xylib-1.5.tar.bz2) = 980b962cb07d93090c1cc6694ce9dc66952854aa
 RMD160 (xylib-1.5.tar.bz2) = 881945873e8d927b8e058ebce634631b24b7d62b
 SHA512 (xylib-1.5.tar.bz2) = 67da8653b422fa4b5ffdc9fe19d23f49e36e2692fb3aa98e130511cfe6db46b8e81b30d45cf302a1fe8b6d1a9b776d3c364ecdabb6489f1d7518e2736b6e2210
 Size (xylib-1.5.tar.bz2) = 365316 bytes
 SHA1 (patch-Makefile.in) = 607a06800f945aa5e406e4b0e4f32809e48ed2cf
+SHA1 (patch-configure) = 6ff770c0ccae9ed19514a7abba6c47e030296617
+SHA1 (patch-configure.ac) = cc05a0ec1abf7cca08719c831398eaaa43957cf4
 SHA1 (patch-gui_xyconvert.cpp) = 6739098920d2abbb63a8b0abd9dd89b0b4f4684e
-SHA1 (patch-xylib_util.cpp) = 822208cda9a88d1a0912908f1a5871800496e16f
+SHA1 (patch-xylib_util.cpp) = dbdecf2f2694f6febb036be0c9720260eb93f898
diff -r ff8b09bcc727 -r a21b30662ea5 math/xylib/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/xylib/patches/patch-configure        Sat May 09 15:19:02 2020 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.1 2020/05/09 15:19:02 joerg Exp $
+
+--- configure.orig     2020-05-09 14:31:13.578115502 +0000
++++ configure
+@@ -16883,8 +16883,8 @@ else
+ fi
+ 
+ 
+-ac_fn_cxx_check_header_mongrel "$LINENO" "boost/detail/endian.hpp" "ac_cv_header_boost_detail_endian_hpp" "$ac_includes_default"
+-if test "x$ac_cv_header_boost_detail_endian_hpp" = xyes; then :
++ac_fn_cxx_check_header_mongrel "$LINENO" "boost/predef/other/endian.h" "ac_cv_header_boost_predef_other_endian_h" "$ac_includes_default"
++if test "x$ac_cv_header_boost_predef_other_endian_h" = xyes; then :
+ 
+ else
+   as_fn_error $? "Could not find necessary Boost headers" "$LINENO" 5
diff -r ff8b09bcc727 -r a21b30662ea5 math/xylib/patches/patch-configure.ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/xylib/patches/patch-configure.ac     Sat May 09 15:19:02 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-configure.ac,v 1.1 2020/05/09 15:19:02 joerg Exp $
+
+--- configure.ac.orig  2020-05-09 14:30:20.178602785 +0000
++++ configure.ac
+@@ -68,7 +68,7 @@ AC_CHECK_HEADER([climits], [],
+                 [AC_MSG_ERROR([Could not find necessary C++ libs headers])])
+ AC_CHECK_HEADER([boost/cstdint.hpp], [],
+                 [AC_MSG_ERROR([Could not find necessary Boost headers])])
+-AC_CHECK_HEADER([boost/detail/endian.hpp], [],
++AC_CHECK_HEADER([boost/predef/other/endian.h], [],
+                 [AC_MSG_ERROR([Could not find necessary Boost headers])])
+ AC_CHECK_HEADER([boost/spirit/version.hpp], [],
+                 [AC_MSG_ERROR([Boost::Spirit headers were not found.])])
diff -r ff8b09bcc727 -r a21b30662ea5 math/xylib/patches/patch-xylib_util.cpp
--- a/math/xylib/patches/patch-xylib_util.cpp   Sat May 09 15:18:32 2020 +0000
+++ b/math/xylib/patches/patch-xylib_util.cpp   Sat May 09 15:19:02 2020 +0000
@@ -1,14 +1,29 @@
-$NetBSD: patch-xylib_util.cpp,v 1.1 2020/01/07 13:03:50 nros Exp $
+$NetBSD: patch-xylib_util.cpp,v 1.2 2020/05/09 15:19:02 joerg Exp $
 
 * cstdlib needed for strol
 
 --- xylib/util.cpp.orig        2016-12-17 12:45:55.000000000 +0000
 +++ xylib/util.cpp
-@@ -10,6 +10,7 @@
+@@ -10,10 +10,11 @@
  #include <limits>
  #include <cassert>
  #include <cerrno>
+-#include <boost/detail/endian.hpp>
 +#include <cstdlib>
- #include <boost/detail/endian.hpp>
++#include <boost/predef/other/endian.h>
  #include <boost/cstdint.hpp>
  
+-#if !defined(BOOST_LITTLE_ENDIAN) && !defined(BOOST_BIG_ENDIAN)
++#if !BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_BIG_BYTE
+ #error "Unknown endianness"
+ #endif
+ 
+@@ -71,7 +72,7 @@ void my_read(istream &f, char *buf, int 
+ 
+ // change the byte-order from "little endian" to host endian
+ // ptr: pointer to the data, size - size in bytes
+-#if defined(BOOST_BIG_ENDIAN)
++#if BOOST_ENDIAN_BIG_BYTE
+ void le_to_host(void *ptr, int size)
+ {
+     char *p = (char*) ptr;



Home | Main Index | Thread Index | Old Index