-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-8.10, CentOS Stream 8, CentOS Stream 9, rhel-9.5
-
Yes
-
None
-
rhel-sst-pt-llvm-rust-go
-
ssg_platform_tools
-
None
-
False
-
-
None
-
None
-
None
-
None
-
All
-
None
What were you trying to do that didn't work?
Packages in EPEL 8 and 9 that use the `%cargo_install` macro from rust-toolset and pass arguments to this macro fail to build on top of RHEL 8.10, RHEL 9.5, and in CentOS Stream 9.
The introduction of a subshell inside the `%cargo_install` macro implementation without explicitly passing through arguments causes a parsing failure for any passed arguments instead of them being passed through to `cargo`.
What is the impact of this issue to you?
Packages that need to pass arguments to `%cargo_install` fail to build. Personally, this affects many of my Rust packages in EPEL 8 (for example, rust-ripgrep and rust-tokei).
Please provide the package NVR for which the bug is seen:
rust-toolset-1.79.0-2.module+el8.10.0+22210+e7efad26 (for RHEL 8.10 / EPEL 8)
How reproducible is this bug?:
Always.
Steps to reproduce
- fedpkg clone rust-tokei
- cd rust-tokei
- fedpkg switch-branch epel8
- fedpkg mockbuild
Expected results
Arguments passed to `%cargo_install` are passed through to `cargo`.
Actual results
Arguments passed to `%cargo_install` fail the build due to a syntax error.