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

Remove bundled libyaml #541

Merged
merged 17 commits into from
Mar 23, 2022
Merged

Remove bundled libyaml #541

merged 17 commits into from
Mar 23, 2022

Conversation

hsbt
Copy link
Member

@hsbt hsbt commented Feb 4, 2022

Fixes #535

@hsbt hsbt force-pushed the remove-bundled-libyaml branch from 67b2219 to 36242ed Compare February 22, 2022 11:58
@hsbt hsbt force-pushed the remove-bundled-libyaml branch from 82b5283 to 8734035 Compare February 22, 2022 12:26
- name: Run test
run: rake
k
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
k

Typo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops.

@hsbt hsbt force-pushed the remove-bundled-libyaml branch from e430a38 to 5886bae Compare February 22, 2022 12:34
@hsbt hsbt force-pushed the remove-bundled-libyaml branch from fc67210 to aca703c Compare February 22, 2022 12:56
@colszowka
Copy link

I only now realized there is already a PR for this on top of the original #535 - I would like to suggest not to merge this because there is a bug in the libyaml packaged in the currently used Ubuntu/Debian versions, and if I understand correctly merging this would render the fix (of not installing libyaml-dev) no longer working, see also rbenv/ruby-build#1950 (correct me if I'm wrong, maybe I'm also misunderstanding something about this or how psych and Ruby work together here)

hsbt and others added 4 commits March 18, 2022 15:32
@hsbt hsbt force-pushed the remove-bundled-libyaml branch from a595e99 to 3157783 Compare March 23, 2022 07:27
@hsbt hsbt force-pushed the remove-bundled-libyaml branch from 3157783 to fe57dfe Compare March 23, 2022 07:29
@hsbt hsbt merged commit f80872c into master Mar 23, 2022
@hsbt hsbt deleted the remove-bundled-libyaml branch March 23, 2022 07:42
hsbt added a commit to ruby/ruby-ci-image that referenced this pull request Mar 23, 2022
ima1zumi added a commit to ima1zumi/rubyhackchallenge that referenced this pull request Aug 14, 2022
libyaml-dev is no longer bundled.
ref: ruby/psych#541
ima1zumi added a commit to ima1zumi/rubyhackchallenge that referenced this pull request Aug 14, 2022
libyaml-dev is no longer bundled.
ref: ruby/psych#541
mame pushed a commit to ko1/rubyhackchallenge that referenced this pull request Aug 14, 2022
libyaml-dev is no longer bundled.
ref: ruby/psych#541
dentarg added a commit to dentarg/sinatra that referenced this pull request Dec 12, 2022
Needed to be able to install psych >=5.
Need to do it before setup-ruby runs as that runs `bundle install`.

Related to:
- ruby/psych#541
- ruby/setup-ruby#409
- actions/runner-images#6725

Yes, libyaml-dev will be added to GitHub runner images (this week they
say) but opening this PR just in case anyone encounters failing builds.
I don't think it hurts having this in the repo even after libyaml-dev
have been added to the images.

Added some blank lines to make the workflow easier to read.
jkowens pushed a commit to sinatra/sinatra that referenced this pull request Dec 15, 2022
Needed to be able to install psych >=5.
Need to do it before setup-ruby runs as that runs `bundle install`.

Related to:
- ruby/psych#541
- ruby/setup-ruby#409
- actions/runner-images#6725

Yes, libyaml-dev will be added to GitHub runner images (this week they
say) but opening this PR just in case anyone encounters failing builds.
I don't think it hurts having this in the repo even after libyaml-dev
have been added to the images.

Added some blank lines to make the workflow easier to read.
kkimurak added a commit to kkimurak/docker-gitlab that referenced this pull request Jan 19, 2025
Because this is required on runtime
and BUILD_DEPENDENCIES will be removed at the end of installation
Installation of `libyaml-dev` is written in Dockerfile
so additional installation is not reeded

if not, following error reported on runtime

> LoadError: libyaml-0.so.2: cannot open shared object file: No such or directory - /usr/local/lib/ruby/3.2.0/x86_64-linux/psych.so

This is because Ruby 3.2.0 (psych 5.0.0) or later
does not contain libyaml any more
ruby/psych#541
sachilles pushed a commit to sachilles/docker-gitlab that referenced this pull request Jan 20, 2025
Because this is required on runtime
and BUILD_DEPENDENCIES will be removed at the end of installation
Installation of `libyaml-dev` is written in Dockerfile
so additional installation is not reeded

if not, following error reported on runtime

> LoadError: libyaml-0.so.2: cannot open shared object file: No such or directory - /usr/local/lib/ruby/3.2.0/x86_64-linux/psych.so

This is because Ruby 3.2.0 (psych 5.0.0) or later
does not contain libyaml any more
ruby/psych#541
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Should we unbundle libyaml?
4 participants