fix(cloudsmith-backfill): bypass rpmrebuild setarch for cross-arch RPMs - #884
Merged
Conversation
ReenigneArcher
force-pushed
the
fix/cloudsmith-backfill
branch
2 times, most recently
from
September 5, 2026 04:26
3887c14 to
7a7d93f
Compare
Add cross-architecture handling in `prepareRpm` to avoid unsupported `setarch` execution during RPM repacks. The script now detects when a bypass is needed, injects a shim `setarch`, writes an `rpmrc` build compatibility override, and passes an explicit `--target` to `rpmrebuild` while preserving deterministic timestamps. Tests were updated to cover the new bypass decision logic and generated compatibility config.
ReenigneArcher
force-pushed
the
fix/cloudsmith-backfill
branch
from
September 5, 2026 04:40
7a7d93f to
f6afe4e
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Add cross-architecture handling in
prepareRpmto avoid unsupportedsetarchexecution during RPM repacks. The script now detects when a bypass is needed, injects a shimsetarch, writes anrpmrcbuild compatibility override, and passes an explicit--targettorpmrebuildwhile preserving deterministic timestamps. Tests were updated to cover the new bypass decision logic and generated compatibility config.Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage
See our AI usage policy.