Skip to content

Fix for Build ID conflicts - disabling build id generation - #2147

Open
rathboma wants to merge 1 commit into
jordansissel:mainfrom
rathboma:fix/disable-rpm-build-id-links
Open

Fix for Build ID conflicts - disabling build id generation#2147
rathboma wants to merge 1 commit into
jordansissel:mainfrom
rathboma:fix/disable-rpm-build-id-links

Conversation

@rathboma

Copy link
Copy Markdown

Full disclosure: This fix is generated by Claude. I did review it and did a bit of research on the purpose of Build IDs. Seems like they're mostly used for debugging, and it doesn't really hurt to remove them in FPM's case?

This adds %define _build_id_links none to the spec template, consistent with how FPM already disables other rpmbuild post-processing defaults.

Users who need build-id links can override with:
--rpm-rpmbuild-define '_build_id_links compat'

Fixes #2142

rpmbuild generates .build-id symlinks under /usr/lib/.build-id/ by
default. When multiple packages include pre-built ELF binaries with
identical build-ids (common with Electron apps bundling the same
Chromium libraries), these symlinks conflict at install time.

Since FPM packages pre-built binaries rather than source-compiled ones,
these build-id links serve no useful purpose. This adds
%define _build_id_links none to the spec template, consistent with how
FPM already disables other rpmbuild post-processing defaults.

Users who need build-id links can override with:
  --rpm-rpmbuild-define '_build_id_links compat'

Fixes jordansissel#2142
@jordansissel

Copy link
Copy Markdown
Owner

Thanks for working on this!

Regarding Claude, the copyright aspects are unclear to me (and to current case law in the US?). Given that, I'm not comfortable accepting this PR.

That said, I am in favor of eliminating the build id files in rpm outputs. I'll take a look at implementing that soon; and fortunately, removing the build id is a pretty simple change <3

@jordansissel

Copy link
Copy Markdown
Owner

I’ll take a look at this again shortly. It’s small enough that I can probably evaluate it and move forward :)

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.

Electron bundled dependencies conflict during RPM install and install fails (not sure if this is an FPM issue?)

2 participants