Remove the subshell in the cargo_install macro

Resolves: RHEL-67426
This commit is contained in:
Josh Stone 2024-12-06 16:12:29 -08:00
parent 707934d3c6
commit 5d9bd7358c
2 changed files with 11 additions and 11 deletions

View File

@ -154,16 +154,13 @@ EOF}\
# of a specific binary has been installed, but which conflicts between builds # of a specific binary has been installed, but which conflicts between builds
# of different Rust applications and is not needed when building RPM packages. # of different Rust applications and is not needed when building RPM packages.
%cargo_install\ %cargo_install\
(\ %{shrink: \
set -euo pipefail \ %{__cargo} install \
%{shrink: \ %{__cargo_common_opts} \
%{__cargo} install \ --profile rpm \
%{__cargo_common_opts} \ --no-track \
--profile rpm \ --path . \
--no-track \ }
--path . \
} \
)
# cargo_license: print license information for all crate dependencies # cargo_license: print license information for all crate dependencies
# #

View File

@ -1,6 +1,6 @@
Name: rust Name: rust
Version: 1.79.0 Version: 1.79.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: The Rust Programming Language Summary: The Rust Programming Language
License: (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-DFS-2016) License: (Apache-2.0 OR MIT) AND (Artistic-2.0 AND BSD-3-Clause AND ISC AND MIT AND MPL-2.0 AND Unicode-DFS-2016)
# ^ written as: (rust itself) and (bundled libraries) # ^ written as: (rust itself) and (bundled libraries)
@ -1139,6 +1139,9 @@ timeout -v 30m %{__x} test --no-fail-fast rustfmt || :
%changelog %changelog
* Fri Dec 06 2024 Josh Stone <jistone@redhat.com> - 1.79.0-3
- Remove the subshell in the cargo_install macro
* Tue Aug 13 2024 Josh Stone <jistone@redhat.com> - 1.79.0-2 * Tue Aug 13 2024 Josh Stone <jistone@redhat.com> - 1.79.0-2
- Disable jump threading of float equality - Disable jump threading of float equality