fix(rpm): support rpmbuild 4.20+ per-package build directory #1084
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.35) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 165 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.306
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1084"
general
weight: 0.35
aiuto
RPM 4.20 introduced a per-package build directory and redefined
%{_builddir}accordingly (rpm-software-management/rpm#2885).As a result, the paths generated by
rules_pkgfor%install, which were relative to the previous working directory, no longer resolve:This change makes the generated paths independent of
rpmbuild's working directory:%installcopies inputs from%{_topdir}/BUILD, wheremake_rpm.pystages them,%files -freceives an absolute path,This also removes the debuginfo-specific
../path variant introduced in #1006, since the same paths now work across RPM versions.The RPM test spec relied on the working directory as well and gets the same anchor.
RPM 4.20 also makes
buildsubdir .usable again, while theBUILD_SUBpath used for RPM 4.18 and 4.19 is no longer reachable from the new per-package build directory.Debuginfo autodetection therefore selects:
Validated with
//tests/rpm/...,//toolchains/..., and//pkg/legacy/tests/rpm/...against RPM 4.18.2 and 6.0.1, CI covering RPM 4.17.Fixes #938.