From 9beef697b7d4d3b22c4cd9211bbaf900d5321658 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 27 2020 19:09:43 +0000 Subject: import rust-1.45.2-1.module+el8.3.0+7604+5c4fe027 --- diff --git a/.gitignore b/.gitignore index f04a2ff..1dc9ca7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/rustc-1.45.0-src.tar.xz +SOURCES/rustc-1.45.2-src.tar.xz diff --git a/.rust.metadata b/.rust.metadata index 3cc07c5..9082dca 100644 --- a/.rust.metadata +++ b/.rust.metadata @@ -1 +1 @@ -7447f361432a8c569eb5b5ab85b784a898dd61d2 SOURCES/rustc-1.45.0-src.tar.xz +ef2e4d6a728918cc78dd535a3d6d842fa485e8c7 SOURCES/rustc-1.45.2-src.tar.xz diff --git a/SOURCES/0001-Fix-jobserver_exists-test-on-single-cpu-systems.patch b/SOURCES/0001-Fix-jobserver_exists-test-on-single-cpu-systems.patch new file mode 100644 index 0000000..1650679 --- /dev/null +++ b/SOURCES/0001-Fix-jobserver_exists-test-on-single-cpu-systems.patch @@ -0,0 +1,29 @@ +From 02fc16aece46abcd23d2ade2d969497f07fe26ab Mon Sep 17 00:00:00 2001 +From: Alex Crichton +Date: Fri, 7 Aug 2020 12:50:25 -0700 +Subject: [PATCH] Fix jobserver_exists test on single-cpu systems + +Closes #8595 +--- + tests/testsuite/jobserver.rs | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/tests/testsuite/jobserver.rs b/tests/testsuite/jobserver.rs +index 9e91c956cd75..16518ee2c614 100644 +--- a/tests/testsuite/jobserver.rs ++++ b/tests/testsuite/jobserver.rs +@@ -51,7 +51,10 @@ fn jobserver_exists() { + .file("src/lib.rs", "") + .build(); + +- p.cargo("build").run(); ++ // Explicitly use `-j2` to ensure that there's eventually going to be a ++ // token to read from `valdiate` above, since running the build script ++ // itself consumes a token. ++ p.cargo("build -j2").run(); + } + + #[cargo_test] +-- +2.26.2 + diff --git a/SPECS/rust.spec b/SPECS/rust.spec index 0334473..0b2cfe1 100644 --- a/SPECS/rust.spec +++ b/SPECS/rust.spec @@ -49,7 +49,7 @@ %endif Name: rust -Version: 1.45.0 +Version: 1.45.2 Release: 1%{?dist} Summary: The Rust Programming Language License: (ASL 2.0 or MIT) and (BSD and MIT) @@ -64,6 +64,9 @@ ExclusiveArch: %{rust_arches} %endif Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz +# https://github.com/rust-lang/cargo/pull/8598 +Patch1: 0001-Fix-jobserver_exists-test-on-single-cpu-systems.patch + # Disable cargo->libgit2->libssh2, as it's not approved for FIPS (rhbz1732949) Patch10: rustc-1.42.0-disable-libssh2.patch @@ -399,6 +402,8 @@ test -f '%{local_rust_root}/bin/rustc' %setup -q -n %{rustc_package} +%patch1 -p1 -d src/tools/cargo + %if %with disabled_libssh2 %patch10 -p1 %endif @@ -723,6 +728,9 @@ rm -f %{buildroot}%{rustlibdir}/etc/lldb_*.py* %changelog +* Tue Aug 04 2020 Josh Stone - 1.45.2-1 +- Update to 1.45.2. + * Thu Jul 16 2020 Josh Stone - 1.45.0-1 - Update to 1.45.0.