[packages/boost] - rel 6; fix build

arekm arekm at pld-linux.org
Sun Jul 1 22:53:56 CEST 2018


commit 00851a5fdbfc6a74ed86b5b36ef735525f33f715
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Jul 1 22:53:45 2018 +0200

    - rel 6; fix build

 boost.spec         |  4 +++-
 fix-python37.patch | 18 ++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/boost.spec b/boost.spec
index 866eed4..2cc9ee5 100644
--- a/boost.spec
+++ b/boost.spec
@@ -13,7 +13,7 @@ Summary:	The Boost C++ Libraries
 Summary(pl.UTF-8):	Biblioteki C++ "Boost"
 Name:		boost
 Version:	1.63.0
-Release:	5
+Release:	6
 License:	Boost Software License and others
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/boost/%{name}_%{fver}.tar.bz2
@@ -23,6 +23,7 @@ Patch1:		%{name}-x32-context.patch
 Patch2:		%{name}-clean-gcc-flags.patch
 Patch3:		%{name}-numpy3.patch
 Patch4:		hash-new-char-types.patch
+Patch5:		fix-python37.patch
 # FC Patches:
 Patch201:	%{name}-python-abi_letters.patch
 # https://github.com/boostorg/build/issues/163
@@ -486,6 +487,7 @@ Dokumentacja dla biblioteki Boost C++.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %patch201 -p1
 %patch202 -p1
diff --git a/fix-python37.patch b/fix-python37.patch
new file mode 100644
index 0000000..da1c93e
--- /dev/null
+++ b/fix-python37.patch
@@ -0,0 +1,18 @@
+From: Giovanni Mascellani <gio at debian.org>
+Subject: Fix FTBFS with Python 3.7
+
+The patch is backported from later Boost releases.
+
+Index: boost1.62-1.62.0+dfsg/libs/python/src/converter/builtin_converters.cpp
+===================================================================
+--- boost1.62-1.62.0+dfsg.orig/libs/python/src/converter/builtin_converters.cpp
++++ boost1.62-1.62.0+dfsg/libs/python/src/converter/builtin_converters.cpp
+@@ -48,7 +48,7 @@ namespace
+ #else
+   void* convert_to_cstring(PyObject* obj)
+   {
+-      return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0;
++      return PyUnicode_Check(obj) ? const_cast<void*>(reinterpret_cast<const void*>(_PyUnicode_AsString(obj))) : 0;
+   }
+ #endif
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/boost.git/commitdiff/00851a5fdbfc6a74ed86b5b36ef735525f33f715



More information about the pld-cvs-commit mailing list