From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH 0/3] Add DMD, the D language reference compiler. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 17 Jan 2024 22:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17055313038452 (code B ref -1); Wed, 17 Jan 2024 22:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jan 2024 22:41:43 +0000 Received: from localhost ([127.0.0.1]:53790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQEbP-0002CG-Dg for submit@debbugs.gnu.org; Wed, 17 Jan 2024 17:41:43 -0500 Received: from lists.gnu.org ([2001:470:142::17]:54378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQEbO-0002C4-IX for submit@debbugs.gnu.org; Wed, 17 Jan 2024 17:41:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQEbH-0001Y0-4H for guix-patches@gnu.org; Wed, 17 Jan 2024 17:41:35 -0500 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQEbF-0007x2-P4 for guix-patches@gnu.org; Wed, 17 Jan 2024 17:41:34 -0500 Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-78333ad3a17so919050485a.3 for ; Wed, 17 Jan 2024 14:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705531291; x=1706136091; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=d5/p1OxccMKu2Ba9xVCeR0rt1/0HMRDbyC/4JZ7NoC0=; b=YWOx46v8iuJO44cFRyNtBvGaK4jodNXfIeWkz2nCkScRWA7j1Uys1migRT+S2WCtZl 6qXrkB5mUkqJgfvJm2w+JP6NlEhWQB+BFwAvHVBXsLAfDNqpBP3sVyvLdrrFdB93bRV3 veYz7PGzX7m3YeBWgkAsFqFyoqRynbKPJ9tCPTEgGXyFxVka01GJ/1DdOc0tuANX5Ilf 3mRQgU0QIpQ1Amr0hH8GvZiUsutgkg/4zpKglkR1R8ZgcgKh7Ny/S+2AL6Z/e6wcR5YX W5eyEAmawVBRXKqgViZzGPwykT5H4WZAr7SEmuRqdnFAo347zdmfclDwJebXooTPbCKJ IMQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705531291; x=1706136091; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d5/p1OxccMKu2Ba9xVCeR0rt1/0HMRDbyC/4JZ7NoC0=; b=ZFfC1qWhC7CwcQO/wn01Q/4Bo4+I6nUSldXKrRMms5rVx7JZAmtN4nU8HLzg4qfr3p 5TcvOmKcqh6hdjpNC01YpatbaAgvQqGzkiwl/JxCneHzUFt2wSpna8FgWB/ttZoUizpX htrv2JgwHlFuH4H2a5Aq7vnnbdF5DoWc1rXfFD8q9KuSwST0qlcBUtC8IK/gCk/4Pq+V HLbE+wqaux5/rF3SXwQCQYQr+p9jlixsfpm6SP1U+TdELFBpaotsVIpqzLO+BlkNBxuB /C5jhTl+Gh5T16nKp18He9Lk5hK0F+cPKX3T00nNYHtWEm7v0QbsZyW6uk0+tI0cQkI9 v5OA== X-Gm-Message-State: AOJu0Yz2ulolVLnaZriWUr7qhlvinKLhw0eAyRupBaYRPFH6vyI6bVj+ A2uBan2znykFU4KEnAWV9Ddbvu60cyU= X-Google-Smtp-Source: AGHT+IETY9kjkZWb57IRmWNSC6Hw/oOvfov7w8Fa5aGApkALqp6+Sq8jOL60ci45I7IvVd1hfwbz5g== X-Received: by 2002:a37:ac19:0:b0:783:1aeb:fb60 with SMTP id e25-20020a37ac19000000b007831aebfb60mr10595293qkm.20.1705531291293; Wed, 17 Jan 2024 14:41:31 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id o11-20020a05620a22cb00b00781823ddd45sm4857999qki.18.2024.01.17.14.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 14:41:30 -0800 (PST) From: Maxim Cournoyer Date: Wed, 17 Jan 2024 17:41:26 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::72c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This series adds DMD, bootstrapped via GDC. Maxim Cournoyer (3): gnu: Add gdc alias. gnu: gdmd: Replace gdc-11 with gdc alias. gnu: Add dmd. gnu/packages/dlang.scm | 167 ++++++++++++++++++++++++++++++++++++++++- gnu/packages/gcc.scm | 6 ++ 2 files changed, 171 insertions(+), 2 deletions(-) base-commit: 8ca490e6600c55b2dab5db12cf1aefa2b1b27f9a -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH 1/3] gnu: Add gdc alias. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Thu, 18 Jan 2024 00:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer , Maxim Cournoyer , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Maxim Cournoyer , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170553749828163 (code B ref 68554); Thu, 18 Jan 2024 00:25:01 +0000 Received: (at 68554) by debbugs.gnu.org; 18 Jan 2024 00:24:58 +0000 Received: from localhost ([127.0.0.1]:53980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQGDJ-0007KA-TD for submit@debbugs.gnu.org; Wed, 17 Jan 2024 19:24:58 -0500 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:43452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQGDH-0007Jt-RP for 68554@debbugs.gnu.org; Wed, 17 Jan 2024 19:24:56 -0500 Received: by mail-qv1-xf30.google.com with SMTP id 6a1803df08f44-680b1335af6so1765216d6.1 for <68554@debbugs.gnu.org>; Wed, 17 Jan 2024 16:24:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705537488; x=1706142288; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xxkjN0KW/hEK2L2ysmylkewzmf2Af2ppdger5Y/5b/o=; b=HYK6egOYLVDSrUumbhrBoRflZ2/cU3bC603Otm2YrY23N2fpBmPP2e59+ocQ9pLZbT 5+EvnIdmzeh+d4u7PT/k7X5jbNOzViT8wVUYNtELDpl6uKp/xKln89ttxtBjDUZeD6il 3YOohkAWj8sCN5VBvavEsEuPyshrYC++QqMwo9yDB6VF4ksa21wXqnEeSUOx7UswF5KQ 1dv0MSPKFOQ7IIxdDomh2//7JH2ymNJj7rSMuxcNfdT1H7pVt3NKBjXqDejeD0c1PVHK 8e208IeAz+mzgY1GkvULlrjdSBmLGJZU2I7MFDm2vyu4OJB35+cn38WwzwzYfJfX4Lfw mJVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705537488; x=1706142288; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xxkjN0KW/hEK2L2ysmylkewzmf2Af2ppdger5Y/5b/o=; b=xKRfl6hs9geX7GjGDv55CLUBvnOpN9fJDA6fSfiv/OFvj/sAY8kGORmmnwN++lvTqM tlvt+OteAqwpUfLC4BrcJ22TQjD5u+o3itObCSVydAMKyu08iuWY0ZGrsd6Jdo896lQ4 +S2htFQ501CblL9TLRxbN7jpOmuXJUaBnVeVfykig0fA4yRpAn4Rlryp/gUyz+WlN9vG r6yx1P8Yxow7PZlxo1Ini3mC4+9flICSnZvvwgaXgIC5KcxEzr7rxcVEqJz3K4O5wIBF tEasdTLRJVmR5buHP6lf4PbDqTLaRJ6oDqexOmHPvaQpZezmLKhgTPewRc6t9zVam2iD wgxA== X-Gm-Message-State: AOJu0YwjO5sWGf0OarbQ/deutel+njpalY/xqJll/w8pQ8D1LaFIAuvE Q80Z7TkhLPp/mzQ/xoa0fNRu05nhNMLyFEJMfMt5ndoZ7n9CbIuYUInsPcE18KA= X-Google-Smtp-Source: AGHT+IFKPb+wJCP7PQJ3yPwqRNKiZgTZDVReYnMTRztqEeUB2G3unmrTSaKXir7qdsm5tO9MFl9lDQ== X-Received: by 2002:a05:6214:c8b:b0:681:78e0:505e with SMTP id r11-20020a0562140c8b00b0068178e0505emr2387358qvr.41.1705537488441; Wed, 17 Jan 2024 16:24:48 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id m15-20020ad4448f000000b0068176e0cf05sm1446092qvt.41.2024.01.17.16.24.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 16:24:47 -0800 (PST) From: Maxim Cournoyer Date: Wed, 17 Jan 2024 19:24:31 -0500 Message-ID: <19107cbb887ce52888d6ecfef6ff64ee5ed5952f.1705531163.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/gcc.scm (gdc): New variable. Change-Id: I38447e46ffba44d3a9d3757d34fe9ff081803457 --- gnu/packages/gcc.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 5590cd3d7e..3ee7afb97f 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -1118,6 +1118,12 @@ (define-public gdc-11 (custom-gcc gcc-11 "gdc" '("d") %generic-search-paths))) +;;; Alias tracking the latest GDC version. +(define-public gdc + (hidden-package + (custom-gcc gcc "gdc" '("d") + %generic-search-paths))) + (define-public (make-libgccjit gcc) (package (inherit gcc) -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH 2/3] gnu: gdmd: Replace gdc-11 with gdc alias. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Thu, 18 Jan 2024 00:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer , Maxim Cournoyer X-Debbugs-Original-Xcc: Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170553750228212 (code B ref 68554); Thu, 18 Jan 2024 00:26:01 +0000 Received: (at 68554) by debbugs.gnu.org; 18 Jan 2024 00:25:02 +0000 Received: from localhost ([127.0.0.1]:53985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQGDO-0007Kn-7u for submit@debbugs.gnu.org; Wed, 17 Jan 2024 19:25:02 -0500 Received: from mail-ua1-x92b.google.com ([2607:f8b0:4864:20::92b]:61547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQGDK-0007K0-OH for 68554@debbugs.gnu.org; Wed, 17 Jan 2024 19:24:59 -0500 Received: by mail-ua1-x92b.google.com with SMTP id a1e0cc1a2514c-7ce6c3dab88so2952391241.2 for <68554@debbugs.gnu.org>; Wed, 17 Jan 2024 16:24:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705537491; x=1706142291; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iA0HfxKm6N/Zk5oDg7o90eiorov8MpERSN0NwwXUGmw=; b=T9/GO2Jl4yY1qOUV76DERu2OJwdoJ08C3rXamYhs0SB1scCegCX8k3rm7fWYPPWoKY XY62+JRObaNKC7V+IHI7luPbhA/hW3AiDUXneOM+S3xs4730rqqb5Eqxhdacw1IkzG7z 9/6QqWdoQKYxVQIi/Bhgn7DRRSXnM9507p+dJQKEulVYB1UhyoMxUqUbkEiYF+nV8Gux X3SHKYfdiAVgQPwPXHSdlL74wSkx1os4Kx+ARIBUQJctAjbfHwYLKsp0oRM9jgFI0ucq J4MPRqfRxZbktv/oPTR2VgFPs1/F0CdrCWKDBC+EvXLkWcb/zAePr6rv5NVYHZ3YGjpU EhtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705537491; x=1706142291; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iA0HfxKm6N/Zk5oDg7o90eiorov8MpERSN0NwwXUGmw=; b=pr0THGLqMkYFp5K9PuevEboQzU3I+jEkt6utet5r8ERg87ppgv+fSv5YoE3tP/5BYX 7OkYQk3VE8WS1Mx/RmXGkqG9abOvYiL+S4Lxg0d1c99lSVcy4E0yyddvcmiqpciTls+H /AzI3b0ctLJuBMdTObixcozVQqcr14yZyM3RpsPRoUu8HbpL7DLiZbNk5WvT/yvV9f/c uEmjnRaLlAqYz0YAAIZC6yQE4A24U4E4HIRWuzuMaxbxOSqulA/Vnrv3jwElrMQ0WcRp pC2R0wAAq7DzCDyqCeAmVGsB4ClQUMPdBO2bTh2Rzk+CO77LhtxGBaxsMFqH7hhjoGqj H0Vw== X-Gm-Message-State: AOJu0YxeDrKT9WhzWBklblmkllsRMdlCK6Hf5DiA+quW7NfG+EpJl3NX b2Bxq8wE3UQAnanzVPLlERHzefZO2do4PeKtoWAQBZlqHmMdhFqU/lct6cTODwc= X-Google-Smtp-Source: AGHT+IE2O+20igLy788DPlFnfis/quqV9xho1HbHjh+b087I0VNAPtmjumgw1Plfux8gDG8AXffB/A== X-Received: by 2002:a05:6122:4907:b0:4b7:177a:25e4 with SMTP id ev7-20020a056122490700b004b7177a25e4mr49946vkb.9.1705537491290; Wed, 17 Jan 2024 16:24:51 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id m15-20020ad4448f000000b0068176e0cf05sm1446092qvt.41.2024.01.17.16.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 16:24:50 -0800 (PST) From: Maxim Cournoyer Date: Wed, 17 Jan 2024 19:24:32 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (gdmd) [inputs]: Replace gdc-11 with gdc. Change-Id: Ie035bb79c128c266cee85cf11bf79216f4f8b454 --- gnu/packages/dlang.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 61823714f6..5c9766110d 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -136,8 +136,7 @@ (define-public gdmd (string-append "my $gdc_dir = \"" (dirname (search-input-file inputs "/bin/gdc")) "\";\n")))))))) - (inputs - (list gdc-11 perl)) + (inputs (list gdc perl)) (home-page "https://github.com/D-Programming-GDC/gdmd") (synopsis "DMD-like wrapper for GDC") (description "This package provides a DMD-like wrapper for the -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH 3/3] gnu: Add dmd. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: maxim.cournoyer@gmail.com, guix-patches@gnu.org Resent-Date: Thu, 18 Jan 2024 00:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer , Maxim Cournoyer X-Debbugs-Original-Xcc: Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170553750728229 (code B ref 68554); Thu, 18 Jan 2024 00:26:02 +0000 Received: (at 68554) by debbugs.gnu.org; 18 Jan 2024 00:25:07 +0000 Received: from localhost ([127.0.0.1]:53988 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQGDS-0007LE-JX for submit@debbugs.gnu.org; Wed, 17 Jan 2024 19:25:07 -0500 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]:50638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQGDQ-0007KQ-GM for 68554@debbugs.gnu.org; Wed, 17 Jan 2024 19:25:05 -0500 Received: by mail-qv1-xf2c.google.com with SMTP id 6a1803df08f44-681397137afso44930256d6.1 for <68554@debbugs.gnu.org>; Wed, 17 Jan 2024 16:25:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705537497; x=1706142297; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=buIPMU60yjitaD8i0jStFhfIksDv8p5/A+KPSjm72E0=; b=nRMBhLXHb3c2fEoa99jQs6TCLPMj1nvctGD1KHtoD7ypcvtLYT75IICo3Hs+SSw+BL IBhDgNhEPpIvN33NlM1LY4AeMNUeLwVQhPeHioqvLSUfzPlDu+ADh1xisXgtzCmd7fOE rfeJDvd5MMFsQH252JK40N/AHrKIByMKQMtCDZXg1RAeWolAgoEAepF4NfGHbqS0E2h7 y3lpP9UXy7rw25FiF/1wUHgEmJXNgr+AbAsyzJFrqD5ugPamqYxw+kbR7asp1P3sm5ZI YvkHI6H/L7bpOWm5tnE57tXUKOf0cZMiHqFaVG1HmDpCE2luCCwIm0YDYiaRDj1Z4sop UvPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705537497; x=1706142297; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=buIPMU60yjitaD8i0jStFhfIksDv8p5/A+KPSjm72E0=; b=XFqr19+/0m9ugNo3b7vseheJ1En0/KKTzYoM2f5qeL5+1hnyd77r79TqNrqt9Yr7y4 oMtOqNw6IDI5B4dOIVbwWzKmNQC7NlyEb6YuqQmv1qdd/3CO6VGnU01b5Gt9DDq4+l4V XtEgCP0k6diVqZNPUHrtG3auN4X5g4MZH1IGOZSdzwjTZh5A8WDQ9cTHawy8iC3v5O7v iVtmAYpivuSCPpyHWhbxS4R0yhrHQXexxI5B+l8NPwy+/E7eHkr4aFOmTdgO8ws+1eLO ZN7NICknjMeCUTxqabY7tRJhiDaX6iX995omftEGLSrrbrZ61GVi/AU2RXhrIRQQoYZa 2ftg== X-Gm-Message-State: AOJu0YzBUD/IBI01KAxL7ax1nVbUdhszpoZ51Id+okVpN6aKnwTgsPy/ YpHYOdZvPtFneKapH6yeOa08R1onkD5nhA== X-Google-Smtp-Source: AGHT+IEbptsrRoXFqe6KqgEf2G/P5rzuG5z0uQezWwQHFLKs1wnId/a0+mFY/K1ezuNGAnlNFH2bnw== X-Received: by 2002:a05:6214:202f:b0:681:5ab7:5c6d with SMTP id 15-20020a056214202f00b006815ab75c6dmr8095963qvf.104.1705537497081; Wed, 17 Jan 2024 16:24:57 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id m15-20020ad4448f000000b0068176e0cf05sm1446092qvt.41.2024.01.17.16.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 16:24:56 -0800 (PST) From: Maxim Cournoyer Date: Wed, 17 Jan 2024 19:24:33 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (dmd-bootstrap, dmd): New variables. Change-Id: I53e00a429e2084a392341ef1bc7ea63f0fcaaab4 --- gnu/packages/dlang.scm | 164 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 5c9766110d..dd7951e01d 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -358,6 +358,170 @@ (define-public ldc `(("clang" ,clang-14) ;propagates llvm and clang-runtime ("python-lit" ,python-lit)))))) +;;; Bootstrap version of phobos that is built with GDC, using GDC's standard +;;; library. +(define dmd-bootstrap + (package + ;; This package is purposefully named just "dmd" and not "dmd-bootstrap", + ;; as the final dmd package rewrites references from this one to itself, + ;; and their names must have the same length to avoid corrupting the + ;; binary. + (name "dmd") + (version "2.106.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dlang/dmd") + (commit (string-append "v" version)))) + (file-name (git-file-name "dmd" version)) + (sha256 + (base32 + "1bq4jws1vns2jjzfz7biyngrx9y5pvvgklymhrvb5kvbzky1ldmy")))) + (build-system gnu-build-system) + (arguments + (list + #:disallowed-references (list (gexp-input (canonical-package gcc) + "lib")) + ;; Disable tests, as gdmd cannot cope with some arguments used such as + ;; '-conf'. + #:tests? #f + #:test-target "test" + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + ;; XXX: Proceed despite conflicts from symbols provided by both + ;; the source built and GDC. + "DFLAGS=-L--allow-multiple-definition" + "ENABLE_RELEASE=1" + (string-append "HOST_CXX=" #$(cxx-for-target)) + "HOST_DMD=gdmd" + (string-append "INSTALL_DIR=" #$output) + ;; Do not build the shared libphobos2.so library, to avoid + ;; retaining a reference to gcc:lib. + "SHARED=0" + (string-append "SYSCONFDIR=" #$output "/etc") + "VERBOSE=1" + "-f" "posix.mak") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'copy-phobos-source-and-chdir + ;; Start with building phobos, which in turns will automatically + ;; build druntime and dmd. A minimal dmd command is still + ;; required to do so, which is why we need dmd-bootstrap-0. + (lambda _ + (symlink "." "dmd") ;to please the build system expected layout + (copy-recursively + #$(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dlang/phobos") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yw7nb5d78cx9m7sfibv7rfc7wj3w0dw9mfk3d269qpfpnwzs4n9"))) + "phobos") + (chdir "phobos"))) + (add-after 'copy-phobos-source-and-chdir 'adjust-phobos-install-dirs + (lambda _ + (substitute* "posix.mak" + ;; Install to lib directory, not to e.g. 'linux/lib64'. + (("\\$\\(INSTALL_DIR)/\\$\\(OS)/\\$\\(lib_dir)") + (string-append #$output "/lib")) + ;; Do not install license file, already done by the gnu build + ;; system. + ((".*\\$\\(INSTALL_DIR)/phobos-LICENSE.txt.*") "")))) + (delete 'configure) + (add-after 'install 'install-druntime + (lambda args + (chdir "../druntime") + (apply (assoc-ref %standard-phases 'install) args) + (chdir ".."))) + (add-after 'install-druntime 'install-includes + (lambda _ + ;; Normalize the include files prefix to include/dmd. + (let ((include-dir (string-append #$output "/include/dmd"))) + (mkdir-p include-dir) + (rename-file (string-append #$output "/src/phobos") + (string-append include-dir)) + (copy-recursively "druntime/import" include-dir)) + (delete-file-recursively (string-append #$output "/src")))) + (add-after 'install-druntime 'install-dmd + (assoc-ref %standard-phases 'install)) + (add-after 'install-license-files 'refine-install-layout + (lambda _ + (let* ((docdir (string-append #$output "/share/doc/" + (strip-store-file-name #$output))) + ;; The dmd binary gets installed to + ;; e.g. /linux/bin64/dmd. + (dmd (car (find-files #$output "^dmd$"))) + (dmd.conf (car (find-files #$output "^dmd.conf$"))) + (os-dir (dirname (dirname dmd)))) + ;; Move samples from root to the doc directory. + (rename-file (string-append #$output "/samples") + (string-append docdir "/samples")) + ;; Remove duplicate license file. + (delete-file (string-append #$output + "/dmd-boostlicense.txt")) + ;; Move dmd binary and dmd.conf. + (install-file dmd (string-append #$output "/bin")) + (install-file dmd.conf (string-append #$output "/etc")) + (delete-file-recursively os-dir)))) + (add-after 'refine-install-layout 'patch-dmd.conf + (lambda* (#:key outputs #:allow-other-keys) + (substitute* (search-input-file outputs "etc/dmd.conf") + (("lib(32|64)") + "lib") + (("\\.\\./src/(phobos|druntime/import)") + "include/dmd"))))))) + (native-inputs (list gdmd which)) + (home-page "https://github.com/dlang/dmd") + (synopsis "Reference D Programming Language compiler") + (description "@acronym{DMD, Digital Mars D compiler} is the reference +compiler for the D programming language.") + (license license:boost1.0))) + +;;; Second bootstrap of DMD, built using dmd-bootstrap, with its shared +;;; libraries preserved. +(define-public dmd + (package + (inherit dmd-bootstrap) + (arguments + (substitute-keyword-arguments + (strip-keyword-arguments + '(#:tests?) ;reinstate tests + (package-arguments dmd-bootstrap)) + ((#:disallowed-references _ ''()) + (list dmd-bootstrap)) + ((#:make-flags _ ''()) + #~(list (string-append "CC=" #$(cc-for-target)) + "ENABLE_RELEASE=1" + (string-append "HOST_CXX=" #$(cxx-for-target)) + (string-append "INSTALL_DIR=" #$output) + "VERBOSE=1" + "-f" "posix.mak")) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'patch-dmd.conf 'rewrite-references-to-bootstrap + ;; DMD keeps references to include files used to build a + ;; binary. Rewrite those of dmd-bootstrap to itself, to reduce + ;; its closure size. + (lambda* (#:key native-inputs inputs outputs + #:allow-other-keys) + (let ((dmd (search-input-file outputs "bin/dmd")) + (dmd-bootstrap (dirname + (dirname + (search-input-file + (or native-inputs inputs) + "bin/dmd"))))) + ;; XXX: Use sed, as replace-store-references wouldn't + ;; replace the references, while substitute* throws an + ;; error. + (invoke "sed" "-i" + (format #f "s,~a,~a,g" dmd-bootstrap #$output) + dmd)))))))) + (native-inputs (modify-inputs (package-native-inputs dmd-bootstrap) + (replace "gdmd" dmd-bootstrap))))) + (define-public dub (package (name "dub") -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v2 0/3] Add DMD, the D language reference compiler. References: In-Reply-To: Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Jan 2024 03:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.17055485489732 (code B ref 68554); Thu, 18 Jan 2024 03:30:02 +0000 Received: (at 68554) by debbugs.gnu.org; 18 Jan 2024 03:29:08 +0000 Received: from localhost ([127.0.0.1]:54079 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQJ5Y-0002Wt-2P for submit@debbugs.gnu.org; Wed, 17 Jan 2024 22:29:08 -0500 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:54762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQJ5W-0002WM-FW for 68554@debbugs.gnu.org; Wed, 17 Jan 2024 22:29:06 -0500 Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-7831806c51bso1205188585a.1 for <68554@debbugs.gnu.org>; Wed, 17 Jan 2024 19:29:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705548539; x=1706153339; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jUyG3LcM98ZTm/mtfseTXLq0OgQNb+WFl/1Z4IoBCtg=; b=NZQGrdAiY/vVRF7qO85yzu5uWL/lt55nleqI4+BJffruNhRgZxkA4lz4LtaOcOCle9 qUtLCJcDOyQscIIjX5wkriZkhllZ8u+fpj33v+WuME+X3efqytatkmrnolDzXXsEXEsV q4vD1U9Nahotd6uxjk4iOjiFWMAP3Qy/d/2w3skUThU7LIGjQLgK3kJY8LZIlF0gFqqy 8e4+sGbdPV8zYKN8lGytmUAOMiEA0+943lOvnj79D5K8r56jyxg3JEAGL7IiBhKJwofM ehZTubkYNYBUnHvFychSxinGXC5iYb8UFCR4D13t7tVtFVFb38Mx6lhA/TFifSzje3b9 p2LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705548539; x=1706153339; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jUyG3LcM98ZTm/mtfseTXLq0OgQNb+WFl/1Z4IoBCtg=; b=GUDV/4qxsNJRJesWu26CE8hujZIqE0HXQ6mPcg8DHZgZb/HkyoXLTO2rsEq7+twf/l 8Qdhi8qUk1BG3iXU2RhrmLcSTuir1zeQhMQY8hO/h4ssdONpixXJcLYVDInp5RWW5K2d zyfqokaAONO46m5Hzkf1EgbLh0oEuZahaUouEvukJ30GuATzRyDdpPL+mVOOQKvA+19J jwK/BKlPwsyLQfmef9+qg3XsSBczmTpR8sTYc9+0NLev47yEmSb1MJTuEV4dzKAxbvba WkJdF4+isWhK6gabOXrOpsYNm2HIlZ1UyJU5JQb4hQjzK/D7gu4lBXEdUwBCKkWuBljx 0ISQ== X-Gm-Message-State: AOJu0Yx3pu5du59XdU2YTV9kLdwHmx43ve8muTZv9tW6xqviHeONcw+k GgVtrIzmOGbpVuiW/jzQ0CBsNIQu7wue7V5itM+9NM5dPXzCp+4mBVpsrlv5MVI= X-Google-Smtp-Source: AGHT+IFvHdqb67BmL/vNOEY4NbLkTsJAMmkaBDZNcCgXfNOT6rI6yEtB8vP/Sh1Z+GXdtyyac7/ICw== X-Received: by 2002:a05:620a:228:b0:783:528e:6c25 with SMTP id u8-20020a05620a022800b00783528e6c25mr160773qkm.49.1705548538845; Wed, 17 Jan 2024 19:28:58 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id b19-20020a05620a119300b007832575779esm4971207qkk.52.2024.01.17.19.28.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 19:28:58 -0800 (PST) From: Maxim Cournoyer Date: Wed, 17 Jan 2024 22:28:22 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This series adds DMD, bootstrapped via GDC. Changes in v2: - Build dmd make flags via inheritance... - ... fixing the missing SYSCONFDIR make flag Maxim Cournoyer (3): gnu: Add gdc alias. gnu: gdmd: Replace gdc-11 with gdc alias. gnu: Add dmd. gnu/packages/dlang.scm | 168 ++++++++++++++++++++++++++++++++++++++++- gnu/packages/gcc.scm | 6 ++ 2 files changed, 172 insertions(+), 2 deletions(-) base-commit: 8ca490e6600c55b2dab5db12cf1aefa2b1b27f9a -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v2 1/3] gnu: Add gdc alias. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, guix-patches@gnu.org Resent-Date: Thu, 18 Jan 2024 03:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.17055485519753 (code B ref 68554); Thu, 18 Jan 2024 03:30:02 +0000 Received: (at 68554) by debbugs.gnu.org; 18 Jan 2024 03:29:11 +0000 Received: from localhost ([127.0.0.1]:54083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQJ5b-0002XD-E1 for submit@debbugs.gnu.org; Wed, 17 Jan 2024 22:29:11 -0500 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:54710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQJ5Y-0002Wg-3e for 68554@debbugs.gnu.org; Wed, 17 Jan 2024 22:29:08 -0500 Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-429cafdc6c1so38684601cf.1 for <68554@debbugs.gnu.org>; Wed, 17 Jan 2024 19:29:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705548540; x=1706153340; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jJrRABs7+f+vyfFcWO/5f+C7ionhmdSSlWZAwZ3Nbqs=; b=mHvsTNAEUP1ZonZiNf8F8LPEmHmazjJh9CTh5tjcYcHCh6DcBjGngEpz4jWsCJWYph gt5MW34vXGK8SCj4ieOesLVvpCbeRm6IUDXA38F71Bk5bSfNBsbPBz5PUuOxBRru2dQq i4JkiPRMIaIv3E5kzH/2KmrGIyxCkudAdI4JG/HGoRbQ+xTk+rnmNBaLhVBrB3B9f9Fo 4Ut/ye/loAZEnw81AR1YXG8KXh/+VpxkRcIYJEYi19FwEb1tHOvPySW4nRXRZOv8aw8c FrGEjlY6qSzfpKMo9UYscP48gFok52Zz8I5tkcFiuMbsR1aMwHD1u+80h/FZ3uwHJ1gk 1jrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705548540; x=1706153340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jJrRABs7+f+vyfFcWO/5f+C7ionhmdSSlWZAwZ3Nbqs=; b=PHTeRdZsCE+TQGByEpBs8ko6BmCign5dNFlw2g2eaK4+/rVMRIGIAD+moqOT8wLMHx efhVGu9TGiB/1SemmuuH4C0Mm/lvm4qBZRZ7DM1cXc0LBL6CuNsjoVuKRiQIQXwLrdUm oaIPKIczX39iBSoNpGADamEIEPudDhVqo2qu5cNCxf+DCwHP2mR7QWX6T4C8duYiz7y9 qy7NQu4SA8Dr3Rw40H7/2k8Z0GPxWk/TDfYXPJH/v0jOlW81L8YrETvYEHh7TlRXKvcw RQfAE7dR4W+lcv3LN2x25AC41Bc0b+0xJqJozvg4VT+BWUk8JltzAAdZ60fxxs8q0EzU hJGQ== X-Gm-Message-State: AOJu0YzDSdKAOBvnCRRfMd7hk2SmqX8NKHpJ1yS8euBfFTz55ce3MFYO Y2LglPwI7tdIxpuARwfz987UbM6zDsNE2v0cvU9oq9qywAl95WKOkBJZu4ue/ck= X-Google-Smtp-Source: AGHT+IEOq7H97axBjPxnAwJSrv88b8EKvSS3bwJ66vrtP3X0zRY9sMcC6DHEs5xlT8lOtLOGm5FQZA== X-Received: by 2002:ac8:5fd0:0:b0:42a:14f8:9976 with SMTP id k16-20020ac85fd0000000b0042a14f89976mr219995qta.114.1705548540687; Wed, 17 Jan 2024 19:29:00 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id b19-20020a05620a119300b007832575779esm4971207qkk.52.2024.01.17.19.29.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 19:29:00 -0800 (PST) From: Maxim Cournoyer Date: Wed, 17 Jan 2024 22:28:23 -0500 Message-ID: <19107cbb887ce52888d6ecfef6ff64ee5ed5952f.1705548505.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/gcc.scm (gdc): New variable. Change-Id: I38447e46ffba44d3a9d3757d34fe9ff081803457 --- (no changes since v1) gnu/packages/gcc.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 5590cd3d7e..3ee7afb97f 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -1118,6 +1118,12 @@ (define-public gdc-11 (custom-gcc gcc-11 "gdc" '("d") %generic-search-paths))) +;;; Alias tracking the latest GDC version. +(define-public gdc + (hidden-package + (custom-gcc gcc "gdc" '("d") + %generic-search-paths))) + (define-public (make-libgccjit gcc) (package (inherit gcc) -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v2 2/3] gnu: gdmd: Replace gdc-11 with gdc alias. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Jan 2024 03:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.17055485529759 (code B ref 68554); Thu, 18 Jan 2024 03:30:03 +0000 Received: (at 68554) by debbugs.gnu.org; 18 Jan 2024 03:29:12 +0000 Received: from localhost ([127.0.0.1]:54085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQJ5b-0002XG-LV for submit@debbugs.gnu.org; Wed, 17 Jan 2024 22:29:11 -0500 Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:49343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQJ5a-0002Wj-18 for 68554@debbugs.gnu.org; Wed, 17 Jan 2024 22:29:10 -0500 Received: by mail-qk1-x72a.google.com with SMTP id af79cd13be357-783195e57c7so758676885a.2 for <68554@debbugs.gnu.org>; Wed, 17 Jan 2024 19:29:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705548543; x=1706153343; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sVyeW+QfnHI4PpvlRMeKI4xqHEjQL3MZf3iSi/aeN5M=; b=LqjVZHrW+5apbBIcT2M0HKYKvyjSrZPkYM2Q7Z40MP2XvypQFAHJTqDRVM671gIT5U +7SzSCG68fBr1Rt1xlg3vHE9xAzYKS9HSH534sbGBJsTT4M30jAFlpC8R2f9H08D8gzy ZuT9Ud5KLG0vh5CAb0SDF/7PhPo2tCxMOkjGCsMtTQ9oUGaDyfGJKnndV9sljZAnfP0q ZzBBHQrx/OoKKs0ipPgCQjGjc5EL4sskLwXg/WtGGEDhPFcyYEzEtEKC3/B+nfobA/gj KdSwjxBNW+TzKDbSw6Sh+xpqX0+rX7GeqWvqJS8GLb4DQW0wkCxeG8y3YdO5nglyJmwQ cboA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705548543; x=1706153343; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sVyeW+QfnHI4PpvlRMeKI4xqHEjQL3MZf3iSi/aeN5M=; b=Vy8U+mrsX4l8QNlVktK/FkSiVWp0MtFXCa8NwZ0GEHNlFrQlcOu2jw0gUGa3w2YlAw IrEBvn3wNhNLO1mKYmqPV50/9FuT5EY3pzPMo3JLdmYyzLOE4d28INgmFSQn4ZRoV3wS Sa0ETVHhLSM4Tgv/21ZyYvzDTjiw8zv4To+WlaGy2qFGuZvc5QlWHRjdkofkxsQEdndc JqHSK5h/7rs768Nmrov8RH0GX7iO86FrgAzA5l6tLRA/y/RNTEL4YuuZmBsUR5Vbh4Gi Dva7uN0lSklYU28lhhH+cmFPkvLCGiDQbrB8MpwCdm0/6dWAL5HlzHIbRiBUaeCruDnJ XHmQ== X-Gm-Message-State: AOJu0YzTzv1LMWfXBgFpxCEoUqPPQswqLb3IEU+WfTYc8zeTi76i/qBh 0lfwh9gubgOL2aKcStmytctgeofjIuILE24YYzUkaOUsYwSgnuGS7z0Y7EM1aSc= X-Google-Smtp-Source: AGHT+IHcKGqueDyhHKt7w0YX7fTH9QrDWVn/9BBlkBEFq0/nT3uor+5GbimJ88Gjoz1+GkGUU+ayZA== X-Received: by 2002:a05:620a:208d:b0:783:1522:fa89 with SMTP id e13-20020a05620a208d00b007831522fa89mr143569qka.47.1705548542744; Wed, 17 Jan 2024 19:29:02 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id b19-20020a05620a119300b007832575779esm4971207qkk.52.2024.01.17.19.29.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 19:29:02 -0800 (PST) From: Maxim Cournoyer Date: Wed, 17 Jan 2024 22:28:24 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (gdmd) [inputs]: Replace gdc-11 with gdc. Change-Id: Ie035bb79c128c266cee85cf11bf79216f4f8b454 --- (no changes since v1) gnu/packages/dlang.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 61823714f6..5c9766110d 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -136,8 +136,7 @@ (define-public gdmd (string-append "my $gdc_dir = \"" (dirname (search-input-file inputs "/bin/gdc")) "\";\n")))))))) - (inputs - (list gdc-11 perl)) + (inputs (list gdc perl)) (home-page "https://github.com/D-Programming-GDC/gdmd") (synopsis "DMD-like wrapper for GDC") (description "This package provides a DMD-like wrapper for the -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v2 3/3] gnu: Add dmd. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Jan 2024 03:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.17055485579781 (code B ref 68554); Thu, 18 Jan 2024 03:30:03 +0000 Received: (at 68554) by debbugs.gnu.org; 18 Jan 2024 03:29:17 +0000 Received: from localhost ([127.0.0.1]:54088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQJ5g-0002Xg-VP for submit@debbugs.gnu.org; Wed, 17 Jan 2024 22:29:17 -0500 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:60867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQJ5c-0002Wr-AG for 68554@debbugs.gnu.org; Wed, 17 Jan 2024 22:29:12 -0500 Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-78313f4d149so1182797085a.1 for <68554@debbugs.gnu.org>; Wed, 17 Jan 2024 19:29:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705548545; x=1706153345; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4W3NR9nucRG65paOEUSVf0gJpm3agYC3UYT1julg78o=; b=SPR657RYIZ4f+wGkEc2l38YEeaYUB1PNxtqoUMuKQ94CO0GhpaCWg8/GDsaQTTB7yC VWKqOEEqpM6W3QtSpq90yq4fu2uvFYIiWWglWq811t9iwurRtumooqhrvxuCcjuWVO9g NssKQUwnUefUUM8SDzctJjhv802woC57mLfXQ0KsQ6ZVzvB6vYAVzeODdj6mAqkWfYgQ 0vJC0+2GlOXm7c4+OBFzmijOGuGK4hQQSDBA9IwgYU3Ip1f/ci4AQ7hDI0GmkuB/aW0j vASOPEAHjVj86bXukjf9mp3zZNsPrGm4orp0HCKzyH+4jVvfW/DTKObDKZFfRAwuJXn/ A1BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705548545; x=1706153345; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4W3NR9nucRG65paOEUSVf0gJpm3agYC3UYT1julg78o=; b=HjHNH1VMs3zqQerAhFAjVxE2IsWp1wEoasNHj3BZbxHOo/YSHiq3Pw7CW/ZEY8GNCG vgqP/hl8vyuiGty9psVbok2YISKSAReSfRoPfDeiU8dyI4ANO+bN+wUFPIl+LCYC/p1/ 5a+VNZO5OtzpCeyqP601kMShEQJEl9m/RnSkGV7geYurblI79d9PcqbRij91RFadHy11 edpj4EeWp27wQUFega90aTHYMt7Udcf0oFQFPOWoVzLJD+78tXGdJrBIorevN3DHVa32 9CngnZoBkDO8CByNvbqm+yGFP7JMspHfbCZ5jrPUAWSZQZKu2MkT7wxbrApaPkDm5i6T +LYA== X-Gm-Message-State: AOJu0Yx9GpHqPugHreRnmAcx9cbnTLBtqLvNQr5kSCzqP64QvDVTFIFF y5th7/H1RKqopZn1wOF0O84xJQehxIzPg+R/iFSi4oZ8FXojE/pVC6ZgIj8ZqmE= X-Google-Smtp-Source: AGHT+IFy4MV68erYspsN1WtChUQEfLi4z3M4Z/T5mzFWoeXkmOfgkJ/VPCw4sSdryaIGHJI/BCg3cw== X-Received: by 2002:a05:620a:385e:b0:783:772a:a55c with SMTP id po30-20020a05620a385e00b00783772aa55cmr190285qkn.91.1705548544901; Wed, 17 Jan 2024 19:29:04 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id b19-20020a05620a119300b007832575779esm4971207qkk.52.2024.01.17.19.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 19:29:04 -0800 (PST) From: Maxim Cournoyer Date: Wed, 17 Jan 2024 22:28:25 -0500 Message-ID: <47318cce959e3fb6bcf7b447229fa82ea550cb2e.1705548505.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (dmd-bootstrap, dmd): New variables. Change-Id: I53e00a429e2084a392341ef1bc7ea63f0fcaaab4 --- Changes in v2: - Build make flags via inheritance... - Fixing the missing SYSCONFDIR make flag gnu/packages/dlang.scm | 165 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 5c9766110d..f8060fa0c3 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -358,6 +358,171 @@ (define-public ldc `(("clang" ,clang-14) ;propagates llvm and clang-runtime ("python-lit" ,python-lit)))))) +;;; Bootstrap version of phobos that is built with GDC, using GDC's standard +;;; library. +(define dmd-bootstrap + (package + ;; This package is purposefully named just "dmd" and not "dmd-bootstrap", + ;; as the final dmd package rewrites references from this one to itself, + ;; and their names must have the same length to avoid corrupting the + ;; binary. + (name "dmd") + (version "2.106.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dlang/dmd") + (commit (string-append "v" version)))) + (file-name (git-file-name "dmd" version)) + (sha256 + (base32 + "1bq4jws1vns2jjzfz7biyngrx9y5pvvgklymhrvb5kvbzky1ldmy")))) + (build-system gnu-build-system) + (arguments + (list + #:disallowed-references (list (gexp-input (canonical-package gcc) + "lib")) + ;; Disable tests, as gdmd cannot cope with some arguments used such as + ;; '-conf'. + #:tests? #f + #:test-target "test" + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + ;; XXX: Proceed despite conflicts from symbols provided by both + ;; the source built and GDC. + "DFLAGS=-L--allow-multiple-definition" + "ENABLE_RELEASE=1" + (string-append "HOST_CXX=" #$(cxx-for-target)) + "HOST_DMD=gdmd" + (string-append "INSTALL_DIR=" #$output) + ;; Do not build the shared libphobos2.so library, to avoid + ;; retaining a reference to gcc:lib. + "SHARED=0" + (string-append "SYSCONFDIR=" #$output "/etc") + "VERBOSE=1" + "-f" "posix.mak") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'copy-phobos-source-and-chdir + ;; Start with building phobos, which in turns will automatically + ;; build druntime and dmd. A minimal dmd command is still + ;; required to do so, which is why we need dmd-bootstrap-0. + (lambda _ + (symlink "." "dmd") ;to please the build system expected layout + (copy-recursively + #$(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dlang/phobos") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yw7nb5d78cx9m7sfibv7rfc7wj3w0dw9mfk3d269qpfpnwzs4n9"))) + "phobos") + (chdir "phobos"))) + (add-after 'copy-phobos-source-and-chdir 'adjust-phobos-install-dirs + (lambda _ + (substitute* "posix.mak" + ;; Install to lib directory, not to e.g. 'linux/lib64'. + (("\\$\\(INSTALL_DIR)/\\$\\(OS)/\\$\\(lib_dir)") + (string-append #$output "/lib")) + ;; Do not install license file, already done by the gnu build + ;; system. + ((".*\\$\\(INSTALL_DIR)/phobos-LICENSE.txt.*") "")))) + (delete 'configure) + (add-after 'install 'install-druntime + (lambda args + (chdir "../druntime") + (apply (assoc-ref %standard-phases 'install) args) + (chdir ".."))) + (add-after 'install-druntime 'install-includes + (lambda _ + ;; Normalize the include files prefix to include/dmd. + (let ((include-dir (string-append #$output "/include/dmd"))) + (mkdir-p include-dir) + (rename-file (string-append #$output "/src/phobos") + (string-append include-dir)) + (copy-recursively "druntime/import" include-dir)) + (delete-file-recursively (string-append #$output "/src")))) + (add-after 'install-druntime 'install-dmd + (assoc-ref %standard-phases 'install)) + (add-after 'install-license-files 'refine-install-layout + (lambda _ + (let* ((docdir (string-append #$output "/share/doc/" + (strip-store-file-name #$output))) + ;; The dmd binary gets installed to + ;; e.g. /linux/bin64/dmd. + (dmd (car (find-files #$output "^dmd$"))) + (dmd.conf (car (find-files #$output "^dmd.conf$"))) + (os-dir (dirname (dirname dmd)))) + ;; Move samples from root to the doc directory. + (rename-file (string-append #$output "/samples") + (string-append docdir "/samples")) + ;; Remove duplicate license file. + (delete-file (string-append #$output + "/dmd-boostlicense.txt")) + ;; Move dmd binary and dmd.conf. + (install-file dmd (string-append #$output "/bin")) + (install-file dmd.conf (string-append #$output "/etc")) + (delete-file-recursively os-dir)))) + (add-after 'refine-install-layout 'patch-dmd.conf + (lambda* (#:key outputs #:allow-other-keys) + (substitute* (search-input-file outputs "etc/dmd.conf") + (("lib(32|64)") + "lib") + (("\\.\\./src/(phobos|druntime/import)") + "include/dmd"))))))) + (native-inputs (list gdmd which)) + (home-page "https://github.com/dlang/dmd") + (synopsis "Reference D Programming Language compiler") + (description "@acronym{DMD, Digital Mars D compiler} is the reference +compiler for the D programming language.") + (license license:boost1.0))) + +;;; Second bootstrap of DMD, built using dmd-bootstrap, with its shared +;;; libraries preserved. +(define-public dmd + (package + (inherit dmd-bootstrap) + (arguments + (substitute-keyword-arguments + (strip-keyword-arguments + '(#:tests?) ;reinstate tests + (package-arguments dmd-bootstrap)) + ((#:disallowed-references _ ''()) + (list dmd-bootstrap)) + ((#:modules _ ''()) + '((guix build gnu-build-system) + (guix build utils) + (srfi srfi-1))) ;for fold + ((#:make-flags flags ''()) + #~(fold delete #$flags '("DFLAGS=-L--allow-multiple-definition" + "HOST_DMD=gdmd" + "SHARED=0"))) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'patch-dmd.conf 'rewrite-references-to-bootstrap + ;; DMD keeps references to include files used to build a + ;; binary. Rewrite those of dmd-bootstrap to itself, to reduce + ;; its closure size. + (lambda* (#:key native-inputs inputs outputs + #:allow-other-keys) + (let ((dmd (search-input-file outputs "bin/dmd")) + (dmd-bootstrap (dirname + (dirname + (search-input-file + (or native-inputs inputs) + "bin/dmd"))))) + ;; XXX: Use sed, as replace-store-references wouldn't + ;; replace the references, while substitute* throws an + ;; error. + (invoke "sed" "-i" + (format #f "s,~a,~a,g" dmd-bootstrap #$output) + dmd)))))))) + (native-inputs (modify-inputs (package-native-inputs dmd-bootstrap) + (replace "gdmd" dmd-bootstrap))))) + (define-public dub (package (name "dub") -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 0/6] Add DMD, the D language reference compiler. References: In-Reply-To: Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, maxim.cournoyer@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 04:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer , Andreas Enge , Maxim Cournoyer , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: Andreas Enge , Maxim Cournoyer , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170563932017571 (code B ref 68554); Fri, 19 Jan 2024 04:42:01 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 04:42:00 +0000 Received: from localhost ([127.0.0.1]:57177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghc-0004ZI-Hi for submit@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:00 -0500 Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:59405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghY-0004Yi-Cm for 68554@debbugs.gnu.org; Thu, 18 Jan 2024 23:41:58 -0500 Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-42a0fa5d202so2596501cf.2 for <68554@debbugs.gnu.org>; Thu, 18 Jan 2024 20:41:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705639308; x=1706244108; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ad+f0jTmfNmQr/XqlpzaHYxgn6gRXoaBTWxsKiGR0/w=; b=S5HaIBGL4wEs/SUvhe4OjdRY5ByV6/x8g+83Ug9fBhApEGYW62iKv0HZHRGjYF5tzL B+mqxzIS3+tTLz9lrp/so4j5Gp7OCshkHxpsVNXr/LtKbIeATtwTOEwcsouQLQUHeZ0C k6x0frh+xDiZFWuxLvZKerL4UwgV8YYdS6qccQB/IqjRpjLennkKanzwh4k9EBcHB4dy YyQfWO1xb3huCz+DSIhtOv7Yo8K3jVh/NPk9YFLrKr547Csiq19eCvL4u46E5xLiF8dg c1sa5hjc+WqkQ6OQDlnmUSvywqVjgqGkAzzaybnLUq7kV65B40gGOkbHP4sVusK4plD3 cwwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705639308; x=1706244108; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ad+f0jTmfNmQr/XqlpzaHYxgn6gRXoaBTWxsKiGR0/w=; b=kNYVjKRTXJ/qCQ2W5azTiZYHY5+cOGORfoit54C07WzZHJLE8evLDP6YkAqSsYMhCv q/tFW5JNeS/8Ws0rhEf45lGo/jwlf++GnpwySjaIN3/3BsWZN+PYY+l8n3gkBpBuu/uh MzpR8lSZQ9QtJS97sG3k65Oe0wFKHVIu01mIv8uplGeqKXqn/7+k9L7vtQ9cqxFMYmaT EKWriHH8IWOtb77UWP0uJRU1iGgd1dtPM8eZAbO63mX5tZxCUmdRJO9dQ0Sh/U6ob399 rLQ3jy8u/mv48qRIQ924ldiMturRvg7khFYeomGN22yWGXLeOqcoD2AdWAf+Uqcc3Gqy w4FQ== X-Gm-Message-State: AOJu0YxrrOO0PQWAGScaWx6ykF//3MD7X01hFM+ufWq+wc5NiYDZJR7S jRpc76prXLkCeMWH4cPN1wSsDGcuFLJtvFId9XPPGvsGYzgGLO1aqmhhrB5pC44= X-Google-Smtp-Source: AGHT+IE+XHJ3HymuRCL2ZLCJToQ61NpRMeYE2HHygdMK+SqSQE+ksM5sLjCW+t9+na6LHMBLEWznDg== X-Received: by 2002:ac8:5ad1:0:b0:42a:1feb:e118 with SMTP id d17-20020ac85ad1000000b0042a1febe118mr1539702qtd.68.1705639308408; Thu, 18 Jan 2024 20:41:48 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id z10-20020a05622a124a00b0042a11ed1240sm1866870qtx.92.2024.01.18.20.41.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 20:41:48 -0800 (PST) From: Maxim Cournoyer Date: Thu, 18 Jan 2024 23:40:38 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This series adds DMD, bootstrapped via GDC. Changes in v3: - Add packages built from dmd and D demangling support to qt-creator Changes in v2: - Build make flags via inheritance... - Fixing the missing SYSCONFDIR make flag Maxim Cournoyer (6): gnu: Add gdc alias. gnu: gdmd: Replace gdc-11 with gdc alias. gnu: Add dmd. gnu: Add rust-rustc-demangle-capi-0.1. gnu: Add d-demangler. gnu: qt-creator: Add support for demangling D and Rust symbols. gnu/packages/crates-io.scm | 31 ++++++ gnu/packages/dlang.scm | 202 ++++++++++++++++++++++++++++++++++++- gnu/packages/gcc.scm | 6 ++ gnu/packages/qt.scm | 4 + 4 files changed, 240 insertions(+), 3 deletions(-) base-commit: 0eadd486484fcf9a234758842f74ba28361640db -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 1/6] gnu: Add gdc alias. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 04:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170563932417614 (code B ref 68554); Fri, 19 Jan 2024 04:43:01 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 04:42:04 +0000 Received: from localhost ([127.0.0.1]:57181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghf-0004Zz-RL for submit@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:04 -0500 Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]:51281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQgha-0004Ym-59 for 68554@debbugs.gnu.org; Thu, 18 Jan 2024 23:41:59 -0500 Received: by mail-qt1-x82e.google.com with SMTP id d75a77b69052e-4298d7952d9so2082101cf.2 for <68554@debbugs.gnu.org>; Thu, 18 Jan 2024 20:41:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705639310; x=1706244110; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=96nU2nECBRZDrMZ5Y4hoDZFoM4zdwr8+v8q54nn0UBc=; b=YapT0B3pg6PXpj/E/wuwYeVoSr7izIffjWfUWR0GqOflsIwyWMoaEgqDDv6eqWgGPp heLB89J2fhufuEVJuW2ChINliTdLXClCKc2IJ4fylEear3cvoOJbKf80lAGM4/V4n6e6 dri/syad8ikv7wJuGZKCYuFWEgmtptyY+n5HUCjEo0wizNA70iCBC67TiXzbS7y0Zatn eubUo/xBEAoLweBzmGLPEKR/2f9H6vi+USkInRquBFWLbAqjFnnMIHXjfWWXjshR4SjX 7kcKmbt08ZJInnjBZir/WiSkK0c7F32sCQlM2odE6iha644x1OmThpGug+QhAk4lgK8P 0Vhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705639310; x=1706244110; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=96nU2nECBRZDrMZ5Y4hoDZFoM4zdwr8+v8q54nn0UBc=; b=dv04AHPE4VRlivDxI8dDYG5HsxE0OuhiyjGVLQ21aMpYpt9RJ7yLlWISndxXNkgYyp WOyf7MYJUvVLLPOrNZCDlk3MjJIwd4jjymwPNvBfHMKrIkCM8WUh0amKXMow911pAHeH YPXQRGkuPAozKq8g2Ho+lzWrHhCKQKuN0qFxA/WGhWYsnF3eyH4Kd9I3DoPO4IbNnfgx H5tNrNIoC/sP/mOK/jocAmbAFQvMcSZRCqq3nQ8SKt/fiiavELrOwV5ZuUslFc25uQm3 33gn2FOqXWGsc2/KoX4ZTiSayAlxE8EVZvCdHxP8Hj2tdtVMeR3MJzrZxr85lN74N+Cv Hrkw== X-Gm-Message-State: AOJu0YymNNx/Gqt6gu+xjPFORrewe8m5vGVRD5nrGh5EPb+Vk8EqzJ/J rbBVlq/lt5IV/+qnzUrcIvsRfs6G8tFxkFqqcNTuXs9VRnZH9OebMXGbZn3SyBs= X-Google-Smtp-Source: AGHT+IGtLFUd/b3ia8WNj2G0lERQ3CLOz/aPNGCg9FLpjyFWFdWd9/E2jAhqHRHuTumcyqz8ecZcOg== X-Received: by 2002:ac8:7f83:0:b0:42a:ed4:2508 with SMTP id z3-20020ac87f83000000b0042a0ed42508mr1871845qtj.131.1705639310204; Thu, 18 Jan 2024 20:41:50 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id z10-20020a05622a124a00b0042a11ed1240sm1866870qtx.92.2024.01.18.20.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 20:41:49 -0800 (PST) From: Maxim Cournoyer Date: Thu, 18 Jan 2024 23:40:39 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/gcc.scm (gdc): New variable. Change-Id: I38447e46ffba44d3a9d3757d34fe9ff081803457 --- (no changes since v1) gnu/packages/gcc.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 6eb01f33a6..5344278174 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -1124,6 +1124,12 @@ (define-public gdc-11 (custom-gcc gcc-11 "gdc" '("d") %generic-search-paths))) +;;; Alias tracking the latest GDC version. +(define-public gdc + (hidden-package + (custom-gcc gcc "gdc" '("d") + %generic-search-paths))) + (define-public (make-libgccjit gcc) (package (inherit gcc) -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 2/6] gnu: gdmd: Replace gdc-11 with gdc alias. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 04:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170563932417627 (code B ref 68554); Fri, 19 Jan 2024 04:43:02 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 04:42:04 +0000 Received: from localhost ([127.0.0.1]:57183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghg-0004a3-9E for submit@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:04 -0500 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:61451) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghb-0004Yr-VR for 68554@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:00 -0500 Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-783182d4a09so30291585a.2 for <68554@debbugs.gnu.org>; Thu, 18 Jan 2024 20:41:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705639312; x=1706244112; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sVyeW+QfnHI4PpvlRMeKI4xqHEjQL3MZf3iSi/aeN5M=; b=ZenIl1hi7Hy4Ogtyf7liR++CfLEsrXRZcuYtF2nx7M1yUb5GYgeHrvhM2bqtmjGChH EBpsKSkjVy4q46AubZnKIKr0tcNXyZLex7Nr3WEj6F6Q7QhQr65V0yY6ZjUfS+gTc3/G cPVr09j1Aa2YwpT91ryr9BmY5fvBhS/VgAt/4L7nBiVVELrlWLmm1PlEnAVPS39JB/q2 /gC+NVXSDSa72Gs7Fsm4uL7fBMGCSQW+5bom4VDo5m50dtaqA6RaKD6UPOFS1kJcTg47 iFlLE2FpdVYGOpOVwVpJep4zdq+fouDUhQJQvwYleoyO96zLIZ5+fl6A3KLZmHBa0ZXS 8d8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705639312; x=1706244112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sVyeW+QfnHI4PpvlRMeKI4xqHEjQL3MZf3iSi/aeN5M=; b=ilgEUdNFdLop3FMLxVhcQu+37s0sIGMkO4aQ/gSy8fLcMos0w9HE2f1GcFBEp38Mhq yEO39GGpnfsa380ybnfZzoR5k8YsMkvvPGk3N3zx8QVVnmusK2EXRo/ziT/nqwZEGFK3 VumdcUka4Dn2vmCHPzxz8w4dHFP0ZcmSzFxTi7N/ctQZzNB+EH6vbNhm13l9wN2GK1rS fAIJL3b8GjFwDDyuolObssOK8SBNaB7uvBkAEwjPmF7c0plyIXFuAVexSagyiwRi0jZh uwBPRMPGAlpDX+uRLha2hUT7ccWEl8a3qktcTUaQ5nzsWY4mfNuxuL2yjIkZiqx0qSOv rwlA== X-Gm-Message-State: AOJu0YzBOJSvd2Ia6vw10WSBu4kbVT22Oxnq6ySNifkUmIQp7w/R9h7z Of2t5LOVhG7Ax75jhG+ZDB0GAsqrrZD/v+U9hKOo3smRtmYDd7N3A/NKN2snFv8= X-Google-Smtp-Source: AGHT+IGY4D3KdTJJkCX+YiMXoTJ77s6+86CoaYld5lgvyiAYpAJ4RFXrkvTSt0vS3ouvCSaW55B6dw== X-Received: by 2002:a05:620a:3c3:b0:783:758d:9ff7 with SMTP id r3-20020a05620a03c300b00783758d9ff7mr657003qkm.49.1705639312143; Thu, 18 Jan 2024 20:41:52 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id z10-20020a05622a124a00b0042a11ed1240sm1866870qtx.92.2024.01.18.20.41.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 20:41:51 -0800 (PST) From: Maxim Cournoyer Date: Thu, 18 Jan 2024 23:40:40 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (gdmd) [inputs]: Replace gdc-11 with gdc. Change-Id: Ie035bb79c128c266cee85cf11bf79216f4f8b454 --- (no changes since v1) gnu/packages/dlang.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 61823714f6..5c9766110d 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -136,8 +136,7 @@ (define-public gdmd (string-append "my $gdc_dir = \"" (dirname (search-input-file inputs "/bin/gdc")) "\";\n")))))))) - (inputs - (list gdc-11 perl)) + (inputs (list gdc perl)) (home-page "https://github.com/D-Programming-GDC/gdmd") (synopsis "DMD-like wrapper for GDC") (description "This package provides a DMD-like wrapper for the -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 3/6] gnu: Add dmd. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 04:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170563933017657 (code B ref 68554); Fri, 19 Jan 2024 04:43:02 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 04:42:10 +0000 Received: from localhost ([127.0.0.1]:57191 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghl-0004ae-Oa for submit@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:10 -0500 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:43231) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghd-0004Yv-PL for 68554@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:02 -0500 Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-429be9fe952so11189911cf.0 for <68554@debbugs.gnu.org>; Thu, 18 Jan 2024 20:41:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705639314; x=1706244114; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y/Xq/Obh5Cb5Zult8RCLZDGrgJUoxTOjOwvqiLaeygA=; b=K1ukpqCto/09Ntw1I0SA4Y7E+0yW+gV87r02dq9gV8Z4TtTFMSnLy3bHKxIiE7mVpg MXZPBbf0Dm7GECZ0EnBGgHpFmcJNLIWbpwMEWEIRGpaOGoaAfIX8cVgmb3QiLl2vBIT/ aOUnfm76hN94ESLQZ4w1v+apqBSAX36sk6CoTujjm/A5LLxnhcYW2VLs2q1XE9khL/V0 ZQ2tv0xqd97dr6tn8CI6u8g8LjeihW7LhJpNjzwXZO4REk2yzlaPSNrSMKThVSUyStgO X8oFgeS4BDX2jkvvzyxEMQnRerHo02Dp3UCiluQSbPqo3EGdjOIFVsOLu4IAS5NWS0qy 1drQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705639314; x=1706244114; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y/Xq/Obh5Cb5Zult8RCLZDGrgJUoxTOjOwvqiLaeygA=; b=Z0rCZEdtB8yS21Ixue8gEEdmnGdM2OMlYTyfL7lTBIRBTM1pPaVULglD7jIT0N//4d JqMyW37+XnPL8WR/Ng7mSSf4LsJbO7pkKoWQIJuXZHgMoKRLMP0kU7jOX1EO5Um8MRXR xVNFbLp3fqF1wGw6BQKffJNovOZ9SvLluMAlTkeVXfJg/A5oDogp+d3kbZJkQLxG1lAp VlysbpeiEkgBnFoGJUWCL0m+olAP8RbcNjF4qmkcBMIr0WakOZ713gQjenAkws8ZjETe 2sMuOepXIsdUwujC05BCgaaooa3EBdQsyOvEcjjwJxn/ahGYZKmbODf/ZNVaAkSaYE/D HeSQ== X-Gm-Message-State: AOJu0Yy3P+kwktfG6ex6BI6s69yBBS6RJkSuhGvHjYTARzH5k51O96Qp GQMhsDjrom22sF5Bwkh9P4S3fB0wwpojg7uX3FG75IwiRKdCwEW9HAcCaSTXSQs= X-Google-Smtp-Source: AGHT+IGRl8utE7WIKTowSJkQR8qvATi43vw5q+7mGwpbISmcHCiCBcX5U7MgTjaYt0FadJmaxx7zYw== X-Received: by 2002:a05:622a:180d:b0:42a:9c3:84b2 with SMTP id t13-20020a05622a180d00b0042a09c384b2mr741691qtc.9.1705639313959; Thu, 18 Jan 2024 20:41:53 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id z10-20020a05622a124a00b0042a11ed1240sm1866870qtx.92.2024.01.18.20.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 20:41:53 -0800 (PST) From: Maxim Cournoyer Date: Thu, 18 Jan 2024 23:40:41 -0500 Message-ID: <33263f493ea13d0a468a73c9b704e1a0496c0a91.1705639243.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (dmd-bootstrap, dmd): New variables. Change-Id: I53e00a429e2084a392341ef1bc7ea63f0fcaaab4 --- Changes in v3: - Add packages built from dmd and D demangling support to qt-creator Changes in v2: - Build make flags via inheritance... - Fixing the missing SYSCONFDIR make flag gnu/packages/dlang.scm | 165 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 5c9766110d..f8060fa0c3 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -358,6 +358,171 @@ (define-public ldc `(("clang" ,clang-14) ;propagates llvm and clang-runtime ("python-lit" ,python-lit)))))) +;;; Bootstrap version of phobos that is built with GDC, using GDC's standard +;;; library. +(define dmd-bootstrap + (package + ;; This package is purposefully named just "dmd" and not "dmd-bootstrap", + ;; as the final dmd package rewrites references from this one to itself, + ;; and their names must have the same length to avoid corrupting the + ;; binary. + (name "dmd") + (version "2.106.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dlang/dmd") + (commit (string-append "v" version)))) + (file-name (git-file-name "dmd" version)) + (sha256 + (base32 + "1bq4jws1vns2jjzfz7biyngrx9y5pvvgklymhrvb5kvbzky1ldmy")))) + (build-system gnu-build-system) + (arguments + (list + #:disallowed-references (list (gexp-input (canonical-package gcc) + "lib")) + ;; Disable tests, as gdmd cannot cope with some arguments used such as + ;; '-conf'. + #:tests? #f + #:test-target "test" + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + ;; XXX: Proceed despite conflicts from symbols provided by both + ;; the source built and GDC. + "DFLAGS=-L--allow-multiple-definition" + "ENABLE_RELEASE=1" + (string-append "HOST_CXX=" #$(cxx-for-target)) + "HOST_DMD=gdmd" + (string-append "INSTALL_DIR=" #$output) + ;; Do not build the shared libphobos2.so library, to avoid + ;; retaining a reference to gcc:lib. + "SHARED=0" + (string-append "SYSCONFDIR=" #$output "/etc") + "VERBOSE=1" + "-f" "posix.mak") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'copy-phobos-source-and-chdir + ;; Start with building phobos, which in turns will automatically + ;; build druntime and dmd. A minimal dmd command is still + ;; required to do so, which is why we need dmd-bootstrap-0. + (lambda _ + (symlink "." "dmd") ;to please the build system expected layout + (copy-recursively + #$(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dlang/phobos") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yw7nb5d78cx9m7sfibv7rfc7wj3w0dw9mfk3d269qpfpnwzs4n9"))) + "phobos") + (chdir "phobos"))) + (add-after 'copy-phobos-source-and-chdir 'adjust-phobos-install-dirs + (lambda _ + (substitute* "posix.mak" + ;; Install to lib directory, not to e.g. 'linux/lib64'. + (("\\$\\(INSTALL_DIR)/\\$\\(OS)/\\$\\(lib_dir)") + (string-append #$output "/lib")) + ;; Do not install license file, already done by the gnu build + ;; system. + ((".*\\$\\(INSTALL_DIR)/phobos-LICENSE.txt.*") "")))) + (delete 'configure) + (add-after 'install 'install-druntime + (lambda args + (chdir "../druntime") + (apply (assoc-ref %standard-phases 'install) args) + (chdir ".."))) + (add-after 'install-druntime 'install-includes + (lambda _ + ;; Normalize the include files prefix to include/dmd. + (let ((include-dir (string-append #$output "/include/dmd"))) + (mkdir-p include-dir) + (rename-file (string-append #$output "/src/phobos") + (string-append include-dir)) + (copy-recursively "druntime/import" include-dir)) + (delete-file-recursively (string-append #$output "/src")))) + (add-after 'install-druntime 'install-dmd + (assoc-ref %standard-phases 'install)) + (add-after 'install-license-files 'refine-install-layout + (lambda _ + (let* ((docdir (string-append #$output "/share/doc/" + (strip-store-file-name #$output))) + ;; The dmd binary gets installed to + ;; e.g. /linux/bin64/dmd. + (dmd (car (find-files #$output "^dmd$"))) + (dmd.conf (car (find-files #$output "^dmd.conf$"))) + (os-dir (dirname (dirname dmd)))) + ;; Move samples from root to the doc directory. + (rename-file (string-append #$output "/samples") + (string-append docdir "/samples")) + ;; Remove duplicate license file. + (delete-file (string-append #$output + "/dmd-boostlicense.txt")) + ;; Move dmd binary and dmd.conf. + (install-file dmd (string-append #$output "/bin")) + (install-file dmd.conf (string-append #$output "/etc")) + (delete-file-recursively os-dir)))) + (add-after 'refine-install-layout 'patch-dmd.conf + (lambda* (#:key outputs #:allow-other-keys) + (substitute* (search-input-file outputs "etc/dmd.conf") + (("lib(32|64)") + "lib") + (("\\.\\./src/(phobos|druntime/import)") + "include/dmd"))))))) + (native-inputs (list gdmd which)) + (home-page "https://github.com/dlang/dmd") + (synopsis "Reference D Programming Language compiler") + (description "@acronym{DMD, Digital Mars D compiler} is the reference +compiler for the D programming language.") + (license license:boost1.0))) + +;;; Second bootstrap of DMD, built using dmd-bootstrap, with its shared +;;; libraries preserved. +(define-public dmd + (package + (inherit dmd-bootstrap) + (arguments + (substitute-keyword-arguments + (strip-keyword-arguments + '(#:tests?) ;reinstate tests + (package-arguments dmd-bootstrap)) + ((#:disallowed-references _ ''()) + (list dmd-bootstrap)) + ((#:modules _ ''()) + '((guix build gnu-build-system) + (guix build utils) + (srfi srfi-1))) ;for fold + ((#:make-flags flags ''()) + #~(fold delete #$flags '("DFLAGS=-L--allow-multiple-definition" + "HOST_DMD=gdmd" + "SHARED=0"))) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'patch-dmd.conf 'rewrite-references-to-bootstrap + ;; DMD keeps references to include files used to build a + ;; binary. Rewrite those of dmd-bootstrap to itself, to reduce + ;; its closure size. + (lambda* (#:key native-inputs inputs outputs + #:allow-other-keys) + (let ((dmd (search-input-file outputs "bin/dmd")) + (dmd-bootstrap (dirname + (dirname + (search-input-file + (or native-inputs inputs) + "bin/dmd"))))) + ;; XXX: Use sed, as replace-store-references wouldn't + ;; replace the references, while substitute* throws an + ;; error. + (invoke "sed" "-i" + (format #f "s,~a,~a,g" dmd-bootstrap #$output) + dmd)))))))) + (native-inputs (modify-inputs (package-native-inputs dmd-bootstrap) + (replace "gdmd" dmd-bootstrap))))) + (define-public dub (package (name "dub") -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 4/6] gnu: Add rust-rustc-demangle-capi-0.1. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 04:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170563933117664 (code B ref 68554); Fri, 19 Jan 2024 04:43:03 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 04:42:11 +0000 Received: from localhost ([127.0.0.1]:57193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghm-0004aj-CB for submit@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:10 -0500 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:54626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghf-0004Yy-Pc for 68554@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:04 -0500 Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-42a1fc46e28so2898771cf.1 for <68554@debbugs.gnu.org>; Thu, 18 Jan 2024 20:42:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705639316; x=1706244116; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+28s2PV/Vd5FPg4zYidwdn8XAYvv5aG12r5T7b3AiUs=; b=dmw9uo/EaClZN8JcwE6MkiS+bcT5bAG2p+WKBPUYpFRYuWR3/Ez6z0KC4792aH+RuW HBduYXdZOx9UZdZa27JVtaT86kfGxO6E793k5dJjDA1hnQZbBhxB4Mi2tDcuGaG32pDX giNfAbfT7IKoMfdKjLQLW7nA1y9WBhpq+3zzgVxA8fhxbg4lS4FG7Ce0BNxMf/73HC1z FBR3QCwGFQY4dDIGCs3zV0iTh7sAjFmlAawAy25FpMTv2wlKEdovogIDbsIwnvjElsTM WyyU52weeNNqkW88oRUDFK0/QdNqTZ1nowx36oHXrHrEm8HgSZyJlqb8y9ooklmWvYye mJXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705639316; x=1706244116; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+28s2PV/Vd5FPg4zYidwdn8XAYvv5aG12r5T7b3AiUs=; b=oWYgSaIqs0h0ANPoTgX/23Rbl6HuWDSAcMkbQopX4OcVdNH/nFIGGq97/NyJIYQuog 0uLSK8FMpzAzr9YPRrInRcBMoOrUGAsBUk2VdrMG/uyiP5PROWTy3zD/6Mi2/rwp1C8p 4qwS+lXPFKjZJN0thkF7xDuDxnLk/MgOqa2ZQGmnmV+Y1GS/tk9KQvLVh2XMmEdqVjTi WHbO98zIQZK5jBdPjRQlfTevsEb9iObe1hZM4k5SPTOIwiIT1/nJ25sRBpHfymY1SEpZ Cr/OfZAeNIHauUrk+GRLE8EXxQpQmT3oc6Bb2Up4tnjtHelqP27XeRH6wxzyq5wQZRFG tQcA== X-Gm-Message-State: AOJu0Yxumul8ao5apvo4UYyMGyaUQBbHEsc2v9GYr5OwM+xsRvcEAhrG PZYO1IHaLQp7LMrxsUu4BwOq6bc8q27Ea21kmfApxnaeeefp2AnFcTPyexYrRZI= X-Google-Smtp-Source: AGHT+IEunVTDa7NlDstacQaPR3PvXAnltRTZgFnmVS2uJPZ197A045ApOoEugOONuD7qWxjFa63Cww== X-Received: by 2002:a05:622a:1a15:b0:42a:1b6c:365e with SMTP id f21-20020a05622a1a1500b0042a1b6c365emr2231672qtb.129.1705639315875; Thu, 18 Jan 2024 20:41:55 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id z10-20020a05622a124a00b0042a11ed1240sm1866870qtx.92.2024.01.18.20.41.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 20:41:55 -0800 (PST) From: Maxim Cournoyer Date: Thu, 18 Jan 2024 23:40:42 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/crates-io.scm (rust-rustc-demangle-capi-0.1): New variable. Change-Id: I98afb19ed4bdbcb9107a1ab30af49b055802b8b0 --- (no changes since v1) gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1bfd8fb143..43d9e3cd60 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -64836,6 +64836,37 @@ (define-public rust-rustc-demangle-0.1 (license (list license:asl2.0 license:expat)))) +(define-public rust-rustc-demangle-capi-0.1 + (package + (name "rust-rustc-demangle-capi") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "rustc-demangle-capi" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1s2g4z1yrh1sxl4qkmpd19ss3x2lr9115vbir7pnhgy63r1d63yv")))) + (build-system cargo-build-system) + (arguments + (list + #:cargo-inputs `(("rust-rustc-demangle" ,rust-rustc-demangle-0.1)) + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-c-library + (lambda _ + (install-file + (car (find-files "." "^rustc_demangle\\.h$")) + (string-append #$output "/include")) + (install-file + (car (find-files "." "^librustc_demangle.so$")) + (string-append #$output "/lib"))))))) + (home-page "https://github.com/alexcrichton/rustc-demangle") + (synopsis "C API for the @code{rustc-demangle} crate") + (description "This package provides a C API library for the +@code{rustc-demangle} crate.") + (license (list license:expat license:asl2.0)))) + (define-public rust-rustc-hash-1 (package (name "rust-rustc-hash") -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 5/6] gnu: Add d-demangler. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 04:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170563933117672 (code B ref 68554); Fri, 19 Jan 2024 04:43:03 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 04:42:11 +0000 Received: from localhost ([127.0.0.1]:57195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghn-0004ar-1b for submit@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:11 -0500 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:54628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghh-0004ZJ-PL for 68554@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:06 -0500 Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-42a1fc46e28so2898931cf.1 for <68554@debbugs.gnu.org>; Thu, 18 Jan 2024 20:42:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705639318; x=1706244118; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=rH7RvgSVi2FSuFtZOLKqHiM5VWWGsXfvGj88KZfPHKc=; b=h0PI3uhCE8zyGCxLEw59lRmKi1Tq0gZmPKr0orKqAIqMcM+DAlJtzEmAeApNcW8FWS mn0cI2jSTo3lYNYczbV5LrkIwu+/UuvJ1O6ytYZSE42d2Gf00E41rfcwJ7yQ7OtZsVvy HonGKSEroaTfUsn714jqpMBRdptMX1rIduSDUYAi/gnY9fnqP4UFkzCgpBhjVg6ANPq0 avovYpe/jIlCaRXBdeC5FY1/FD13TJChBDjEORnkiEQdc1HYFaIIPz2gkIhKgMQd1PcE 8ZreRe1hFSMdcYlZ2861Ko6GJsSDHLr2dRa/DZwVw6iOyVKkosTZZT1J1CCVIGwHtydt urcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705639318; x=1706244118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rH7RvgSVi2FSuFtZOLKqHiM5VWWGsXfvGj88KZfPHKc=; b=Pnnu45j3mkfEb19iRCesoqeUTX5sQE3qg0W4VMaWZWdJTKzJ6GescLAnUR+AorRT4X ckkntawaIxiUlIZ7o9kZozRAsDcOZ/LEp+lBiMfT7liF0ATr2ZIFEtbqOIdbqeQuE7GP EyvEcUHwDAH49BTqnmzxXZxyZSH8GrgzVeKQepm3tYSJsONyb0T2lKWskEYZZ9G+aJxD bqAGMM5FwBGgS8eGWV/HBZQhSfsGlcqCXc8AiM7bRQjVAyuki0F+2/EASWlh1c6gC5ad 9u37kW2JFPoaaEZHVBsfZdxX0olSdIkY/Fb4KHf03Ei5Wux/sN3JBg51VAvGufeu9EZm g+bw== X-Gm-Message-State: AOJu0Yy1V88zOssC5W+6DqsUUZUkZU465O79pYEgwWrGax+OTC0hQ4Aa EpHdRhRgq6X8DuC7RQagObgehzXi7oLxYyd/KzrosNNo1EPhbEPbWk+zbkRB9Vk= X-Google-Smtp-Source: AGHT+IFfc1anekHyGs02MZpwp7YBXskTp45AnIxaXuZtXR2OnYWhC4SReqv3u2tqpFV8FhdHopnuLg== X-Received: by 2002:ac8:5e50:0:b0:42a:1ee3:add1 with SMTP id i16-20020ac85e50000000b0042a1ee3add1mr1785537qtx.110.1705639317718; Thu, 18 Jan 2024 20:41:57 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id z10-20020a05622a124a00b0042a11ed1240sm1866870qtx.92.2024.01.18.20.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 20:41:57 -0800 (PST) From: Maxim Cournoyer Date: Thu, 18 Jan 2024 23:40:43 -0500 Message-ID: <4efbde53aa8059f8dd37225b57ffe1d09e46a9fe.1705639243.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (d-demangler): New variable. Change-Id: Ic1dc8fb8adc1b4be859552e4add074a35bdfc6d0 --- (no changes since v1) gnu/packages/dlang.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index f8060fa0c3..cf9d2208d7 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2017, 2019, 2022 Tobias Geerinckx-Rice ;;; Copyright © 2020 Guy Fleury Iteriteka ;;; Copyright © 2021-2023 Efraim Flashner -;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2021, 2024 Maxim Cournoyer ;;; Copyright © 2022 ( ;;; Copyright © 2022 Esther Flashner ;;; @@ -617,3 +617,35 @@ (define-public gtkd (synopsis "D binding and OO wrapper of GTK+") (description "This package provides bindings to GTK+ for D.") (license license:lgpl2.1))) + +(define-public d-demangler + (package + (name "d-demangler") + (version "0.0.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lievenhey/d_demangler") + (commit (string-append "version-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "13lbbxlaa1mffjs57xchl1g6kyr5lxi0z5x7snyvym0knslxwx2g")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ;no test suite + #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) + "d_demangle") + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda _ + (install-file "libd_demangle.so" + (string-append #$output "/lib"))))))) + (native-inputs (list dmd)) + (home-page "https://github.com/lievenhey/d_demangler") + (synopsis "Utility to demangle D symbols") + (description "@command{d_demangle} is a small utility that can be used to +demangle D symbols. A shared library is also provided.") + (license license:gpl3+))) -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 6/6] gnu: qt-creator: Add support for demangling D and Rust symbols. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, maxim.cournoyer@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 04:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: Maxim Cournoyer , Andreas Enge , Maxim Cournoyer , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: Andreas Enge , Maxim Cournoyer , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170563933117678 (code B ref 68554); Fri, 19 Jan 2024 04:43:03 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 04:42:11 +0000 Received: from localhost ([127.0.0.1]:57197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghn-0004az-Ht for submit@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:11 -0500 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:52540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQghj-0004Zr-PD for 68554@debbugs.gnu.org; Thu, 18 Jan 2024 23:42:08 -0500 Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-42a029c8e62so2651421cf.1 for <68554@debbugs.gnu.org>; Thu, 18 Jan 2024 20:42:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705639320; x=1706244120; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6XVszN8nu5WFck395iNLLCI4L85ztgYJfSMFdSS6V5I=; b=FP0X/bnjxI+qtNWGalbmj752oyK+hYni9T9ZlfD/tZfr5VacK+nj0vMTUnuUB31Uoz 1l7KUYFkvMJpA44VicwGtigrAxL4dA5YfrlNpj9xUa6uatkqLT+11Pp7D5mJhDqvgXAh HvmTFDPP298/SwB0qkAAMcXU3Iq/JDmcETcCkGZwSDcR8yzMDDXPsT4abJirfNCX7IbL 05Jhj/moD6xmUy0uDSIkAsxNWAkjueXwui/K7Pc/VjcUWDjhYuszguTwDyK5v6UaJONF JrDWySWNtBbnAwPbxOyn8c08OSCGBE5FD22+Z0P3QVzGh+r5FUIRz3/KlgVHDI9GfbJc m14Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705639320; x=1706244120; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6XVszN8nu5WFck395iNLLCI4L85ztgYJfSMFdSS6V5I=; b=D/Iia2z0cYdHraqTAROKt3oOyUMXMjvOK/KL9q2GRAuFWqWf2kQdEO2KES836Bomtp iUgSdmp2OK9gDtqGmBMJEVPjJTKCu1esqinwMOGWUv9kYki6tGnx4RNaFxFTMHrDQsbg RCLyJT3FhUMXXk+Mok1lq6jfCo7/pXu0c8HSyCBNHcF17wjlFiP53xL2nasD+3U3sQ6i LXx1RePrv1YvNbDZ/OZ6FV8BnZr38LUVCD2q5XW1DIFSfqIYpyrryaXx0Yr5QL28rb74 xV1t95UEUGqpXHl9DeXQ4qpVmTf1n7jOFErPBvWGfU4BjC6qaYyZT48Bzs2DgzNd+vn8 l83g== X-Gm-Message-State: AOJu0Yx6qjPjUX+ZqitiKFxnuejruQvTUb0IvkBf7IN7os6ixTpAsbLX 2dSJc5qqTyE5XBz+K0M4AHm3g6Yej/UIaSDvckeMwsuFJcWS/A08GUNQzeCsiDU= X-Google-Smtp-Source: AGHT+IFAh05AcWHu2j//HIEz+6RspadPT1OILhSQFKC9s31kEO6NABRIHPhd5t+AQD5p1HlZNDyqfQ== X-Received: by 2002:ac8:5e11:0:b0:429:e309:e98f with SMTP id h17-20020ac85e11000000b00429e309e98fmr2300505qtx.135.1705639320109; Thu, 18 Jan 2024 20:42:00 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id z10-20020a05622a124a00b0042a11ed1240sm1866870qtx.92.2024.01.18.20.41.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 20:41:59 -0800 (PST) From: Maxim Cournoyer Date: Thu, 18 Jan 2024 23:40:44 -0500 Message-ID: <28d70fb832f7387dfc0abff39d1139367ad50ed3.1705639243.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/qt.scm (qt-creator) [inputs]: Add d-demangler and rust-rustc-demangle-capi-0.1. Change-Id: I13122c0d148f283268d59919ade1459b5c7012a5 --- (no changes since v1) gnu/packages/qt.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index a6bbc2429a..ca935ba403 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -71,9 +71,11 @@ (define-module (gnu packages qt) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages crates-io) #:use-module (gnu packages cups) #:use-module (gnu packages curl) #:use-module (gnu packages databases) + #:use-module (gnu packages dlang) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) #:use-module (gnu packages enchant) @@ -5150,6 +5152,7 @@ (define-public qt-creator coreutils-minimal clang clazy + d-demangler elfutils gdb kcachegrind @@ -5159,6 +5162,7 @@ (define-public qt-creator qtdeclarative qtshadertools qtsvg + rust-rustc-demangle-capi-0.1 yaml-cpp valgrind vulkan-loader -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 3/6] gnu: Add dmd. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 09:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 68554@debbugs.gnu.org Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170565710329491 (code B ref 68554); Fri, 19 Jan 2024 09:39:02 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 09:38:23 +0000 Received: from localhost ([127.0.0.1]:57500 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQlKQ-0007fb-BT for submit@debbugs.gnu.org; Fri, 19 Jan 2024 04:38:22 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:44516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQlKO-0007fL-1S for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 04:38:21 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40e8fec0968so7104535e9.1 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 01:38:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705657092; x=1706261892; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=VYiOM5qPyONfZUY76XTEf+0ZOTpHu5kaSSWFfgcRwuM=; b=Lsk7n3Q/YcgoKmJJPguaKTPK79sKY2eMRC895dpGueVopF2Mdno5UDpmBfTxaGBr45 JuWFYbl3bukhu9zONk+kMrUiELqA6tnWHG86H1GZ9sFjQR1FmTM6AD8+sUNMsbtkYJaB g/bQVyO+Psz6r5dBQAl1EHPmQdE1mdbOny3S4cycpmXR+1PoGzE1zGJcYTjvB7mie0FN hrGUucTVn0ywFF1vZow+kpO6TPRzEErLaWUnYJ4LHB2f458BRG8akU7QEC3vkrN39sWh wll3narFJ0fHACSZcRcCFtNxvly7Rs+ALkJe4xrV73LG1xSgK6qxWzpcSt2T7H8z9m0Y KR/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705657092; x=1706261892; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VYiOM5qPyONfZUY76XTEf+0ZOTpHu5kaSSWFfgcRwuM=; b=JnbMfbmNTzaStT5/+F55zxEGZ5CYuV8kX4OYVO2rBOPCdDRhpBFMvx4Rt7Vbh4vspW 2mtztf+rbdwPC+Eh4r1hc7ZGoy2bmSitCdKg/6rSTHAmBSwC+nGJ2+tD1rF8kM0xofke yvh11GsoHLjjFiDDIwyOcQxutH5IsJsR7B+OsXz4fdV5ijFd0CFBHIO5I+61qq6UH81s W8gFkPxi3jKhQKOwRCcy9+Hp8FTgXKw6V3VZMXpLrFdLtXFXEDtYKSXicgbuxNIcsHzi nywN8sJpwfhnqjncCZO9WuLpZLBIdOys8WMN5j1hh1ZN0B0oxYEzplQLcWTeglYrWHvB gziw== X-Gm-Message-State: AOJu0YyaDEJxckAVZLDnQtRdEV4tDMVfybdnZlWroQeIZT5IPB4IL+v2 h7ejadvMXF4RYpQVVEv2oceZrOy94vP/744I/wIvKMqGosAwRC0AqxBERiTE3ss= X-Google-Smtp-Source: AGHT+IFPh7xS+hIn8tb6c2CeGwrVzBq6wiffL0hzkVSCwSzn22gAVC9OM+YO04w6emeTFqoz9fePkg== X-Received: by 2002:a05:600c:2285:b0:40e:5947:bcc6 with SMTP id 5-20020a05600c228500b0040e5947bcc6mr1169381wmf.108.1705657091391; Fri, 19 Jan 2024 01:38:11 -0800 (PST) Received: from localhost ([141.226.15.142]) by smtp.gmail.com with ESMTPSA id i19-20020a05600c355300b0040e76b60235sm17228397wmq.8.2024.01.19.01.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 01:38:10 -0800 (PST) Date: Fri, 19 Jan 2024 11:38:09 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Maxim Cournoyer , 68554@debbugs.gnu.org References: <33263f493ea13d0a468a73c9b704e1a0496c0a91.1705639243.git.maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="L/ASqhD7XjWrBa5l" Content-Disposition: inline In-Reply-To: <33263f493ea13d0a468a73c9b704e1a0496c0a91.1705639243.git.maxim.cournoyer@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) --L/ASqhD7XjWrBa5l Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 18, 2024 at 11:40:41PM -0500, Maxim Cournoyer wrote: > * gnu/packages/dlang.scm (dmd-bootstrap, dmd): New variables. >=20 > Change-Id: I53e00a429e2084a392341ef1bc7ea63f0fcaaab4 > --- >=20 > Changes in v3: > - Add packages built from dmd and D demangling support to qt-creator >=20 > Changes in v2: > - Build make flags via inheritance... > - Fixing the missing SYSCONFDIR make flag >=20 > gnu/packages/dlang.scm | 165 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 165 insertions(+) >=20 > diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm > index 5c9766110d..f8060fa0c3 100644 > --- a/gnu/packages/dlang.scm > +++ b/gnu/packages/dlang.scm > @@ -358,6 +358,171 @@ (define-public ldc > `(("clang" ,clang-14) ;propagates llvm and clang-runti= me > ("python-lit" ,python-lit)))))) > =20 > +;;; Bootstrap version of phobos that is built with GDC, using GDC's stan= dard > +;;; library. > +(define dmd-bootstrap > + (package > + ;; This package is purposefully named just "dmd" and not "dmd-bootst= rap", > + ;; as the final dmd package rewrites references from this one to its= elf, > + ;; and their names must have the same length to avoid corrupting the > + ;; binary. > + (name "dmd") > + (version "2.106.1") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/dlang/dmd") > + (commit (string-append "v" version)))) > + (file-name (git-file-name "dmd" version)) > + (sha256 > + (base32 > + "1bq4jws1vns2jjzfz7biyngrx9y5pvvgklymhrvb5kvbzky1ldmy"))= )) > + (build-system gnu-build-system) > + (arguments > + (list > + #:disallowed-references (list (gexp-input (canonical-package gcc) > + "lib")) > + ;; Disable tests, as gdmd cannot cope with some arguments used suc= h as > + ;; '-conf'. > + #:tests? #f > + #:test-target "test" > + #:make-flags > + #~(list (string-append "CC=3D" #$(cc-for-target)) > + ;; XXX: Proceed despite conflicts from symbols provided by= both > + ;; the source built and GDC. > + "DFLAGS=3D-L--allow-multiple-definition" > + "ENABLE_RELEASE=3D1" > + (string-append "HOST_CXX=3D" #$(cxx-for-target)) > + "HOST_DMD=3Dgdmd" > + (string-append "INSTALL_DIR=3D" #$output) > + ;; Do not build the shared libphobos2.so library, to avoid > + ;; retaining a reference to gcc:lib. > + "SHARED=3D0" > + (string-append "SYSCONFDIR=3D" #$output "/etc") > + "VERBOSE=3D1" > + "-f" "posix.mak") > + #:phases > + #~(modify-phases %standard-phases > + (add-after 'unpack 'copy-phobos-source-and-chdir > + ;; Start with building phobos, which in turns will automatic= ally > + ;; build druntime and dmd. A minimal dmd command is still > + ;; required to do so, which is why we need dmd-bootstrap-0. > + (lambda _ > + (symlink "." "dmd") ;to please the build system expected = layout > + (copy-recursively > + #$(origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/dlang/phobos") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) you should probably switch name to "phobos", otherwise I assume it'll be added as dmd. Also, is this the right way to add phobos as an input? > + (sha256 > + (base32 > + "1yw7nb5d78cx9m7sfibv7rfc7wj3w0dw9mfk3d269qpfpnwzs4= n9"))) > + "phobos") > + (chdir "phobos"))) > + (add-after 'copy-phobos-source-and-chdir 'adjust-phobos-instal= l-dirs > + (lambda _ > + (substitute* "posix.mak" > + ;; Install to lib directory, not to e.g. 'linux/lib64'. > + (("\\$\\(INSTALL_DIR)/\\$\\(OS)/\\$\\(lib_dir)") > + (string-append #$output "/lib")) > + ;; Do not install license file, already done by the gnu = build > + ;; system. > + ((".*\\$\\(INSTALL_DIR)/phobos-LICENSE.txt.*") "")))) > + (delete 'configure) > + (add-after 'install 'install-druntime > + (lambda args > + (chdir "../druntime") > + (apply (assoc-ref %standard-phases 'install) args) > + (chdir ".."))) Can this one be: (with-directory-excursion "../druntime" (apply (assoc-ref %standard-phases 'install) args)) > + (add-after 'install-druntime 'install-includes > + (lambda _ > + ;; Normalize the include files prefix to include/dmd. > + (let ((include-dir (string-append #$output "/include/dmd")= )) > + (mkdir-p include-dir) > + (rename-file (string-append #$output "/src/phobos") > + (string-append include-dir)) > + (copy-recursively "druntime/import" include-dir)) > + (delete-file-recursively (string-append #$output "/src")))) > + (add-after 'install-druntime 'install-dmd > + (assoc-ref %standard-phases 'install)) Is this different than the regular install phase? > + (add-after 'install-license-files 'refine-install-layout > + (lambda _ > + (let* ((docdir (string-append #$output "/share/doc/" > + (strip-store-file-name #$out= put))) is strip-store-file-name better than #$name "-" #$version ? > + ;; The dmd binary gets installed to > + ;; e.g. /linux/bin64/dmd. > + (dmd (car (find-files #$output "^dmd$"))) > + (dmd.conf (car (find-files #$output "^dmd.conf$"))) > + (os-dir (dirname (dirname dmd)))) > + ;; Move samples from root to the doc directory. > + (rename-file (string-append #$output "/samples") > + (string-append docdir "/samples")) > + ;; Remove duplicate license file. > + (delete-file (string-append #$output > + "/dmd-boostlicense.txt")) > + ;; Move dmd binary and dmd.conf. > + (install-file dmd (string-append #$output "/bin")) > + (install-file dmd.conf (string-append #$output "/etc")) > + (delete-file-recursively os-dir)))) > + (add-after 'refine-install-layout 'patch-dmd.conf > + (lambda* (#:key outputs #:allow-other-keys) > + (substitute* (search-input-file outputs "etc/dmd.conf") I only see 1 output, so this should probably be (string-append #$output "/etc/dmd.conf") > + (("lib(32|64)") > + "lib") > + (("\\.\\./src/(phobos|druntime/import)") > + "include/dmd"))))))) > + (native-inputs (list gdmd which)) > + (home-page "https://github.com/dlang/dmd") > + (synopsis "Reference D Programming Language compiler") > + (description "@acronym{DMD, Digital Mars D compiler} is the reference > +compiler for the D programming language.") > + (license license:boost1.0))) > + > +;;; Second bootstrap of DMD, built using dmd-bootstrap, with its shared > +;;; libraries preserved. > +(define-public dmd > + (package > + (inherit dmd-bootstrap) > + (arguments > + (substitute-keyword-arguments > + (strip-keyword-arguments > + '(#:tests?) ;reinstate tests > + (package-arguments dmd-bootstrap)) > + ((#:disallowed-references _ ''()) > + (list dmd-bootstrap)) > + ((#:modules _ ''()) > + '((guix build gnu-build-system) > + (guix build utils) > + (srfi srfi-1))) ;for fold > + ((#:make-flags flags ''()) > + #~(fold delete #$flags '("DFLAGS=3D-L--allow-multiple-definition" > + "HOST_DMD=3Dgdmd" > + "SHARED=3D0"))) > + ((#:phases phases '%standard-phases) > + #~(modify-phases #$phases > + (add-after 'patch-dmd.conf 'rewrite-references-to-bootstrap > + ;; DMD keeps references to include files used to build a > + ;; binary. Rewrite those of dmd-bootstrap to itself, to r= educe > + ;; its closure size. > + (lambda* (#:key native-inputs inputs outputs > + #:allow-other-keys) > + (let ((dmd (search-input-file outputs "bin/dmd")) > + (dmd-bootstrap (dirname > + (dirname > + (search-input-file > + (or native-inputs inputs) > + "bin/dmd"))))) > + ;; XXX: Use sed, as replace-store-references wouldn't > + ;; replace the references, while substitute* throws an > + ;; error. > + (invoke "sed" "-i" > + (format #f "s,~a,~a,g" dmd-bootstrap #$output) > + dmd)))))))) > + (native-inputs (modify-inputs (package-native-inputs dmd-bootstrap) > + (replace "gdmd" dmd-bootstrap))))) > + > (define-public dub > (package > (name "dub") > --=20 > 2.41.0 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --L/ASqhD7XjWrBa5l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmWqQv4ACgkQQarn3Mo9 g1FB2hAAueDq671voq16bHMKLvulO3Rj5iNKtJ/FxjbNhrL+iowv0y9DSvJUxMM+ 1idx+DGDDDMymHlOI91SXTdpZztQr3OqqfTPiE8xGUxyrDB6pmVFK0nZgqkqZ1FV PvaigRcM3e/zW/klFRXXEtNjZnBgMqeD7DtK85OPDCp4H77DjaWjpffLuIag3Kjs 7vO0NPPXkH1cb9/IIodc4jxpDhWiA/ZXFeIUB3/rfW7XZSGpGMQ/bzwQZPQRh67c RMq/Le//BrAP3CkW/pHNacEA89cnC8Syb8Aae1GXB0nVNQMsdn+qiEu6sa8eCF8v uch7ReN4GimrsvZA6duyH/lz4bkhvmL21XhCGjkvPpfoI/8FvOFqgW53zc4kjGxZ RG0cF6paKeOUpFxcNsEFZU1mQwX9xwJLQnVj/ZyBhhbZ2fvARv4o0AF0DJLeWHmG G9ZJ6zLC53qTEqr/GB809z0ZFla0N1HD5hGYMEWCkorFQyy3Z5Yl9iUZlP36eC2B +5uLrJIdpghEgFf5OYh5fMVjYztRzsPlfwvDA1pORmWRpHKMIsXD/AMXzT4NkwkO ZzNkZci7Mnz0g7uq/K4PUZsK0wDfpy0xzT/k58XpZB7ZBhfMKhlb9AhL4o/URUUW EDGFx/bDDdIjS3/sI2N++gollYrttfQk/RAUtSbhT+k+h4/jiyY= =ygW4 -----END PGP SIGNATURE----- --L/ASqhD7XjWrBa5l-- From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 6/6] gnu: qt-creator: Add support for demangling D and Rust symbols. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 09:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 68554@debbugs.gnu.org Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170565714029596 (code B ref 68554); Fri, 19 Jan 2024 09:39:02 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 09:39:00 +0000 Received: from localhost ([127.0.0.1]:57516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQlL1-0007hH-Ue for submit@debbugs.gnu.org; Fri, 19 Jan 2024 04:39:00 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:48591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQlKu-0007gx-MH for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 04:38:58 -0500 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-337cc8e72f5so451318f8f.1 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 01:38:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705657125; x=1706261925; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=m/2EaRYHMt9OkQTQDC2SInjMZxi+x569snebh+bhUtc=; b=bY31ESfCJLt3vqsG1mkWetLtWogInYPzPtyCJ2/tevl2bSYPump5nVuzF1yIc8Zr6B 7QWJRiAcKTkJIWV4K7ozNXMPJhsAyOfk451ByzVjSM3Bqww1235VPI1/zDHroSqnr4aZ AXnL/f/Owamf4BLhOL8YrCf4ZaffJD9cI6RsGFSqROTqVfJG3/t2Se09Uv22M0chIhwN 0Qt5hNJzm1kZ4o6R1/lgKN7WVwKWXS5SBP/uOwwVDLF9JvrnM+DiF7pjbLiTVjVoPPO0 1wJcxrUgnXSSWeqSP3aR/Y1fwuJvqE7vOrXpOJPOcHCJwQnv4GntBAV2/lRkg7+v/qz9 0qmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705657125; x=1706261925; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m/2EaRYHMt9OkQTQDC2SInjMZxi+x569snebh+bhUtc=; b=lczdc8UVyDO53amG/WngsaW+1v7S7XaDD9TegFlNBEdN5tRcJ1FcRxUErwOJjZM62j Zxn3dvBqdkGVRd2C5KtdP3zNyT0nsK8RCEDy4i9sp9/pf0jOnzs6CXx3eMkrHcMgIFc2 IMhlBWlspg/WccMMbxamE09voR29jCWUY5i0K14ZeHAbPl7hMHZNT+RtH/B/1HXvLHHK 9ue3FXkN0XwRIBqMZg8UTkkX1WlJIdOR/t5GA2mgavywQPXsDIDqaKeIW4IkxwX0qG9k 1HvHb2sMFxiOs4dcOvNL5JgVyhwPLcPmkAV3J3YCPSrhNCT5Qm3CRdclixHkyOzvbLFv XMFg== X-Gm-Message-State: AOJu0Yy49dCGrCm+GcaNLiUFxdpUzB++bCtjs7pWJziQMh5f5JHtSqJP qU/ERdtm8oWDVEhMpUB+WCa/2tUJkLURJ9dYyftoA6Ol1Lw0bz+pTE6iiBCs8XU= X-Google-Smtp-Source: AGHT+IGal9KTlXoAzib0AIGsfDnXUOg4XzPg6mNHFgHv02s6rInbg136qRKa0gm+vYOzL6o45S39sg== X-Received: by 2002:a05:6000:911:b0:337:cca1:1983 with SMTP id cw17-20020a056000091100b00337cca11983mr1351429wrb.124.1705657124708; Fri, 19 Jan 2024 01:38:44 -0800 (PST) Received: from localhost ([141.226.15.142]) by smtp.gmail.com with ESMTPSA id y14-20020a5d4ace000000b00337bfc796a6sm6063773wrs.87.2024.01.19.01.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 01:38:44 -0800 (PST) Date: Fri, 19 Jan 2024 11:38:43 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Maxim Cournoyer , 68554@debbugs.gnu.org, Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= References: <28d70fb832f7387dfc0abff39d1139367ad50ed3.1705639243.git.maxim.cournoyer@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="JVfHyNfBTu1ZSCek" Content-Disposition: inline In-Reply-To: <28d70fb832f7387dfc0abff39d1139367ad50ed3.1705639243.git.maxim.cournoyer@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) --JVfHyNfBTu1ZSCek Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm pretty sure dmd would be supported everywhere qtbase is, but rust-rustc-demangle-capi-0.1 should be wrapped with supported-package? On Thu, Jan 18, 2024 at 11:40:44PM -0500, Maxim Cournoyer wrote: > * gnu/packages/qt.scm (qt-creator) [inputs]: Add d-demangler and > rust-rustc-demangle-capi-0.1. >=20 > Change-Id: I13122c0d148f283268d59919ade1459b5c7012a5 > --- >=20 > (no changes since v1) >=20 > gnu/packages/qt.scm | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm > index a6bbc2429a..ca935ba403 100644 > --- a/gnu/packages/qt.scm > +++ b/gnu/packages/qt.scm > @@ -71,9 +71,11 @@ (define-module (gnu packages qt) > #:use-module (gnu packages cmake) > #:use-module (gnu packages compression) > #:use-module (gnu packages cpp) > + #:use-module (gnu packages crates-io) > #:use-module (gnu packages cups) > #:use-module (gnu packages curl) > #:use-module (gnu packages databases) > + #:use-module (gnu packages dlang) > #:use-module (gnu packages documentation) > #:use-module (gnu packages elf) > #:use-module (gnu packages enchant) > @@ -5150,6 +5152,7 @@ (define-public qt-creator > coreutils-minimal > clang > clazy > + d-demangler > elfutils > gdb > kcachegrind > @@ -5159,6 +5162,7 @@ (define-public qt-creator > qtdeclarative > qtshadertools > qtsvg > + rust-rustc-demangle-capi-0.1 > yaml-cpp > valgrind > vulkan-loader > --=20 > 2.41.0 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --JVfHyNfBTu1ZSCek Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmWqQyIACgkQQarn3Mo9 g1FYYg/5AZfYXYB1MIAqIJJXjmzsfK2dkbR1s/fdBLk9AJ7R4FxXMzvYwF893GOs I9MRt4B+Y863nY9AvpWucErcUftGkJfRUrx4NG6X1Ms3js18rbA5Ba3Q7SpQwdhL D2pvJFfulKahv9q8yJAnjvMJ/bNsLWDTS4TvnUj7BK/MBHiZAeJfUlwRHD0ib1L1 o/5yP7SSCimA9XrAUDqYLL5gZd4zK9kVwMiEKNwqnoGwlWIDF/jjnjaHRJX/HUDQ FshYmBZ5YigMXYiIO4Os75r5CYOgm+YMGP2HgD59R22JdIGgv91S66kH2X+Pan0/ ukDL58RPj1JT8PBzxyKEemIZe+/W0faCb36us6PuNNyYXLbc01+nHq7Ms8NrL3ua TpafN59csXQ4RhlkV9tWSp9mMR/z3Ndg4Ry7Ga6A6yxFtEbfEaeCd2AB8Lyc8KaA wsB0CH8+WlYBmwQLpLA6hQEACS/IoMLlLp1W2rMjXQDnMZnjH4gIytmVrLUWuJE9 qhcCRgcy4Ps4fz8cEoyFY/lZHx+GFl9kSQ6p7g/ELoRgQQ2V1T/ffu1JkKKHp5BA i0Y2kKsifZA+cMohSnQstDVzrgQr9qffgG8ABrbPLrp9SB/u6yh1hhL79nDMjSzo DmuIUNbTELuIXDl5myfpqeqzPc6gjjswh7MzEJW+BGfhpiJMp/Y= =Fzj8 -----END PGP SIGNATURE----- --JVfHyNfBTu1ZSCek-- From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 4/6] gnu: Add rust-rustc-demangle-capi-0.1. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 19 Jan 2024 09:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 68554@debbugs.gnu.org Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170565714829747 (code B ref 68554); Fri, 19 Jan 2024 09:40:01 +0000 Received: (at 68554) by debbugs.gnu.org; 19 Jan 2024 09:39:08 +0000 Received: from localhost ([127.0.0.1]:57540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQlLA-0007jj-4m for submit@debbugs.gnu.org; Fri, 19 Jan 2024 04:39:08 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:48247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQlL7-0007hI-A5 for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 04:39:05 -0500 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40e8ff22383so6178565e9.0 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 01:39:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705657137; x=1706261937; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=iIGfEw+z9Iet+Xd0MeZfBb/bhVBDwCbVJfo8S7xmfb4=; b=H6aT4wFG8iUSJ8OkrAcZNmFY8tKG+7otXkzb3mjEvqt8lzcftz40IVSp1qpi1Ohegs 4cb3F+v30HQdgVlFnfw41y7GePoACHZSLCayQ0jWC+cURIgxU15oBbwBOqk5pRQkjkjo Dbr/C2mdzg+Bma8jQFrahyNB3n2kNYiR48pikqTk7a6ce19kbwG4zeB7MgGo2WDCceuN f8V10KxpDok1MMdZKdqgBnQC12dRsCMXXX64KQ6xe7VWnh+dDj05L72wt4Zwy3cvXPei xo4ttGdmwqP6cfCiphdmsSKBh51FehRySeCLyu0zzjGd8tGdjRut+ntMRbaMqspJXIa0 HkvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705657137; x=1706261937; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iIGfEw+z9Iet+Xd0MeZfBb/bhVBDwCbVJfo8S7xmfb4=; b=fDBkTghqn1vmvSYtW6skOPSIQHEqOJYEldMIEHkR/U8V8Fkq6hI1VBXYAhezoDxF4d yvC2s5zKtvgc6wkd1CA4hF3azq2bNiakbGAgG3S+ioFeeWlLcXEz2JwkerWiy8eWRuQW VODVWxo7P4GSNZlLwv4iuVKJ+Og0UXSRY/4B+Xb4qsWqXSCxzzk5mhPyVtwnP2ufdGAW lFrFFyxFiToJp1uMSranXPECS2biQHS+FWWF0TRfelWKJ0Bwg4EUwy+A8+D0qRlM9K5P uhIIEdZmmqzJqq50o3dMFubjYJoEA7BrxU45PWktZyYca1N2iaorLOlP7u17vx+80qVA bI2w== X-Gm-Message-State: AOJu0Yz8THmbeVu1w5YtWGWoQjQTftnzIn/DYYMJX2dN42MXkXzqKhL6 7vNB8dIobXaR/A2ZhrT6RjL/IFGGuv01WspbL5TwAtT4BEADxjXi X-Google-Smtp-Source: AGHT+IGxMIZCnUhx9tRYmCUJwMMjcsTbXcVkdqToDImppB6c5kZqJzzQC3drhISSZzmn1k4RynalxA== X-Received: by 2002:a05:600c:6a19:b0:40e:6d77:85e2 with SMTP id jj25-20020a05600c6a1900b0040e6d7785e2mr1301225wmb.58.1705657137344; Fri, 19 Jan 2024 01:38:57 -0800 (PST) Received: from localhost ([141.226.15.142]) by smtp.gmail.com with ESMTPSA id p1-20020adfe601000000b00337bf461385sm6048158wrm.26.2024.01.19.01.38.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 01:38:56 -0800 (PST) Date: Fri, 19 Jan 2024 11:38:55 +0200 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Maxim Cournoyer , 68554@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0WdxoPtarMns4qQy" Content-Disposition: inline In-Reply-To: X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) --0WdxoPtarMns4qQy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This package looks good to me On Thu, Jan 18, 2024 at 11:40:42PM -0500, Maxim Cournoyer wrote: > * gnu/packages/crates-io.scm (rust-rustc-demangle-capi-0.1): New variable. >=20 > Change-Id: I98afb19ed4bdbcb9107a1ab30af49b055802b8b0 > --- >=20 > (no changes since v1) >=20 > gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) >=20 > diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm > index 1bfd8fb143..43d9e3cd60 100644 > --- a/gnu/packages/crates-io.scm > +++ b/gnu/packages/crates-io.scm > @@ -64836,6 +64836,37 @@ (define-public rust-rustc-demangle-0.1 > (license (list license:asl2.0 > license:expat)))) > =20 > +(define-public rust-rustc-demangle-capi-0.1 > + (package > + (name "rust-rustc-demangle-capi") > + (version "0.1.0") > + (source > + (origin > + (method url-fetch) > + (uri (crate-uri "rustc-demangle-capi" version)) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 "1s2g4z1yrh1sxl4qkmpd19ss3x2lr9115vbir7pnhgy63r1d63yv"))= )) > + (build-system cargo-build-system) > + (arguments > + (list > + #:cargo-inputs `(("rust-rustc-demangle" ,rust-rustc-demangle-0.1)) > + #:phases > + #~(modify-phases %standard-phases > + (add-after 'install 'install-c-library > + (lambda _ > + (install-file > + (car (find-files "." "^rustc_demangle\\.h$")) > + (string-append #$output "/include")) > + (install-file > + (car (find-files "." "^librustc_demangle.so$")) > + (string-append #$output "/lib"))))))) > + (home-page "https://github.com/alexcrichton/rustc-demangle") > + (synopsis "C API for the @code{rustc-demangle} crate") > + (description "This package provides a C API library for the > +@code{rustc-demangle} crate.") > + (license (list license:expat license:asl2.0)))) > + > (define-public rust-rustc-hash-1 > (package > (name "rust-rustc-hash") > --=20 > 2.41.0 >=20 >=20 >=20 --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --0WdxoPtarMns4qQy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmWqQy8ACgkQQarn3Mo9 g1GMEA/+PU+3WDK8W1SORGtfNQJU8HV/FPUmYZYl6UsZ71dgD6EjGSnC0q4iXmvo ickJU92+8KJXFjKt+2v8CBChpuvw+kLHmg8nV5YuX+KGGap/sFgk4WAj9+gtyAlK /fzmiVvWU6gfvMtWhHiSSxus511ODArSV+nSeWHp1EigqqjqMegfhPssF0ttIusO gBF1lNIKQwHxigQkFOWDpzyxY7O5Q9Q28FUgLptawQ9HXX2UiP0zL9l2taZfYBAp Hs2aS+w1CSFqMJ56lZrC/EYr5GuRaKN7/vaOLrpJ4uc/KXNJLkJNEoPgu3DdpxaC HBdT5PvFJIwETk3Wffa/vsrAgQjwwwGudcSgd8W0wDFqTIgmKNnoSJdc13TW+5ZP zwAGk2aHbRNXKpFtL8DTKhFVwnlx1awM5tfkUodDQUFU3aUoKACHuMF+zbp/MuCq uobw1A8lteBV1HOlubQdSq8RtUK12ZmjoLYuNcU0wwpHsvvvQHV848AbWhxAuWei RRoYlI0SmN8N9lpnE7LlMlS3b/B5j9PdUryDgPZP8LJ/jxtKBN8fHiiBai5gE5U0 oo8oZjdCzo9cRI54lnS62CdRJO7y5Y2B8RgmmT8eVL1f1SNam6sybyMZDzWGQz9V zyYLj5DYjz1xXtydI8Um029uzzBD/mrWLjqf09UL1CiaAeJ0DYA= =1BSC -----END PGP SIGNATURE----- --0WdxoPtarMns4qQy-- From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 4/6] gnu: Add rust-rustc-demangle-capi-0.1. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 04:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: 68554@debbugs.gnu.org Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.17057234193795 (code B ref 68554); Sat, 20 Jan 2024 04:04:01 +0000 Received: (at 68554) by debbugs.gnu.org; 20 Jan 2024 04:03:39 +0000 Received: from localhost ([127.0.0.1]:60620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR2a3-0000z9-7Y for submit@debbugs.gnu.org; Fri, 19 Jan 2024 23:03:39 -0500 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:58609) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR2a2-0000yw-7n for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 23:03:38 -0500 Received: by mail-qt1-x830.google.com with SMTP id d75a77b69052e-42a0ba5098bso8557101cf.0 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 20:03:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705723409; x=1706328209; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=pH/7Lfow2BcG6Zhjfh2fcRwvhoYVradHAk/Dd7JjjBo=; b=XgTUGoUVJ+lNJZTANS6oDcKsQsGzArI2jlr83I1IIN4jtcrk93wME4lpE3At5RTJ7A a+a2Xn6mxJvBEyH0St0VHb4zXsDnC6/u1RhzXB4a5C1udD9MRMhni/J3OU9deS0yp3I+ Fgt0coK+wQskGrZhEQYo6zD2D3QSZpJHtKZIrfC8x5GuFLARX2lyOMtuYBtV0KQItVQn KC027S7A9gUiCoUSpVnpzB3RsfR3yjwhLo6B/l5lkuCX4BtMI+vDPJCgF7uCovcCOd8C J71QkscehCpBMR0SzeK/H2KO+b9xwxq4calFYS5DXuinkDt6+DCghpUOxyZiKUCjIAka PEdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705723409; x=1706328209; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pH/7Lfow2BcG6Zhjfh2fcRwvhoYVradHAk/Dd7JjjBo=; b=Xu2siCFf8eopcD8LIUynzodPJH1b7uknrGZ/OnwWVcE1sADnSgkduI5+fOrpHP91TR +4HfzjUkulW2mSqUDiFQkRfxEDtNZ3dqXiohHdNKS3sP2hs23V7sU9wXaRhCvlRSq81F LjKA/46Jg68+mxFLmZIuGezxzFTx8yrHdgeo1bcKlF1Z8of71IJi/b9a6aIZOuzbqlGB MfJEQQK8Yik7mhBAxwEY0GXHyfOSe9V+RsOR3TyrhYNU6vqISkjM4avk+mrRXFr+r4eB 2RaOLXMnat4kGWANX8UIWrD5eei+eFOlDcQgxOSf6oHpQqbJlWImIm4qu8PB+waBGsgW /qrA== X-Gm-Message-State: AOJu0YzN3cNgZpSz36XMCa7JGavi1eheiXtCc1EY95x7W594dV+DHPFY ZkxICaphkTZtuBfZZmizYCLbh3+bWxtTIeBPyQrwwTtjXxHsgdnkjUIa846dCqw= X-Google-Smtp-Source: AGHT+IFoq5w+FOXUq231wvHvyBTTb1YYizXqQ5wiiju7p+02OYCF4G/xLgqAYP2hvAnU8FQ40vfSiQ== X-Received: by 2002:ac8:5814:0:b0:42a:2b0f:89b0 with SMTP id g20-20020ac85814000000b0042a2b0f89b0mr1028931qtg.7.1705723409000; Fri, 19 Jan 2024 20:03:29 -0800 (PST) Received: from hurd (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id js11-20020a05622a808b00b0042830a16af7sm325714qtb.62.2024.01.19.20.03.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 20:03:28 -0800 (PST) From: Maxim Cournoyer In-Reply-To: (Efraim Flashner's message of "Fri, 19 Jan 2024 11:38:55 +0200") References: Date: Fri, 19 Jan 2024 23:03:27 -0500 Message-ID: <87r0ichcs0.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Efraim, Efraim Flashner writes: > This package looks good to me I pushed just this one. Will send a v2 for the rest. -- Thanks, Maxim From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 3/6] gnu: Add dmd. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 04:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: 68554@debbugs.gnu.org Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170572416411391 (code B ref 68554); Sat, 20 Jan 2024 04:17:02 +0000 Received: (at 68554) by debbugs.gnu.org; 20 Jan 2024 04:16:04 +0000 Received: from localhost ([127.0.0.1]:60628 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR2m3-0002wz-JZ for submit@debbugs.gnu.org; Fri, 19 Jan 2024 23:16:04 -0500 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:52587) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR2m1-0002nh-3V for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 23:16:01 -0500 Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-42a029c8e62so8818301cf.1 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 20:15:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705724152; x=1706328952; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=BmlFK80BqkHhhoX9GS9SR/Rq3cWXO0OQqp1T+e6FWJ4=; b=INAoec5+lsCimKBTYZlJ97L+f6moZzYqpMRDkGpXgXoaE+sBSIlDJCC6bbuE3o0hdY C4jh16f84Yy3JCDua+fjC4BjXgBiiIFr7dCRXpu4APJb37B7DfKxRewBoUASEdOf1XTr 7zgS+3y9Xt4ED/qIzRVMZ9zCQSmzFXkBz0/6RSFjCoLrqFeGR5+wyE+oyXLMloDOXgXf LOQqnmsaXVXi1FbuuW2VxRIx8cPXZtIKJZtoraTaHsmNle7BklbfNDrmvDy5CNQeahkE 4I4gIcnzhNNGDPCByxe5gpc8z96HBFlCmo3op/JiQxjBMW41xlBtTBeQSKfZsOsy6brD prJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705724152; x=1706328952; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BmlFK80BqkHhhoX9GS9SR/Rq3cWXO0OQqp1T+e6FWJ4=; b=vLO59LvB5a+jXLdZkr+SKSLCvKbt5l/sgz4oolKBVvUemvXDM6jY+UkrrxcMR2YwEv oEoD0gzNLSyj0hgy4uK3iFw0dY61xfzq5cDwg/EJXJw2nHXvOAZfRi1Ok2520Vp2nKlf WOzzpV4dQ7JuoFk0q6Lv4VtLPRpz4TZdYlQJRJrBzwDNpXA19e/8k6Pp3P+lmf0tnPWL eiIol8UjmMxQbLoD4ng2wTG8k5nHzcm49fBcsYFHh/R2Iap9C9qxlefnDj6QfTGOFtEV HULettR+rq4no57TxXF8c1fRuEGjWtNHlReMj9wetSX/jUDcM2YMqCWwRATuilLaQmtC RAAA== X-Gm-Message-State: AOJu0YxWYR2f8Xqvqd383Gl3+Cuel6BmbfuoimThkf60lB9IG3DTqjXn G0MVWznegY3BsYT1y4XjDDJfFwuGFa7ziSSmUIpMJFkqNoXd+Klz+kL1tbmkZ1U= X-Google-Smtp-Source: AGHT+IH1orGr3tgtRCGx9SOAP3mFypzUScpvfxsnNUWPJFAud1nfhGEMwgXwYQY/63/vxqZG+ilpAA== X-Received: by 2002:ac8:58d1:0:b0:429:fea0:efc6 with SMTP id u17-20020ac858d1000000b00429fea0efc6mr1090267qta.71.1705724152384; Fri, 19 Jan 2024 20:15:52 -0800 (PST) Received: from hurd (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id jr42-20020a05622a802a00b0042545c7beccsm338461qtb.59.2024.01.19.20.15.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 20:15:51 -0800 (PST) From: Maxim Cournoyer In-Reply-To: (Efraim Flashner's message of "Fri, 19 Jan 2024 11:38:09 +0200") References: <33263f493ea13d0a468a73c9b704e1a0496c0a91.1705639243.git.maxim.cournoyer@gmail.com> Date: Fri, 19 Jan 2024 23:15:50 -0500 Message-ID: <87mst0hc7d.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello! Efraim Flashner writes: > On Thu, Jan 18, 2024 at 11:40:41PM -0500, Maxim Cournoyer wrote: >> * gnu/packages/dlang.scm (dmd-bootstrap, dmd): New variables. >> >> Change-Id: I53e00a429e2084a392341ef1bc7ea63f0fcaaab4 [...] >> +;;; Bootstrap version of phobos that is built with GDC, using GDC's standard >> +;;; library. >> +(define dmd-bootstrap >> + (package >> + ;; This package is purposefully named just "dmd" and not "dmd-bootstrap", >> + ;; as the final dmd package rewrites references from this one to itself, >> + ;; and their names must have the same length to avoid corrupting the >> + ;; binary. >> + (name "dmd") >> + (version "2.106.1") >> + (source (origin >> + (method git-fetch) >> + (uri (git-reference >> + (url "https://github.com/dlang/dmd") >> + (commit (string-append "v" version)))) >> + (file-name (git-file-name "dmd" version)) >> + (sha256 >> + (base32 >> + "1bq4jws1vns2jjzfz7biyngrx9y5pvvgklymhrvb5kvbzky1ldmy")))) >> + (build-system gnu-build-system) >> + (arguments >> + (list >> + #:disallowed-references (list (gexp-input (canonical-package gcc) >> + "lib")) >> + ;; Disable tests, as gdmd cannot cope with some arguments used such as >> + ;; '-conf'. >> + #:tests? #f >> + #:test-target "test" >> + #:make-flags >> + #~(list (string-append "CC=" #$(cc-for-target)) >> + ;; XXX: Proceed despite conflicts from symbols provided by both >> + ;; the source built and GDC. >> + "DFLAGS=-L--allow-multiple-definition" >> + "ENABLE_RELEASE=1" >> + (string-append "HOST_CXX=" #$(cxx-for-target)) >> + "HOST_DMD=gdmd" >> + (string-append "INSTALL_DIR=" #$output) >> + ;; Do not build the shared libphobos2.so library, to avoid >> + ;; retaining a reference to gcc:lib. >> + "SHARED=0" >> + (string-append "SYSCONFDIR=" #$output "/etc") >> + "VERBOSE=1" >> + "-f" "posix.mak") >> + #:phases >> + #~(modify-phases %standard-phases >> + (add-after 'unpack 'copy-phobos-source-and-chdir >> + ;; Start with building phobos, which in turns will automatically >> + ;; build druntime and dmd. A minimal dmd command is still >> + ;; required to do so, which is why we need dmd-bootstrap-0. >> + (lambda _ >> + (symlink "." "dmd") ;to please the build system expected layout >> + (copy-recursively >> + #$(origin >> + (method git-fetch) >> + (uri (git-reference >> + (url "https://github.com/dlang/phobos") >> + (commit (string-append "v" version)))) >> + (file-name (git-file-name name version)) > > you should probably switch name to "phobos", otherwise I assume it'll be > added as dmd. Good catch, done. > Also, is this the right way to add phobos as an input? It's the gexp way to add extra source files to a package workspace. We used to do this via labeled origins, but this is not possible in the label-less new world. I think it'd be cool to have a procedure that would take multiple source and merge them into one, possible using a copy-build-system like "plan" for the layout. Note: I tried building phobos separately at first, but that was a world of hurt, and the end result was a seg faulting dmd :-(. >> + (sha256 >> + (base32 >> + "1yw7nb5d78cx9m7sfibv7rfc7wj3w0dw9mfk3d269qpfpnwzs4n9"))) >> + "phobos") >> + (chdir "phobos"))) >> + (add-after 'copy-phobos-source-and-chdir 'adjust-phobos-install-dirs >> + (lambda _ >> + (substitute* "posix.mak" >> + ;; Install to lib directory, not to e.g. 'linux/lib64'. >> + (("\\$\\(INSTALL_DIR)/\\$\\(OS)/\\$\\(lib_dir)") >> + (string-append #$output "/lib")) >> + ;; Do not install license file, already done by the gnu build >> + ;; system. >> + ((".*\\$\\(INSTALL_DIR)/phobos-LICENSE.txt.*") "")))) >> + (delete 'configure) >> + (add-after 'install 'install-druntime >> + (lambda args >> + (chdir "../druntime") >> + (apply (assoc-ref %standard-phases 'install) args) >> + (chdir ".."))) > > Can this one be: > (with-directory-excursion "../druntime" > (apply (assoc-ref %standard-phases 'install) args)) Confusingly, no, as what I'm doing here is moving from ./phobos to ./druntime and finally to "."; i.e. the starting directory for the 'install-druntime phase is './phobos', not '.' Does that make some sense (writing it I'm doubtful, eh) ? > >> + (add-after 'install-druntime 'install-includes >> + (lambda _ >> + ;; Normalize the include files prefix to include/dmd. >> + (let ((include-dir (string-append #$output "/include/dmd"))) >> + (mkdir-p include-dir) >> + (rename-file (string-append #$output "/src/phobos") >> + (string-append include-dir)) >> + (copy-recursively "druntime/import" include-dir)) >> + (delete-file-recursively (string-append #$output "/src")))) >> + (add-after 'install-druntime 'install-dmd >> + (assoc-ref %standard-phases 'install)) > > Is this different than the regular install phase? I the install phase of druntime doesn't install its import includes, for some reason, and the install phase of phobos puts them under src/phobos instead of include/dmd. >> + (add-after 'install-license-files 'refine-install-layout >> + (lambda _ >> + (let* ((docdir (string-append #$output "/share/doc/" >> + (strip-store-file-name #$output))) > > is strip-store-file-name better than #$name "-" #$version ? I got bit by gexps being expanded in-place and not being rewritten in the inherited package, so to reuse that phase I had to use dynamic alternatives. >> + ;; The dmd binary gets installed to >> + ;; e.g. /linux/bin64/dmd. >> + (dmd (car (find-files #$output "^dmd$"))) >> + (dmd.conf (car (find-files #$output "^dmd.conf$"))) >> + (os-dir (dirname (dirname dmd)))) >> + ;; Move samples from root to the doc directory. >> + (rename-file (string-append #$output "/samples") >> + (string-append docdir "/samples")) >> + ;; Remove duplicate license file. >> + (delete-file (string-append #$output >> + "/dmd-boostlicense.txt")) >> + ;; Move dmd binary and dmd.conf. >> + (install-file dmd (string-append #$output "/bin")) >> + (install-file dmd.conf (string-append #$output "/etc")) >> + (delete-file-recursively os-dir)))) >> + (add-after 'refine-install-layout 'patch-dmd.conf >> + (lambda* (#:key outputs #:allow-other-keys) >> + (substitute* (search-input-file outputs "etc/dmd.conf") > > I only see 1 output, so this should probably be > (string-append #$output "/etc/dmd.conf") The search-input-file on outputs is a defensive trick: it fails with a clear error message when the file isn't found (I can't say that much about substitute* ^^'). So it's used here to test the file got installed there as expected. Thanks for taking a look! -- Maxim From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 6/6] gnu: qt-creator: Add support for demangling D and Rust symbols. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 04:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: Andreas Enge , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 68554@debbugs.gnu.org Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170572443215583 (code B ref 68554); Sat, 20 Jan 2024 04:21:02 +0000 Received: (at 68554) by debbugs.gnu.org; 20 Jan 2024 04:20:32 +0000 Received: from localhost ([127.0.0.1]:60632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR2qN-00043H-Ps for submit@debbugs.gnu.org; Fri, 19 Jan 2024 23:20:32 -0500 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:54596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR2qL-000434-Nl for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 23:20:31 -0500 Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-7831806c51bso111370985a.1 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 20:20:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705724421; x=1706329221; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=4zQMx8CQWLwmSqVrAiRZ+91UuMCSEhGEdZ+yqod4tDg=; b=Ma/tw9mXDjDjnEvZmm1MsufOMCvnN4J5iw/hx+KM0XHyl4FbfS7EGwi9ahUEKjyOk8 xkRgqo18iNYdq/8e7K+gJPr9DTHBzaPsTqjVQn4C3AglvYvAgR5F7nY/SgRC71ZgVr3B ES9bZ0YUoN+73zGPNXQfk25xr9qpI7/TDVbfN9tTrJirlnjet87E05d1N2c5jD/SMueK 4oE4pOZFlaF4XhTWsk3ZiyJ27vrnZ4EieqiAMF0l0YzkZAWwKISJmsJImnzHCUUgmiZ2 dpwcGvQVMXE7f8Ok7Qxw+yoOJ9QnZDEviSwInM1EaJhj2FfdTFzv+TROLLpYwJ+IGCB8 ztmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705724421; x=1706329221; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4zQMx8CQWLwmSqVrAiRZ+91UuMCSEhGEdZ+yqod4tDg=; b=UHRbL1sVBRNo0G3kJOrhoHW3rm1oc2r2zzG1zj37VGxynYHubUBKI78IkfzEuXHBr8 NklE/9XnaJ3K56Be8btLWnLjUv3bTST8kpNkAplfbgbnQJoM4ujbRLgpDuy8whi2hh4C uOQ5l9A0c95KpmvV/TfNMMHUi6Uvz7aBMfnbVoWmbJ68QzH7mqRcwHaMZJZ7zZoCi1ah 4URAFpLLBpFbU1MwCTxvU23hG7xcC3+rs2aV1lW/gSz+8LE6u/z9gJq1B/L1RYogNsIB tYlZfD2yu2zNGbFtLHE3MVdh/Aa8oRdsrMdztsj1b4kRQ0QUHRSCUwBC/Lji92RPXQMR dS9Q== X-Gm-Message-State: AOJu0Yx1hZ0yNo4WPQv2svSv6y3T2nRp4MgTVAQeBVeA0KaAkmrsuBn7 ehCz//swB4IrQ1iMQOx0kaQ2uRSAvjAhox6wzoyYbgHeCtggHwGc4xtxD1WU X-Google-Smtp-Source: AGHT+IEi1WpJUOpVpYj9zWFZ7ZPY45ES7oVRiYzVHPWRB4FcXRbExsQmnYjEJDYU+oZecJGKEufaHA== X-Received: by 2002:a05:620a:4622:b0:783:176b:f598 with SMTP id br34-20020a05620a462200b00783176bf598mr1181333qkb.89.1705724421455; Fri, 19 Jan 2024 20:20:21 -0800 (PST) Received: from hurd (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id o26-20020a05620a22da00b00783255108d5sm285077qki.50.2024.01.19.20.20.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 20:20:21 -0800 (PST) From: Maxim Cournoyer In-Reply-To: (Efraim Flashner's message of "Fri, 19 Jan 2024 11:38:43 +0200") References: <28d70fb832f7387dfc0abff39d1139367ad50ed3.1705639243.git.maxim.cournoyer@gmail.com> Date: Fri, 19 Jan 2024 23:20:19 -0500 Message-ID: <87il3ohbzw.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Efraim Flashner writes: > I'm pretty sure dmd would be supported everywhere qtbase is, but > rust-rustc-demangle-capi-0.1 should be wrapped with supported-package? OK! I wasn't aware of supported-package?, thanks for suggesting. Should be in v4. -- Thanks, Maxim From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v4 0/5] Add DMD, the D language reference compiler. References: In-Reply-To: Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, maxim.cournoyer@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 04:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: efraim@flashner.co.il, Maxim Cournoyer , Andreas Enge , Maxim Cournoyer , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: Andreas Enge , Maxim Cournoyer , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170572569427855 (code B ref 68554); Sat, 20 Jan 2024 04:42:02 +0000 Received: (at 68554) by debbugs.gnu.org; 20 Jan 2024 04:41:34 +0000 Received: from localhost ([127.0.0.1]:60645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Aj-0007FD-JR for submit@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:33 -0500 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:61788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Ah-0007Ew-Ko for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:32 -0500 Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-427ca22a680so9767121cf.3 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 20:41:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705725683; x=1706330483; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cU62x8ivo7yfoQcsc5WsWKQmJuTBKb6sKW76p4Mc/k4=; b=HBigbSluMo+Uz1iKBjaTv2nHVLZwWdx+o1npmhvoY+JplfcsMFyl75lVdQUJja+vB+ OZHtBTDsMiYlWySs/hcKyOPGP1rvl58sHDEY2cJsGJ7jXTPHm08G1Af2gGNZAWLyA1LP TYCZW1w3oZaLfLs3VrUIwjSP640NMbQgyCp69/9ePlzv+8cu9irSj84y1ktZoGKQAqYH P8Cvlwi2mg9O74m5qyRTR+bVNev19hYHNQBkUaWPa/P7Q+N9bK4hdzOG516DViIXcI/L 2TGyWoXVIg3fVcIZjSA/nYw3IulcG+Or/YqAYBzD+4JgPxh9OWk1V4Nlbec4S40K9Ike 9Obg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705725683; x=1706330483; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cU62x8ivo7yfoQcsc5WsWKQmJuTBKb6sKW76p4Mc/k4=; b=szJ7jvRHC8bgn1Txz5dhGgH30WlvbWLzh8mtgciX10qpZ6czaFQ0+B762kLc1rHp8o iiXG8z09OgpTMFjhJP5avm2kRvtz4FltPGmHlP0UdUjOL5UZruN7WT4BLGzfiEYgZW5a +hyISJgu0mI+QuBGNYqKJJZucYKeqV5UZRg3rL4UczwQwT1EHT2bAybwGch7U/gUdCN2 mMkLqgaMvM7xza1b5FxK9H/W/RUxPgo9v+3PhztIltJK6902Djd3AeHpO67cVC056iHz Gzv/H5OkDMn/uMkBLOjvpsUYZPtpqC4kuQrBiJ7dWQi/CA0J6hoTuK44SQMM4DunOaV7 BCeQ== X-Gm-Message-State: AOJu0YwYCsGg4ELTJA889sWkVE+v4fOHIsyjLQkrlztoPtHZyd78sIOb NbtpgQYvX13goJNE0YcueLfbjTZh8d/VeF5f+4ScN9FnjIdXe+9WEIdWlGFw X-Google-Smtp-Source: AGHT+IHJW2rFJH/VdxmUYMAa/uPNsdVkhrYKUxQOx8L68AGd9uTumLXi54Imp4KR0nt5/iSuqfNkSQ== X-Received: by 2002:ac8:588a:0:b0:429:912e:b5ad with SMTP id t10-20020ac8588a000000b00429912eb5admr1248091qta.122.1705725682960; Fri, 19 Jan 2024 20:41:22 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id ci21-20020a05622a261500b0042998676bc3sm363348qtb.43.2024.01.19.20.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 20:41:22 -0800 (PST) From: Maxim Cournoyer Date: Fri, 19 Jan 2024 23:37:04 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This series adds DMD, bootstrapped via GDC. Changes in v4: - Name phobos source as "phobos" (thanks to Efraim) - Only add rust-rustc-demangle-capi-0.1 input if supported Changes in v3: - Add packages built from dmd and D demangling support to qt-creator Changes in v2: - Build make flags via inheritance... - Fixing the missing SYSCONFDIR make flag Maxim Cournoyer (5): gnu: Add gdc alias. gnu: gdmd: Replace gdc-11 with gdc alias. gnu: Add dmd. gnu: Add d-demangler. gnu: qt-creator: Add support for demangling D and Rust symbols. gnu/packages/dlang.scm | 202 ++++++++++++++++++++++++++++++++++++++++- gnu/packages/gcc.scm | 6 ++ gnu/packages/qt.scm | 41 +++++---- 3 files changed, 229 insertions(+), 20 deletions(-) base-commit: 9c367ee1967b213b507a8bf041ea6c2623ceea96 -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v4 1/5] gnu: Add gdc alias. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: ludo@gnu.org, guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 04:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: efraim@flashner.co.il, Maxim Cournoyer , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170572569827879 (code B ref 68554); Sat, 20 Jan 2024 04:42:02 +0000 Received: (at 68554) by debbugs.gnu.org; 20 Jan 2024 04:41:38 +0000 Received: from localhost ([127.0.0.1]:60649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3An-0007Fa-Tx for submit@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:38 -0500 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:56769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Ak-0007F0-9D for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:34 -0500 Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-42a1ee4a727so11798371cf.1 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 20:41:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705725685; x=1706330485; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=96nU2nECBRZDrMZ5Y4hoDZFoM4zdwr8+v8q54nn0UBc=; b=APIMr53/i5FaE9NEkVlamoKblJqxypnghZ3clf2Bj+cwKq4lzmv/yGGhFBSbS1hNhL RjRCb1zuRmL8Z064X6yI8WvBVIbYv90mVpnTGaxp66i+E3hQHNnEejwdx/dQyFhSL3E/ Yb6qMsaidMYabrbFFwoczYnOnki4F/0I9Zgc8jyuSi5H27nZ7xWX5bOfMi+SPv/L9cFP gQfD/buVDsncWk8jv3ijSYaYJwAe6r+SI7Duvpib1wXm6TLy/kXtmPbVcHoiObXeoYHa hwDCx+be6cDkI3HxgfKxugVMCu+s/D6NP1XOw0FxYklfYV4UgY+dBGump9kt2DysiVXB av/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705725685; x=1706330485; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=96nU2nECBRZDrMZ5Y4hoDZFoM4zdwr8+v8q54nn0UBc=; b=r98xIkdrF7QneLmZeZrOSq26+3yYW4WFNmn7uUpJJl0nyMxzig6Gw3cKtrQZFWvKdz 9wpzXwhtehoRAb/+/PpryLq/2RQPRj1nxgtwMq9hBQWzDr4jxqCdRODoverbeq1JQkqK 2TldOkBHOdnWEjwCC77sOBTNf5EnD4TWz5QT5nhPu1SDcNZ34PDdmj4KFLGDw0DB+nA5 hVksVOdq4fCyApsBh/xkyHrwr8vPUSn9BWzP8JGHVz7m5osBD8+VTUpEaP51nI7TuwjV 6K7bzXtzL4y8gPqa0pEBjRqiEmcKRhD7+U4gN7TMUMJQWMfE0VUkdUmQF4IpRi9A8co/ oI+g== X-Gm-Message-State: AOJu0YyZBNIkHBJm2tqkY9dp5GNBq5opmVgNnQNRzmHhtEHRPE3y3Zxa AEXYRC3MpiW8hWtPZEPqFVb2b/jw2leJEkj+XsXeLW4kB5mWJXV3R6vC0d8L X-Google-Smtp-Source: AGHT+IH5L7myo4iIy7z2KKpC9cb2Kz1t8Hlz1/+nc5h8Pq+F+92LinJUmMXxnqnpTUAsBNbAEDOWhg== X-Received: by 2002:a05:622a:1985:b0:42a:3248:1885 with SMTP id u5-20020a05622a198500b0042a32481885mr15851qtc.31.1705725685618; Fri, 19 Jan 2024 20:41:25 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id ci21-20020a05622a261500b0042998676bc3sm363348qtb.43.2024.01.19.20.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 20:41:25 -0800 (PST) From: Maxim Cournoyer Date: Fri, 19 Jan 2024 23:37:05 -0500 Message-ID: <6000b23d13ded3692f01ac6ba773d24ea428d6b1.1705725428.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/gcc.scm (gdc): New variable. Change-Id: I38447e46ffba44d3a9d3757d34fe9ff081803457 --- (no changes since v1) gnu/packages/gcc.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 6eb01f33a6..5344278174 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -1124,6 +1124,12 @@ (define-public gdc-11 (custom-gcc gcc-11 "gdc" '("d") %generic-search-paths))) +;;; Alias tracking the latest GDC version. +(define-public gdc + (hidden-package + (custom-gcc gcc "gdc" '("d") + %generic-search-paths))) + (define-public (make-libgccjit gcc) (package (inherit gcc) -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v4 2/5] gnu: gdmd: Replace gdc-11 with gdc alias. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 04:42:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: efraim@flashner.co.il, Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170572569827887 (code B ref 68554); Sat, 20 Jan 2024 04:42:03 +0000 Received: (at 68554) by debbugs.gnu.org; 20 Jan 2024 04:41:38 +0000 Received: from localhost ([127.0.0.1]:60651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Ao-0007Fc-7U for submit@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:38 -0500 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]:51359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Am-0007F4-6u for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:36 -0500 Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-4298d7952d9so7622241cf.2 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 20:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705725687; x=1706330487; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sVyeW+QfnHI4PpvlRMeKI4xqHEjQL3MZf3iSi/aeN5M=; b=gjy2k1myQAD6yQNnHdAW2kFvu0/qiXxcU2YmALQFcHHeM/Xsgm9wF8xrS8AmOKn2Ol 3pG7L2RVHZAokG2FAw1FNCC7zkqsieqB2HrNm81mL4lDnKuJORuv1GDf2Q+3xJUrLIne piP4rxdmPSZ0vKDFuNV7rEkTPBXZz9ryiCcT87PWWwSwrxp8qSlRa4HQ5qDbzjTV9nTS pkIG0F6LNdpeAbE5OgS8uN3U/215kXnBLEFDGvO5Vrn4ZaKlYFa6oDP/l9XNa6j6o4WE sFBqI0aLu7SZn9nxRsjCTKs3kVSvxRiJUzv/UnCTWuALpgddLK6Y8dM3KzidvB0lSNVb TnDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705725687; x=1706330487; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sVyeW+QfnHI4PpvlRMeKI4xqHEjQL3MZf3iSi/aeN5M=; b=iV9jmlL78jdMPZcMpR0SYFwo8Rcsr3e+73uB8KrraZLcsjCJeK7ldmiZqEoEboi/Or WbJ8qrPSrHFVj+9X/6o4H+TNeOpOT/IFyas6f1AShAiJUFqcUgbA/7IR4Uvx3FKCSEAX EQcWidXtc0H5eqTu5jaqrK8MAKmxQQ6aQyFsZfUAhSKU0r/C/wYynhUrCcPaYRSV9kLS HHCbnOqpc2XuYKWqORlO19SeMEnRgZd4FCl8MKxQh3edwlSa6owkWME/Fq7qTyiyW2kC q+auHUoK78dId9mqw7mY24Qy7U0zEJG1Zr1JvrxPjxNrKAPIklBdrnVXR/3zAUMzVRYu Bo5w== X-Gm-Message-State: AOJu0YzbbMxfZmNZRrU6dGPCg1AUAc6U5+y9u4np1yEcIxlbpRYGwFu0 wxrfVcWB/sBKZRKewFn9C5p6i/4LpU0xkWB6+3095oFWQrcuOp5sQKSKY+BY X-Google-Smtp-Source: AGHT+IEG9HdXltKRA6iNa21S+q5cDrUIRNIGy4UMhKhD7E/ilHBWRZbBPFt5wjplCvb1eB3sUMfKNQ== X-Received: by 2002:ac8:5a47:0:b0:42a:266c:5906 with SMTP id o7-20020ac85a47000000b0042a266c5906mr1339177qta.22.1705725687634; Fri, 19 Jan 2024 20:41:27 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id ci21-20020a05622a261500b0042998676bc3sm363348qtb.43.2024.01.19.20.41.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 20:41:27 -0800 (PST) From: Maxim Cournoyer Date: Fri, 19 Jan 2024 23:37:06 -0500 Message-ID: <747a5469d0300a2c97b11f34bcc91cf2427ef548.1705725428.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (gdmd) [inputs]: Replace gdc-11 with gdc. Change-Id: Ie035bb79c128c266cee85cf11bf79216f4f8b454 --- (no changes since v1) gnu/packages/dlang.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 61823714f6..5c9766110d 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -136,8 +136,7 @@ (define-public gdmd (string-append "my $gdc_dir = \"" (dirname (search-input-file inputs "/bin/gdc")) "\";\n")))))))) - (inputs - (list gdc-11 perl)) + (inputs (list gdc perl)) (home-page "https://github.com/D-Programming-GDC/gdmd") (synopsis "DMD-like wrapper for GDC") (description "This package provides a DMD-like wrapper for the -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v4 3/5] gnu: Add dmd. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 04:42:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: efraim@flashner.co.il, Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170572570527917 (code B ref 68554); Sat, 20 Jan 2024 04:42:03 +0000 Received: (at 68554) by debbugs.gnu.org; 20 Jan 2024 04:41:45 +0000 Received: from localhost ([127.0.0.1]:60656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Au-0007GC-Og for submit@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:45 -0500 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]:48187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Ao-0007FB-6O for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:39 -0500 Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-4298b23abffso8559551cf.0 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 20:41:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705725689; x=1706330489; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T2SVT8GWHVM/vTnWKRBtbPpO6QjWXJoXNql5sflZpTU=; b=gW3FCNrnwPQDb9+9Ss2VjBED9CwOS9ejzqUjqjXUscSoAmOAcwxsSJs1JjiaFvQF/H HyCuaRlW7Yzw/nc6qsxKqtSZ/wmA2UBGPdtFSPK//kLqpvIAifq/jJbyyX4+AVUrr4qU iQuXfrnFQYGj45ZGWqKOV2JFQRGQ3lcQqJqWZm2N53N2H6P0CPzYlI87Y4Cs3uQI/qWm 2/0N3w47gE5fIpP/RqEdNM1bCDAe0bctX9i/S1z45cHsXRpqnCWGpiKBCiZQRuQCfErh NYlvg2zh5PNotEhP5f0zhyncshngRm565JQF/VTzDGT0lPcy0vWhEN8kJx/Rl4Xtgv8J 7Twg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705725689; x=1706330489; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T2SVT8GWHVM/vTnWKRBtbPpO6QjWXJoXNql5sflZpTU=; b=Dvmd5yzVXcY1eOorA0IZbyQi4TMEwZKFf0bULgjlhmsKNBKJNu78qbh6susUgIwiDs jLsJ3ffxzRPjXLGezDAWNi5jkP6kzS+9T22e+a9jXGobkz6iOQLEGdO0vyzNGbOQcwc/ oIn2tTi6sJtMtZZTpimIWC63owYv4dHRKlgsBjJNKU2rVNrPgyt9Z/tWhmG7BLWlp1o0 mm3lUH54i1XtnLuvtD2Z7pkvIR7qWwvX8kUj1FK2IOaobYnmcYOX7IjWQNMi9l1CSfY6 1DyDlvI6goKeT1EWDxyDT9Xi2RmqdJ7rOEmLXwRlj5LJk+NFitm2ixba2WLtP/8FAalf Stzw== X-Gm-Message-State: AOJu0YyLOW7bJbds33uKUK3AMfsiJ3CmtZKyBdfgPBUmXGV5wrZTy6Ki gPVgN/ohtd7+3WRsGpxyga/Mn5HqnKPB0NjFlR+2UlaTcU3pAWoN4RmapGAo X-Google-Smtp-Source: AGHT+IE+/WoAYVz25/oZvJ625MMHbUYQjGlbKaY+A8RN7ye0collk+6KYYw/92lF9OZp1zU5oOuh5A== X-Received: by 2002:ac8:5911:0:b0:42a:1e34:5dc3 with SMTP id 17-20020ac85911000000b0042a1e345dc3mr1202126qty.17.1705725689630; Fri, 19 Jan 2024 20:41:29 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id ci21-20020a05622a261500b0042998676bc3sm363348qtb.43.2024.01.19.20.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 20:41:29 -0800 (PST) From: Maxim Cournoyer Date: Fri, 19 Jan 2024 23:37:07 -0500 Message-ID: <5e228e1b02057ef071c8c4eb7efda8706be8cda0.1705725428.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (dmd-bootstrap, dmd): New variables. Change-Id: I53e00a429e2084a392341ef1bc7ea63f0fcaaab4 --- Changes in v4: - Name phobos source as "phobos" (thanks to Efraim) Changes in v3: - Add packages built from dmd and D demangling support to qt-creator Changes in v2: - Build make flags via inheritance... - Fixing the missing SYSCONFDIR make flag gnu/packages/dlang.scm | 165 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 165 insertions(+) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 5c9766110d..58411166b7 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -358,6 +358,171 @@ (define-public ldc `(("clang" ,clang-14) ;propagates llvm and clang-runtime ("python-lit" ,python-lit)))))) +;;; Bootstrap version of phobos that is built with GDC, using GDC's standard +;;; library. +(define dmd-bootstrap + (package + ;; This package is purposefully named just "dmd" and not "dmd-bootstrap", + ;; as the final dmd package rewrites references from this one to itself, + ;; and their names must have the same length to avoid corrupting the + ;; binary. + (name "dmd") + (version "2.106.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dlang/dmd") + (commit (string-append "v" version)))) + (file-name (git-file-name "dmd" version)) + (sha256 + (base32 + "1bq4jws1vns2jjzfz7biyngrx9y5pvvgklymhrvb5kvbzky1ldmy")))) + (build-system gnu-build-system) + (arguments + (list + #:disallowed-references (list (gexp-input (canonical-package gcc) + "lib")) + ;; Disable tests, as gdmd cannot cope with some arguments used such as + ;; '-conf'. + #:tests? #f + #:test-target "test" + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + ;; XXX: Proceed despite conflicts from symbols provided by both + ;; the source built and GDC. + "DFLAGS=-L--allow-multiple-definition" + "ENABLE_RELEASE=1" + (string-append "HOST_CXX=" #$(cxx-for-target)) + "HOST_DMD=gdmd" + (string-append "INSTALL_DIR=" #$output) + ;; Do not build the shared libphobos2.so library, to avoid + ;; retaining a reference to gcc:lib. + "SHARED=0" + (string-append "SYSCONFDIR=" #$output "/etc") + "VERBOSE=1" + "-f" "posix.mak") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'copy-phobos-source-and-chdir + ;; Start with building phobos, which in turns will automatically + ;; build druntime and dmd. A minimal dmd command is still + ;; required to do so, which is why we need dmd-bootstrap-0. + (lambda _ + (symlink "." "dmd") ;to please the build system expected layout + (copy-recursively + #$(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dlang/phobos") + (commit (string-append "v" version)))) + (file-name (git-file-name "phobos" version)) + (sha256 + (base32 + "1yw7nb5d78cx9m7sfibv7rfc7wj3w0dw9mfk3d269qpfpnwzs4n9"))) + "phobos") + (chdir "phobos"))) + (add-after 'copy-phobos-source-and-chdir 'adjust-phobos-install-dirs + (lambda _ + (substitute* "posix.mak" + ;; Install to lib directory, not to e.g. 'linux/lib64'. + (("\\$\\(INSTALL_DIR)/\\$\\(OS)/\\$\\(lib_dir)") + (string-append #$output "/lib")) + ;; Do not install license file, already done by the gnu build + ;; system. + ((".*\\$\\(INSTALL_DIR)/phobos-LICENSE.txt.*") "")))) + (delete 'configure) + (add-after 'install 'install-druntime + (lambda args + (chdir "../druntime") + (apply (assoc-ref %standard-phases 'install) args) + (chdir ".."))) + (add-after 'install-druntime 'install-includes + (lambda _ + ;; Normalize the include files prefix to include/dmd. + (let ((include-dir (string-append #$output "/include/dmd"))) + (mkdir-p include-dir) + (rename-file (string-append #$output "/src/phobos") + (string-append include-dir)) + (copy-recursively "druntime/import" include-dir)) + (delete-file-recursively (string-append #$output "/src")))) + (add-after 'install-druntime 'install-dmd + (assoc-ref %standard-phases 'install)) + (add-after 'install-license-files 'refine-install-layout + (lambda _ + (let* ((docdir (string-append #$output "/share/doc/" + (strip-store-file-name #$output))) + ;; The dmd binary gets installed to + ;; e.g. /linux/bin64/dmd. + (dmd (car (find-files #$output "^dmd$"))) + (dmd.conf (car (find-files #$output "^dmd.conf$"))) + (os-dir (dirname (dirname dmd)))) + ;; Move samples from root to the doc directory. + (rename-file (string-append #$output "/samples") + (string-append docdir "/samples")) + ;; Remove duplicate license file. + (delete-file (string-append #$output + "/dmd-boostlicense.txt")) + ;; Move dmd binary and dmd.conf. + (install-file dmd (string-append #$output "/bin")) + (install-file dmd.conf (string-append #$output "/etc")) + (delete-file-recursively os-dir)))) + (add-after 'refine-install-layout 'patch-dmd.conf + (lambda* (#:key outputs #:allow-other-keys) + (substitute* (search-input-file outputs "etc/dmd.conf") + (("lib(32|64)") + "lib") + (("\\.\\./src/(phobos|druntime/import)") + "include/dmd"))))))) + (native-inputs (list gdmd which)) + (home-page "https://github.com/dlang/dmd") + (synopsis "Reference D Programming Language compiler") + (description "@acronym{DMD, Digital Mars D compiler} is the reference +compiler for the D programming language.") + (license license:boost1.0))) + +;;; Second bootstrap of DMD, built using dmd-bootstrap, with its shared +;;; libraries preserved. +(define-public dmd + (package + (inherit dmd-bootstrap) + (arguments + (substitute-keyword-arguments + (strip-keyword-arguments + '(#:tests?) ;reinstate tests + (package-arguments dmd-bootstrap)) + ((#:disallowed-references _ ''()) + (list dmd-bootstrap)) + ((#:modules _ ''()) + '((guix build gnu-build-system) + (guix build utils) + (srfi srfi-1))) ;for fold + ((#:make-flags flags ''()) + #~(fold delete #$flags '("DFLAGS=-L--allow-multiple-definition" + "HOST_DMD=gdmd" + "SHARED=0"))) + ((#:phases phases '%standard-phases) + #~(modify-phases #$phases + (add-after 'patch-dmd.conf 'rewrite-references-to-bootstrap + ;; DMD keeps references to include files used to build a + ;; binary. Rewrite those of dmd-bootstrap to itself, to reduce + ;; its closure size. + (lambda* (#:key native-inputs inputs outputs + #:allow-other-keys) + (let ((dmd (search-input-file outputs "bin/dmd")) + (dmd-bootstrap (dirname + (dirname + (search-input-file + (or native-inputs inputs) + "bin/dmd"))))) + ;; XXX: Use sed, as replace-store-references wouldn't + ;; replace the references, while substitute* throws an + ;; error. + (invoke "sed" "-i" + (format #f "s,~a,~a,g" dmd-bootstrap #$output) + dmd)))))))) + (native-inputs (modify-inputs (package-native-inputs dmd-bootstrap) + (replace "gdmd" dmd-bootstrap))))) + (define-public dub (package (name "dub") -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v4 4/5] gnu: Add d-demangler. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 04:42:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: efraim@flashner.co.il, Maxim Cournoyer Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170572570627925 (code B ref 68554); Sat, 20 Jan 2024 04:42:04 +0000 Received: (at 68554) by debbugs.gnu.org; 20 Jan 2024 04:41:46 +0000 Received: from localhost ([127.0.0.1]:60658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Av-0007GE-Bi for submit@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:45 -0500 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]:48564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Ap-0007FQ-V5 for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:40 -0500 Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-42a032cf012so11487051cf.1 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 20:41:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705725691; x=1706330491; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H1zV5S4E8xoSuGv0EGbzRMYmwoPAaeEb/lQpSKtVPRs=; b=g5HcidbHUlN5OLAMNv8WNIUidy8lsI4tNaaGl3ZJOIhXfjYM2NvKah/fk4Z+1xR5xT MhJ8glpzXfPzQbhfI9q2hF+NHfQu5ewy1S1NfsnHZI4HManISet/8EgwItw4eZknEThq o/MpJo33dMmIG0JWen7/CpoVWeUJtXTEKvaorOcYeclDMohp2mtzLlxs3bLTialPqmNw 5rqQCD/dz6J3s068yguTFOfu+9yIA0ITpyh6n7KVdK++pXEh7gAJXiuas3/OIiIOK0Du y2OWOROkk3GAkPeKOok3ZlGOnk8cOIIlhGidYwgbXDZk/aW4BppfP44MIlBoIKuVq1BV Y5ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705725691; x=1706330491; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H1zV5S4E8xoSuGv0EGbzRMYmwoPAaeEb/lQpSKtVPRs=; b=MqKCOHF3i0FNr2FayLYHKXyMTu1pUFNSewQyXEZEIqVIsOPOm8Im9b3DDhfZC69w0R DdRKq+ntEjhQXbowkuf2Zx5/loJJr/iWzFwJwfWCiq/e4OBGVdzOtdy592XozKwUhv8u bTKi7TY4u/mVbFRdkxMAMH0tda5M/CKwSsbVSxJ7H34Gun+alQhpV5x3S9Ist4QwzoaB grkSx86qxfjI8NphYnfgtM7yrGxG5pGt+kMRppiIbyfDqoAWpOlrI3q7bHQy2YztXiZS Sc1T4/9r3OV4YND2+cqge//3HmVgs5g8To9Nst2EVr0Yo3SMuVenUorHamjRAibiBf7K OrZQ== X-Gm-Message-State: AOJu0YwjT6ovbBSJcLsewSlh3q8+2axzjUaoNAVUVdMKDLVqsp0U3hC6 ef+aXxHy1n3vzYHlfEXx5FJboH7ddUDQRpB5vk7Irbcy8B1ilcXHG4HExmvn X-Google-Smtp-Source: AGHT+IF6lm5/zXp3Zt+zNbkuLOAYj2duv2gvJlveoxbJR9UE5gu6zkhaaMlPv0ueuLunUc4b/jf5IA== X-Received: by 2002:ac8:58cf:0:b0:42a:3093:1792 with SMTP id u15-20020ac858cf000000b0042a30931792mr394754qta.33.1705725691484; Fri, 19 Jan 2024 20:41:31 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id ci21-20020a05622a261500b0042998676bc3sm363348qtb.43.2024.01.19.20.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 20:41:31 -0800 (PST) From: Maxim Cournoyer Date: Fri, 19 Jan 2024 23:37:08 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/dlang.scm (d-demangler): New variable. Change-Id: Ic1dc8fb8adc1b4be859552e4add074a35bdfc6d0 --- (no changes since v1) gnu/packages/dlang.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/gnu/packages/dlang.scm b/gnu/packages/dlang.scm index 58411166b7..e3052cc032 100644 --- a/gnu/packages/dlang.scm +++ b/gnu/packages/dlang.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2017, 2019, 2022 Tobias Geerinckx-Rice ;;; Copyright © 2020 Guy Fleury Iteriteka ;;; Copyright © 2021-2023 Efraim Flashner -;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2021, 2024 Maxim Cournoyer ;;; Copyright © 2022 ( ;;; Copyright © 2022 Esther Flashner ;;; @@ -617,3 +617,35 @@ (define-public gtkd (synopsis "D binding and OO wrapper of GTK+") (description "This package provides bindings to GTK+ for D.") (license license:lgpl2.1))) + +(define-public d-demangler + (package + (name "d-demangler") + (version "0.0.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lievenhey/d_demangler") + (commit (string-append "version-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "13lbbxlaa1mffjs57xchl1g6kyr5lxi0z5x7snyvym0knslxwx2g")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ;no test suite + #:make-flags #~(list (string-append "CC=" #$(cc-for-target)) + "d_demangle") + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda _ + (install-file "libd_demangle.so" + (string-append #$output "/lib"))))))) + (native-inputs (list dmd)) + (home-page "https://github.com/lievenhey/d_demangler") + (synopsis "Utility to demangle D symbols") + (description "@command{d_demangle} is a small utility that can be used to +demangle D symbols. A shared library is also provided.") + (license license:gpl3+))) -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v4 5/5] gnu: qt-creator: Add support for demangling D and Rust symbols. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, maxim.cournoyer@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Sat, 20 Jan 2024 04:42:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68554@debbugs.gnu.org Cc: efraim@flashner.co.il, Maxim Cournoyer , Andreas Enge , Maxim Cournoyer , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: Andreas Enge , Maxim Cournoyer , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170572570627931 (code B ref 68554); Sat, 20 Jan 2024 04:42:04 +0000 Received: (at 68554) by debbugs.gnu.org; 20 Jan 2024 04:41:46 +0000 Received: from localhost ([127.0.0.1]:60660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3Av-0007GM-Rb for submit@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:46 -0500 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:43458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rR3As-0007FY-45 for 68554@debbugs.gnu.org; Fri, 19 Jan 2024 23:41:42 -0500 Received: by mail-qt1-x82a.google.com with SMTP id d75a77b69052e-429bec01aa9so19963491cf.1 for <68554@debbugs.gnu.org>; Fri, 19 Jan 2024 20:41:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705725694; x=1706330494; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4g61Em+VVMcu6qoS/ZcQtfkhs9p5oCjT+pQ2bnMSh2E=; b=CKOWK2LtvAAkL37+e8oVFy0Qkjd1N3Z9D7z7v7SeC6gZDNvZsjKhQidimEeobOkYAX /BbWTxkMLvUZTLaJWOtsDasd3aP/nrJUP5hymodQpFMrTqenGn7P50v1bNQE5h3iWM0t 2yl0UZK3mVtS0hZWoC0c7o8oF3S2b6+rn2XRbIg0nIKREwt+kRamMMnPkOmR74EzM/u6 rSfI02yAy+ambyBjBBJTnyrgsxL/QZjbF6zm1ZjsGyoTmQm5JhvbMVCX248cf3pZLbKU kkKQGhk8sdicYoXcjV17MGHpQf/f56DCH+6tuVVN91nHXREybpj5p1ooLJfQYcX/65b1 knBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705725694; x=1706330494; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4g61Em+VVMcu6qoS/ZcQtfkhs9p5oCjT+pQ2bnMSh2E=; b=ew5Go+OgW2El4DLDyuSuHMmz1OH3wVekn/rdr2uRxAqiYgHEm69SEbmZLPQ9jlucIq 1xWR/s8a7wsMntjSOOn5VY/RWFJEPHVmKbBZsPSBACgafUtcVNalFPkigMeccaxZC86E jImsZ0mqyZJem62ED/bkrG2+reJDFqdnAKLwJTKOjG3QuqUoyqbPyc/cGHmBxTRWifd4 cwXzsQRF1VMIXZaA9jonuvcTcOU9YoGe3ZYULzW6/TA2NQR2MZAPAIOOSf0p863M3CHM kxldyfUflOslyOc+kaOro7XGZQmZgqrYneIbE7XkYD4poI5+Lo4ufrUIVBey9Rr4SR2j b8jA== X-Gm-Message-State: AOJu0YzXrm8/d+JDSAbj3+FCAsvJxtKOuxvatESZiPFh34S3KCmSG+HV P1Up26FQ4eUbKTfCKFiZ5QcmKb6cOODn8vYz8d/yL34kkQFL+CGmW2qcHoWr X-Google-Smtp-Source: AGHT+IFR+yjTGytRGrj6bab3P9MyQD0IVTQHvozqOI+t5X1n3k5TBp3Dj4N+T0NYo8ueSUOW1+h0yw== X-Received: by 2002:ac8:5c52:0:b0:42a:203c:e460 with SMTP id j18-20020ac85c52000000b0042a203ce460mr1476036qtj.24.1705725693663; Fri, 19 Jan 2024 20:41:33 -0800 (PST) Received: from localhost.localdomain (dsl-10-132-160.b2b2c.ca. [72.10.132.160]) by smtp.gmail.com with ESMTPSA id ci21-20020a05622a261500b0042998676bc3sm363348qtb.43.2024.01.19.20.41.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 20:41:33 -0800 (PST) From: Maxim Cournoyer Date: Fri, 19 Jan 2024 23:37:09 -0500 Message-ID: <6f87864e3eebe6709ac983aa3d13a9f4796f1869.1705725428.git.maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/qt.scm (qt-creator) [inputs]: Add d-demangler and rust-rustc-demangle-capi-0.1 (where supported). Change-Id: I13122c0d148f283268d59919ade1459b5c7012a5 --- Changes in v4: - Only add rust-rustc-demangle-capi-0.1 input if supported gnu/packages/qt.scm | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm index a6bbc2429a..e3c9f1accd 100644 --- a/gnu/packages/qt.scm +++ b/gnu/packages/qt.scm @@ -71,9 +71,11 @@ (define-module (gnu packages qt) #:use-module (gnu packages cmake) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) + #:use-module (gnu packages crates-io) #:use-module (gnu packages cups) #:use-module (gnu packages curl) #:use-module (gnu packages databases) + #:use-module (gnu packages dlang) #:use-module (gnu packages documentation) #:use-module (gnu packages elf) #:use-module (gnu packages enchant) @@ -5146,23 +5148,28 @@ (define-public qt-creator vulkan-headers xvfb-run)) (inputs - (list bash-minimal - coreutils-minimal - clang - clazy - elfutils - gdb - kcachegrind - libxkbcommon - llvm - qt5compat - qtdeclarative - qtshadertools - qtsvg - yaml-cpp - valgrind - vulkan-loader - `(,zstd "lib"))) + (append + (list bash-minimal + coreutils-minimal + clang + clazy + d-demangler + elfutils + gdb + kcachegrind + libxkbcommon + llvm + qt5compat + qtdeclarative + qtshadertools + qtsvg + yaml-cpp + valgrind + vulkan-loader + `(,zstd "lib")) + (if (supported-package? rust-rustc-demangle-capi-0.1) + (list rust-rustc-demangle-capi-0.1) + '()))) (home-page "https://www.qt.io/") (synopsis "Integrated development environment (IDE) for Qt") (description "Qt Creator is an IDE tailored to the needs of Qt developers. -- 2.41.0 From unknown Sun Jun 22 17:15:15 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#68554] [PATCH v3 1/6] gnu: Add gdc alias. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 24 Jan 2024 17:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68554 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 68554@debbugs.gnu.org Received: via spool by 68554-submit@debbugs.gnu.org id=B68554.170611686623144 (code B ref 68554); Wed, 24 Jan 2024 17:22:02 +0000 Received: (at 68554) by debbugs.gnu.org; 24 Jan 2024 17:21:06 +0000 Received: from localhost ([127.0.0.1]:46505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSgvy-00061E-HC for submit@debbugs.gnu.org; Wed, 24 Jan 2024 12:21:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSgvx-00060a-4K for 68554@debbugs.gnu.org; Wed, 24 Jan 2024 12:21:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSgvl-00064M-K5; Wed, 24 Jan 2024 12:20:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=OwEfAqd1PR5kK2tPoRT7TWGBX+YgHNavS7Lu28sSHwc=; b=OKdIoCoDSlrflQyjhj/k wG7w8MD7K2baRUci5VYg+w4LDx6FoMRKBJO+Fv9JE61AypuZ6r4345t3LZUOlAOtl7m4mQrMiP6w0 z32UqadIOm66l1q76Qh4rJodkBbg6WnpY7wBY1WTl2ortZdUyFtTJ/yo8ldeCM13Pq6wHP4caJs4u mUC8DuSNiUaeDoCkYZZg6nc4g8RDWBWhEDnUFNSsj6BZc8VMcV8seFIuXAObqQ2ddaXpi5EijR9gy s8ipFnnBptzeysV4h3Yqs29pjfTMHGSnuy1NqFFR3F3TniKIue9wk7f3l78sOHVAlLmvoA3Rmj33P BpMvGwQcMwDQVQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Maxim Cournoyer's message of "Thu, 18 Jan 2024 23:40:39 -0500") References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 5 =?UTF-8?Q?Pluvi=C3=B4se?= an 232 de la =?UTF-8?Q?R=C3=A9volution,?= jour du Taureau X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 24 Jan 2024 18:20:51 +0100 Message-ID: <87y1cesl58.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Maxim Cournoyer skribis: > * gnu/packages/gcc.scm (gdc): New variable. > > Change-Id: I38447e46ffba44d3a9d3757d34fe9ff081803457 LGTM! From unknown Sun Jun 22 17:15:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Maxim Cournoyer Subject: bug#68554: closed (Re: [bug#68554] [PATCH v3 1/6] gnu: Add gdc alias.) Message-ID: References: <87v87f25fl.fsf@gmail.com> X-Gnu-PR-Message: they-closed 68554 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 68554@debbugs.gnu.org Date: Fri, 26 Jan 2024 20:42:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1706301722-6392-1" This is a multi-part message in MIME format... ------------=_1706301722-6392-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #68554: [PATCH 0/3] Add DMD, the D language reference compiler. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 68554@debbugs.gnu.org. --=20 68554: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D68554 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1706301722-6392-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 68554-done) by debbugs.gnu.org; 26 Jan 2024 20:41:51 +0000 Received: from localhost ([127.0.0.1]:52910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTT1L-0001ej-BU for submit@debbugs.gnu.org; Fri, 26 Jan 2024 15:41:51 -0500 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]:55428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rTT1I-0001eV-Rr for 68554-done@debbugs.gnu.org; Fri, 26 Jan 2024 15:41:49 -0500 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-59883168a83so376607eaf.2 for <68554-done@debbugs.gnu.org>; Fri, 26 Jan 2024 12:41:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706301696; x=1706906496; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JJdlNokM4N+E2X9P/eZg4E2CIbF/5HOrAdQxL/c21v8=; b=DflKTn8Qh+fY6RSV+TTFgLiI50CZydJGaijp7gS019UlrY4cYnbYK/FCXxk69dYsQu bFLHiSCADewdweLbaKiFJSvyDHHW6a6/BQlZjbQFE7Yd/fwEM6YNqb67sz0eBbWR04kM m+9vpcLReEKiwjiD4P9DjHkhGG6JVC5raponxDynIgW1LP9cH8K9pCoYriHYPafiZgZY uYBF9qTsTRGIpUpmQE20yxU7wDDoX8de5D7ZeSyK5OAcK1YhJlcf0ot1WT6xYxmSSJT9 Myn607BHDi2gHKaj213+wNDkfx0smwqVBUwoT/CC9EZ2ikIJLF7qqOn6fajkyRYVuvHR 9nzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706301696; x=1706906496; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=JJdlNokM4N+E2X9P/eZg4E2CIbF/5HOrAdQxL/c21v8=; b=YaqfmLE28ldSbick24WGrJ9CLI7dXk42QoUs4UWYOZ/Hvzxd3CQGtsHllsWm4CMmaK VTesCIU8NUJXTMHaqZLUXfVJTpSnCXzM8Rv5t6KgPajiWZjVk1+l8YA5F3vViSLBF4ts lLekn9XbyDcSO7RXrPA7ZMicbwRsouvd/nKL0/HodPB41cgB3wWmMc/yLVos8DrXcX5r z0C7O3hjNp/fs/RsvMbN1RBjJkgh8EFeYZxg2W6eR/sUowm15bQ+dOQyahkJoIi3t7on OBTjLBEcDHP4IuO6/AYTnSUlcFfulraXAo1L9vAblewq+QkN/nsusqeyd0kYQCxQJK1G 7NDA== X-Gm-Message-State: AOJu0Yx6RC8yqOYfD+xlEwRt+Drd6lfoPw6e1FDwV43r97Erro4EASwY 6souRoMFhrBNx9aSrt0WijyBtIo/bam2HIMk804guXtppWKsneh2OfHlfvqW X-Google-Smtp-Source: AGHT+IG5wkrCeuRMw8nex4nzT+D8F9Jz4H3GdvCe6FveGP/eXg4qN63GBEbsK9VvMIp+QCHEuOPbKg== X-Received: by 2002:a05:6820:1503:b0:59a:15d2:ba0d with SMTP id ay3-20020a056820150300b0059a15d2ba0dmr345698oob.2.1706301696338; Fri, 26 Jan 2024 12:41:36 -0800 (PST) Received: from hurd (dsl-153-164.b2b2c.ca. [66.158.153.164]) by smtp.gmail.com with ESMTPSA id qj10-20020a056214320a00b00680d39626fcsm810122qvb.47.2024.01.26.12.41.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 12:41:35 -0800 (PST) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: [bug#68554] [PATCH v3 1/6] gnu: Add gdc alias. In-Reply-To: <87y1cesl58.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 24 Jan 2024 18:20:51 +0100") References: <87y1cesl58.fsf@gnu.org> Date: Fri, 26 Jan 2024 15:41:34 -0500 Message-ID: <87v87f25fl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68554-done Cc: 68554-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludo, Ludovic Court=C3=A8s writes: > Maxim Cournoyer skribis: > >> * gnu/packages/gcc.scm (gdc): New variable. >> >> Change-Id: I38447e46ffba44d3a9d3757d34fe9ff081803457 > > LGTM! Thanks, I pushed this one as well as the remaining from this series, as they had been sitting for some time in their v4 revision :-). --=20 Thanks, Maxim ------------=_1706301722-6392-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jan 2024 22:41:43 +0000 Received: from localhost ([127.0.0.1]:53790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQEbP-0002CG-Dg for submit@debbugs.gnu.org; Wed, 17 Jan 2024 17:41:43 -0500 Received: from lists.gnu.org ([2001:470:142::17]:54378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQEbO-0002C4-IX for submit@debbugs.gnu.org; Wed, 17 Jan 2024 17:41:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQEbH-0001Y0-4H for guix-patches@gnu.org; Wed, 17 Jan 2024 17:41:35 -0500 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQEbF-0007x2-P4 for guix-patches@gnu.org; Wed, 17 Jan 2024 17:41:34 -0500 Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-78333ad3a17so919050485a.3 for ; Wed, 17 Jan 2024 14:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705531291; x=1706136091; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=d5/p1OxccMKu2Ba9xVCeR0rt1/0HMRDbyC/4JZ7NoC0=; b=YWOx46v8iuJO44cFRyNtBvGaK4jodNXfIeWkz2nCkScRWA7j1Uys1migRT+S2WCtZl 6qXrkB5mUkqJgfvJm2w+JP6NlEhWQB+BFwAvHVBXsLAfDNqpBP3sVyvLdrrFdB93bRV3 veYz7PGzX7m3YeBWgkAsFqFyoqRynbKPJ9tCPTEgGXyFxVka01GJ/1DdOc0tuANX5Ilf 3mRQgU0QIpQ1Amr0hH8GvZiUsutgkg/4zpKglkR1R8ZgcgKh7Ny/S+2AL6Z/e6wcR5YX W5eyEAmawVBRXKqgViZzGPwykT5H4WZAr7SEmuRqdnFAo347zdmfclDwJebXooTPbCKJ IMQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705531291; x=1706136091; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d5/p1OxccMKu2Ba9xVCeR0rt1/0HMRDbyC/4JZ7NoC0=; b=ZFfC1qWhC7CwcQO/wn01Q/4Bo4+I6nUSldXKrRMms5rVx7JZAmtN4nU8HLzg4qfr3p 5TcvOmKcqh6hdjpNC01YpatbaAgvQqGzkiwl/JxCneHzUFt2wSpna8FgWB/ttZoUizpX htrv2JgwHlFuH4H2a5Aq7vnnbdF5DoWc1rXfFD8q9KuSwST0qlcBUtC8IK/gCk/4Pq+V HLbE+wqaux5/rF3SXwQCQYQr+p9jlixsfpm6SP1U+TdELFBpaotsVIpqzLO+BlkNBxuB /C5jhTl+Gh5T16nKp18He9Lk5hK0F+cPKX3T00nNYHtWEm7v0QbsZyW6uk0+tI0cQkI9 v5OA== X-Gm-Message-State: AOJu0Yz2ulolVLnaZriWUr7qhlvinKLhw0eAyRupBaYRPFH6vyI6bVj+ A2uBan2znykFU4KEnAWV9Ddbvu60cyU= X-Google-Smtp-Source: AGHT+IETY9kjkZWb57IRmWNSC6Hw/oOvfov7w8Fa5aGApkALqp6+Sq8jOL60ci45I7IvVd1hfwbz5g== X-Received: by 2002:a37:ac19:0:b0:783:1aeb:fb60 with SMTP id e25-20020a37ac19000000b007831aebfb60mr10595293qkm.20.1705531291293; Wed, 17 Jan 2024 14:41:31 -0800 (PST) Received: from localhost.localdomain (dsl-10-141-147.b2b2c.ca. [72.10.141.147]) by smtp.gmail.com with ESMTPSA id o11-20020a05620a22cb00b00781823ddd45sm4857999qki.18.2024.01.17.14.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 14:41:30 -0800 (PST) From: Maxim Cournoyer To: guix-patches@gnu.org Subject: [PATCH 0/3] Add DMD, the D language reference compiler. Date: Wed, 17 Jan 2024 17:41:26 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::72c; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x72c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This series adds DMD, bootstrapped via GDC. Maxim Cournoyer (3): gnu: Add gdc alias. gnu: gdmd: Replace gdc-11 with gdc alias. gnu: Add dmd. gnu/packages/dlang.scm | 167 ++++++++++++++++++++++++++++++++++++++++- gnu/packages/gcc.scm | 6 ++ 2 files changed, 171 insertions(+), 2 deletions(-) base-commit: 8ca490e6600c55b2dab5db12cf1aefa2b1b27f9a -- 2.41.0 ------------=_1706301722-6392-1--