From patchwork Thu May 20 16:08:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Janssen X-Patchwork-Id: 29429 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BE08527BC81; Thu, 20 May 2021 17:09:46 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 555AB27BC78 for ; Thu, 20 May 2021 17:09:46 +0100 (BST) Received: from localhost ([::1]:50146 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljlF3-0002pf-FP for patchwork@mira.cbaines.net; Thu, 20 May 2021 12:09:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljlEM-0002pN-Ki for guix-patches@gnu.org; Thu, 20 May 2021 12:09:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljlEM-0001rZ-D7 for guix-patches@gnu.org; Thu, 20 May 2021 12:09:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljlEM-0000El-8f for guix-patches@gnu.org; Thu, 20 May 2021 12:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48541] [PATCH] gnu: Fix build for ldc. Resent-From: Roel Janssen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 May 2021 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48541 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48541@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1621526930879 (code B ref -1); Thu, 20 May 2021 16:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 May 2021 16:08:50 +0000 Received: from localhost ([127.0.0.1]:35067 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljlE2-0000Dx-Kw for submit@debbugs.gnu.org; Thu, 20 May 2021 12:08:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:51726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljlDy-0000Dn-Es for submit@debbugs.gnu.org; Thu, 20 May 2021 12:08:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljlDy-0002mh-Ae for guix-patches@gnu.org; Thu, 20 May 2021 12:08:38 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38076) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljlDy-0001gr-47 for guix-patches@gnu.org; Thu, 20 May 2021 12:08:38 -0400 Received: from [143.121.198.253] (port=36816) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljlDx-0002Mc-UU for guix-patches@gnu.org; Thu, 20 May 2021 12:08:38 -0400 From: Roel Janssen Message-ID: <2b42fec5-8266-4953-4a6d-8b73e2105fff@gnu.org> Date: Thu, 20 May 2021 18:08:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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 From 191aa4cc2f131453d9ffc902d72dbe16307aa0c0 Mon Sep 17 00:00:00 2001 From: Roel Janssen 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