From patchwork Sun Feb 12 00:47:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 46867 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 57E6E16625; Sun, 12 Feb 2023 00:48:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3FBEB1661B for ; Sun, 12 Feb 2023 00:48:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pR0XK-0007RU-3Z; Sat, 11 Feb 2023 19:48:10 -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 1pR0XH-0007Q3-5N for guix-patches@gnu.org; Sat, 11 Feb 2023 19:48:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pR0XD-0006ou-S4 for guix-patches@gnu.org; Sat, 11 Feb 2023 19:48:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pR0XD-0001GO-O4 for guix-patches@gnu.org; Sat, 11 Feb 2023 19:48:03 -0500 Subject: bug#60754: [PATCH 1/2] gnu: Add mold. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Sun, 12 Feb 2023 00:48:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 60754 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Zhu Zihao Cc: 60754-done@debbugs.gnu.org, 53601-done@debbugs.gnu.org, 53327-done@debbugs.gnu.org Mail-Followup-To: 60754@debbugs.gnu.org, ludo@gnu.org, all_but_last@163.com Received: via spool by 60754-done@debbugs.gnu.org id=D60754.16761628514589 (code D ref 60754); Sun, 12 Feb 2023 00:48:03 +0000 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: Ludovic =?utf-8?q?Court=C3=A8s?= 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 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches 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’m also closing the two other issues you mentioned that were adding mold. Please let us know if there’s something to borrow from them! Ludo’. 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