GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Don't manipulate bin scripts for jruby/ruby by headius · Pull Request #17 · ruby/jruby-dev-builder

Conversation

@headius

@headius headius commented Jul 21, 2025

Copy link
Copy Markdown
Collaborator

In jruby/jruby#8875 we modified JRuby's distribution to always ship scripts for bin/jruby and bin/ruby:

  • bin/jruby and bin/ruby are versioned shell scripts that launch /bin/sh bin/jruby.sh.
  • bin/ruby.bat contains batch code to launch bin/ruby.exe.
  • No copying of scripts is done during the build and no tweaks are needed by installers to copy, link, or create additional bin/ commands.

These changes now conflict with jruby-dev-builder's symlinking of bin/jruby to bin/ruby and its creation of bin/ruby.bat, so we remove the relevant steps.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@headius
Don't manipulate bin scripts for jruby/ruby
c39833a
In jruby/jruby#8875 we modified JRuby's distribution to always
ship scripts for bin/jruby and bin/ruby:

* bin/jruby and bin/ruby are versioned shell scripts that launch
  `/bin/sh bin/jruby.sh`.
* bin/ruby.bat contains batch code to launch bin/ruby.exe.
* No copying of scripts is done during the build and no tweaks are
  needed by installers to copy, link, or create additional bin/
  commands.

These changes now conflict with jruby-dev-builder's symlinking of
bin/jruby to bin/ruby and its creation of bin/ruby.bat, so we
remove the relevant steps.
@headius
headius requested a review from eregon July 21, 2025 19:28
@headius

headius commented Jul 21, 2025

Copy link
Copy Markdown
Collaborator Author

The relevant changes were released in JRuby 10.0.1.0, so all dev/head builds should have picked up the bin changes long ago. This job has been failing for some time.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eregon

eregon commented Jul 21, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Looks good, but have you seen ruby/setup-ruby#781 (comment) ?
It seems jruby.exe is missing or something like that.

EDIT: so I think it might fail the same way here too on Windows

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eregon

eregon commented Jul 21, 2025

Copy link
Copy Markdown
Member

FYI I just pushed 7c7bcb3 since windows-2019 is gone (same as ruby/ruby-builder@228ee88 but on this repo)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

eregon
eregon approved these changes Jul 21, 2025
View reviewed changes
@eregon

eregon commented Jul 21, 2025

Copy link
Copy Markdown
Member

I'll merge this as it's definitely a good change, and dev builds here are broken currently anyway.
I think it will make it easier to experiment with a fix for ruby/setup-ruby#781 (comment) too (I guess that needs a fix in JRuby).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eregon
eregon merged commit b3ce8c0 into ruby:master Jul 21, 2025
@eregon

eregon commented Jul 21, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Interesting, dev builds are fine on Windows and there is jruby.exe there:
https://github.com/ruby/jruby-dev-builder/actions/runs/16426443478/job/46417804334#step:8:286

I suspect the problem is then that the default tar in PATH on Windows in GitHub Actions is broken in https://github.com/ruby/ruby-builder/actions/runs/16365805938/job/46242634106#step:10:3 and omits jruby.exe when there is jruby.bat or something like that (I recall seeing this once in the past)
and OTOH C:\windows\system32\tar.exe is fine and behaves correctly (that's the reason we use it in this repo).
I'll try that in ruby-builder then.

Yep, that's MSP-Greg/setup-ruby#1 (comment)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@headius
headius deleted the no_binscript_tweaks branch July 21, 2025 19:47
@headius headius mentioned this pull request Jul 21, 2025
Add jruby-10.0.1.0 ruby/setup-ruby#781
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@eregon eregon eregon approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@headius @eregon
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.