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

Disable zstd decompression with libmagic

ruby-magic updated to libmagic v5.44, which added support for zstd
decompression support. Unlike most of our other builders, it appears
that Amazon Linux needs `libzstd` to support `dnf`.

With ruby-magic v0.6.0 in
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/114641, we can
use the `--with-magic-flags` to disable this functionality outright
since this system dependency may not be safe to use.

Relates to https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/7672

Changelog: changed
parent 41bc15dab108
No related branches found
No related tags found
2 merge requests!102heptapod#1237: making 0.38 the new oldstable,!92Merging upstream 15.10.0+ce.0
......@@ -99,6 +99,9 @@
bundle 'config build.gpgme --use-system-libraries', env: env
bundle "config build.nokogiri --use-system-libraries --with-xml2-include=#{install_dir}/embedded/include/libxml2 --with-xslt-include=#{install_dir}/embedded/include/libxslt", env: env
bundle 'config build.grpc --with-ldflags=-Wl,--no-as-needed --with-dldflags=-latomic', env: env if OhaiHelper.os_platform == 'raspbian'
# Disable zstd decompression support to avoid linking against libzstd,
# which may not be a safe system dependency to use.
bundle 'config build.ruby-magic --with-magic-flags=--disable-zstdlib', env: env
bundle "config set --local frozen 'true'"
bundle "install --without #{bundle_without.join(' ')} --jobs #{workers} --retry 5", env: env
......
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