Skip to content

Native extension prevents install on JRuby #87

Open

Description

@headius

A native extension was added last year that prevents the gem from being installable on JRuby. We need to either replace that with FFI/fiddle code, pure-Ruby, or a JRuby version.

This relates to jruby/jruby#8649. We do not install the resolv gem at build time for JRuby, but some dependency requires it and can't install because of this extension.

Short term, removing the extension and pushing a -java platform gem would fix all issues installing on JRuby, but we need a long-term solution.

Activity

  1. headius commented on Feb 25, 2025

    @headius
    ContributorAuthor

    This is moderately critical because the release of resolv 0.6.0 appears to have broken all JRuby builds prior to JRuby 9.4.10.0. Builds from that point on skip native extensions during default gem install, so they do not have the issue.

    There is a separate bug on the JRuby side: we are not ready to use the resolv gem, but it is being installed at build time. I can't fix that for old versions, though, so we really need a stub gem for resolv ASAP so those old builds will work again.

    cc @hsbt @nobu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions