GNU bug report logs - #55999
[PATCHSET] Various D fixes

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: "(" <paren@HIDDEN>; Keywords: patch; dated Wed, 15 Jun 2022 18:53:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 55999 <at> debbugs.gnu.org:


Received: (at 55999) by debbugs.gnu.org; 17 Jun 2022 15:43:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 17 11:43:37 2022
Received: from localhost ([127.0.0.1]:46760 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o2E8G-0005JV-AS
	for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 11:43:37 -0400
Received: from knopi.disroot.org ([178.21.23.139]:44582)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paren@HIDDEN>) id 1o2E83-0005J6-He
 for 55999 <at> debbugs.gnu.org; Fri, 17 Jun 2022 11:43:34 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id CD46A43FE7;
 Fri, 17 Jun 2022 17:43:21 +0200 (CEST)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id iWgVl5CD7HuU; Fri, 17 Jun 2022 17:43:20 +0200 (CEST)
Mime-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1655480599; bh=hlG/f5CImM/7wX9mCwVhQXB6hIKNS7XFxXXUFJWSC3I=;
 h=Date:Subject:From:To:References:In-Reply-To;
 b=eUfhDKmbT/QfH6FP9uYyX7KDKR2EgPSAz3eYBR+Z8AAOQSw8tTLlK4UWiXyoiVnCe
 hNsHpb547r5KvFFtk5ixzSpFQiyI1bAMj5iHu7tu4aMTh3g/YosHxpyChkFLPc705t
 7Tr5jlsWpcKlSfyVnpk/OZIjgOnNl9d6fi3w/qzW8JpEpcdVMN3/bdhRpvWN1x7dyw
 4Q/nd44ZAYJztZpxnnMdyKAZMoGMHj6OetuQS1QnIB+kTGE4VA3MGLrk6mdTuT9Ify
 0S3slwxGnrP0JpgCOeYPZLqCwP+P7T29TWs9lQv8xKG2srXmJPQ2zKHpdDLylVecSl
 IW40ol6OPsRMA==
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8
Date: Fri, 17 Jun 2022 16:43:18 +0100
Message-Id: <CKSIW7XJMDVU.1J9YV852J07CO@guix-aspire>
Subject: Re: [bug#55999] [PATCH 1/2] gnu: packages: Replace rdmd with d-tools.
From: "(" <paren@HIDDEN>
To: "Maxime Devos" <maximedevos@HIDDEN>, <55999 <at> debbugs.gnu.org>
References: <CKQXNLQU5Y4S.3V6ML9RF1JF9C@guix-aspire>
 <20220615185350.19863-1-paren@HIDDEN>
 <2fe0a4ab659765d5d0411e6c864150becb688506.camel@HIDDEN>
In-Reply-To: <2fe0a4ab659765d5d0411e6c864150becb688506.camel@HIDDEN>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 55999
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri Jun 17, 2022 at 7:16 AM BST, Maxime Devos wrote:
> Run "./pre-inst guix lint d-tools", it will have a remark.

thanks; sending new patch in a moment :)




Information forwarded to guix-patches@HIDDEN:
bug#55999; Package guix-patches. Full text available.

Message received at 55999 <at> debbugs.gnu.org:


Received: (at 55999) by debbugs.gnu.org; 17 Jun 2022 06:16:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 17 02:16:44 2022
Received: from localhost ([127.0.0.1]:43583 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o25Hg-0003CN-Dk
	for submit <at> debbugs.gnu.org; Fri, 17 Jun 2022 02:16:44 -0400
Received: from michel.telenet-ops.be ([195.130.137.88]:40792)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maximedevos@HIDDEN>) id 1o25He-0003CF-QR
 for 55999 <at> debbugs.gnu.org; Fri, 17 Jun 2022 02:16:43 -0400
Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be
 ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a])
 by michel.telenet-ops.be with bizsmtp
 id k6Gg2700M4UW6Th066GgAH; Fri, 17 Jun 2022 08:16:41 +0200
Message-ID: <2fe0a4ab659765d5d0411e6c864150becb688506.camel@HIDDEN>
Subject: Re: [bug#55999] [PATCH 1/2] gnu: packages: Replace rdmd with d-tools.
From: Maxime Devos <maximedevos@HIDDEN>
To: "(" <paren@HIDDEN>, 55999 <at> debbugs.gnu.org
Date: Fri, 17 Jun 2022 08:16:41 +0200
In-Reply-To: <20220615185350.19863-1-paren@HIDDEN>
References: <CKQXNLQU5Y4S.3V6ML9RF1JF9C@guix-aspire>
 <20220615185350.19863-1-paren@HIDDEN>
Content-Type: multipart/signed; micalg="pgp-sha512";
 protocol="application/pgp-signature"; boundary="=-J7W8Yt6b1Hu8wRbbUNNX"
User-Agent: Evolution 3.38.3-1 
MIME-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22;
 t=1655446601; bh=sIdfzVMiiK+59F+2VlUFTSxcGWshLNUyemsxMcNWzuk=;
 h=Subject:From:To:Date:In-Reply-To:References;
 b=lxckMn0AbtOX+3OtYhLlK1pIyWF46aVRMVqCr8ftl4EhrsbOTUPAuwYHW4C4VswZ6
 9MvBukQDg5TSIU1szMlR+oVayfziEjtmVuL9/QQ8xQIThncH1c45EczzZI/zfX2Qq5
 8yI018D+MiNSZqfsGfXXZjFPCgPdg48wLnmZT9zADnknFMhdzPOmiuFnBZnZ6SazVz
 CR4s6dUR9/L/0a+w2NxSayySfUwKhPG2Yo3OneKPLE+k+/ZlH0enZRQlVi4Sznm3pW
 3F6Xz9lt4btzvAgpdLZXvdroDaswz/yR7NAiQSIZiHpTZpGugIvXQUd2nuaLYCmcf7
 hze0sHQRxAPBg==
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 55999
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--=-J7W8Yt6b1Hu8wRbbUNNX
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64

KCB2aWEgR3VpeC1wYXRjaGVzIHZpYSBzY2hyZWVmIG9wIHdvIDE1LTA2LTIwMjIgb20gMTk6NTMg
WyswMTAwXToKPiArwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCAocmVwbGFjZSAnY2hlY2sK
PiArwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqAgKGxhbWJkYSBfCj4gK8KgwqDCoMKg
wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCAoaW52b2tlICJiaW4vcmRtZCIgInJkbWRfdGVz
dC5kIiAiYmluL3JkbWQiCj4gK8KgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgwqDCoMKgwqAgIi0tcmRtZC1kZWZhdWx0LWNvbXBpbGVyIiAibGRtZDIiKSkpCgpSdW4g
Ii4vcHJlLWluc3QgZ3VpeCBsaW50IGQtdG9vbHMiLCBpdCB3aWxsIGhhdmUgYSByZW1hcmsuCgpH
cmVldGluZ3MsCk1heGltZS4K


--=-J7W8Yt6b1Hu8wRbbUNNX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYqwcSRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7r10AQDm8M2I4bgJIQTb2ZI/9g8UO5rP
BF2WDN3bihzVZQjrGQEA83Q9Pr+p9iHdn5ZXSNBIM5jUdMyo/G/2C2QntnkJNg0=
=AU2u
-----END PGP SIGNATURE-----

--=-J7W8Yt6b1Hu8wRbbUNNX--





Information forwarded to guix-patches@HIDDEN:
bug#55999; Package guix-patches. Full text available.

Message received at 55999 <at> debbugs.gnu.org:


Received: (at 55999) by debbugs.gnu.org; 15 Jun 2022 18:54:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 15 14:54:07 2022
Received: from localhost ([127.0.0.1]:39811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o1Y9W-0006Vi-Kf
	for submit <at> debbugs.gnu.org; Wed, 15 Jun 2022 14:54:07 -0400
Received: from knopi.disroot.org ([178.21.23.139]:46008)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paren@HIDDEN>) id 1o1Y9P-0006Uj-PW
 for 55999 <at> debbugs.gnu.org; Wed, 15 Jun 2022 14:54:06 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id 96D6D43F39;
 Wed, 15 Jun 2022 20:53:58 +0200 (CEST)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id yK6oTVH6r1Yt; Wed, 15 Jun 2022 20:53:57 +0200 (CEST)
From: "(" <paren@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1655319235; bh=XM/q3yKupkRCCLKXaCfo71tFjR5EHtIzi6bvbfqLPSg=;
 h=From:To:Cc:Subject:Date;
 b=f0q9SZ6tc562jl0s6Ak992LmXNSyDHaxKq3ZEQ50QCWrOV0zloQ02652N1ejwA7N4
 f8PZojZZsSbqkUyk8tqKtoARU4LthtqThnTMYDRJfhQ00fuJ86VqBD313n5XlQyXeQ
 D9EXdJvVdBmrlctPgGKPbLkjZtwzrbPv9YMbVjBGmaNV8ADY8v5s3D6RobkUm0dei0
 e5qlRnhObfWUP2SdtIDOqW5ayWhZrE0CVp47IveOXDSz6pcbjUgnQBwuE68GxkLtTP
 QekxcvVPgAqxmPxFVfinnLhAYl0iwq0grx5G89RWnMPD7+qEnCN1zCkX0yVmQ+UBbc
 lo2rjApR703Ew==
To: 55999 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: packages: Replace rdmd with d-tools.
Date: Wed, 15 Jun 2022 19:53:49 +0100
Message-Id: <20220615185350.19863-1-paren@HIDDEN>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 55999
Cc: "\(" <paren@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/dlang.scm (rdmd): Remove variable.
* gnu/packages/dlang.scm (d-tools): New variable.

This fixes the build of rdmd and updates it to the latest version, along
with running rdmd_test.d, building dustmite along with rdmd, and
renaming the package to d-tools to reflect that change.
---
 gnu/packages/dlang.scm | 76 +++++++++++++++++++++++++-----------------
 1 file changed, 45 insertions(+), 31 deletions(-)

diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm
index 403fcbbd6b..e0ded5c3c8 100644
--- a/gnu/packages/dlang.scm
+++ b/gnu/packages/dlang.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2020 Guy Fleury Iteriteka <gfleury@HIDDEN>
 ;;; Copyright © 2021 Efraim Flashner <efraim@HIDDEN>
 ;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@HIDDEN>
+;;; Copyright © 2022 ( <paren@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -27,6 +28,7 @@ (define-module (gnu packages dlang)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module ((guix build utils) #:hide (delete which))
@@ -48,42 +50,54 @@ (define-module (gnu packages dlang)
   #:use-module (gnu packages xorg)
   #:use-module (srfi srfi-1))
 
-(define-public rdmd
+(define-public d-tools
   (package
-    (name "rdmd")
-    (version "2.077.1")
-    (source (origin
-      (method url-fetch)
-      (uri (string-append "https://github.com/dlang/tools/archive/v" version ".tar.gz"))
-      (file-name (string-append name "-" version ".tar.gz"))
-      (sha256
-       (base32
-        "0c8w373rv6iz3xfid94w40ncv2lr2ncxi662qsr4lda4aghczmq7"))))
+    (name "d-tools")
+    (version "2.100.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/dlang/tools")
+              (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1jbn0hyskv4ykcckw0iganpyrm0bq2lggswspw21r4hgnxkmjbyw"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (delete 'configure)
-         (delete 'check) ; There is no Makefile, so there's no 'make check'.
-         (replace
-          'build
-          (lambda _
-            (invoke "ldc2" "rdmd.d")))
-         (replace
-          'install
-          (lambda* (#:key outputs #:allow-other-keys)
-            (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
-              (install-file "rdmd" bin)))))))
+     (list #:phases
+           #~(modify-phases %standard-phases
+               (delete 'configure)
+               (replace 'build
+                 (lambda _
+                   (mkdir-p "bin")
+                   (setenv "CC" #$(cc-for-target))
+                   (setenv "LD" #$(ld-for-target))
+                   (invoke "ldc2" "rdmd.d" "--of" "bin/rdmd")
+                   (apply invoke "ldc2" "--of=bin/dustmite"
+                          (find-files "DustMite" ".*\\.d"))))
+               (replace 'check
+                 (lambda _
+                   (invoke "bin/rdmd" "rdmd_test.d" "bin/rdmd"
+                           "--rdmd-default-compiler" "ldmd2")))
+               (replace 'install
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let* ((out (assoc-ref outputs "out"))
+                          (bin (string-append out "/bin"))
+                          (man (string-append out "/man")))
+                     (copy-recursively "bin" bin)
+                     (copy-recursively "man" man)))))))
     (native-inputs
-     (list ldc))
-    (home-page "https://github.com/D-Programming-Language/tools/")
-    (synopsis "Specialized equivalent to 'make' for the D language")
+     (list ldc
+           (module-ref (resolve-interface
+                        '(gnu packages commencement))
+                       'ld-gold-wrapper)))
+    (home-page "https://github.com/dlang/tools")
+    (synopsis "Useful D-related tools")
     (description
-     "rdmd is a companion to the dmd compiler that simplifies the typical
-edit-compile-link-run or edit-make-run cycle to a rapid edit-run cycle.  Like
-make and other tools, rdmd uses the relative dates of the files involved to
-minimize the amount of work necessary.  Unlike make, rdmd tracks dependencies
-and freshness without requiring additional information from the user.")
+     "@code{d-tools} provides two useful tools for the D language: @code{rdmd},
+which runs D source files as scripts, and @code{dustmite}, which reduces D code
+to a minimal test case.")
     (license license:boost1.0)))
 
 ;;; The 0.17.6 version is the last release to support being bootstrapped
-- 
2.36.1





Information forwarded to guix-patches@HIDDEN:
bug#55999; Package guix-patches. Full text available.

Message received at 55999 <at> debbugs.gnu.org:


Received: (at 55999) by debbugs.gnu.org; 15 Jun 2022 18:54:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 15 14:54:02 2022
Received: from localhost ([127.0.0.1]:39808 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o1Y9S-0006V1-5w
	for submit <at> debbugs.gnu.org; Wed, 15 Jun 2022 14:54:02 -0400
Received: from knopi.disroot.org ([178.21.23.139]:46138)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paren@HIDDEN>) id 1o1Y9P-0006Uk-Sx
 for 55999 <at> debbugs.gnu.org; Wed, 15 Jun 2022 14:54:00 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id 3EB8643FB5;
 Wed, 15 Jun 2022 20:53:59 +0200 (CEST)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id WfEh0o0IXDq6; Wed, 15 Jun 2022 20:53:57 +0200 (CEST)
From: "(" <paren@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1655319237; bh=lIP/8lUML/Rbb75OcgJh7/0q//EvxS5E7KPNPpy3R50=;
 h=From:To:Cc:Subject:Date:In-Reply-To:References;
 b=amGpCBDldp6yhCBW8NWtIeVhcgzTViT4efkivNGNZGCIqL7Xy4XAY2xwW1ystwhNE
 HRoTstaeqPu4pnG54MuHjfUZjrKZu5+Iizb2ZVMy1b/dCqwrJAwIE/zhPFc6kRlWF/
 036Npo14xtUUd+QGXpOIUO87N6B0QeGeS13QVUza59cK2E11GAt5D+0mtvw11Jxz+y
 8LlOENh000SSAp5X2HQVyxfyzN5+jmSetz/+AHIYGi2RXlKm/PfzK2WPnSWZKti9cL
 UI+CoJNVYoodOUoh8SpG42Kis9GwFeHzGnYjFC568HXZjSrvy7SqGOXc8SGrerruKX
 mwCtHWCrhTAkg==
To: 55999 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: packages: Update dub to v1.23.0.
Date: Wed, 15 Jun 2022 19:53:50 +0100
Message-Id: <20220615185350.19863-2-paren@HIDDEN>
In-Reply-To: <20220615185350.19863-1-paren@HIDDEN>
References: <20220615185350.19863-1-paren@HIDDEN>
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 55999
Cc: "\(" <paren@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

* gnu/packages/dlang.scm (dub): Update to version 1.23.0.

This also fixes Dub's build, which was previously failing because of how
ancient it was.
---
 gnu/packages/dlang.scm | 40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm
index e0ded5c3c8..2341f1769e 100644
--- a/gnu/packages/dlang.scm
+++ b/gnu/packages/dlang.scm
@@ -436,7 +436,7 @@ (define (gnu-triplet->clang-arch system)
 (define-public dub
   (package
     (name "dub")
-    (version "1.7.2")
+    (version "1.23.0")
     (source
      (origin
        (method git-fetch)
@@ -445,26 +445,30 @@ (define-public dub
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "073ibvgm1gphcqs1yjrav9ryp677nh3b194nxmvicwgvdc0sb6w9"))))
+        (base32 "06a4whsl1m600k096nwif83n7za3vr7pj1xwapncy5fcad1gmady"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:tests? #f ; it would have tested itself by installing some packages (vibe etc)
-       #:phases
-       (modify-phases %standard-phases
-         (delete 'configure)            ; no configure script
-         (replace 'build
-           (lambda _
-             (invoke "./build.sh")))
-         (replace 'install
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (bin (string-append out "/bin")))
-               (install-file "bin/dub" bin)
-               #t))))))
-    (inputs
-     (list curl))
+     (list #:tests? #f ; it would have tested itself by installing some packages (vibe etc)
+           #:phases
+           #~(modify-phases %standard-phases
+               (delete 'configure) ; no configure script
+               (replace 'build
+                 (lambda* (#:key native-inputs #:allow-other-keys)
+                   (setenv "CC" #$(cc-for-target))
+                   (setenv "LD" #$(ld-for-target))
+                   (invoke "./build.d")))
+               (replace 'install
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let* ((out (assoc-ref outputs "out"))
+                          (bin (string-append out "/bin")))
+                     (install-file "bin/dub" bin)))))))
+    (inputs (list curl))
     (native-inputs
-     (list ldc))
+     (list ldc
+           d-tools
+           (module-ref (resolve-interface
+                        '(gnu packages commencement))
+                       'ld-gold-wrapper)))
     (home-page "https://code.dlang.org/getting_started")
     (synopsis "Package and build manager for D projects")
     (description
-- 
2.36.1





Information forwarded to guix-patches@HIDDEN:
bug#55999; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Jun 2022 18:52:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 15 14:52:20 2022
Received: from localhost ([127.0.0.1]:39798 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o1Y7f-0006Rh-5c
	for submit <at> debbugs.gnu.org; Wed, 15 Jun 2022 14:52:20 -0400
Received: from lists.gnu.org ([209.51.188.17]:39716)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <paren@HIDDEN>) id 1o1Y7c-0006RY-Dj
 for submit <at> debbugs.gnu.org; Wed, 15 Jun 2022 14:52:09 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60790)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <paren@HIDDEN>) id 1o1Y7b-00048Y-Tc
 for guix-patches@HIDDEN; Wed, 15 Jun 2022 14:52:08 -0400
Received: from knopi.disroot.org ([178.21.23.139]:40772)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <paren@HIDDEN>) id 1o1Y7a-0001M5-2T
 for guix-patches@HIDDEN; Wed, 15 Jun 2022 14:52:07 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id 4DB1243F39
 for <guix-patches@HIDDEN>; Wed, 15 Jun 2022 20:52:02 +0200 (CEST)
X-Virus-Scanned: SPAM Filter at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id aKJamp6P-CZX for <guix-patches@HIDDEN>;
 Wed, 15 Jun 2022 20:52:01 +0200 (CEST)
Mime-Version: 1.0
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1655319120; bh=LP2kyv+EOr8uLNTfLMTgVAm2JxU+WBx68EdkdAqL7BM=;
 h=Date:Subject:From:To;
 b=YUO71GBSE0WjOVz3zqrEzoO3Es3qTLopNBfq+4TJheWE1YmEwFxxVxj4V/LwHz/fb
 OFJA24/oKtLmWG4jQLMb7nTZ+1AIxNVpSWCe2O/y66A21+2cm+IKSUBGaB560NYk4D
 yY1iRJ3Yhxx3VJofdz1GeuP6dbj13BI7KP9Muwm4MCVUDkIaThSonwvQfbtkMoPNCF
 /ynTfvuy59Tn3ePpS7QAiEJzNhdHwM7ZDv1wYM8US9E48lle+BU1oA19mTEhyknq1W
 BdTKxk7BmXWtP/cx7ue2gmDu6+GEu2q3lPNsW62IPjhgYhxZ6tgKEYc9cP5HRIehGG
 Dlu/9Y/3hFjEw==
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8
Date: Wed, 15 Jun 2022 19:52:00 +0100
Message-Id: <CKQXNLQU5Y4S.3V6ML9RF1JF9C@guix-aspire>
Subject: [PATCHSET] Various D fixes
From: "(" <paren@HIDDEN>
To: <guix-patches@HIDDEN>
Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@HIDDEN;
 helo=knopi.disroot.org
X-Spam_score_int: -12
X-Spam_score: -1.3
X-Spam_bar: -
X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 SCC_BODY_URI_ONLY=0.833, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

This fixes <https://issues.guix.gnu.org/55953>.




Acknowledgement sent to "(" <paren@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#55999; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 17 Jun 2022 15:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.