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

Fix gem installation failing in Solaris due to bad IO#flock usage #5216

Merged
merged 1 commit into from Dec 24, 2021

Conversation

mame
Copy link
Contributor

@mame mame commented Dec 24, 2021

What was the end-user or developer problem that led to this PR?

make install of the ruby package fails on Solaris.

What is your fix for the problem, implemented in this PR?

io.flock(File::LOCK_EX) fails on Solaris when the io is opened as
read-only. This change avoids the lock mechanism on Solaris.

See also my comments #5208 (comment)

Make sure the following tasks are checked

`io.flock(File::LOCK_EX)` fails on Solaris when the io is opened as
read-only. Due to this issue, `make install` of the ruby package failed
on Solaris.
@hsbt hsbt enabled auto-merge December 24, 2021 06:11
@hsbt hsbt merged commit edbf790 into rubygems:master Dec 24, 2021
@deivid-rodriguez deivid-rodriguez changed the title Do not use IO#flock on Solaris Fix gem installation failing in Solaris due to bad IO#flock usage Dec 24, 2021
deivid-rodriguez pushed a commit that referenced this pull request Dec 24, 2021
Do not use IO#flock on Solaris

(cherry picked from commit edbf790)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants