Skip to content
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

[Build Failure] Plugin fails to build in CI in Logstash 7.x and above #19

Open
robbavey opened this issue Jun 9, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@robbavey
Copy link
Contributor

robbavey commented Jun 9, 2022

CI builds are failing for modern Logstashes:

Fetching mimemagic 0.4.3
Installing mimemagic 0.4.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/gems/mimemagic-0.4.3/ext/mimemagic
/usr/share/logstash/vendor/jruby/bin/jruby
-I/usr/share/logstash/vendor/jruby/lib/ruby/stdlib/rubygems -rrubygems
/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/gems/rake-13.0.6/exe/rake
RUBYARCHDIR\=/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/extensions/universal-java-11/2.5.0/mimemagic-0.4.3
RUBYLIBDIR\=/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/extensions/universal-java-11/2.5.0/mimemagic-0.4.3
rake aborted!
Could not find MIME type database in the following locations:
["/usr/local/share/mime/packages/freedesktop.org.xml",
"/opt/homebrew/share/mime/packages/freedesktop.org.xml",
"/opt/local/share/mime/packages/freedesktop.org.xml",
"/usr/share/mime/packages/freedesktop.org.xml"]
Ensure you have either installed the shared-mime-info package for your
distribution, or
obtain a version of freedesktop.org.xml and set FREEDESKTOP_MIME_TYPES_PATH to
the location
of that file.
Tasks: TOP => default
(See full trace by running task with --trace)
rake failed, exit code 1
Gem files will remain installed in
/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/gems/mimemagic-0.4.3 for
inspection.
Results logged to
/usr/share/logstash/vendor/jruby/lib/ruby/gems/shared/extensions/universal-java-11/2.5.0/mimemagic-0.4.3/gem_make.out
An error occurred while installing mimemagic (0.4.3), and Bundler cannot
continue.
Make sure that `gem install mimemagic -v '0.4.3' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
  logstash-input-google_cloud_storage was resolved to 0.11.0, which depends on
    mimemagic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant