From nobody Tue May 03 10:28:30 2022 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 4B0851AAA86F; Tue, 3 May 2022 10:28:31 +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 4Ksx4v0M4wz4f3R; Tue, 3 May 2022 10:28:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651573711; 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=mRFifD49KLqRfVt4GqyMKnH1yw0ZSxzg1BuLIc08VoA=; b=id2sGmOnW2DnlOMsFi3FMkVxaQ3I0XJyoVbiZkiOWX1pCVw9v17mQ7x5tvrV6VmA1mVYbT uhLli1uPIu3mROt3GhmNBEvnm6TeQy2sjoFHwcnO1aSlVN94nRSGCLjfo24TSE3ktHLNdB 2Tk5DltOGhChPmdWExp592FfuO1Fqyex6RxdWfds9GaskwyggJN5FCJuDFDBC5ba+AA9x2 HrfeWX+L3u26ku4bcUPHPAif0neb02DhdJj4WyQcR0Y/zlB1ZmZahy/nGShr7p8ZfuyRRc lomOeXGbW0XgDrjM3t+sz1dkGcEI7vFyzdrTygwTB+F55uLvsU8jY/qVq7jybg== 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 DD72C1C91C; Tue, 3 May 2022 10:28:30 +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 243ASUde080676; Tue, 3 May 2022 10:28:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 243ASUA1080675; Tue, 3 May 2022 10:28:30 GMT (envelope-from git) Date: Tue, 3 May 2022 10:28:30 GMT Message-Id: <202205031028.243ASUA1080675@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Tobias Kortkamp Subject: git: cb6d9d1a623b - main - lang/rust-nightly: Update to 1.62.0.20220502 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: tobik X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cb6d9d1a623b5dc4ed815d69211d264819be036e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651573711; 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=mRFifD49KLqRfVt4GqyMKnH1yw0ZSxzg1BuLIc08VoA=; b=DVG4m3IKiG8SfmLePiNrLlNgcekAxfNg6mWEaz6YPv+oLoppkW0k6XZ+JyMdOCOCQJKgE5 5F6tLzBFuMD7lT9dPLza+1SX9eaD/Hk5fbXgJF9t95rqiOdbVaLox9ubGowNahVzkKXjQx JmbJ6MuUYzgQAM4n1J1ExcW6nc8wE7PPhORd7Pic99RPQqOr86tKOe8eiGb9mgMKwJL1ET lp92/kIAWzvxMnqxSRAYZLAHGiLJcLyIBmEsa02Im2uME/pyOSOnTl2e93mvv8TP5WXcyR vk+0DWlJDsSGzAzEcWjaKSESYvaH9q0WgkR2e4UeYnPDUbrjRgu9sJdOBH9NfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651573711; a=rsa-sha256; cv=none; b=lHXdWkX6KVGp/78Jahkggu7lRVlu1ckr5pajTK8Lg4SeK/NsWEMdhcJAZDqYC4BhkcVPfu +biWcObLK1CtQR8lbxD3gMJe2Oc6VKHAfjwdhiGZI2j9dTN0EUOAljfLHWE5E9lueVp2aj WNW2u/3Ugiz38T0BQY8kJZ70n59KQi0ucDcqvJtrsx9FbFCpc2Nx80HVH0OGRn7jFbrYx6 soMjqA90T/fAqS2eh5T8SYpKqP3FlAFqWnt8b+6PFok9+SM3lxa/DSvtln517IIPH+S02r conudYWtqIKvQALuf27mLZxDlT9YI4cuVR9mLR/TAhD7m1KnbI1DRKRH/7Wwxg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tobik: URL: https://cgit.FreeBSD.org/ports/commit/?id=cb6d9d1a623b5dc4ed815d69211d264819be036e commit cb6d9d1a623b5dc4ed815d69211d264819be036e Author: Tobias Kortkamp AuthorDate: 2022-05-03 08:39:44 +0000 Commit: Tobias Kortkamp CommitDate: 2022-05-03 10:28:03 +0000 lang/rust-nightly: Update to 1.62.0.20220502 https://github.com/rust-lang/rust/compare/f4a7ce997a1d7546d2b737f8b87d36907bcea2ad...bed05e996e37e44b1a3980b84754af621fd3c4ce --- lang/rust-nightly/Makefile | 4 +--- lang/rust-nightly/distinfo | 6 +++--- .../files/no-hardlinks/patch-src_bootstrap_native.rs | 14 +++++++++----- .../files/patch-src_bootstrap_builder.rs | 20 ++++++++++++++++++++ .../files/patch-src_bootstrap_install.rs | 8 ++++---- lang/rust/Makefile | 2 ++ 6 files changed, 39 insertions(+), 15 deletions(-) diff --git a/lang/rust-nightly/Makefile b/lang/rust-nightly/Makefile index 72cc3b06a6ff..69510560fe8f 100644 --- a/lang/rust-nightly/Makefile +++ b/lang/rust-nightly/Makefile @@ -16,9 +16,7 @@ MASTERDIR= ${.CURDIR}/../rust PATCHDIR= ${.CURDIR}/files DISTINFO_FILE= ${.CURDIR}/distinfo -OPTIONS_EXCLUDE= DOCS - -NIGHTLY_DATE= 2022-04-09 +NIGHTLY_DATE= 2022-05-02 BOOTSTRAPS_DATE= 2022-04-05 RUST_BOOTSTRAP_VERSION= beta diff --git a/lang/rust-nightly/distinfo b/lang/rust-nightly/distinfo index 6e397a600a31..8bfb4d5e8109 100644 --- a/lang/rust-nightly/distinfo +++ b/lang/rust-nightly/distinfo @@ -1,6 +1,6 @@ -TIMESTAMP = 1649492829 -SHA256 (rust/2022-04-09/rustc-nightly-src.tar.xz) = b31ec602bf925d2af2ea242ca7d539b5e25332590d4b41da188d997cb7ce3fc3 -SIZE (rust/2022-04-09/rustc-nightly-src.tar.xz) = 136886400 +TIMESTAMP = 1651565397 +SHA256 (rust/2022-05-02/rustc-nightly-src.tar.xz) = 21cfcbc8ddc69b0dfc6dfc17c818cf327f94140f182633613d6f7d77387d2ce9 +SIZE (rust/2022-05-02/rustc-nightly-src.tar.xz) = 135572540 SHA256 (rust/2022-04-05/rustc-beta-x86_64-unknown-freebsd.tar.xz) = 5b461322da60b08554f2557deb69485d3991abf13b75750a307c004d6547a42f SIZE (rust/2022-04-05/rustc-beta-x86_64-unknown-freebsd.tar.xz) = 77575576 SHA256 (rust/2022-04-05/rust-std-beta-x86_64-unknown-freebsd.tar.xz) = d457f1c09dd446e30e94e4bcb1e3b5fde9cc54080cbe5e0a329ee810ab07d312 diff --git a/lang/rust-nightly/files/no-hardlinks/patch-src_bootstrap_native.rs b/lang/rust-nightly/files/no-hardlinks/patch-src_bootstrap_native.rs index c1469453237d..1484fdeee67e 100644 --- a/lang/rust-nightly/files/no-hardlinks/patch-src_bootstrap_native.rs +++ b/lang/rust-nightly/files/no-hardlinks/patch-src_bootstrap_native.rs @@ -3,11 +3,11 @@ for building rust-lld. Attempt to improve reliability of the build by not using it. llvm-config-wrapper is a hack in the first place that is only really needed on Windows. ---- src/bootstrap/native.rs.orig 2020-07-17 17:26:27 UTC +--- src/bootstrap/native.rs.orig 2022-05-01 20:28:31 UTC +++ src/bootstrap/native.rs -@@ -542,26 +542,9 @@ impl Step for Lld { +@@ -918,22 +918,6 @@ impl Step for Lld { let mut cfg = cmake::Config::new(builder.src.join("src/llvm-project/lld")); - configure_cmake(builder, target, &mut cfg, true); + configure_cmake(builder, target, &mut cfg, true, LdFlags::default()); - // This is an awful, awful hack. Discovered when we migrated to using - // clang-cl to compile LLVM/LLD it turns out that LLD, when built out of @@ -25,9 +25,13 @@ that is only really needed on Windows. - // there's probably a lot of reasons you can't do that other than this. - let llvm_config_shim = env::current_exe().unwrap().with_file_name("llvm-config-wrapper"); - + // Re-use the same flags as llvm to control the level of debug information + // generated for lld. + let profile = match (builder.config.llvm_optimize, builder.config.llvm_release_debuginfo) { +@@ -945,7 +929,7 @@ impl Step for Lld { cfg.out_dir(&out_dir) - .profile("Release") -- .env("LLVM_CONFIG_REAL", &llvm_config) + .profile(profile) + .env("LLVM_CONFIG_REAL", &llvm_config) - .define("LLVM_CONFIG_PATH", llvm_config_shim) + .define("LLVM_CONFIG_PATH", &llvm_config) .define("LLVM_INCLUDE_TESTS", "OFF"); diff --git a/lang/rust-nightly/files/patch-src_bootstrap_builder.rs b/lang/rust-nightly/files/patch-src_bootstrap_builder.rs new file mode 100644 index 000000000000..a694feae0641 --- /dev/null +++ b/lang/rust-nightly/files/patch-src_bootstrap_builder.rs @@ -0,0 +1,20 @@ +From 934145eb7023047e1add14f8bdad8e62a7c08d00 Mon Sep 17 00:00:00 2001 +From: alexey semenyuk +Date: Mon, 2 May 2022 19:24:50 +0000 +Subject: [PATCH] Enables option split-debuginfo on all platforms + +https://github.com/rust-lang/rust/pull/96648 + +--- src/bootstrap/builder.rs.orig 2022-05-01 20:28:31 UTC ++++ src/bootstrap/builder.rs +@@ -1406,9 +1406,7 @@ impl<'a> Builder<'a> { + // FIXME(davidtwco): #[cfg(not(bootstrap))] - #95612 needs to be in the bootstrap compiler + // for this conditional to be removed. + if !target.contains("windows") || compiler.stage >= 1 { +- if target.contains("linux") || target.contains("windows") { +- rustflags.arg("-Zunstable-options"); +- } ++ rustflags.arg("-Zunstable-options"); + match self.config.rust_split_debuginfo { + SplitDebuginfo::Packed => rustflags.arg("-Csplit-debuginfo=packed"), + SplitDebuginfo::Unpacked => rustflags.arg("-Csplit-debuginfo=unpacked"), diff --git a/lang/rust-nightly/files/patch-src_bootstrap_install.rs b/lang/rust-nightly/files/patch-src_bootstrap_install.rs index 59e25e10468d..e3afe8bad00c 100644 --- a/lang/rust-nightly/files/patch-src_bootstrap_install.rs +++ b/lang/rust-nightly/files/patch-src_bootstrap_install.rs @@ -4,14 +4,14 @@ It otherwise wastes significant time (there are a lot of individual files) and stages host docs, wasm docs, which unstages the host docs first. ---- src/bootstrap/install.rs.orig 2021-03-22 17:05:25 UTC +--- src/bootstrap/install.rs.orig 2022-05-01 20:28:31 UTC +++ src/bootstrap/install.rs -@@ -133,7 +133,7 @@ macro_rules! install { +@@ -138,7 +138,7 @@ macro_rules! install { } install!((self, builder, _config), -- Docs, "src/doc", _config.docs, only_hosts: false, { -+ Docs, "src/doc", _config.docs, only_hosts: true, { +- Docs, path = "src/doc", _config.docs, only_hosts: false, { ++ Docs, path = "src/doc", _config.docs, only_hosts: true, { let tarball = builder.ensure(dist::Docs { host: self.target }).expect("missing docs"); install_sh(builder, "docs", self.compiler.stage, Some(self.target), &tarball); }; diff --git a/lang/rust/Makefile b/lang/rust/Makefile index 63cbce92cd92..f3fad6b4c84e 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -51,7 +51,9 @@ TMPDIR?= ${WRKDIR} OPTIONS_DEFINE= DOCS GDB SOURCES WASM OPTIONS_DEFAULT= SOURCES WASM +.if !defined(NIGHTLY_DATE) OPTIONS_EXCLUDE= DOCS # https://github.com/rust-lang/rust/issues/76526 +.endif GDB_DESC= Install ports gdb (necessary for debugging rust programs) SOURCES_DESC= Install source files