Skip to content

Commit

Permalink
Fix missing dependency of :ruby task
Browse files Browse the repository at this point in the history
Signed-off-by: Takuro Ashie <[email protected]>
  • Loading branch information
ashie committed May 10, 2022
1 parent 6b42521 commit 319b52a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions td-agent/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class BuildTask
namespace :build do
desc "Install jemalloc"
task :jemalloc => [:"download:jemalloc"] do
build_jemalloc unless windows?
build_jemalloc
end

desc "Install OpenSSL"
Expand All @@ -414,15 +414,16 @@ class BuildTask

desc "Install Ruby"
task :ruby => [:jemalloc, :openssl, :"download:ruby"] do
if windows?
extract_ruby_installer
apply_ruby_installer_patches
replace_openssl_in_ruby_installer
setup_windows_build_env
find_and_put_dynamiclibs
else
build_ruby_from_source
end
build_ruby_from_source
end

desc "Install Ruby for Windows"
task :rubyinstaller => [:"download:rubyinstaller", ":download:mingw_openssl"] do
extract_ruby_installer
apply_ruby_installer_patches
replace_openssl_in_ruby_installer
setup_windows_build_env
find_and_put_dynamiclibs
end

desc "Install ruby gems"
Expand All @@ -443,7 +444,7 @@ class BuildTask
end

desc "Install fluentd"
task :fluentd => [:"download:fluentd", :ruby] do
task :fluentd => [:"download:fluentd", windows? ? :rubyinstaller : :ruby] do
cd(DOWNLOADS_DIR) do
archive_path = @download_task.file_fluentd_archive
fluentd_dir = archive_path.sub(/\.tar\.gz$/, '')
Expand Down

0 comments on commit 319b52a

Please sign in to comment.