Skip to content

Comments

ruby_3_0: unpin openssl_1_1#229890

Merged
mweinelt merged 1 commit intoNixOS:stagingfrom
NickCao:ruby-openssl
May 6, 2023
Merged

ruby_3_0: unpin openssl_1_1#229890
mweinelt merged 1 commit intoNixOS:stagingfrom
NickCao:ruby-openssl

Conversation

@NickCao
Copy link
Member

@NickCao NickCao commented May 4, 2023

Description of changes

The logic was introduced in a902277, but still pinned ruby 3.0+ to openssl_1_1 (due to typo?). cc @ajs124

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.

@NickCao NickCao requested a review from marsam as a code owner May 4, 2023 12:21
@github-actions github-actions bot added the 6.topic: ruby A dynamic, open source programming language with a focus on simplicity and productivity. label May 4, 2023
@NickCao
Copy link
Member Author

NickCao commented May 4, 2023

And ruby 2 is already EOL a month ago. we may as well drop it, what a bad timing for 23.05.

@ofborg ofborg bot requested review from manveru and vrthra May 4, 2023 13:14
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. labels May 4, 2023
Copy link
Member

@ajs124 ajs124 left a comment

Choose a reason for hiding this comment

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

yup, looks like a typo

thanks for catching this

@mweinelt mweinelt added the 12.approvals: 1 This PR was reviewed and approved by one person. label May 6, 2023
@mweinelt mweinelt merged commit dee3e56 into NixOS:staging May 6, 2023
@NickCao NickCao deleted the ruby-openssl branch May 7, 2023 04:33
@vcunat
Copy link
Member

vcunat commented May 11, 2023

This broke build of rubyPackages_3_0.nokogiri on all four platforms. Log:
https://hydra.nixos.org/build/219301132/nixlog/1/tail

/cc #231026 Around a hundred builds are reported as caused by this, currently.

@NickCao
Copy link
Member Author

NickCao commented May 11, 2023

The patch below seem to fix the build. (The backtrace show that openssl is required by lib/ruby/3.0.0/net/https.rb, so the root cause could be deep down.

--- a/pkgs/top-level/ruby-packages.nix
+++ b/pkgs/top-level/ruby-packages.nix
@@ -2356,7 +2356,7 @@
     version = "2.5.9";
   };
   nokogiri = {
-    dependencies = ["mini_portile2" "racc"];
+    dependencies = ["mini_portile2" "racc" "openssl"];
     groups = ["default"];
     platforms = [];
     source = {

@NickCao
Copy link
Member Author

NickCao commented May 11, 2023

And indeed lib/ruby/3.0.0/openssl.rb is present before this change.

https://hydra.nixos.org/build/219355113/nixlog/1:

*** Following extensions are not compiled:
openssl:
        Could not be configured. It will not be installed.
        /build/ruby-3.0.6/ext/openssl/extconf.rb:113: OpenSSL >= 1.0.1, < 3.0.0 or LibreSSL >= 2.5.0 is required
        Check ext/openssl/mkmf.log for more details.
*** Fix the problems, then remove these directories and try again if you want.

NickCao added a commit to NickCao/nixpkgs that referenced this pull request May 11, 2023
@NickCao NickCao mentioned this pull request May 11, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: ruby A dynamic, open source programming language with a focus on simplicity and productivity. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants