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 building rake extensions that require openssl #4165

Merged
merged 1 commit into from
Dec 17, 2020

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Dec 16, 2020

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

Building a rake extension that requires openssl fails.

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

We were passing an incorrect folder, and one which has a openssl.rb
file inside. So this file was shadowing the require of the "real openssl".

This -I parameter is not really needed in real life I believe, since there can
be at most one rubygems installation at a given ruby installation. I think the
idea of this parameter is that our tests never leak to the "system rubygems",
because when testing there are two copies of rubygems involved (the one being
tested, and the one from the ruby we're running).

I'm not sure using this -I parameter here is a good idea, so since I'm not
sure I'm just keeping things as they are for now and fixing the bug.

Fixes #4161.

Make sure the following tasks are checked

We were passing an incorrect folder, and one which has a `openssl.rb`
file inside. So this file was shadowing the require of the "real openssl".

This `-I` parameter is not really needed in real life I believe, since there can
be at most one rubygems installation at a given ruby installation. I think the
idea of this parameter is that our tests never leak to the "system rubygems",
because when testing there are two copies of rubygems involved (the one being
tested, and the one from the ruby we're running).

I'm not sure using this `-I` parameter here is a good idea, so since I'm not
sure I'm just keeping things as they are for now and fixing the bug.
@deivid-rodriguez deivid-rodriguez changed the title Fix incorrect path to rubygems being passed to rake builder Fix building rake extensions that require openssl Dec 16, 2020
@deivid-rodriguez deivid-rodriguez merged commit bee7cc7 into master Dec 17, 2020
@deivid-rodriguez deivid-rodriguez deleted the fix_rubygems_path_in_rake_builder branch December 17, 2020 10:19
deivid-rodriguez added a commit that referenced this pull request Dec 17, 2020
Fix building rake extensions that require openssl

(cherry picked from commit bee7cc7)
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.

"uninitialized constant OpenURI::OpenSSL" when installing rdkafka gem using rubygems 3.2.1
2 participants