From nobody Tue Nov 30 18:30:01 2021 X-Original-To: dev-commits-ports-all@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 B363418B26CD; Tue, 30 Nov 2021 18:30:01 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3W3Y3DS8z3jdm; Tue, 30 Nov 2021 18:30:01 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 4F1DF1AEDD; Tue, 30 Nov 2021 18:30:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AUIU1Ot003317; Tue, 30 Nov 2021 18:30:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AUIU1Kc003298; Tue, 30 Nov 2021 18:30:01 GMT (envelope-from git) Date: Tue, 30 Nov 2021 18:30:01 GMT Message-Id: <202111301830.1AUIU1Kc003298@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Christoph Moench-Tegeder Subject: git: 0a439f39b25e - 2021Q4 - devel/wasi-compiler-rt12: new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cmt X-Git-Repository: ports X-Git-Refname: refs/heads/2021Q4 X-Git-Reftype: branch X-Git-Commit: 0a439f39b25ee0c2228b8e3c9d7b259e6b04d84c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638297001; 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=kWlWZFRpNuIBLLPxyxPmhLVBG3TbJ2P9oi/PrhYCVrk=; b=BbsSKu81hmSmoQTWKhScZ5rwgGIOpgC5tjBlQ+L3anVOhwM9kUju2k6fLAjoLBrFvYpPnk aZdXlvzz0Xc8XGdTtjB1A7MK7v8sjo8eaIHISK1gVc1ew3aHWQ7sg3gTfQDYr6PXs2GjsP r7JBhMwbFZlFN1WBFlpx9deov9rk6Ff8UlferSCICdgO4gD+SeF2h10aF64eQR5Nu5MfPP 7X1HT2bGLqUd6LMzi+Wz7mSDd/wmZVyocjBTpmZ95tPLKXvJ/7LiNNKoOC3NfDksPtIASB 0KCL/FpwLsqBt5Nwqwl9UGkw93S/7zJj9uCV/mvkQ4b+A85guIj3hRrR/epdeQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638297001; a=rsa-sha256; cv=none; b=DphVKGlC1MUFsN4aKlitls8gYJwFqg/j5VxMrpgcQzJPuYRUBItZ+s1eapzUaf0D4iCZyt 3HnsLuyG0WT0RoLEZ3OJwjTS02rZ2CDHDNb7xP2y/gJStroRDmGy9bRgHBb839lKWUzA4r s6xwkgEKYv37eN7XbXS4IcWNPLWxGInTjaYNqasSyDtx+J2ianUbK6IGtdp/Ur6TGdvtXV pC61dNucLMXnPaWWyAI6mIhetFdEihxnTnEXVUGfxDlncRwf+58ZMG5uW3fUmiA7EDpkBF +gp6HKv6zw5TCSPU/Z9VVPvvkV8WjOdtzKWs+WSFj1+kiZfp187TZf6qBurl2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch 2021Q4 has been updated by cmt: URL: https://cgit.FreeBSD.org/ports/commit/?id=0a439f39b25ee0c2228b8e3c9d7b259e6b04d84c commit 0a439f39b25ee0c2228b8e3c9d7b259e6b04d84c Author: Christoph Moench-Tegeder AuthorDate: 2021-11-30 18:18:43 +0000 Commit: Christoph Moench-Tegeder CommitDate: 2021-11-30 18:29:17 +0000 devel/wasi-compiler-rt12: new port step one in unbreaking www/firefox in 2021Q4: we need a wasi-compiler-rt port which matches the clang building firefox, which in turn has to match rust's embedded llvm. rust 1.55 on 2021Q4 has llvm 12. (cherry picked from commit 0741c12be4feae09104b54241a08d9db2d30567f) (also connects devel/wasi-compiler-rt13, which was missed in a previous cherry-pick) --- devel/Makefile | 2 ++ devel/wasi-compiler-rt12/Makefile | 52 ++++++++++++++++++++++++++++++++++++++ devel/wasi-compiler-rt12/distinfo | 3 +++ devel/wasi-compiler-rt12/pkg-descr | 7 +++++ 4 files changed, 64 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d3ff5d15f4c6..bcfe11af68b8 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -7115,6 +7115,8 @@ SUBDIR += wand-libconfig SUBDIR += wandio SUBDIR += wasi-compiler-rt11 + SUBDIR += wasi-compiler-rt12 + SUBDIR += wasi-compiler-rt13 SUBDIR += wasi-libc SUBDIR += wasi-libcxx SUBDIR += wasm3 diff --git a/devel/wasi-compiler-rt12/Makefile b/devel/wasi-compiler-rt12/Makefile new file mode 100644 index 000000000000..531cf8c6e4a3 --- /dev/null +++ b/devel/wasi-compiler-rt12/Makefile @@ -0,0 +1,52 @@ +PORTNAME= compiler-rt +DISTVERSION= 12.0.1 +CATEGORIES= devel lang +MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/ \ + https://${PRE_}releases.llvm.org/${LLVM_RELEASE}/${RCDIR} +PKGNAMEPREFIX= wasi- +PKGNAMESUFFIX= ${LLVM_SUFFIX} +DISTNAME= llvm-project-${DISTVERSION}.src +DISTFILES= llvm-project-${DISTVERSION}.src${EXTRACT_SUFX} + +MAINTAINER= cmt@FreeBSD.org +COMMENT= Clang builtins library for WebAssembly System Interface + +LICENSE= LLVM2 +LICENSE_FILE= ${WRKSRC}/llvm/LICENSE.TXT +LICENSE_NAME= Apache License 2.0 with LLVM Exceptions +LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept + +DEPRECATED= this ports exists solely for building Firefox 95+ in 2021Q4 +EXPIRATION_DATE=2022-01-15 + +LLVM_RELEASE= ${DISTVERSION:C/rc.*//} +LLVM_SUFFIX= ${LLVM_RELEASE:C/\.[0-9]\.[0-9]$//} +LLVM_PREFIX= ${PREFIX}/llvm${LLVM_SUFFIX} + +WASI_SYSROOT= ${LOCALBASE}/share/wasi-sysroot + +BUILD_DEPENDS= ${WASI_SYSROOT}/include/stdarg.h:devel/wasi-libc \ + clang${LLVM_SUFFIX}:devel/llvm${LLVM_SUFFIX} + +USES= cmake tar:xz +NO_ARCH= yes + +PLIST_FILES= llvm${LLVM_SUFFIX}/lib/clang/${LLVM_RELEASE}/lib/wasi/libclang_rt.builtins-wasm32.a + +CC= ${LOCALBASE}/bin/clang${LLVM_SUFFIX} +CXX= ${LOCALBASE}/bin/clang++${LLVM_SUFFIX} + +CMAKE_SOURCE_PATH= ${WRKSRC}/compiler-rt/lib/builtins +CMAKE_INSTALL_PREFIX= ${LLVM_PREFIX}/lib/clang/${LLVM_RELEASE} +CMAKE_ARGS= -DCMAKE_C_COMPILER_WORKS=1 \ + -DCMAKE_SYSROOT=${WASI_SYSROOT} \ + -DLLVM_CONFIG_PATH=${LOCALBASE}/bin/llvm-config${LLVM_SUFFIX} \ + -DCOMPILER_RT_OS_DIR=wasi \ + -DCOMPILER_RT_BAREMETAL_BUILD=TRUE \ + -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=wasm32-wasi \ + -DCOMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=TRUE + +post-build: + ${LOCALBASE}/bin/llvm-ranlib${LLVM_SUFFIX} ${CONFIGURE_WRKSRC}/lib/wasi/*.a + +.include diff --git a/devel/wasi-compiler-rt12/distinfo b/devel/wasi-compiler-rt12/distinfo new file mode 100644 index 000000000000..26e052732b7f --- /dev/null +++ b/devel/wasi-compiler-rt12/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1638258887 +SHA256 (llvm-project-12.0.1.src.tar.xz) = 129cb25cd13677aad951ce5c2deb0fe4afc1e9d98950f53b51bdcfb5a73afa0e +SIZE (llvm-project-12.0.1.src.tar.xz) = 90910004 diff --git a/devel/wasi-compiler-rt12/pkg-descr b/devel/wasi-compiler-rt12/pkg-descr new file mode 100644 index 000000000000..9f4dbd2d452c --- /dev/null +++ b/devel/wasi-compiler-rt12/pkg-descr @@ -0,0 +1,7 @@ +The LLVM Project is a collection of modular and reusable compiler and +toolchain technologies. + +This port includes Clang builtins for WASI +(WebAssembly System Interface). + +WWW: http://llvm.org/