Merge branch 'gitaly-fips-mode' into 'master'
Set FIPS_MODE for gitaly and git for FIPS builds Closes #6851 See merge request gitlab-org/omnibus-gitlab!6109
This commit is contained in:
commit
878a2ed011
|
@ -67,7 +67,11 @@ build do
|
|||
"GIT_APPEND_BUILD_OPTIONS += CFLAGS=\"#{git_cflags}\""
|
||||
]
|
||||
|
||||
build_options << "GIT_APPEND_BUILD_OPTIONS += OPENSSLDIR=#{install_dir}/embedded" unless Build::Check.use_system_ssl?
|
||||
if Build::Check.use_system_ssl?
|
||||
env['FIPS_MODE'] = '1'
|
||||
else
|
||||
build_options << "GIT_APPEND_BUILD_OPTIONS += OPENSSLDIR=#{install_dir}/embedded"
|
||||
end
|
||||
|
||||
block do
|
||||
File.open(File.join(project_dir, 'config.mak'), 'a') do |file|
|
||||
|
|
|
@ -52,6 +52,7 @@ build do
|
|||
if Build::Check.use_system_ssl?
|
||||
env['CMAKE_FLAGS'] = OpenSSLHelper.cmake_flags
|
||||
env['PKG_CONFIG_PATH'] = OpenSSLHelper.pkg_config_dirs
|
||||
env['FIPS_MODE'] = '1'
|
||||
end
|
||||
|
||||
bundle "config set --local frozen 'true'"
|
||||
|
|
Loading…
Reference in New Issue