Commit 888ecef6f5cd4d7d0d470b42f85d44f0344f4c8e
1 parent
bdd23b71
Exists in
master
and in
2 other branches
Use standard omnibus-ruby build environments
Showing
6 changed files
with
13 additions
and
26 deletions
Show diff stats
config/software/git.rb
... | ... | @@ -28,13 +28,9 @@ source :url => "https://www.kernel.org/pub/software/scm/git/git-#{version}.tar.g |
28 | 28 | |
29 | 29 | relative_path "git-#{version}" |
30 | 30 | |
31 | -env = { | |
32 | - "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | |
33 | - "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | |
34 | - "LD_RUN_PATH" => "#{install_dir}/embedded/lib", | |
35 | -} | |
36 | - | |
37 | 31 | build do |
32 | + env = with_standard_compiler_flags(with_embedded_path) | |
33 | + | |
38 | 34 | command ["./configure", |
39 | 35 | "--prefix=#{install_dir}/embedded", |
40 | 36 | "--with-curl=#{install_dir}/embedded", | ... | ... |
config/software/gitlab-rails.rb
... | ... | @@ -35,13 +35,9 @@ dependency "rugged" |
35 | 35 | |
36 | 36 | source :git => "https://gitlab.com/gitlab-org/gitlab-ce.git" |
37 | 37 | |
38 | -env = { | |
39 | - "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | |
40 | - "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | |
41 | - "LD_RUN_PATH" => "#{install_dir}/embedded/lib", | |
42 | -} | |
43 | - | |
44 | 38 | build do |
39 | + env = with_standard_compiler_flags(with_embedded_path) | |
40 | + | |
45 | 41 | # GitLab assumes it can extract the Git revision of the currently version |
46 | 42 | # from the Git repo the code lives in at boot. Because of our rsync later on, |
47 | 43 | # this assumption does not hold. The sed command below patches the GitLab | ... | ... |
config/software/libicu.rb
... | ... | @@ -24,13 +24,9 @@ source :url => "http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src. |
24 | 24 | |
25 | 25 | relative_path 'icu/source' |
26 | 26 | |
27 | -env = { | |
28 | - "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | |
29 | - "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | |
30 | - "LD_RUN_PATH" => "#{install_dir}/embedded/lib" | |
31 | -} | |
32 | - | |
33 | 27 | build do |
28 | + env = with_standard_compiler_flags(with_embedded_path) | |
29 | + | |
34 | 30 | command ["./runConfigureICU", |
35 | 31 | "Linux/gcc", |
36 | 32 | "--prefix=#{install_dir}/embedded", | ... | ... |
config/software/mysql-client.rb
... | ... | @@ -27,14 +27,11 @@ source :url => "http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.37.tar.g |
27 | 27 | |
28 | 28 | relative_path "mysql-#{version}" |
29 | 29 | |
30 | -env = { | |
31 | - "LDFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | |
32 | - "CFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", | |
30 | +env = with_standard_compiler_flags(with_embedded_path) | |
31 | +env.merge!( | |
33 | 32 | "CXXFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", |
34 | 33 | "CPPFLAGS" => "-L#{install_dir}/embedded/lib -I#{install_dir}/embedded/include", |
35 | - "LD_RUN_PATH" => "#{install_dir}/embedded/lib", | |
36 | - "PATH" => "#{install_dir}/embedded/bin:#{ENV['PATH']}", | |
37 | -} | |
34 | +) | |
38 | 35 | |
39 | 36 | # Force CentOS-5 to use gcc/g++ v4.4 |
40 | 37 | if Ohai['platform'] =~ /centos/ and Ohai['platform_version'] =~ /^5/ | ... | ... |
config/software/python-docutils.rb
... | ... | @@ -24,5 +24,6 @@ dependency "pip" |
24 | 24 | dependency "python" |
25 | 25 | |
26 | 26 | build do |
27 | - command "#{install_dir}/embedded/bin/pip install docutils==#{version}" | |
27 | + env = with_standard_compiler_flags(with_embedded_path) | |
28 | + command "#{install_dir}/embedded/bin/pip install docutils==#{version}", env: env | |
28 | 29 | end | ... | ... |
config/software/remote-syslog.rb
... | ... | @@ -23,5 +23,6 @@ dependency "ruby" |
23 | 23 | dependency "rubygems" |
24 | 24 | |
25 | 25 | build do |
26 | - gem "install remote_syslog -n #{install_dir}/embedded/bin --no-rdoc --no-ri -v #{version}" | |
26 | + env = with_standard_compiler_flags(with_embedded_path) | |
27 | + gem "install remote_syslog -n #{install_dir}/embedded/bin --no-rdoc --no-ri -v #{version}", env: env | |
27 | 28 | end | ... | ... |