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

Avoid test failure when stubbing FreeBSD environment #2228

Merged
merged 1 commit into from
Aug 2, 2023

Conversation

mislav
Copy link
Member

@mislav mislav commented Aug 2, 2023

I think Linux actions runner images now have a /usr/local/include/openssl/ssl.h file, which triggers this condition:

if is_freebsd && [ -f /usr/local/include/openssl/ssl.h ]; then
  # use openssl installed from Ports Collection
  package_option ruby configure --with-openssl-dir="/usr/local"
fi

We can't stub the root filesystem, so instead use RUBY_CONFIGURE_OPTS to override this in tests.

https://github.com/rbenv/ruby-build/actions/runs/5719870214/job/15517987944#step:4:18

/cc @hsbt #2227

@mislav mislav merged commit 9862a16 into master Aug 2, 2023
6 checks passed
@mislav mislav deleted the freebsd-openssl-dir-test branch August 2, 2023 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant