On Mon, Aug 18, 2025 at 3:53 PM Ming Lei <ming....@redhat.com> wrote:
>
> Hello,
>
> I am trying to add `export RUSTFLAGS="${RUSTFLAGS}
> --cfg=io_uring_skip_arch_check"`
> during %build, however looks it doesn't work, please see the following log[1]:
>
> + export 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1
> -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes
> --cap-lints=warn --cfg=io_uring_skip_arch_check'
> + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1
> -Cstrip=none -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes
> --cap-lints=warn --cfg=io_uring_skip_arch_check'
> + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1
> 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none
> -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes
> --cap-lints=warn' /usr/bin/cargo build -j2 -Z avoid-dev-deps --profile
> rpm
>
> [1] https://kojipkgs.fedoraproject.org//work/tasks/2169/136202169/build.log
>
> `io-uring` crate needs to skip arch check, otherwise it is easy to
> trigger failure because of missing definition.
>
> Can anyone provide one hint about how to override ${RUSTFLAGS} in .spec?

Skipping the arch check is the completely wrong thing to do here.
It would get you past the initial bail, but likely just cause other
issues later - and potentially worse ones.

Instead, you probably need to force regeneration of the io-uring Rust
bindings to make sure they're up-to-date and match the host
architecture.

Fabio
-- 
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to