From unknown Fri Jun 20 07:09:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60754 <60754@debbugs.gnu.org> To: bug#60754 <60754@debbugs.gnu.org> Subject: Status: [PATCH 1/2] gnu: Add mold. Reply-To: bug#60754 <60754@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:09:15 +0000 retitle 60754 [PATCH 1/2] gnu: Add mold. reassign 60754 guix-patches submitter 60754 Zhu Zihao severity 60754 normal tag 60754 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 12 09:19:27 2023 Received: (at submit) by debbugs.gnu.org; 12 Jan 2023 14:19:27 +0000 Received: from localhost ([127.0.0.1]:45064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFyQQ-0002jM-QY for submit@debbugs.gnu.org; Thu, 12 Jan 2023 09:19:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:47540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFyQN-0002j5-BT for submit@debbugs.gnu.org; Thu, 12 Jan 2023 09:19:24 -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 1pFyQC-0003SM-Na for guix-patches@gnu.org; Thu, 12 Jan 2023 09:19:12 -0500 Received: from m12.mail.163.com ([220.181.12.198]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFyQ9-0000NP-Vt for guix-patches@gnu.org; Thu, 12 Jan 2023 09:19:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version: Content-Type; bh=z8E8qf15a1bUusQLWJ/Rim0Uj1BjQ33A656R1PCxap0=; b=ZuNnJSWgEjhU0Dc1IFYyOPWfU5wtPfKA4h4kwCbtRV7JD5YyKU7VITX0Q5C6W0 e5aQC0JjO0GLhl5vrBvGJbvfTRUYSiztT0E/VPadHd8SMLj7urQXIs/VvYP720bF 73oaqWUIsswrZwrkpbMMWMM9Iqqaq73B4oz6BVk05RoOU= Received: from localhost.localdomain (unknown [113.100.122.236]) by zwqz-smtp-mta-g4-1 (Coremail) with SMTP id _____wBXjjq5FsBjJLOHAA--.34664S2; Thu, 12 Jan 2023 22:18:53 +0800 (CST) From: Zhu Zihao To: guix-patches@gnu.org Subject: [PATCH 1/2] gnu: Add mold. Date: Thu, 12 Jan 2023 22:18:30 +0800 Message-Id: <20230112141830.28179-1-all_but_last@163.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wBXjjq5FsBjJLOHAA--.34664S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxZrWUZryfXrWUuF18AFyDGFg_yoWrXw4Upr 1fCr1avw1kGF13Jw4fWF47Wr13uFZ3AF4UKas3uanrtwsI9348CFW7tay5Aan7JF17Aa13 u3yIgay3GFykArJanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JUkfQ_UUUUU= X-Originating-IP: [113.100.122.236] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBoRH0r2I0WiNTQgAAsV Received-SPF: pass client-ip=220.181.12.198; envelope-from=all_but_last@163.com; helo=m12.mail.163.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Zhu Zihao 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: -2.4 (--) * gnu/local.mk (GNU_SYSTEM_MODULES): Add new file. * gnu/packages/mold.scm: New file. * gnu/packages/mold.scm (mold): New variable. --- gnu/local.mk | 1 + gnu/packages/mold.scm | 82 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 gnu/packages/mold.scm diff --git a/gnu/local.mk b/gnu/local.mk index 184f43e753..1e80dab53f 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -426,6 +426,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/mingw.scm \ %D%/packages/microcom.scm \ %D%/packages/moe.scm \ + %D%/packages/mold.scm \ %D%/packages/motti.scm \ %D%/packages/monitoring.scm \ %D%/packages/moreutils.scm \ diff --git a/gnu/packages/mold.scm b/gnu/packages/mold.scm new file mode 100644 index 0000000000..9338499b2b --- /dev/null +++ b/gnu/packages/mold.scm @@ -0,0 +1,82 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Zhu Zihao +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages mold) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) + #:use-module (gnu packages c) + #:use-module (gnu packages digest) + #:use-module (gnu packages tbb) + #:use-module (gnu packages tls) + #:use-module (gnu packages compression) + #:use-module ((guix licenses) #:prefix license:)) + +(define-public mold + (package + (name "mold") + (version "1.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rui314/mold") + (commit (string-append "v" version)))) + (sha256 + (base32 "03qkl9qw5l5kg1awij40hcrfxq6jj70mvq4iscdy9dsn8qw8r3wb")) + (modules '((guix build utils))) + (snippet + #~(begin + (for-each + (lambda (x) + (delete-file-recursively (string-append "third-party/" x))) + '("mimalloc" "tbb" "xxhash" "zlib" "zstd")))))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~(list "-DMOLD_USE_SYSTEM_MIMALLOC=ON" + "-DMOLD_USE_SYSTEM_TBB=ON") + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'force-system-xxhash + (lambda _ + (substitute* "mold.h" + (("#include \"third-party/xxhash/xxhash.h\"") + "#include ")))) + (add-before 'configure 'fix-compiler-name-in-test + (lambda _ + (substitute* "test/elf/common.inc" + (("CC=\"\\$\\{TEST_CC:-cc\\}\"") "CC=gcc") + (("CXX=\"\\$\\{TEST_CXX:-c\\+\\+\\}\"") + "CXX=g++")))) + (add-before 'configure 'disable-rpath-test + (lambda _ + ;; This test fails because mold expect the RUNPATH as-is, + ;; but compiler in Guix will insert the path of gcc-lib and + ;; glibc into the output binary. + (delete-file "test/elf/rpath.sh")))))) + (inputs (list mimalloc openssl tbb xxhash zlib `(,zstd "lib"))) + (home-page "https://github.com/rui314/mold") + (synopsis "Faster drop-in replacement for Unix linkers") + (description + "Mold is a faster drop-in replacement for existing Unix linkers. +It is designed to increase developer productivity by reducing build time, +especially in rapid debug-edit-rebuild cycles.") + (license license:agpl3+))) -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 12 09:22:54 2023 Received: (at 60754) by debbugs.gnu.org; 12 Jan 2023 14:22:54 +0000 Received: from localhost ([127.0.0.1]:45069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFyTl-0002p0-KH for submit@debbugs.gnu.org; Thu, 12 Jan 2023 09:22:54 -0500 Received: from m12.mail.163.com ([220.181.12.214]:52896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFyTi-0002ol-Rl for 60754@debbugs.gnu.org; Thu, 12 Jan 2023 09:22:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version: Content-Type; bh=z8E8qf15a1bUusQLWJ/Rim0Uj1BjQ33A656R1PCxap0=; b=d6yArPfeeY2KpuKPPU0Pu3N7qYgY+ZwdCOT10E5S1V92tfWSCsLaEya7xs6CTD e97SEoUb9Sev5It3LaXDyT53ZXEvnz0bGMx6eW+PI/1vAtEE3vozzsWpTbUgJePs CqJ6MSFeZJNVMXe1zXHnqVutcRw7QsLiKH/ivStJIZZew= Received: from localhost.localdomain (unknown [113.100.122.236]) by zwqz-smtp-mta-g2-1 (Coremail) with SMTP id _____wBXPSqmF8Bj6CyHAA--.39263S2; Thu, 12 Jan 2023 22:22:40 +0800 (CST) From: Zhu Zihao To: 60754@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add mold. Date: Thu, 12 Jan 2023 22:22:28 +0800 Message-Id: <20230112142228.28575-1-all_but_last@163.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wBXPSqmF8Bj6CyHAA--.39263S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxZrWUZryfXrWUuF18AFyDGFg_yoWrXw4Upr 1fCr1avw1kGF13Jw4fWF47Wr13uFZ3AF4UKas3uanrtwsI9348CFW7tay5Aan7JF17Aa13 u3yIgay3GFykArJanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JUvhFcUUUUU= X-Originating-IP: [113.100.122.236] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBaxL0r1et7dhbzQAAs7 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60754 Cc: Zhu Zihao 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/local.mk (GNU_SYSTEM_MODULES): Add new file. * gnu/packages/mold.scm: New file. * gnu/packages/mold.scm (mold): New variable. --- gnu/local.mk | 1 + gnu/packages/mold.scm | 82 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 gnu/packages/mold.scm diff --git a/gnu/local.mk b/gnu/local.mk index 184f43e753..1e80dab53f 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -426,6 +426,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/mingw.scm \ %D%/packages/microcom.scm \ %D%/packages/moe.scm \ + %D%/packages/mold.scm \ %D%/packages/motti.scm \ %D%/packages/monitoring.scm \ %D%/packages/moreutils.scm \ diff --git a/gnu/packages/mold.scm b/gnu/packages/mold.scm new file mode 100644 index 0000000000..9338499b2b --- /dev/null +++ b/gnu/packages/mold.scm @@ -0,0 +1,82 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 Zhu Zihao +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages mold) + #:use-module (guix gexp) + #:use-module (guix packages) + #:use-module (guix utils) + #:use-module (guix git-download) + #:use-module (guix build-system cmake) + #:use-module (gnu packages c) + #:use-module (gnu packages digest) + #:use-module (gnu packages tbb) + #:use-module (gnu packages tls) + #:use-module (gnu packages compression) + #:use-module ((guix licenses) #:prefix license:)) + +(define-public mold + (package + (name "mold") + (version "1.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rui314/mold") + (commit (string-append "v" version)))) + (sha256 + (base32 "03qkl9qw5l5kg1awij40hcrfxq6jj70mvq4iscdy9dsn8qw8r3wb")) + (modules '((guix build utils))) + (snippet + #~(begin + (for-each + (lambda (x) + (delete-file-recursively (string-append "third-party/" x))) + '("mimalloc" "tbb" "xxhash" "zlib" "zstd")))))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags #~(list "-DMOLD_USE_SYSTEM_MIMALLOC=ON" + "-DMOLD_USE_SYSTEM_TBB=ON") + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'force-system-xxhash + (lambda _ + (substitute* "mold.h" + (("#include \"third-party/xxhash/xxhash.h\"") + "#include ")))) + (add-before 'configure 'fix-compiler-name-in-test + (lambda _ + (substitute* "test/elf/common.inc" + (("CC=\"\\$\\{TEST_CC:-cc\\}\"") "CC=gcc") + (("CXX=\"\\$\\{TEST_CXX:-c\\+\\+\\}\"") + "CXX=g++")))) + (add-before 'configure 'disable-rpath-test + (lambda _ + ;; This test fails because mold expect the RUNPATH as-is, + ;; but compiler in Guix will insert the path of gcc-lib and + ;; glibc into the output binary. + (delete-file "test/elf/rpath.sh")))))) + (inputs (list mimalloc openssl tbb xxhash zlib `(,zstd "lib"))) + (home-page "https://github.com/rui314/mold") + (synopsis "Faster drop-in replacement for Unix linkers") + (description + "Mold is a faster drop-in replacement for existing Unix linkers. +It is designed to increase developer productivity by reducing build time, +especially in rapid debug-edit-rebuild cycles.") + (license license:agpl3+))) -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 12 09:24:06 2023 Received: (at 60754) by debbugs.gnu.org; 12 Jan 2023 14:24:06 +0000 Received: from localhost ([127.0.0.1]:45073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFyUw-0002rZ-7K for submit@debbugs.gnu.org; Thu, 12 Jan 2023 09:24:06 -0500 Received: from m12.mail.163.com ([220.181.12.215]:60630) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFyUm-0002qg-IL for 60754@debbugs.gnu.org; Thu, 12 Jan 2023 09:24:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=Rpzjd KOoHlj9GW7RPVZghdqes2W9/Ak+hZC/XUEBDOY=; b=D8NIwGWD5koIC3VTKrlt6 4XVrAL10pxP17ak+96j+a8v1gtcVhaiNePcH3qXXQgQwub+F07QB8LL2otEGvpWb eXMkjHIS4FEV2nwhbHzrp2arVCEfaFQrznnnlLw6vQb4wAJX0MHTyRbc+YjWDtrN 1SqTsgXAUgrH+hCaTtdmOg= Received: from localhost.localdomain (unknown [113.100.122.236]) by zwqz-smtp-mta-g0-4 (Coremail) with SMTP id _____wA3I9XpF8BjQEOJAA--.46396S2; Thu, 12 Jan 2023 22:23:40 +0800 (CST) From: Zhu Zihao To: 60754@debbugs.gnu.org Subject: [PATCH 2/2] gnu: Add mold-wrapper. Date: Thu, 12 Jan 2023 22:23:35 +0800 Message-Id: <20230112142335.28708-1-all_but_last@163.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wA3I9XpF8BjQEOJAA--.46396S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7CF18Jw4DGrykJF4UArWfGrg_yoW8Kw1xpa 15Kr1Ygr1rGrnrJws3Wa17tr4rXFZavFyYg3yayr9rCw4UK3W2vF42yay5AF17J3ZrJ3Z7 Gr48Xa15CFWUu3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0JU94SOUUUUU= X-Originating-IP: [113.100.122.236] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiTxD0r1sGdAjPnwAAs1 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60754 Cc: Zhu Zihao 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/mold.scm(make-mold-wrapper): New variable. (mold-wrapper): New variable. (mold-as-ld-wrapper): New variable. --- gnu/packages/mold.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/mold.scm b/gnu/packages/mold.scm index 9338499b2b..2a02000d04 100644 --- a/gnu/packages/mold.scm +++ b/gnu/packages/mold.scm @@ -22,6 +22,8 @@ (define-module (gnu packages mold) #:use-module (guix utils) #:use-module (guix git-download) #:use-module (guix build-system cmake) + #:use-module (guix build-system trivial) + #:use-module (gnu packages base) #:use-module (gnu packages c) #:use-module (gnu packages digest) #:use-module (gnu packages tbb) @@ -80,3 +82,41 @@ (define-public mold It is designed to increase developer productivity by reducing build time, especially in rapid debug-edit-rebuild cycles.") (license license:agpl3+))) + +(define* (make-mold-wrapper mold #:key mold-as-ld?) + "Return a MOLD wrapper. When MOLD-AS-LD? is true, create a 'ld' symlink that +points to 'mold'." + (package + (inherit mold) + (name (if mold-as-ld? "mold-as-ld-wrapper" "mold-wrapper")) + (source #f) + (native-inputs '()) + (inputs (list (make-ld-wrapper "ld.mold-wrapper" #:binutils mold + #:linker "ld.mold") + (make-ld-wrapper "mold-wrapper" #:binutils mold #:linker + "mold"))) + (propagated-inputs '()) + (build-system trivial-build-system) + (arguments + (list #:builder + #~(let ((ld.mold (string-append #$(this-package-input + "ld.mold-wrapper") + "/bin/ld.mold")) + (mold (string-append #$(this-package-input "mold-wrapper") + "/bin/mold"))) + (mkdir #$output) + (mkdir (string-append #$output "/bin")) + (symlink ld.mold (string-append #$output "/bin/ld.mold")) + (symlink mold (string-append #$output "/bin/mold")) + (when #$mold-as-ld? + (symlink ld.mold (string-append #$output "/bin/ld")))))) + (synopsis "Mold linker wrapper") + (description "This is a linker wrapper for Mold; like @code{ld-wrapper}, it +wraps the linker to add any missing @code{-rpath} flags, and to detect any +misuse of libraries outside of the store."))) + +(define-public mold-wrapper + (make-mold-wrapper mold)) + +(define-public mold-as-ld-wrapper + (make-mold-wrapper mold #:mold-as-ld? #t)) -- 2.38.1 From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 12 09:31:08 2023 Received: (at 60754) by debbugs.gnu.org; 12 Jan 2023 14:31:08 +0000 Received: from localhost ([127.0.0.1]:45095 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFybj-00034A-Q8 for submit@debbugs.gnu.org; Thu, 12 Jan 2023 09:31:08 -0500 Received: from m12.mail.163.com ([220.181.12.197]:38696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pFybb-00033g-BI for 60754@debbugs.gnu.org; Thu, 12 Jan 2023 09:31:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=zjJopfIddvT89RlHXzoIxMznO5Ec2oURkC4nK+T6JoM=; b=Fs5aq3rpi7lyfH8/lt197AGgIpQC4kJtvXWxnh358nl5h3ls/mB0IMU+JzmUup 7c62RZM00ePPXMRa95rrVJRkiqBtrCBRmRyTFMkG0W6bfiDIUeTH6R2to5fuwF77 Fsb67f3iFdCHV3wE3aKlBR0mVOsHqIzD5uhWkd8ceKrvA= Received: from asus-laptop (unknown [113.100.122.236]) by zwqz-smtp-mta-g0-1 (Coremail) with SMTP id _____wDHaqCVGcBjXSiIAA--.19813S2; Thu, 12 Jan 2023 22:30:46 +0800 (CST) References: <20230112141830.28179-1-all_but_last@163.com> User-agent: mu4e 1.8.13; emacs 30.0.50 From: Zhu Zihao To: 60754@debbugs.gnu.org Subject: Re: bug#60754: Acknowledgement ([PATCH 1/2] gnu: Add mold.) Date: Thu, 12 Jan 2023 22:28:57 +0800 In-reply-to: Message-ID: <86fscf6d0t.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-CM-TRANSID: _____wDHaqCVGcBjXSiIAA--.19813S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjTRkb1bUUUUU X-Originating-IP: [113.100.122.236] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiTxf0r1sGdAjdrAAAsT X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 60754 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 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I see there're similar works on packaging mold. (See https://issues.guix.gnu.org/53601 & https://issues.guix.gnu.org/53327 ) But they're ignored by maintainers. =2D-=20 Retrieve my PGP public key: gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC Zihao --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIoEARYIADMWIQT4UAIrVkIEZilSHr2K2nJqP6LM8gUCY8AZkhUcYWxsX2J1dF9s YXN0QDE2My5jb20ACgkQitpyaj+izPJwHQD1E5ZePmq0MkTolVOfc2Vcy34xzypk 5RLvu70gLvcUvQD/Q4SFsd1ljPebXqLdAzIk2/iklnipDgXN+jaXuHePMAo= =6gZK -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 11 19:47:31 2023 Received: (at 60754-done) by debbugs.gnu.org; 12 Feb 2023 00:47:31 +0000 Received: from localhost ([127.0.0.1]:43578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR0Wh-0001Bs-D7 for submit@debbugs.gnu.org; Sat, 11 Feb 2023 19:47:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR0Wd-0001BK-MH; Sat, 11 Feb 2023 19:47:28 -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 1pR0WX-0006nL-Mb; Sat, 11 Feb 2023 19:47:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=7QdHeLIrRSPGGbIt9uM7EC2EJjmrEqwEm1z06ZlrJcw=; b=g9zmzh0nTKegFV/iczDr w5kBSrAN0ehmIl7B8DuUMRqEIs05WR/YipMtxUdJH17Zmiv69afHRrN82lg1TwXth7L4JbdjnICMw FXVC4hZohCyMG/kUEJg8CHTAAcu3h/2CqHrQBkyzT9DwdJyNm3nC0ZEGnxk4LkXwSo71Tdc2RYZ30 APsiIcnWIfStT+7/eFQb4efGWZ4Flmrt/kub4P30hodorQ0Y5Xc0cDAIgYmUoCljYjL44dsp0QeNy xR5DXEFFFOX2xXDg5ylfTBpNuc05RahoPWAtRYXn/2aHgsB+MAMSO22PS15hO7H0CeP31rjGhh6dr 3/aJFGFIjNIJig==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pR0WX-0001sY-7C; Sat, 11 Feb 2023 19:47:21 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Zhu Zihao Subject: Re: bug#60754: [PATCH 1/2] gnu: Add mold. References: <20230112141830.28179-1-all_but_last@163.com> <20230112142228.28575-1-all_but_last@163.com> Date: Sun, 12 Feb 2023 01:47:18 +0100 In-Reply-To: <20230112142228.28575-1-all_but_last@163.com> (Zhu Zihao's message of "Thu, 12 Jan 2023 22:22:28 +0800") Message-ID: <87357bn209.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 60754-done Cc: 60754-done@debbugs.gnu.org, 53601-done@debbugs.gnu.org, 53327-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: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Zhu Zihao skribis: > * gnu/local.mk (GNU_SYSTEM_MODULES): Add new file. > * gnu/packages/mold.scm: New file. > * gnu/packages/mold.scm (mold): New variable. [...] > * gnu/packages/mold.scm(make-mold-wrapper): New variable. > (mold-wrapper): New variable. > (mold-as-ld-wrapper): New variable. Applied both with minor changes (see below), thanks. I=E2=80=99m also closing the two other issues you mentioned that were adding mold. Please let us know if there=E2=80=99s something to borrow from them! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/mold.scm b/gnu/packages/mold.scm index 6514bd3b90..dfc452a329 100644 --- a/gnu/packages/mold.scm +++ b/gnu/packages/mold.scm @@ -77,12 +77,12 @@ (define-public mold (delete-file "test/elf/rpath.sh")))))) (inputs (list mimalloc openssl tbb xxhash zlib `(,zstd "lib"))) (home-page "https://github.com/rui314/mold") - (synopsis "Faster drop-in replacement for Unix linkers") + (synopsis "Fast linker") (description - "Mold is a faster drop-in replacement for existing Unix linkers. + "Mold is a faster drop-in replacement for existing linkers. It is designed to increase developer productivity by reducing build time, especially in rapid debug-edit-rebuild cycles.") - (license license:agpl3+))) + (license license:agpl3))) (define* (make-mold-wrapper mold #:key mold-as-ld?) "Return a MOLD wrapper. When MOLD-AS-LD? is true, create a 'ld' symlink that --=-=-=-- From unknown Fri Jun 20 07:09:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 12 Mar 2023 11:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator