From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v2 1/3] gnu: ldc: make isnan and isinf work. Date: Tue, 30 Aug 2016 08:07:17 +0200 Message-ID: <20160830060719.11076-2-dannym@scratchpost.org> References: <20160803095110.3e5cf1bc@scratchpost.org> <20160830060719.11076-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1becCy-0005op-NP for guix-devel@gnu.org; Tue, 30 Aug 2016 02:07:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1becCk-0002gn-97 for guix-devel@gnu.org; Tue, 30 Aug 2016 02:07:40 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:50005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1becCk-0002gX-2O for guix-devel@gnu.org; Tue, 30 Aug 2016 02:07:26 -0400 In-Reply-To: <20160830060719.11076-1-dannym@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/ldc.scm (ldc): Added substitution. --- gnu/packages/ldc.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/ldc.scm b/gnu/packages/ldc.scm index 1709f59..601804a 100644 --- a/gnu/packages/ldc.scm +++ b/gnu/packages/ldc.scm @@ -101,6 +101,12 @@ and freshness without requiring additional information from the user.") (and (unpack "phobos-src" "runtime/phobos") (unpack "druntime-src" "runtime/druntime") (unpack "dmd-testsuite-src" "tests/d2/dmd-testsuite"))))) + (add-after 'unpack-submodule-sources 'patch-dmd2 + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "dmd2/root/port.c" + ((" ::isnan") " isnan") + ((" ::isinf") " isinf")) + #t)) (add-after 'unpack-submodule-sources 'patch-phobos (lambda* (#:key inputs #:allow-other-keys) (substitute* "runtime/phobos/std/process.d"