Skip to content

[Regression] JRuby > 9.2.16 on Windows fails to install kindlegen gem #7171

@slonopotamus

Description

@slonopotamus

See test project.

It contains a simple Gemfile:

# frozen_string_literal: true

source 'https://rubygems.org'

gem 'kindlegen', '3.1.1'

Expected Behavior

bundle install completes successfully for such Gemfile

Actual Behavior

Installing kindlegen 3.1.1 with native extensions
  Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
  
  current directory:
  D:/a/jruby-windows-rakefile/jruby-windows-rakefile/vendor/bundle/jruby/2.5.0/gems/kindlegen-3.1.1/ext
  D:/jruby-9.2.18.0/bin/jruby.exe -ID:/jruby-9.2.18.0/lib/ruby/stdlib/rubygems
  -rrubygems
  D:/a/jruby-windows-rakefile/jruby-windows-rakefile/vendor/bundle/jruby/2.5.0/gems/rake-13.0.6/exe/rake
  RUBYARCHDIR\=D:/a/jruby-windows-rakefile/jruby-windows-rakefile/vendor/bundle/jruby/2.5.0/extensions/universal-java-1.8/2.5.0/kindlegen-3.1.1
  RUBYLIBDIR\=D:/a/jruby-windows-rakefile/jruby-windows-rakefile/vendor/bundle/jruby/2.5.0/extensions/universal-java-1.8/2.5.0/kindlegen-3.1.1
  rake aborted!
  LoadError: no such file to load -- zip
  D:/a/jruby-windows-rakefile/jruby-windows-rakefile/vendor/bundle/jruby/2.5.0/gems/kindlegen-3.1.1/ext/Rakefile:[70](https://github.com/slonopotamus/jruby-windows-rakefile/runs/5814677531?check_suite_focus=true#step:3:70):in
  `create_task_for_windows'
  D:/a/jruby-windows-rakefile/jruby-windows-rakefile/vendor/bundle/jruby/2.5.0/gems/kindlegen-3.1.1/ext/Rakefile:99:in
  `<main>'
  D:/a/jruby-windows-rakefile/jruby-windows-rakefile/vendor/bundle/jruby/2.5.0/gems/rake-13.0.6/exe/rake:27:in
  `<main>'
  (See full trace by running task with --trace)

As you can see from GitHub Actions build run, JRuby 9.2.16 was the last version where it worked on Windows.

JRuby + Linux is NOT affected. CRuby is not affected on neither of platforms.

Note that 9.2.17 had a different issue, #6648, that was fixed in 9.2.18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions