Skip to content

build: disable rpm build-id links so orchestrator and orchestrator-cli can be co-installed - #138

Merged
renecannao merged 1 commit into
masterfrom
fix/rpm-build-id-conflict
Nov 20, 2026
Merged

renecannao merged 1 commit into
masterfrom
fix/rpm-build-id-conflict

Conversation

@renecannao

@renecannao renecannao commented Nov 19, 2026 •

Copy link
Copy Markdown

Fixes #136.

Problem

orchestrator and orchestrator-cli ship the same binary (/usr/local/orchestrator/orchestrator and /usr/bin/orchestrator). rpmbuild adds a /usr/lib/.build-id/<xx>/<id> symlink for every packaged ELF file, so both RPMs own the same path and dnf refuses to install them together:

file /usr/lib/.build-id/7b/dca76d6660baa1b772e5cd86301226400bc45e conflicts between attempted installs of orchestrator-1:4.32.0-1.x86_64 and orchestrator-cli-1:4.32.0-1.x86_64

(reproduced with the published v4.32.0 x86_64 RPMs on amazonlinux:2023)

Fix

Pass --rpm-rpmbuild-define '_build_id_links none' to fpm for all three RPMs. We don't ship debuginfo packages, so build-id links aren't needed. deb packaging is unchanged.

Verification

Built with ./build.sh -a amd64 in an ubuntu:24.04 container set up the way release.yml sets up its runner (apt rpm, gem fpm, Go 1.25.7):

  • rpm -qpl: 0 .build-id entries in each of the three RPMs
  • amazonlinux:2023 and rockylinux:9: dnf install ./*.rpm installs all three, rpm -V is clean, both binaries report the version, and removing orchestrator-cli leaves the server binary in place
  • ubuntu:24.04: the three .deb packages still install together

Summary by CodeRabbit

  • Bug Fixes
    • Improved Linux RPM package generation for Orchestrator, Orchestrator CLI, and Orchestrator Client. Debian packages and tarballs are unchanged.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

Or wait 52 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9179bbaf-3336-4a71-b58f-e80075315a4b
Commits

Reviewing files that changed from the base of the PR and between 71e903e and ba88fae.

Files selected for processing: 1

  • build.sh

No actionable comments were generated in the recent review.

Walkthrough

The RPM build commands for orchestrator, orchestrator-cli, and orchestrator-client now disable build-ID links. The Debian package and tarball commands are unchanged.

Changes: RPM build-ID links

Layer / File(s) Summary
Apply the build-ID-link option
build.sh
The three RPM build commands pass the shared option that disables build-ID links. The Debian package commands remain unchanged.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: shlomi-noach

Merge Risk: Minimal · previous review 71e90

RPM packages for orchestrator, orchestrator-cli and orchestrator-client no longer carry build-ID links, so they can be installed side by side. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: disabling rpm build-id links so the orchestrator RPMs can be co-installed. The raw summary confirms build.sh now passes _build_id_links none for the three Linux RPM bu…
Linked Issues check Passed Issue #136 requires that the orchestrator, orchestrator-cli, and orchestrator-client RPMs install side by side. The cause is that rpmbuild adds a /usr/lib/.build-id// symlink for each ELF file…
Out of Scope Changes check Passed The change in the whole-PR diff (merge base 1546138 to head 71e903e) is limited to build.sh, with about +10/-3 lines. All added lines are the rpm_build_opts array, a comment that cites #136, and the a…
Full details: Title check

Explanation

The title names the main change: disabling rpm build-id links so the orchestrator RPMs can be co-installed. The raw summary confirms build.sh now passes _build_id_links none for the three Linux RPM builds, and the objectives tie this to issue #136 about a /usr/lib/.build-id conflict. The title is specific and matches the changeset.

Full details: Linked Issues check

Explanation

Issue #136 requires that the orchestrator, orchestrator-cli, and orchestrator-client RPMs install side by side. The cause is that rpmbuild adds a /usr/lib/.build-id/<xx>/<id> symlink for each ELF file, and both the orchestrator and orchestrator-cli packages ship the identical binary. At head, build.sh defines rpm_build_opts=(--rpm-rpmbuild-define "_build_id_links none") and appends it to the three fpm -t rpm invocations (orchestrator, orchestrator-cli, orchestrator-client). This removes the build-id symlinks that cause the conflict. The deb invocations do not use the array and are unchanged. The install results in the PR description (rpm -qpl with zero .build-id entries, dnf install of all three RPMs on amazonlinux:2023 and rockylinux:9, rpm -V clean, ubuntu deb install) are author-reported. I did not rebuild the packages or run the install, so those results are not independently verified. The code change addresses the stated requirement.

Full details: Out of Scope Changes check

Explanation

The change in the whole-PR diff (merge base 1546138 to head 71e903e) is limited to build.sh, with about +10/-3 lines. All added lines are the rpm_build_opts array, a comment that cites #136, and the array expansion on the three RPM fpm commands. No other packaging, binary, or runtime code changed. The change connects directly to the #136 requirement and does not add unrelated behavior.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit checks the RPM trail,
No build-ID links now fill the mail.
Three packages follow the new rule,
Debian stays just as before.
The rabbit hops along once more.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6d51ef6c-b11d-49e9-943d-c62c0d39067b
Commits

Reviewing files that changed from the base of the PR and between 1546138 and 71e903e.

Files selected for processing: 1

  • build.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@renecannao renecannao closed this Nov 20, 2026
@renecannao renecannao reopened this Nov 20, 2026
…i can be co-installed

The same orchestrator binary is shipped in both the orchestrator and
orchestrator-cli RPMs. Modern rpmbuild generates /usr/lib/.build-id/<xx>/<id>
symlinks for every packaged ELF file, so both packages owned the same
build-id path and dnf refused to install them together:

  file /usr/lib/.build-id/... conflicts between attempted installs of
  orchestrator-1:4.32.0-1 and orchestrator-cli-1:4.32.0-1

We don't produce debuginfo packages, so pass
--rpm-rpmbuild-define '_build_id_links none' to fpm for all RPMs.

Fixes #136
@renecannao
renecannao force-pushed the fix/rpm-build-id-conflict branch from 71e903e to ba88fae Compare November 20, 2026 05:28
@renecannao
renecannao merged commit 272c4a4 into master Nov 20, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RPM: orchestrator and orchestrator-cli conflict on /usr/lib/.build-id when installed together

1 participant