Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit 520adf2

Browse files
committed
Don't link Homebrew OpenSSL, use env vars
OpenSSL is a "keg-only crate", which Homebrew 1.0.0 won't link because ``` we may end up linking against the insecure, deprecated system OpenSSL while using the headers from Homebrew's openssl. ``` Instead, use the `OPENSSL_INCLUDE_DIR` and `OPENSSL_LIB_DIR` to explicitly pass the paths to the Homebrew OpenSSL. Note that these paths are currently hardcoded because they are unlikely to change. For some reason, Homebrew was reporting this error on its stderr but Salt was not picking it up as and failing the state - possibly because the exit status seems to have been 0. saltfs-migration: Run `brew unlink --dry-run openssl` on the Mac builders, then `brew unlink openssl` once confirming the output is as expected. This will unlink openssl on the existing builders.
1 parent eaf34f2 commit 520adf2

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

buildbot/master/files/config/environments.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def without(self, to_unset):
6464
'CARGO_HOME': '/Users/servo/.cargo',
6565
'CCACHE': '/usr/local/bin/ccache',
6666
'SERVO_CACHE_DIR': '/Users/servo/.servo',
67+
'OPENSSL_INCLUDE_DIR': '/usr/local/opt/openssl/include',
68+
'OPENSSL_LIB_DIR': '/usr/local/opt/openssl/lib',
6769
})
6870

6971

servo-build-dependencies/init.sls

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,6 @@ homebrew-link-autoconf:
6262
- require:
6363
- pkg: servo-dependencies
6464
- module: servo-darwin-homebrew-versions-dependencies
65-
66-
homebrew-link-openssl:
67-
cmd.run:
68-
- name: 'brew link --force openssl'
69-
- runas: {{ homebrew.user }}
70-
- creates: /usr/local/Library/LinkedKegs/openssl
71-
- require:
72-
- pkg: servo-dependencies
7365
{% else %}
7466
multiverse:
7567
pkgrepo.managed:

0 commit comments

Comments
 (0)