Skip to content
Snippets Groups Projects
Commit 30d0a1dbc4c2 authored by Stan Hu's avatar Stan Hu
Browse files

Ensure Omnibus GitLab gems are recompiled for older platforms

The ffi gem just released a precompiled gem for `aarch64-linux-musl`,
which is built with Ubuntu 20.04 with glibc 2.27. As a result, older
systems, such as Amazon Linux 2, need to enable `force_ruby_platform
true` to ensure any native gems continue to work. This will
be needed if the `ffi` gem is updated to 1.17.0.

Relates to https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8570
parent 58148f07f7c2
No related branches found
No related tags found
1 merge request!143Merge upstream Omnibus GitLab up to the 17.1 branching point
......@@ -15,6 +15,7 @@
## limitations under the License.
#
require "#{Omnibus::Config.project_root}/lib/gitlab/ohai_helper.rb"
name 'omnibus-gitlab-gems'
default_version '20240110'
......@@ -49,6 +50,7 @@
target_gemfile = File.join(gemfile_dir, 'Gemfile')
env['BUNDLE_GEMFILE'] = target_gemfile
bundle "config set --local frozen 'true'", env: env
bundle 'config force_ruby_platform true', env: env if OhaiHelper.ruby_native_gems_unsupported?
bundle "install --jobs #{workers} --retry 5", env: env
bundle "exec license_finder report --project_path=#{gemfile_dir} --decisions-file=#{Omnibus::Config.project_root}/support/dependency_decisions.yml --format=json --columns name version licenses texts notice --save=license.json", env: env
copy "license.json", "#{install_dir}/licenses/omnibus-gitlab-gems.json"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment