Received: by mail.netbsd.org (Postfix, from userid 605) id 9230184E87; Thu, 29 Jul 2021 21:17:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CA73C84D3A for ; Thu, 29 Jul 2021 21:17:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id lAVbLpGXjlvK for ; Thu, 29 Jul 2021 21:17:18 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id D711A84CE9 for ; Thu, 29 Jul 2021 21:17:17 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id C984EFA97; Thu, 29 Jul 2021 21:17:17 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_162759343758080" MIME-Version: 1.0 Date: Thu, 29 Jul 2021 21:17:17 +0000 From: "Frederic Cambus" Subject: CVS commit: pkgsrc/devel/mold To: pkgsrc-changes@NetBSD.org Reply-To: fcambus@netbsd.org X-Mailer: log_accum Message-Id: <20210729211717.C984EFA97@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_162759343758080 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: fcambus Date: Thu Jul 29 21:17:17 UTC 2021 Added Files: pkgsrc/devel/mold: DESCR Makefile PLIST distinfo pkgsrc/devel/mold/patches: patch-Makefile Log Message: devel/mold: import mold-0.9.3. mold is a new linker that is optimized for modern multi-core machines. mold is command-line compatible with the other major linkers, GNU ld, GNU gold and LLVM lld, yet it is several times faster than them. Its goal is to increase programmer productivity by speeding up program build time, especially for rapid edit-build-test-debug cycles. To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 pkgsrc/devel/mold/DESCR pkgsrc/devel/mold/Makefile \ pkgsrc/devel/mold/PLIST pkgsrc/devel/mold/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/devel/mold/patches/patch-Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_162759343758080 Content-Disposition: inline Content-Length: 4083 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Added files: Index: pkgsrc/devel/mold/DESCR diff -u /dev/null pkgsrc/devel/mold/DESCR:1.1 --- /dev/null Thu Jul 29 21:17:17 2021 +++ pkgsrc/devel/mold/DESCR Thu Jul 29 21:17:17 2021 @@ -0,0 +1,6 @@ +mold is a new linker that is optimized for modern multi-core machines. + +mold is command-line compatible with the other major linkers, GNU ld, GNU gold +and LLVM lld, yet it is several times faster than them. Its goal is to increase +programmer productivity by speeding up program build time, especially for rapid +edit-build-test-debug cycles. Index: pkgsrc/devel/mold/Makefile diff -u /dev/null pkgsrc/devel/mold/Makefile:1.1 --- /dev/null Thu Jul 29 21:17:17 2021 +++ pkgsrc/devel/mold/Makefile Thu Jul 29 21:17:17 2021 @@ -0,0 +1,26 @@ +# $NetBSD: Makefile,v 1.1 2021/07/29 21:17:17 fcambus Exp $ + +DISTNAME= mold-0.9.3 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GITHUB:=rui314/} +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= fcambus@NetBSD.org +HOMEPAGE= https://github.com/rui314/mold/ +COMMENT= High performance drop-in replacement for existing Unix linkers +LICENSE= gnu-agpl-v3 + +ONLY_FOR_PLATFORM= Linux-*-x86_64 + +USE_TOOLS+= gmake +USE_LANGUAGES= c c++ + +MAKE_FLAGS+= MAN_DIR="${PREFIX}/${PKGMANDIR}" +MAKE_FLAGS+= SYSTEM_MIMALLOC=1 SYSTEM_TBB=1 + +.include "../../devel/mimalloc/buildlink3.mk" +.include "../../devel/xxhash/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../parallel/threadingbuildingblocks/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" Index: pkgsrc/devel/mold/PLIST diff -u /dev/null pkgsrc/devel/mold/PLIST:1.1 --- /dev/null Thu Jul 29 21:17:17 2021 +++ pkgsrc/devel/mold/PLIST Thu Jul 29 21:17:17 2021 @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2021/07/29 21:17:17 fcambus Exp $ +bin/mold +lib/mold/mold-wrapper.so +man/man1/mold.1 Index: pkgsrc/devel/mold/distinfo diff -u /dev/null pkgsrc/devel/mold/distinfo:1.1 --- /dev/null Thu Jul 29 21:17:17 2021 +++ pkgsrc/devel/mold/distinfo Thu Jul 29 21:17:17 2021 @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2021/07/29 21:17:17 fcambus Exp $ + +SHA1 (mold-0.9.3.tar.gz) = 1de86f59f5944394ecd1fdbd9f649273d6154f49 +RMD160 (mold-0.9.3.tar.gz) = ca0b058e579db04040f51d1ad669d2911d64b5e1 +SHA512 (mold-0.9.3.tar.gz) = 5b4850a00a5b2cb63c1aff13ef8d2cfdd79088187e1d82c6c0abad81d0c81866253533c67164db03a5d663fc48f5246f930a286ed6ca5b47ef658587be930fd0 +Size (mold-0.9.3.tar.gz) = 3374270 bytes +SHA1 (patch-Makefile) = c1d3e55b6413df800cf92301d6e9726ff7e81569 Index: pkgsrc/devel/mold/patches/patch-Makefile diff -u /dev/null pkgsrc/devel/mold/patches/patch-Makefile:1.1 --- /dev/null Thu Jul 29 21:17:17 2021 +++ pkgsrc/devel/mold/patches/patch-Makefile Thu Jul 29 21:17:17 2021 @@ -0,0 +1,44 @@ +$NetBSD: patch-Makefile,v 1.1 2021/07/29 21:17:17 fcambus Exp $ + +- Do not hardcode CC and CXX. +- Remove hardcoded debug flag. +- Remove hardcoded optimizations. +- Do not gzip manual pages. +- Fix manual page installation path. + +--- Makefile.orig 2021-07-29 09:10:45.841721744 +0000 ++++ Makefile +@@ -1,9 +1,9 @@ +-CC = clang +-CXX = clang++ ++CC ?= clang ++CXX ?= clang++ + + GIT_HASH ?= $(shell [ -d .git ] && git rev-parse HEAD) + +-CPPFLAGS = -g -Imimalloc/include -pthread -std=c++20 \ ++CPPFLAGS = -Imimalloc/include -pthread -std=c++20 \ + -DMOLD_VERSION=\"0.9.3\" \ + -DGIT_HASH=\"$(GIT_HASH)\" \ + $(EXTRA_CPPFLAGS) +@@ -25,7 +25,6 @@ TSAN ?= 0 + ifeq ($(DEBUG), 1) + CPPFLAGS += -O0 + else +- CPPFLAGS += -O2 + endif + + ifeq ($(LTO), 1) +@@ -95,10 +95,8 @@ install: all + install -m 644 mold-wrapper.so $(DESTDIR)$(PREFIX)/lib/mold + strip $(DESTDIR)$(PREFIX)/lib/mold/mold-wrapper.so + +- install -m 755 -d $(DESTDIR)$(PREFIX)/share/man/man1 +- install -m 644 docs/mold.1 $(DESTDIR)$(PREFIX)/share/man/man1 +- rm -f $(DESTDIR)$(PREFIX)/share/man/man1/mold.1.gz +- gzip -9 $(DESTDIR)$(PREFIX)/share/man/man1/mold.1 ++ install -m 755 -d $(DESTDIR)$(MAN_DIR)/man1 ++ install -m 644 docs/mold.1 $(DESTDIR)$(MAN_DIR)/man1 + + uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/mold --_----------=_162759343758080--