Fedora Account System
Red Hat Associate
Red Hat Customer
Currently, netavark is built without default Fedora compiler flags for Rust code (i.e. "-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn" on Fedora 37) - essentially, the code is not fully optimized, and does not contain debuginfo or frame pointers. RUSTFLAGS are the standard environment variable for setting compiler flags for rustc (similar to CFLAGS / CXXFLAGS / LDFLAGS), but they aren't set by default (and not yet included in %set_build_flags, but I've reported an RFE about this). It appears that netavark Makefile hard-codes just `--release` flag for cargo, which only implies `-Copt-level=2`. This results in netavark not having valid debug symbols (explains why rpmbuild fails to generate debuginfo packages!), its code not being optimized to the same level as other Rust code in Fedora, and it not respecting other flags for better code quality and / or debuggability. Two possible solutions might be to export RUSTFLAGS and have the build process honor these settings, or to invoke `%__cargo` instead of `cargo`, as that macro includes RUSTFLAGS (but might have other side effects).
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle. Changing version to 38.
FEDORA-2023-9871840a59 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-9871840a59
FEDORA-2023-9871840a59 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-9871840a59` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-9871840a59 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-9871840a59 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.