Bug 2167213 - 389-ds-base does not honor standard Fedora compiler flags for Rust
Summary: 389-ds-base does not honor standard Fedora compiler flags for Rust
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: 389-ds-base
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Viktor Ashirov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-05 20:47 UTC by Fabio Valentini
Modified: 2026-01-13 07:38 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-01-13 04:56:24 UTC
Type: Bug
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 6306 0 None open 389-ds-base does not honor standard Fedora compiler flags for Rust 2024-08-21 20:04:47 UTC
Red Hat Issue Tracker FC-2549 0 None None None 2025-10-14 19:15:30 UTC

Description Fabio Valentini 2023-02-05 20:47:06 UTC
Currently, the Rust module in 389-ds-base 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") - 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 the 389-ds-base build system currently hard-codes these compiler flags: --release --verbose -- -C debuginfo=2

This results in Rust code compiled as part of 389-ds-base not being optimized at the same level as other Rust code in Fedora (i.e. `-Copt-level=3` is default in Fedora, but `--release` mode only implies `-Copt-level=2`), and it also doesn't include the other mandatory compiler flags, which result in better quality of generated code (and on rawhide, includes frame pointers on x86_64 and aarch64).

Comment 1 Ben Cotton 2023-02-07 15:08:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 38 development cycle.
Changing version to 38.

Comment 2 Fedora Release Engineering 2023-08-16 07:06:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 3 Aoife Moloney 2024-02-15 22:56:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle.
Changing version to 40.

Comment 4 Aoife Moloney 2025-02-26 12:53:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 6 Fedora Update System 2026-01-13 03:45:23 UTC
FEDORA-2026-f22f061428 (openldap-2.6.10-5.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-f22f061428

Comment 7 Fedora Update System 2026-01-13 04:56:24 UTC
FEDORA-2026-f22f061428 (openldap-2.6.10-5.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Viktor Ashirov 2026-01-13 07:38:06 UTC
This was closed by mistake by an unrelated update in openldap. Reopening.


Note You need to log in before you can comment on or make changes to this bug.