From patchwork Fri May 10 10:05:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 13944 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 13D8816F1E; Fri, 10 May 2019 11:07:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 8AA7216F12 for ; Fri, 10 May 2019 11:07:11 +0100 (BST) Received: from localhost ([127.0.0.1]:40535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP2Qp-0002gx-4n for patchwork@mira.cbaines.net; Fri, 10 May 2019 06:07:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP2Qj-0002e5-1a for guix-patches@gnu.org; Fri, 10 May 2019 06:07:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hP2Qg-0006cj-W2 for guix-patches@gnu.org; Fri, 10 May 2019 06:07:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51896) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hP2Qg-0006cP-Ps for guix-patches@gnu.org; Fri, 10 May 2019 06:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hP2Qg-0003GR-J8 for guix-patches@gnu.org; Fri, 10 May 2019 06:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35666] [PATCH 1/2] gnu: hdf5: Build a thread-safe library. References: <20190510095630.16695-1-ludo@gnu.org> In-Reply-To: <20190510095630.16695-1-ludo@gnu.org> Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 May 2019 10:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35666 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35666@debbugs.gnu.org Received: via spool by 35666-submit@debbugs.gnu.org id=B35666.155748277112479 (code B ref 35666); Fri, 10 May 2019 10:07:02 +0000 Received: (at 35666) by debbugs.gnu.org; 10 May 2019 10:06:11 +0000 Received: from localhost ([127.0.0.1]:37206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP2Pq-0003F7-U4 for submit@debbugs.gnu.org; Fri, 10 May 2019 06:06:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hP2Pp-0003Eo-0K for 35666@debbugs.gnu.org; Fri, 10 May 2019 06:06:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hP2Ph-0005lf-Bi; Fri, 10 May 2019 06:06:01 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=51584 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hP2Pg-0005WB-OV; Fri, 10 May 2019 06:06:01 -0400 From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Fri, 10 May 2019 12:05:45 +0200 Message-Id: <20190510100546.17536-1-ludo@gnu.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Bavier , Ludovic =?utf-8?q?Court=C3=A8s?= , Paul Garlick Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Ludovic Courtès * gnu/packages/maths.scm (hdf5)[arguments]: Pass "--enable-threadsafe --with-pthread --enable-unsupported". --- gnu/packages/maths.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index d59028599f..2c3889ece2 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -781,7 +781,17 @@ incompatible with HDF5.") `(;; Some of the users, notably Flann, need the C++ interface. #:configure-flags '("--enable-cxx" "--enable-fortran" - "--enable-fortran2003") + "--enable-fortran2003" + + ;; Build a thread-safe library. Unfortunately, + ;; 'configure' invites you to either turn off C++, + ;; Fortran, and the high-level interface (HL), or + ;; to pass '--enable-unsupported'. Debian + ;; packagers chose to pass '--enable-unsupported' + ;; and we follow their lead here. + "--enable-threadsafe" + "--with-pthread" + "--enable-unsupported") ;; Use -fPIC to allow the R bindings to link with the static libraries #:make-flags (list "CFLAGS=-fPIC" "CXXFLAGS=-fPIC")