[python-escript] 01/02: Fix FTBFS on powerpc. Disable one warning
Anton Gladky
gladk at moszumanska.debian.org
Sun Dec 10 11:04:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
gladk pushed a commit to annotated tag debian/5.1-3
in repository python-escript.
commit 48d47f2ae3d7b46dbb57c4b346ed9b8a021ec967
Author: Anton Gladky <gladk at debian.org>
Date: Sun Dec 10 12:03:05 2017 +0100
Fix FTBFS on powerpc. Disable one warning
---
debian/patches/32bitboostextract | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/debian/patches/32bitboostextract b/debian/patches/32bitboostextract
index a8a2acc..abf8861 100644
--- a/debian/patches/32bitboostextract
+++ b/debian/patches/32bitboostextract
@@ -2,8 +2,10 @@ Description: bitboostextract
Suppress maybe unitialized warnings for 32bit builds _only_.
Current g++ is reporting boost::python::extract<double> as using
possibly unitialised memory.
---- a/scons/templates/sid_options.py
-+++ b/scons/templates/sid_options.py
+Index: python-escript-5.1/scons/templates/sid_options.py
+===================================================================
+--- python-escript-5.1.orig/scons/templates/sid_options.py
++++ python-escript-5.1/scons/templates/sid_options.py
@@ -18,6 +18,7 @@
# Refer to README_FIRST for usage instructions.
@@ -12,7 +14,7 @@ Description: bitboostextract
#cxx_extra = '-Wno-literal-suffix'
openmp = True
#mpi = 'OPENMPI'
-@@ -76,3 +77,7 @@ for i in debstuff:
+@@ -76,3 +77,9 @@ for i in debstuff:
except NameError:
exec(k+"='"+v+"'")
@@ -20,3 +22,5 @@ Description: bitboostextract
+if platform.architecture()[0] == '32bit':
+ cxx_extra += ' -Wno-maybe-uninitialized '
+
++if platform.machine() == 'ppc64le':
++ cxx_extra += ' -Wno-strict-overflow -Wno-error=strict-overflow '
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-escript.git
More information about the debian-science-commits
mailing list