Repository navigation
fix(copr): add PIE flag for aws-lc probe - #10974
Conversation
Entire-Checkpoint: 37c30f3fe0b7
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe COPR build script’s generated RPM spec now appends ChangesCOPR PIE flag configuration
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR fixes a build failure on Fedora 44 x86_64 COPR by appending
Confidence Score: 5/5Targeted one-liner fix inside a well-scoped RPM macro guard; no logic paths are altered and existing hardening flags are preserved. The change is a single No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "fix(copr): add PIE flag for aws-lc probe" | Re-trigger Greptile |
Hyperfine Performance
|
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.7.5 x -- echo |
21.4 ± 1.1 | 19.5 | 26.1 | 1.00 |
mise x -- echo |
23.0 ± 2.0 | 20.2 | 46.2 | 1.08 ± 0.11 |
mise env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.7.5 env |
21.7 ± 1.2 | 19.4 | 29.4 | 1.00 |
mise env |
22.4 ± 1.3 | 20.0 | 28.0 | 1.03 ± 0.08 |
mise hook-env
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.7.5 hook-env |
22.7 ± 1.2 | 20.1 | 29.0 | 1.00 |
mise hook-env |
23.3 ± 1.3 | 20.7 | 28.2 | 1.03 ± 0.08 |
mise ls
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
mise-2026.7.5 ls |
20.0 ± 1.1 | 17.3 | 24.9 | 1.00 |
mise ls |
20.1 ± 1.3 | 17.9 | 27.5 | 1.01 ± 0.09 |
xtasks/test/perf
| Command | mise-2026.7.5 | mise | Variance |
|---|---|---|---|
| install (cached) | 178ms | 176ms | +1% |
| ls (cached) | 66ms | 67ms | -1% |
| bin-paths (cached) | 70ms | 72ms | -2% |
| task-ls (cached) | 131ms | 135ms | -2% |
Summary
-fPIEto Fedora x86_64 COPRLDFLAGSaws-lc-syscompiler probeRoot cause
aws-lc-syscompiles and links itsmemcmp_invalid_stripped_checkprobe in a single compiler invocation. The probe intentionally ignoresCFLAGS, but applies Fedora'sLDFLAGS. Fedora 44's hardened linker specs produce a PIE executable, while the probe's object is compiled without-fPIE, causing anR_X86_64_32relocation failure.Adding
-fPIEtoLDFLAGSsupplies the matching compile flag in that combined invocation without removing Fedora's hardening flags.Related to #10921.
Validation
aws-lc-sys 0.42.0probe in a Fedora 44 x86_64 container-fPIErpmspecmise run lint-fixNote
Low Risk
Packaging-only change scoped to Fedora x86_64 COPR RPM builds; no runtime application logic.
Overview
Fixes Fedora x86_64 COPR builds that fail during the
aws-lc-sysmemcmpcompiler probe when hardened linker flags produce a PIE binary but the probe object is not position-independent.The generated RPM
%buildsection now exportsLDFLAGS="${LDFLAGS:-} -fPIE"for%if 0%{?fedora}and%ifarch x86_64, appending the compile flag in the same combined compile/link step without dropping existing Fedora hardening. Inline comments document whyCFLAGSare ignored by the probe and why this workaround is needed.Reviewed by Cursor Bugbot for commit 4897545. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit