Skip to content

Check that BASERUBY is at least Ruby 2.2 in configure#2947

Merged
jeremyevans merged 2 commits into
ruby:masterfrom
jeremyevans:ruby2-baseruby
May 28, 2020
Merged

Check that BASERUBY is at least Ruby 2.2 in configure#2947
jeremyevans merged 2 commits into
ruby:masterfrom
jeremyevans:ruby2-baseruby

Conversation

@jeremyevans

Copy link
Copy Markdown
Contributor

BASERUBY needs to be at least Ruby 2.2 since
46acd00.

I think it's better to explicitly fail early as soon as BASERUBY
is used in this case, versus trying to debug later failures.

This modifies things to check both implicitly use of ruby in the
PATH as BASERUBY, and explicitly specified older versions of ruby
when using --with-baseruby.

Additionally, since all supported BASERUBY versions support
--disable=gems, always specify that instead of checking for
support.

Remove Ruby <2.2 support from tool/lib/vcs.rb

BASERUBY now requires at least Ruby 2.2, so there is no point
trying to support older ruby versions here.

This should address [Bug #16668]

@nobu

nobu commented Mar 4, 2020

Copy link
Copy Markdown
Member

Indents in vcs.rb seem corrupted?

@jeremyevans

Copy link
Copy Markdown
Contributor Author

@nobu You are right, sorry about that. I'll fix it and push a fixed commit.

nurse pushed a commit to nurse/ruby that referenced this pull request Mar 13, 2020
  * Fix gem pristine not accounting for user installed gems. Pull request
    ruby#2914 by Luis Sagastume.
  * Refactor keyword argument test for Ruby 2.7. Pull request ruby#2947 by
    SHIBATA Hiroshi.
  * Fix errors at frozen Gem::Version. Pull request ruby#2949 by Nobuyoshi
    Nakada.
  * Remove taint usage on Ruby 2.7+. Pull request ruby#2951 by Jeremy Evans.
  * Check Manifest.txt is up to date. Pull request ruby#2953 by David Rodríguez.
  * Clarify symlink conditionals in tests. Pull request ruby#2962 by David
    Rodríguez.
  * Update command line parsing to work under ps. Pull request ruby#2966 by
    David Rodríguez.
  * Properly test `Gem::Specifications.stub_for`. Pull request ruby#2970 by
    David Rodríguez.
  * Fix Gem::LOADED_SPECS_MUTEX handling for recursive locking. Pull request
    ruby#2985 by MSP-Greg.
@jeremyevans jeremyevans requested a review from nurse May 26, 2020 20:09
BASERUBY needs to be at least Ruby 2.2 since
46acd00.

I think it's better to explicitly fail early as soon as BASERUBY
is used in this case, versus trying to debug later failures.

This modifies things to check both implicitly use of ruby in the
PATH as BASERUBY, and explicitly specified older versions of ruby
when using --with-baseruby.

Fixes [Bug ruby#16668]
BASERUBY now requires at least Ruby 2.2, so there is no point
trying to support older ruby versions here.
@nurse

nurse commented May 27, 2020

Copy link
Copy Markdown
Member

If nobu says OK, you can merge this.

@jeremyevans jeremyevans requested a review from nobu May 27, 2020 17:29
@jeremyevans jeremyevans merged commit 07b2102 into ruby:master May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants