[gringo] 09/20: debian/rules: drop libtbb-dev and use c++11 multi-threading

Thomas Krennwallner tkren-guest at moszumanska.debian.org
Sun Dec 11 21:06:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

tkren-guest pushed a commit to branch devel
in repository gringo.

commit ccd167c7d02432ad7f1adb41e5b1addca3bf0acb
Author: Thomas Krennwallner <tkren at kr.tuwien.ac.at>
Date:   Fri Dec 9 08:49:11 2016 +0100

    debian/rules: drop libtbb-dev and use c++11 multi-threading
    
    disable threads on powerpc,powerpcspe,m68k,mips,mipsel,sh4
---
 debian/rules | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/debian/rules b/debian/rules
index 4481429..4186fe3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,21 +4,21 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# compile with libtbb-dev only with linux 64bit intel/ppc architectures,
-# fallback in pentium4 processors is not implemented, see also note of
-# libtbb-dev:
-#
-# Note: if you are a user of the i386 architecture, i.e., 32-bit Intel
-# or compatible hardware, this package only supports Pentium4-compatible
-# and higher processors.
-#
-arch = $(shell dpkg-architecture -qDEB_BUILD_ARCH | egrep "(amd64|ia64|ppc64)")
-os = $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS | grep linux)
+# compile with c++11 threads only architectures with 64bit __atomic_exchange,
+# which seems to be unsupported on powerpc, powerpcspe, m68k, mips, mipsel, sh4.
+# see buildd log
+# https://buildd.debian.org/status/fetch.php?pkg=clasp&arch=mips&ver=3.2.1-1&stamp=1480664797
+# and
+# https://gcc.gnu.org/wiki/Atomic
+# https://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary
+arch = $(shell dpkg-architecture -qDEB_BUILD_ARCH | egrep -v -x "(powerpc|powerpcspe|m68k|mips|mipsel|sh4)")
 
 # force g++, lua5.3, and python2.7
 CONFIGPARMS = CXX='g++' WITH_LUA='lua5.3' WITH_PYTHON='python2.7' CPPPATH='$${["/usr/include/lua5.3","/usr/include/python2.7"]}'
-ifeq ($(and $(if $(os),good), $(if $(arch),good)), good)
-	CONFIGPARMS += WITH_TBB="tbb"
+
+# use c++11 threads
+ifeq ($(if $(arch),good), good)
+	CONFIGPARMS += WITH_THREADS='posix'
 endif
 
 #

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gringo.git



More information about the debian-science-commits mailing list