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

test_crypto_engine: depends on non-shared openssl #40965

Closed
wants to merge 1 commit into from

Conversation

minrk
Copy link

@minrk minrk commented Nov 25, 2021

test_crypto_engine is written such that it assumes node_shared_openssl is false (deps/openssl/include on linux, deps/openssl/openssl.gyp:openssl on mac), so update the condition to only when those are valid expectations. Without this, deps/openssl is built on mac even when building with --shared-openssl (#40958).

closes #40958

It's possible the right fix is to update the dependencies to point to shared openssl when true. I don't know how to do that, though, so feel free to close this and someone else can pursue that resolution.

This patch is confirmed to fix the spurious build part of the issue in conda-forge/nodejs-feedstock#221

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. labels Nov 25, 2021
@minrk minrk force-pushed the test-noshared-openssl branch 2 times, most recently from dc21bf7 to 7ffe941 Compare November 25, 2021 08:03
so only build it when using non-shared openssl,
otherwise (mac at least) will build deps/openssl
even when using shared openssl.

Fixes: https://github.com/nodejs/node/40958
@nodejs-github-bot
Copy link
Collaborator

@@ -1476,7 +1476,7 @@
}], # end aix section
# TODO(RaisinTen): Enable this to build on other platforms as well.
['(OS=="mac" or (OS=="linux" and target_arch=="x64")) and \
node_use_openssl=="true"', {
node_use_openssl=="true" and node_shared_openssl=="false"', {
Copy link
Contributor

Choose a reason for hiding this comment

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

Tests are failing. I think you need to add this conditional:

if (process.config.variables.node_shared_openssl === false)

around

to fix the failure.

@RaisinTen
Copy link
Contributor

closing since a fix for this has already landed in #41830

@RaisinTen RaisinTen closed this Feb 19, 2022
@minrk minrk deleted the test-noshared-openssl branch March 23, 2022 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mac: deps/openssl compiled, even with --shared-openssl
3 participants