From nobody Tue Jul 16 06:07:59 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WNTBl4vCcz5R5YN; Tue, 16 Jul 2024 06:07:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WNTBl4JWyz4pLf; Tue, 16 Jul 2024 06:07:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721110079; 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=0ND9kgFdJJhQZgL1Yh66zRtfNChuxtrlGIMcd918qQk=; b=qFYWsAPInI5KO0hF5ZsjTRq986Nkif/qy2jRhB2YUOw4GBf630RwTdgKRE4FPOdWr9Q+ak SNe6yY3cp3NB9oFn25h4tE0ykqewR3v3elqxf2mIq+O3vGOOpz70ig8m28wke0jpWmS4BX G4D1PtbosGwkHaoj9e7Vruohdm0q1hdkkNqnA1lDlY8ByCRavSFt7LG1oJUu0aW5kac5fq NaiWWB83niWwBMtk7SoQLXs9Ale+/QsuvwvL68Ba38CHsB3kAWEz8UZiSa89zsu8lkAcLc BxejGNZD0CnRNg3X/lG2EhFqi2dcXtuuIEh+zesjYMqc7M40e9NLP39aLjPwcQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721110079; a=rsa-sha256; cv=none; b=HqzHkdi36ErqB5cwfi+NcMffyljpd+FoeKB+A7yfdx354j9k8Z81yQfRnPlsNYwTubl5mc pduOKc8DPiPCxFKoqrXRdGQU4Y7/GH9IeGRXvZygGNRvEFvzHwQ8241RVnjW3lnPN325AG tKzpdCWZYmYt+slwQ2i8rZvgZSEFQt49Y0TV6cFZA2O0f1zoY2GMQvEqYLSsuk/QHBLoBB o7/e3XpwETDsrY0BPhRbNOWjZnd8M0VeU8gfAbUbxwtvWr1cTfYcz3fvM6gGdtkYnwJC+x XSRdZ0+qOU5AIDb+6Xl7iSIzE3LuqkAdQM2OCrzY1TchXvEn1uHueQLcNWLyvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721110079; 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=0ND9kgFdJJhQZgL1Yh66zRtfNChuxtrlGIMcd918qQk=; b=l8VuVx9GheIf0oM/6kP5F5bM4GI4SCH8ka3yziPFh64pgqqi1Lg6wjxCnqWt/pPxotR3MH sQJPdQA5uFwr+wjPQTnxjVHDNq8JOFb9G5whbPUoLbpLCXKi2174O/Gf+H/0oQog15fTCU XnUn7U4kWv+T7wtNDpoD/22gCwQiPdnhhE4axdgONg6T25IlyeMd6LZDA0QZzXspc/9DXT nQPxqYnvXsVg+rNBR+Mv7E/uYJo2tO7Sf48gdIvrCkKd46JKgquHREc1HrMgYPqpxuuvhF u6XrV0VOeJVNd6LetrZQbPF5J+ajq0mTRFZgviig2EhWFzvOHGKcDQ8gO1Gm9A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WNTBl3blJzPVy; Tue, 16 Jul 2024 06:07:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46G67xKv042140; Tue, 16 Jul 2024 06:07:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46G67xgt042137; Tue, 16 Jul 2024 06:07:59 GMT (envelope-from git) Date: Tue, 16 Jul 2024 06:07:59 GMT Message-Id: <202407160607.46G67xgt042137@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ashish SHUKLA Subject: git: 630b03a1d314 - main - devel/mold: Update to 2.32.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ashish X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 630b03a1d314008abd2c7b9e4c2f4195eb3e3a77 Auto-Submitted: auto-generated The branch main has been updated by ashish: URL: https://cgit.FreeBSD.org/ports/commit/?id=630b03a1d314008abd2c7b9e4c2f4195eb3e3a77 commit 630b03a1d314008abd2c7b9e4c2f4195eb3e3a77 Author: Daniel Engberg AuthorDate: 2024-07-14 15:31:12 +0000 Commit: Ashish SHUKLA CommitDate: 2024-07-16 06:07:01 +0000 devel/mold: Update to 2.32.0 - Add test target - Add option for LTO PR: 279617 Approved by: maintainer --- devel/mold/Makefile | 67 ++++++++++++++++++++++++++++++++++++++++++----------- devel/mold/distinfo | 6 ++--- 2 files changed, 56 insertions(+), 17 deletions(-) diff --git a/devel/mold/Makefile b/devel/mold/Makefile index 7883fa74eeaf..47b49e7bc6dc 100644 --- a/devel/mold/Makefile +++ b/devel/mold/Makefile @@ -1,7 +1,6 @@ PORTNAME= mold -DISTVERSIONPREFIX= v -DISTVERSION= 2.31.0 -PORTREVISION= 2 +DISTVERSIONPREFIX= v +DISTVERSION= 2.32.0 CATEGORIES= devel MAINTAINER= ashish@FreeBSD.org @@ -16,12 +15,27 @@ NOT_FOR_ARCHS= armhf armv7 i386 LIB_DEPENDS= libmimalloc.so:devel/mimalloc \ libtbb.so:devel/onetbb \ libzstd.so:archivers/zstd +TEST_DEPENDS= bash:shells/bash \ + gcc${GCC_DEFAULT}:lang/gcc${GCC_DEFAULT} \ + ggrep:textproc/gnugrep \ + ${LOCALBASE}/bin/readelf:devel/binutils -USES= cmake ssl localbase:ldflags +USES= cmake:testing compiler:c++20-lang localbase:ldflags shebangfix +SHEBANG_FILES= test/elf/*.sh USE_GITHUB= yes GH_ACCOUNT= rui314 +PLIST_FILES= bin/ld.mold \ + bin/mold \ + lib/mold/mold-wrapper.so \ + libexec/mold/ld \ + share/man/man1/ld.mold.1.gz \ + share/man/man1/mold.1.gz + + +CMAKE_TESTING_OFF= MOLD_ENABLE_QEMU_TESTS + CMAKE_ON= MOLD_USE_MIMALLOC \ MOLD_USE_SYSTEM_MIMALLOC \ MOLD_USE_SYSTEM_TBB @@ -29,19 +43,44 @@ CMAKE_ON= MOLD_USE_MIMALLOC \ CMAKE_OFF= MOLD_USE_MOLD \ MOLD_USE_TSAN \ MOLD_MOSTLY_STATIC \ - BUILD_TESTING \ - MOLD_LTO + BUILD_TESTING -OPTIONS_DEFINE= ASAN +OPTIONS_DEFINE= ASAN LTO + +ASAN_DESC= Enable Address Sanitizer -ASAN_DESC= Enable Address Sanitizer ASAN_CMAKE_BOOL=MOLD_USE_ASAN -PLIST_FILES= bin/ld.mold \ - bin/mold \ - lib/mold/mold-wrapper.so \ - libexec/mold/ld \ - share/man/man1/ld.mold.1.gz \ - share/man/man1/mold.1.gz +LTO_CMAKE_BOOL= MOLD_LTO + +pre-test: + ### BINARY_ALIAS doesn't work for tests so we need to fix it manually + @${REINPLACE_CMD} -e 's|OBJCOPY=objcopy|OBJCOPY=${PREFIX}/bin/objcopy|g' \ + ${PATCH_WRKSRC}/test/elf/common.inc + @${REINPLACE_CMD} -e 's|OBJDUMP=objdump|OBJDUMP=${PREFIX}/bin/objdump|g' \ + ${PATCH_WRKSRC}/test/elf/common.inc + @${REINPLACE_CMD} -e 's|$$GCC |gcc${GCC_DEFAULT} |g' \ + ${PATCH_WRKSRC}/test/elf/*.sh + @${REINPLACE_CMD} -e 's|gcc |gcc${GCC_DEFAULT} |g' \ + ${PATCH_WRKSRC}/test/elf/*.sh + @${REINPLACE_CMD} -e 's|grep -|${PREFIX}/bin/ggrep -|g' \ + ${PATCH_WRKSRC}/test/elf/*.sh + @${REINPLACE_CMD} -e 's|readelf |${PREFIX}/bin/readelf |g' \ + ${PATCH_WRKSRC}/test/elf/*.sh + ### Depends on LLVMgold plugin which isn't built by binutils + @${RM} ${WRKSRC}/test/elf/defsym-lto.sh + @${RM} ${WRKSRC}/test/elf/lto-archive.sh + @${RM} ${WRKSRC}/test/elf/lto-archive2.sh + @${RM} ${WRKSRC}/test/elf/lto-dso.sh + @${RM} ${WRKSRC}/test/elf/lto-version-script.sh + @${RM} ${WRKSRC}/test/elf/symbol-version-lto.sh + ### These tests errors out with "Unsupported relocation type 36 in non-PLT relocations" + @${RM} ${WRKSRC}/test/elf/tlsdesc.sh + @${RM} ${WRKSRC}/test/elf/tlsdesc-dlopen.sh + @${RM} ${WRKSRC}/test/elf/tlsdesc-initial-exec.sh + @${RM} ${WRKSRC}/test/elf/tlsdesc-local-dynamic.sh + @${RM} ${WRKSRC}/test/elf/wrap-lto.sh + @${RM} ${WRKSRC}/test/elf/x86_64_tlsdesc.sh + @${RM} ${WRKSRC}/test/elf/x86_64_tls-module-base.sh .include diff --git a/devel/mold/distinfo b/devel/mold/distinfo index 31ffd1797b6e..630cb59978e8 100644 --- a/devel/mold/distinfo +++ b/devel/mold/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1714749682 -SHA256 (rui314-mold-v2.31.0_GH0.tar.gz) = 3dc3af83a5d22a4b29971bfad17261851d426961c665480e2ca294e5c74aa1e5 -SIZE (rui314-mold-v2.31.0_GH0.tar.gz) = 10031469 +TIMESTAMP = 1717938067 +SHA256 (rui314-mold-v2.32.0_GH0.tar.gz) = 4b7e4146ea0f52be9adae8b417399f3676a041e65b55e3f25f088120d30a320b +SIZE (rui314-mold-v2.32.0_GH0.tar.gz) = 10005686