unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#48541] [PATCH] gnu: Fix build for ldc.
@ 2021-05-20 16:08 Roel Janssen
  2021-05-21 10:09 ` Ludovic Courtès
  0 siblings, 1 reply; 5+ messages in thread
From: Roel Janssen @ 2021-05-20 16:08 UTC (permalink / raw)
  To: 48541

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

Dear Guix,

I looked into why our LDC package fails to build, and it seems that all 
tests that make use of "ptrace" fail because the build environment 
doesn't allow it.
So I disabled these tests by removing the relevant files, and completed 
a successful build.

If there is a way to provide the build environment with the ability to 
use ptrace, and if that is preferred to removing tests, then please let 
me know so I can prepare another patch.

Kind regards,
Roel Janssen



[-- Attachment #2: 0001-gnu-Fix-build-for-ldc.patch --]
[-- Type: text/x-patch, Size: 1716 bytes --]

From 191aa4cc2f131453d9ffc902d72dbe16307aa0c0 Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
Date: Thu, 20 May 2021 18:04:05 +0200
Subject: [PATCH] gnu: Fix build for ldc.

* gnu/packages/dlang.scm (ldc): Disable tests that use ptrace.
---
 gnu/packages/dlang.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm
index da3b818c26..33be779ba3 100644
--- a/gnu/packages/dlang.scm
+++ b/gnu/packages/dlang.scm
@@ -240,6 +240,16 @@ bootstrapping more recent compilers written in D.")
                (delete-file "tests/compilable/ctfe_math.d")
                (delete-file "tests/debuginfo/nested_gdb.d")
                (delete-file "tests/debuginfo/classtypes_gdb.d")
+               ;; the following tests need special permissions for ptrace:
+               (delete-file "tests/d2/dmd-testsuite/runnable/b18504.d")
+               (delete-file "tests/d2/dmd-testsuite/runnable/gdb14225.d")
+               (delete-file "tests/d2/dmd-testsuite/runnable/gdb14276.d")
+               (delete-file "tests/d2/dmd-testsuite/runnable/gdb14313.d")
+               (delete-file "tests/d2/dmd-testsuite/runnable/gdb14330.d")
+               (delete-file "tests/d2/dmd-testsuite/runnable/gdb1.d")
+               (delete-file "tests/d2/dmd-testsuite/runnable/gdb4149.d")
+               (delete-file "tests/d2/dmd-testsuite/runnable/gdb4181.d")
+               (delete-file "tests/d2/dmd-testsuite/runnable/gdb15729.sh")
                ;; the following tests plugins we don't have.
                (delete-file "tests/plugins/addFuncEntryCall/testPlugin.d")
                ;; the following tests requires AVX instruction set in the CPU.
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-21 16:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-20 16:08 [bug#48541] [PATCH] gnu: Fix build for ldc Roel Janssen
2021-05-21 10:09 ` Ludovic Courtès
2021-05-21 10:24   ` Roel Janssen
2021-05-21 14:57     ` Ludovic Courtès
2021-05-21 16:10       ` Roel Janssen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).