From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v3 1/3] gnu: ldc: make isnan and isinf work. Date: Tue, 30 Aug 2016 18:51:58 +0200 Message-ID: <20160830165200.28401-2-dannym@scratchpost.org> References: <20160803095110.3e5cf1bc@scratchpost.org> <20160830165200.28401-1-dannym@scratchpost.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bemGq-0000eI-0P for guix-devel@gnu.org; Tue, 30 Aug 2016 12:52:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bemGd-0001Cw-H4 for guix-devel@gnu.org; Tue, 30 Aug 2016 12:52:18 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:36459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bemGd-0001Ce-AK for guix-devel@gnu.org; Tue, 30 Aug 2016 12:52:07 -0400 In-Reply-To: <20160830165200.28401-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"