summaryrefslogtreecommitdiff
path: root/gnu/packages/dlang.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/dlang.scm')
-rw-r--r--gnu/packages/dlang.scm26
1 files changed, 14 insertions, 12 deletions
diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm
index fad3e683da..2b5b1235e4 100644
--- a/gnu/packages/dlang.scm
+++ b/gnu/packages/dlang.scm
@@ -149,17 +149,18 @@ to a minimal test case.")
(define ldc-bootstrap
(package
(name "ldc")
- (version "1.30.0")
+ (version "1.32.2")
(source
(origin
(method url-fetch)
(uri (string-append "https://github.com/ldc-developers/ldc/releases"
"/download/v" version "/ldc-" version "-src.tar.gz"))
(sha256
- (base32 "1kfs4fpr1525sv2ny10hlfppy8c075vjm8m649wr2b9411pkgfzx"))))
+ (base32 "15fdl7fy1ssjxpyb9g54ac4xzcirycly521whil142ijfkpam95z"))))
(build-system cmake-build-system)
(arguments
- `(#:tests? #f ;skip in the bootstrap
+ `(#:disallowed-references (,tzdata-for-tests)
+ #:tests? #f ;skip in the bootstrap
#:build-type "Release"
#:configure-flags
(list "-GNinja")
@@ -187,7 +188,6 @@ to a minimal test case.")
(inputs
`(("libconfig" ,libconfig)
("libedit" ,libedit)
- ("tzdata" ,tzdata)
("zlib" ,zlib)))
(native-inputs
`(("lld-wrapper" ,(make-lld-wrapper lld-14 #:lld-as-ld? #t))
@@ -195,6 +195,7 @@ to a minimal test case.")
("ldc" ,gdmd)
("ninja" ,ninja)
("python-wrapper" ,python-wrapper)
+ ("tzdata" ,tzdata-for-tests)
("unzip" ,unzip)))
(home-page "http://wiki.dlang.org/LDC")
(synopsis "LLVM-based compiler for the D programming language")
@@ -263,11 +264,11 @@ bootstrapping more recent compilers written in D.")
"/lib/linux\",\n"))))))
(add-after 'unpack 'patch-paths-in-tests
(lambda _
- (substitute* "tests/d2/dmd-testsuite/Makefile"
+ (substitute* "tests/dmd/Makefile"
(("/bin/bash") (which "bash")))
(substitute* "tests/linking/linker_switches.d"
(("echo") (which "echo")))
- (substitute* "tests/d2/dmd-testsuite/dshell/test6952.d"
+ (substitute* "tests/dmd/dshell/test6952.d"
(("/usr/bin/env bash")
(which "bash")))))
(add-after 'unpack 'disable-problematic-tests
@@ -280,8 +281,9 @@ bootstrapping more recent compilers written in D.")
((" unittest") " version(skipunittest) unittest"))
;; The following tests plugins we don't have.
(delete-file "tests/plugins/addFuncEntryCall/testPlugin.d")
+ (delete-file "tests/plugins/addFuncEntryCall/testPluginLegacy.d")
;; The following tests requires AVX instruction set in the CPU.
- (substitute* "tests/d2/dmd-testsuite/runnable/cdvecfill.sh"
+ (substitute* "tests/dmd/runnable/cdvecfill.sh"
(("^// DISABLED: ") "^// DISABLED: linux64 "))
;; This unit test requires networking, fails with
;; "core.exception.RangeError@std/socket.d(778): Range
@@ -292,13 +294,13 @@ bootstrapping more recent compilers written in D.")
;; The GDB tests suite fails; there are a few bug reports about
;; it upstream.
(for-each delete-file (find-files "tests" "gdb.*\\.(c|d|sh)$"))
- (delete-file "tests/d2/dmd-testsuite/runnable/debug_info.d")
- (delete-file "tests/d2/dmd-testsuite/runnable/b18504.d")
+ (delete-file "tests/dmd/runnable/debug_info.d")
+ (delete-file "tests/dmd/runnable/b18504.d")
(substitute* "runtime/druntime/test/exceptions/Makefile"
((".*TESTS\\+=rt_trap_exceptions_drt_gdb.*")
""))
;; Drop gdb_dflags from the test suite.
- (substitute* "tests/d2/CMakeLists.txt"
+ (substitute* "tests/dmd/CMakeLists.txt"
(("\\$\\{gdb_dflags\\}") ""))
;; The following tests fail on some systems, not all of
;; which are tested upstream.
@@ -314,10 +316,10 @@ bootstrapping more recent compilers written in D.")
"instrument/xray_simple_execution.d"
"sanitizers/msan_noerror.d"
"sanitizers/msan_uninitialized.d"
- "d2/dmd-testsuite/runnable_cxx/cppa.d")))
+ "dmd/runnable_cxx/cppa.d")))
(,(target-aarch64?)
(for-each delete-file
- '("d2/dmd-testsuite/runnable/ldc_cabi1.d"
+ '("dmd/runnable/ldc_cabi1.d"
"sanitizers/fuzz_basic.d"
"sanitizers/msan_noerror.d"
"sanitizers/msan_uninitialized.d")))