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

ruby_3_0: make it use OpenSSL 3 #231899

Merged
merged 1 commit into from
May 15, 2023
Merged

Conversation

RaitoBezarius
Copy link
Member

@RaitoBezarius RaitoBezarius commented May 14, 2023

Description of changes

Ruby 3.0 pretend they don't support OpenSSL3 out of the box (https://bugs.ruby-lang.org/issues/18658). Actually, they suggest to install a OpenSSL 3.x gem. This is what we are doing.

Our Ruby 3.0 will probably exhibit slight incompatibilities, in exchange, we get nice security.

cc #210452

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@mweinelt
Copy link
Member

mweinelt commented May 14, 2023

@ofborg test gitlab

@RaitoBezarius
Copy link
Member Author

Staging retarget done.

@RaitoBezarius
Copy link
Member Author

@mweinelt GitLab is working fine.
@ofborg test mastodon

@wegank
Copy link
Member

wegank commented May 14, 2023

@ofborg build rubyPackages_3_0.nokogiri

@wegank wegank requested review from NickCao and vcunat May 14, 2023 21:07
@NickCao
Copy link
Member

NickCao commented May 15, 2023

mastodon seems to be compatible with ruby_3_2: https://github.com/mastodon/mastodon/blob/main/.ruby-version

Ruby 3.0 pretend they don't support OpenSSL3 out of the box (https://bugs.ruby-lang.org/issues/18658).
Actually, they suggest to install a OpenSSL 3.x gem. This is what we are doing.

Our Ruby 3.0 will probably exhibit slight incompatibilities, in exchange, we get nice security.
@RaitoBezarius RaitoBezarius force-pushed the please-no-openssl1-for-ruby-3 branch from f4397f5 to 73df46e Compare May 15, 2023 12:36
@RaitoBezarius
Copy link
Member Author

@ofborg build ruby_2_7

@erictapen
Copy link
Member

mastodon seems to be compatible with ruby_3_2: https://github.com/mastodon/mastodon/blob/main/.ruby-version

That is only true for latest main, the most recent release uses 3.0: https://github.com/mastodon/mastodon/blob/v4.1.2/.ruby-version

@erictapen
Copy link
Member

Just ran both integration tests for Mastodon on my machine (x86_64-linux), and they look fine.

@mweinelt mweinelt merged commit 54fba99 into staging May 15, 2023
@vcunat vcunat deleted the please-no-openssl1-for-ruby-3 branch May 15, 2023 18:54
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.

7 participants