Force ffi gem to use Ruby platform gem
ffi v1.17.0 started shipping precompiled native gems for x86 and aarch64 Linux. However, these precompiled gems don't include the Omnibus library path (`/opt/gitlab/embedded/lib`) as part of the default `LD_LIBRARY_PATH`, so libraries such as `libarchive` can't be loaded from Omnibus. Bundler allows us to ignore the precompiled gems by using `force_ruby_platform` in the `Gemfile`, so use this feature to effectively restore the behavior in previous ffi gem versions. Relates to https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8590 Changelog: fixed
parent
9e444ffe83b1
No related branches found
No related tags found
Showing
- config/software/omnibus-gitlab-gems.rb 1 addition, 1 deletionconfig/software/omnibus-gitlab-gems.rb
- config/templates/omnibus-gitlab-gems/Gemfile 4 additions, 0 deletionsconfig/templates/omnibus-gitlab-gems/Gemfile
- config/templates/omnibus-gitlab-gems/Gemfile.lock 1 addition, 0 deletionsconfig/templates/omnibus-gitlab-gems/Gemfile.lock
Loading
Please register or sign in to comment