Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-70036

regression in rust-toolset 1.79: %cargo_install macro no longer accepts arguments [rhel-9.5.z]

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • rhel-9.5.z
    • None
    • rust
    • rust-1.79.0-3.el9_5
    • Yes
    • Low
    • ZStream
    • 1
    • rhel-sst-pt-llvm-rust-go
    • ssg_platform_tools
    • 1
    • False
    • Hide

      None

      Show
      None
    • No
    • SST LLVM/Rust/Go Sprint 14
    • Unspecified Release Note Type - Unknown
    • None

      This is a clone of issue RHEL-70035 to use for version rhel-9.5.z

      Original description:
      This is a clone of issue RHEL-67426 to use for version rhel-9.6

      Original description:

      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

      1. fedpkg clone rust-tokei
      2. cd rust-tokei
      3. fedpkg switch-branch epel8
      4. 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.

       

              jistone@redhat.com Josh Stone
              watson-automation Watson Automation
              Josh Stone Josh Stone
              Jesus Checa Hidalgo Jesus Checa Hidalgo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: