From patchwork Mon Jan 17 19:56:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andreas Rottmann X-Patchwork-Id: 36574 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 CD4E827BBEA; Mon, 17 Jan 2022 20:54:33 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 47F5427BBE9 for ; Mon, 17 Jan 2022 20:54:33 +0000 (GMT) Received: from localhost ([::1]:46944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9Z1L-0005n2-R8 for patchwork@mira.cbaines.net; Mon, 17 Jan 2022 15:54:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9Yec-0001Co-FT for guix-patches@gnu.org; Mon, 17 Jan 2022 15:31:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55229) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9Yec-0005IK-2m for guix-patches@gnu.org; Mon, 17 Jan 2022 15:31:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9Yec-0003OB-1X for guix-patches@gnu.org; Mon, 17 Jan 2022 15:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53327] [PATCH] gnu: Add mold. Resent-From: Andreas Rottmann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 20:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53327 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53327@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164245144713004 (code B ref -1); Mon, 17 Jan 2022 20:31:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jan 2022 20:30:47 +0000 Received: from localhost ([127.0.0.1]:48132 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9YeN-0003Nf-JT for submit@debbugs.gnu.org; Mon, 17 Jan 2022 15:30:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:47344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9YeJ-0003NW-QS for submit@debbugs.gnu.org; Mon, 17 Jan 2022 15:30:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55240) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9YeJ-0001AX-Cx for guix-patches@gnu.org; Mon, 17 Jan 2022 15:30:43 -0500 Received: from ghost.xx.vu ([185.33.11.101]:1786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1n9YeF-0005EM-R1 for guix-patches@gnu.org; Mon, 17 Jan 2022 15:30:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=r0tty.org; s=20200309; t=1642445423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2xaZOZOXAjCbnkXnW7e+XjL1lksrf2ameZYkDOsajnk=; b=MIHv0LeGavLw/BIPnYDdzRNh8X65I/WC/aor0/3A0/ZzvnDFUxsQHSZv5nph6Zi1cdJWH9 PwCVuPS9m2M+H52WoUvucztCCjgyw4S3YaxqIrZ99MLxJ76Pg4kN7UxdEKVSbaKkflNZkH DDeLvQdYFGqfL3TtbrqTNeeB3Ry2PG0= Received: from mail0.xx.vu (localhost [::1]) by ghost.xx.vu (OpenSMTPD) with ESMTP id 35daf3ee for ; Mon, 17 Jan 2022 18:50:23 +0000 (UTC) Received: from kosh ([213.162.80.234]) by mail0.xx.vu with ESMTPSA id +4LrLm665WHOAwAAg/rtjg (envelope-from ) for ; Mon, 17 Jan 2022 18:50:22 +0000 User-agent: mu4e 1.6.10; emacs 27.2 From: Andreas Rottmann Date: Mon, 17 Jan 2022 20:56:49 +0100 Message-ID: <87fspmyuji.fsf@r0tty.org> MIME-Version: 1.0 Content-Disposition: inline; filename=0001-gnu-Add-mold.patch Content-Description: Patch Received-SPF: pass client-ip=185.33.11.101; envelope-from=mail@r0tty.org; helo=ghost.xx.vu 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, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 17 Jan 2022 15:53:34 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From ec3a1c3c0a742f5a98c3a6d2e86da663f993958e Mon Sep 17 00:00:00 2001 From: Andreas Rottmann Date: Mon, 17 Jan 2022 21:03:10 +0100 Subject: [PATCH] gnu: Add mold. * gnu/packages/mold.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. --- gnu/local.mk | 1 + gnu/packages/mold.scm | 56 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 gnu/packages/mold.scm diff --git a/gnu/local.mk b/gnu/local.mk index eac8652056..91da63703a 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -403,6 +403,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/mono.scm \ diff --git a/gnu/packages/mold.scm b/gnu/packages/mold.scm new file mode 100644 index 0000000000..87c106c069 --- /dev/null +++ b/gnu/packages/mold.scm @@ -0,0 +1,56 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Andreas Rottmann +;;; +;;; 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 licenses) #:select (agpl3+)) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system gnu) + #:use-module (guix utils) + #:use-module (gnu packages cmake) + #:use-module (gnu packages compression) + #:use-module (gnu packages digest) + #:use-module (gnu packages tls)) + +(define-public mold + (package + (name "mold") + (version "1.0.1") + (home-page "https://github.com/rui314/mold") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ydgcx6vycg7jv4pksv4875cwqdysfm0cpscsdfy0inr5mjrbs8v")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; TODO: Tests require clang and hardcode `cc` + #:make-flags (list (string-append "CC=" ,(cc-for-target)) + (string-append "CXX=" ,(cxx-for-target)) + (string-append "PREFIX=" %output)) + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (native-inputs (list cmake)) + (inputs (list openssl zlib xxhash)) + (synopsis "Modern Linker") + (description "mold is a faster drop-in replacement for existing Unix linkers.") + (license agpl3+))) -- 2.30.2