-
Notifications
You must be signed in to change notification settings - Fork 167
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
ignore pkgconfig when openssl-dir option is specified #486
Conversation
Could you show the relevant part of
|
Hm. I tried to reproduce the error, but failed. I have to do some research to figure out what I missed. Maybe this was only a problem with rubies before 3.1? Closing the PR for now. Sorry to have wasted some of your time. |
Under Ruby 3.1.0 openssl does indeed respect the However, Ruby 2.7.5 and 3.03 do not respect the flag and will always take whatever When I created the patch, I was using 3.0.3, and later ported it to 3.1.0 without checking whether the problem had been fixed in the meantime. What this means is that no rvm user can correctly install any Ruby version before 3.1.0, unless they're using the railsexpress patchsets. So technically, both the ruby_2_7 and ruby_3_0 branch would need to include the fix I proposed, or they would need the change from ruby/ruby@dff8d12. How would you like to proceed @rhenium ? |
You are right. I just checked it on Ruby 3.0 and it was reading the pkg-config file in /usr instead of the one in The reason why this has never caused any issues for me, and probably why I've not seen similar reports before, is because Ruby 3.1's behavior is ideal, but it seems more of an improvement than a bug fix. If it were considered a bug fix, Ruby 2.6 (the minimum I think it makes sense to work around the issue here for Ruby < 3.1. Could you
|
4386ad5
to
89745a7
Compare
89745a7
to
b23fa75
Compare
@rhenium I have updated the patch as requested, but haven't really had a chance to test it. |
Looks good to me. Thank you! |
When openssl is installed on a system with pkconfig files, it is impossible to compile and link against another version of the library.
This patch fixes this by ignoring pkconfig files when the option is given.