user/gitlab-foss: attempt parallel bundle fix

This commit is contained in:
Antoine Martin 2024-02-03 13:22:47 -05:00
parent 7b760382bb
commit c7e617705f
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -87,8 +87,7 @@ _prefix="usr/lib/bundles/$_pkgname"
export BUNDLE_DEPLOYMENT=true
export BUNDLE_FORCE_RUBY_PLATFORM=true
export BUNDLE_FROZEN=true
# Should be tied to $JOBS, but rust native code fails to build
export BUNDLE_JOBS=1
export BUNDLE_JOBS=${JOBS:-2}
prepare() {
local sysgemdir=$(ruby -e 'puts Gem.default_dir')
@ -141,6 +140,8 @@ build() {
bundle config --local build.ruby-magic --enable-system-libraries
bundle config --local build.google-protobuf '-- --with-cflags=-D__va_copy=va_copy'
bundle config --local path "vendor/bundle"
bundle config --local build.prometheus-client-mmap -j 16
bundle config --local build.gitlab-glfm-markdown -j 16
bundle install --no-cache