-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare for td-agent 4 #24
Conversation
I've found the following unexpected shebang in the built package:
|
They don't exist when I build it with Ruby-2.6.5. |
These dependency should be added to our spec file. |
I've confirmed that the following quick hack resolves it: |
# These have wrong shebangs. Exclude them for now and let's see what upstream
# thinks about them.
# https://bugs.ruby-lang.org/issues/15982
%exclude %{_bindir}/{racc2y,y2racc}
%exclude %{gem_dir}/gems/racc-%{racc_version}/bin/{racc2y,y2racc} Related links: |
https://github.com/clear-code/td-agent-builder/pull/24/checks?check_run_id=569944780
@cosmo0920 Do you have any idea to resolve it? |
How about using |
Hmm, nokogiri 0.11.0.rc2 includes Ruby 2.7 binary.... |
They take along with unexpected dependency since they contains wrong shebang. In addition, they are already removed at upstream. See also: * https://bugs.ruby-lang.org/issues/15982 * ruby/racc#123 * https://src.fedoraproject.org/rpms/ruby/c/baf046a6a4d17fa309c9d20fa3db949f6c24aacf?branch=master * #24 Signed-off-by: Takuro Ashie <[email protected]>
They take along with unexpected dependency since they contain wrong shebang. In addition, they are already removed at upstream. See also: * https://bugs.ruby-lang.org/issues/15982 * ruby/racc#123 * https://src.fedoraproject.org/rpms/ruby/c/baf046a6a4d17fa309c9d20fa3db949f6c24aacf?branch=master * #24 Signed-off-by: Takuro Ashie <[email protected]>
I also decide to remove them: #28 |
#28 has been merged.
|
When I add nokogoiri to plugin_gems.rb, it takes toooo long time to build (over 30min?). Instead of building nokogiri we'll release a new version fluent-plugin-windows-eventlog which relaxes the required version of nokogiri. |
I'd released the new versions of fluent-plugin-windows-eventlog and fluent-plugin-parser-winevt_xml. They will be able to use nokogiri 1.11.0. |
@ashie How about including jemalloc in td-agent? BTW, why zstd is needed for td-agent? |
I'll try it: #29
librdkafka.so depends on it:
Since this compile switch is optional, this dependency can be removed easily. |
I'd like to enable zstd. zstd is used for compression on Kafka. If we remove it, librdkafka will not enable zstd compression. |
I've found that it can be linked statically: https://github.com/edenhill/librdkafka#requirements
( |
Hmm, CentOS doesn't seem provide static library of zstd. |
librdkafka.so in official td-agent-3.7.0 doesn't support zstd:
|
36eec19
to
142d40e
Compare
fluent-plugin-windows-eventlog v0.6.0 removes nokogiri dependency by default. |
If current td-agent doesn't support zstd, td-agent 4 also doesn't need zstd support. |
I think so too. I'll remove the dependency. |
Ah, I see. I understood. |
nokogiri now has rc2 for ruby 2.7. https://rubygems.org/gems/nokogiri Can we go td-agent 4 with this version? |
@cosmo0920 What do you think? |
We should handle it with |
How about putting |
Adding the following line to plugin_gems.rb should resolve this issue:
But I found a bug that platform field is ignored. |
FYI: We are now checking regressions in package scripts of RPM: #82 |
f543ab3
to
39401a7
Compare
@ashie I re-checked this branch with centos7/8 and it depends on libruby. Could you check it?
|
I'll check it. |
Thanks! Just confirmed rpm doesn't depend on ruby for installation. Does anyone have a concern to merge this PR? |
I have no concern to merge this PR. 👍 |
Although some issues are still remained, I want to merge this ASAP. The issues that I'm concerned about are: Windows build is still failing event if both #24 (comment) and #95 are merged.
After all this seems to be necessary. In addition, #98 seems critical, we should resolve it before releasing td-agent 4 (for windows). |
We'll resolve remaining issues after merging this branch. |
I've merged this pull request. On this occasion, I want to transfer the ownership of this project to @treasure-data. |
I tried to build with nokogiri 1.11.0.rc2 on Windows installer but I got failure: diff --git a/td-agent/Rakefile b/td-agent/Rakefile
index 24f56f5..2cf5055 100755
--- a/td-agent/Rakefile
+++ b/td-agent/Rakefile
@@ -631,10 +631,18 @@ class BuildTask
ENV["MAKEFLAGS"] = "-j#{Etc.nprocessors}"
ENV["GEM_HOME"] = gem_staging_dir
+ basename = File.basename(gem_path)
+
+ gem_option = if basename.include?("rc")
+ [gem_path, "--pre"]
+ else
+ [gem_path]
+ end
+
sh(gem_command, "install",
"--no-document",
"--bindir", staging_bindir,
- gem_path)
+ *gem_option)
ENV["GEM_HOME"] = gem_home
ENV["MAKEFLAGS"] = makeflags
We have to wait nokogiri 1.11.0 release.... |
I build td-agent 4 for centos8 with this patch but error happens during installation.
Does anyone have workaround? td-agent seems to not need ruby.