这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ekund
Copy link

@ekund ekund commented Mar 22, 2021

For CentOS 8, there is a new feature to add a unique build ID into binaries for debugging.

Because we pull in the same protobuf shared libraries as the gitlab-ce package, this causes a conflict on CentOS 8, where a user cannot install both google-fluentd and gitlab-ce on the same system.

To preproduce:

sudo yum install -y gitlab-ce
sudo yum install -y google-fluentd

This will cause errors that look like this:

Error: Transaction test error:
  file /usr/lib/.build-id/03/7134a815d9dee349c79441308dc859c9c19552 from install of gitlab-ce-13.9.4-ce.0.el8.x86_6
4 conflicts with file from package google-fluentd-1.8.6-1.el8.x86_64
  file /usr/lib/.build-id/0d/90119aaa095b3cffa6741a4500f27115cc198b from install of gitlab-ce-13.9.4-ce.0.el8.x86_6
4 conflicts with file from package google-fluentd-1.8.6-1.el8.x86_64
  file /usr/lib/.build-id/2d/6515fd5646bb470acf3fcfc43283e86b7284b1 from install of gitlab-ce-13.9.4-ce.0.el8.x86_6
4 conflicts with file from package google-fluentd-1.8.6-1.el8.x86_64
  file /usr/lib/.build-id/32/325ba55786e5c9d0d545be97277a7eac4c43d0 from install of gitlab-ce-13.9.4-ce.0.el8.x86_6
4 conflicts with file from package google-fluentd-1.8.6-1.el8.x86_64
  file /usr/lib/.build-id/3e/e4b1c0709d8d27fad31c2e54c88c24cc2b6f6d from install of gitlab-ce-13.9.4-ce.0.el8.x86_6
4 conflicts with file from package google-fluentd-1.8.6-1.el8.x86_64

In order to fix this, we will turn off build_id generation for google-fluent by adding %define _build_id_links none to a new resources/td-agent/rpm/rpmmacros.erb file in our repo to turn off this feature, as per Omnibus docs: https://github.com/chef/omnibus/blob/master/docs/Building%20on%20RHEL.md).

@google-cla google-cla bot added the cla: yes label Mar 22, 2021
%_signature gpg
%_gpg_path <%= gpg_path %>
%_gpg_name <%= gpg_name %>
%define debug_package %{nil}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your initial commit (with %define _build_id_links none) should have been sufficient… Any reason it didn't work?

@ekund
Copy link
Author

ekund commented Apr 16, 2021

I'm having trouble with testing this PR and with the many versions. I started a new PR that has the ulitmate fix and is cleaner: #328

@ekund ekund closed this Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants