diff mbox

[1/3] gnu: ldc: make isnan and isinf work.

Message ID 20160803092015.8541-2-dannym@scratchpost.org
State New
Headers show

Commit Message

Danny Milosavljevic Aug. 3, 2016, 9:20 a.m. UTC
* gnu/packages/ldc.scm (ldc): Added substitution.
---
 gnu/packages/ldc.scm | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox

Patch

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"