gnu: ldc: Update to 1.32.2.

* gnu/packages/dlang.scm (ldc-bootstrap): Update to 1.32.2.
(ldc)[arguments]: Adjust skipped tests paths for changes in source code
layout. Skip another plugin test.
This commit is contained in:
Efraim Flashner 2023-05-21 09:50:08 +03:00
parent 7b3f571fc8
commit c15ae77bbc
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -149,14 +149,14 @@ (define-public gdmd
(define ldc-bootstrap (define ldc-bootstrap
(package (package
(name "ldc") (name "ldc")
(version "1.30.0") (version "1.32.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://github.com/ldc-developers/ldc/releases" (uri (string-append "https://github.com/ldc-developers/ldc/releases"
"/download/v" version "/ldc-" version "-src.tar.gz")) "/download/v" version "/ldc-" version "-src.tar.gz"))
(sha256 (sha256
(base32 "1kfs4fpr1525sv2ny10hlfppy8c075vjm8m649wr2b9411pkgfzx")))) (base32 "15fdl7fy1ssjxpyb9g54ac4xzcirycly521whil142ijfkpam95z"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:disallowed-references (,tzdata-for-tests) `(#:disallowed-references (,tzdata-for-tests)
@ -264,11 +264,11 @@ (define (gnu-triplet->clang-arch system)
"/lib/linux\",\n")))))) "/lib/linux\",\n"))))))
(add-after 'unpack 'patch-paths-in-tests (add-after 'unpack 'patch-paths-in-tests
(lambda _ (lambda _
(substitute* "tests/d2/dmd-testsuite/Makefile" (substitute* "tests/dmd/Makefile"
(("/bin/bash") (which "bash"))) (("/bin/bash") (which "bash")))
(substitute* "tests/linking/linker_switches.d" (substitute* "tests/linking/linker_switches.d"
(("echo") (which "echo"))) (("echo") (which "echo")))
(substitute* "tests/d2/dmd-testsuite/dshell/test6952.d" (substitute* "tests/dmd/dshell/test6952.d"
(("/usr/bin/env bash") (("/usr/bin/env bash")
(which "bash"))))) (which "bash")))))
(add-after 'unpack 'disable-problematic-tests (add-after 'unpack 'disable-problematic-tests
@ -281,8 +281,9 @@ (define (gnu-triplet->clang-arch system)
((" unittest") " version(skipunittest) unittest")) ((" unittest") " version(skipunittest) unittest"))
;; The following tests plugins we don't have. ;; The following tests plugins we don't have.
(delete-file "tests/plugins/addFuncEntryCall/testPlugin.d") (delete-file "tests/plugins/addFuncEntryCall/testPlugin.d")
(delete-file "tests/plugins/addFuncEntryCall/testPluginLegacy.d")
;; The following tests requires AVX instruction set in the CPU. ;; 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 ")) (("^// DISABLED: ") "^// DISABLED: linux64 "))
;; This unit test requires networking, fails with ;; This unit test requires networking, fails with
;; "core.exception.RangeError@std/socket.d(778): Range ;; "core.exception.RangeError@std/socket.d(778): Range
@ -293,13 +294,13 @@ (define (gnu-triplet->clang-arch system)
;; The GDB tests suite fails; there are a few bug reports about ;; The GDB tests suite fails; there are a few bug reports about
;; it upstream. ;; it upstream.
(for-each delete-file (find-files "tests" "gdb.*\\.(c|d|sh)$")) (for-each delete-file (find-files "tests" "gdb.*\\.(c|d|sh)$"))
(delete-file "tests/d2/dmd-testsuite/runnable/debug_info.d") (delete-file "tests/dmd/runnable/debug_info.d")
(delete-file "tests/d2/dmd-testsuite/runnable/b18504.d") (delete-file "tests/dmd/runnable/b18504.d")
(substitute* "runtime/druntime/test/exceptions/Makefile" (substitute* "runtime/druntime/test/exceptions/Makefile"
((".*TESTS\\+=rt_trap_exceptions_drt_gdb.*") ((".*TESTS\\+=rt_trap_exceptions_drt_gdb.*")
"")) ""))
;; Drop gdb_dflags from the test suite. ;; Drop gdb_dflags from the test suite.
(substitute* "tests/d2/CMakeLists.txt" (substitute* "tests/dmd/CMakeLists.txt"
(("\\$\\{gdb_dflags\\}") "")) (("\\$\\{gdb_dflags\\}") ""))
;; The following tests fail on some systems, not all of ;; The following tests fail on some systems, not all of
;; which are tested upstream. ;; which are tested upstream.
@ -315,10 +316,10 @@ (define (gnu-triplet->clang-arch system)
"instrument/xray_simple_execution.d" "instrument/xray_simple_execution.d"
"sanitizers/msan_noerror.d" "sanitizers/msan_noerror.d"
"sanitizers/msan_uninitialized.d" "sanitizers/msan_uninitialized.d"
"d2/dmd-testsuite/runnable_cxx/cppa.d"))) "dmd/runnable_cxx/cppa.d")))
(,(target-aarch64?) (,(target-aarch64?)
(for-each delete-file (for-each delete-file
'("d2/dmd-testsuite/runnable/ldc_cabi1.d" '("dmd/runnable/ldc_cabi1.d"
"sanitizers/fuzz_basic.d" "sanitizers/fuzz_basic.d"
"sanitizers/msan_noerror.d" "sanitizers/msan_noerror.d"
"sanitizers/msan_uninitialized.d"))) "sanitizers/msan_uninitialized.d")))