-
Notifications
You must be signed in to change notification settings - Fork 5
Fix: build libcurl with --with-secure-transport on macOS [INS-3359]
#23
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,7 +134,9 @@ fi | |
| ##### | ||
| # ssl | ||
| #### | ||
| if [ ! -z "$OPENSSL_BUILD_FOLDER" ]; then | ||
| if [ "${RUNNER_OS}" == "macOS" ]; then | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder why we do this only for MacOS, and not only for Linux and Windows?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. According to the information from curl doc,
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will check if this issue also happens on Windows and Linux tomorrow. |
||
| libcurl_args+=("--with-secure-transport") | ||
| elif [ ! -z "$OPENSSL_BUILD_FOLDER" ]; then | ||
| CPPFLAGS="$CPPFLAGS -I$OPENSSL_BUILD_FOLDER/include" | ||
| LDFLAGS="$LDFLAGS -L$OPENSSL_BUILD_FOLDER/lib -Wl,-rpath,$OPENSSL_BUILD_FOLDER/lib" | ||
|
|
||
|
|
||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason why it runs
pip install setuptoolsis because it will fail to runnode-libcurl/node_modules/node-gyp/gyp/gyp_main.pywithout this step.You can get more details here build error
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error is
ModuleNotFoundError: No module named 'distutils'It would appear distutils was deprecated in python 3.10 https://peps.python.org/pep-0632/
So this error is consistent with the github action ambient version being 3.12 or above.
Its worth mentioning that this step only fails on macos