Skip to content

build-commons.sh: check for OpenSSL 1.1 on macOS#43037

Merged
ViktorHofer merged 1 commit intodotnet:masterfrom
akoeplinger:openssl-1.1
Oct 5, 2020
Merged

build-commons.sh: check for OpenSSL 1.1 on macOS#43037
ViktorHofer merged 1 commit intodotnet:masterfrom
akoeplinger:openssl-1.1

Conversation

@akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Oct 5, 2020

We're installing openssl@1.1 from Homebrew so we should check that version.
It looks like CI Macs don't set the /usr/local/opt/openssl symlink anymore:

Please install openssl before running this script, see https://github.com/dotnet/runtime/blob/master/docs/workflow/requirements/macos-requirements.md

We're installing openssl@1.1 from Homebrew so we should check that version.
It looks like CI Macs don't set the /usr/local/opt/openssl symlink anymore.
@ghost
Copy link

ghost commented Oct 5, 2020

Tagging subscribers to this area: @ViktorHofer
See info in area-owners.md if you want to be subscribed.

# We export the proper PKG_CONFIG_PATH where openssl was installed by Homebrew
# It's important to _export_ it since build-commons.sh is sourced by other scripts such as build-native.sh
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
export PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/lib/pkgconfig
Copy link
Member

Choose a reason for hiding this comment

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

Maybe include both directories?

Suggested change
export PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/lib/pkgconfig
export PKG_CONFIG_PATH=/usr/local/opt/openssl@1.1/lib/pkgconfig
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig

Copy link
Member

Choose a reason for hiding this comment

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

@akoeplinger if this suggestion makes sense, do you mind following-up on it in another PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah I think that makes sense

@ViktorHofer
Copy link
Member

Let's merge this in to unblock CI.

@ViktorHofer ViktorHofer merged commit f15b55a into dotnet:master Oct 5, 2020
@akoeplinger akoeplinger deleted the openssl-1.1 branch October 5, 2020 17:05
akoeplinger added a commit to akoeplinger/runtime that referenced this pull request Oct 5, 2020
akoeplinger added a commit to akoeplinger/runtime that referenced this pull request Oct 5, 2020
…t#43037)

We're installing openssl@1.1 from Homebrew so we should check that version.
It looks like CI Macs don't set the /usr/local/opt/openssl symlink anymore.

Backport of dotnet#43037 to release/5.0
akoeplinger added a commit that referenced this pull request Oct 5, 2020
ViktorHofer pushed a commit that referenced this pull request Oct 6, 2020
… (#43043)

We're installing openssl@1.1 from Homebrew so we should check that version.
It looks like CI Macs don't set the /usr/local/opt/openssl symlink anymore.

Backport of #43037 to release/5.0
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants