Skip to content
Snippets Groups Projects
Unverified Commit 12c729f3 authored by Balasankar C's avatar Balasankar C
Browse files

Set ac_cv_func_inotify_init=no flag for gnupg in Centos 6

parent 5bbc63c9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -35,9 +35,18 @@ relative_path "gnupg-#{version}"
 
build do
env = with_standard_compiler_flags(with_embedded_path)
# For gnupg to build fine in Debian Wheezy and Centos ^
env['LDFLAGS'] << " -lrt"
config_flags = ""
# CentOS 6 doesn't have inotify, which will raise an error
# IN_EXCL_UNLINK undeclared. Hence disabling it explicitly.
if ohai['platform'] =~ /centos/ && ohai['platform_version'] =~ /^6/
config_flags = "ac_cv_func_inotify_init=no"
end
command './configure ' \
"--prefix=#{install_dir}/embedded --disable-doc --without-readline --disable-sqlite --disable-gnutls --disable-dirmngr", env: env
"--prefix=#{install_dir}/embedded --disable-doc --without-readline --disable-sqlite --disable-gnutls --disable-dirmngr #{config_flags}", env: env
 
make "-j #{workers}", env: env
make 'install', env: env
Loading
Loading
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