On Mon, Aug 18, 2025 at 10:29 PM Mamoru TASAKA <mtas...@fedoraproject.org> wrote: > > Ming Lei wrote on 2025/08/18 22:53: > > 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? > > > > Thanks, > > Ming > > > > Perhaps > > %global build_rustflags_orig %build_rustflags > %global build_rustflags %build_rustflags_orig --cfg=io_uring_skip_arch_check
Yeah, it works. Thanks, -- _______________________________________________ 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