From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g33I7-0006Hl-Jv for guix-patches@gnu.org; Thu, 20 Sep 2018 14:03:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g33I6-0000An-OL for guix-patches@gnu.org; Thu, 20 Sep 2018 14:03:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:43029) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g33I6-0000A1-JQ for guix-patches@gnu.org; Thu, 20 Sep 2018 14:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g33I6-0004dK-Dj for guix-patches@gnu.org; Thu, 20 Sep 2018 14:03:02 -0400 Subject: [bug#32732] [PATCH 2/2] gnu: hdf5-parallel-openmpi: Really enable parallel build. Resent-Message-ID: From: Paul Garlick Date: Thu, 20 Sep 2018 18:59:57 +0100 Message-Id: <1537466397-6695-2-git-send-email-pgarlick@tourbillion-technology.com> In-Reply-To: <1537466397-6695-1-git-send-email-pgarlick@tourbillion-technology.com> References: <8736u9f995.fsf@gnu.org> <1537466397-6695-1-git-send-email-pgarlick@tourbillion-technology.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32732@debbugs.gnu.org, ludo@gnu.org Cc: Paul Garlick This fix ensures that the H5_HAVE_PARALLEL identifier is correctly set in the file H5pubconf.h. * gnu/packages/maths.scm (hdf5-parallel-openmpi)[arguments]: Add the "--enable-parallel" flag to the list of configure flags. Remove the incompatible "--enable-cxx" flag. Add 'mpi-setup' phase. --- gnu/packages/maths.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 30f1610..636b485 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1037,10 +1037,13 @@ Swath).") `(("mpi" ,openmpi) ,@(package-inputs hdf5))) (arguments - (substitute-keyword-arguments `(#:configure-flags '("--enable-parallel") - ,@(package-arguments hdf5)) + (substitute-keyword-arguments (package-arguments hdf5) + ((#:configure-flags flags) + ``("--enable-parallel" ,@(delete "--enable-cxx" ,flags))) ((#:phases phases) `(modify-phases ,phases + (add-after 'build 'mpi-setup + ,%openmpi-setup) (add-before 'check 'patch-tests (lambda _ ;; OpenMPI's mpirun will exit with non-zero status if it -- 1.8.3.1