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

Link a newer openssl from homebrew on OS X #218

Merged
merged 2 commits into from Feb 8, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Next

Link a newer openssl from homebrew on OS X

Also refactor servo-dependencies.sls slightly.
Closes #210 (for real this time!)
  • Loading branch information
aneeshusa committed Feb 7, 2016
commit 22966af48f7732f706badb19d0dc4cd91109fcc7
@@ -1,59 +1,13 @@
{% if grains['kernel'] != 'Darwin' %}
FIX enable multiverse:
pkgrepo.absent:
- name: deb http://archive.ubuntu.com/ubuntu trusty multiverse

enable multiverse:
pkgrepo.managed:
- name: deb http://archive.ubuntu.com/ubuntu trusty multiverse

ttf-mscorefonts-installer:
debconf.set:
- name: ttf-mscorefonts-installer
- data: { 'msttcorefonts/accepted-mscorefonts-eula': { 'type': 'boolean', 'value': True } }
pkg.installed:
- pkgs:
- ttf-mscorefonts-installer
- requires:
- debconf: ttf-mscorefonts-installer
{% endif %}

{% if grains['kernel'] == 'Darwin' %}
# Workaround for https://github.com/saltstack/salt/issues/26414
servo-darwin-homebrew-versions-dependencies:
module.run:
- name: pkg.install
- pkgs:
- automake
- autoconf213
- taps:
- homebrew/versions
- require_in:
- pkg: servo-dependencies

homebrew-link-autoconf:
cmd.run:
- name: 'brew link --overwrite autoconf'
- user: administrator
# Warning: Only checks that some autoconf Homebrew package is linked,
# not necessarily the version installed above.
# Whether this handles updating autoconf properly is an open question.
# This state should be replaced by a custom Salt state.
- creates: /usr/local/Library/LinkedKegs/autoconf
- require:
- module: servo-darwin-homebrew-versions-dependencies
- require_in:
- pkg: servo-dependencies
{% endif %}

servo-dependencies:
pkg.installed:
- pkgs:
- cmake
- git
- ccache
{% if grains['kernel'] == 'Darwin' %}
- automake
- pkg-config
- openssl
{% else %}
- libglib2.0-dev
- libgl1-mesa-dri
@@ -74,3 +28,53 @@ servo-dependencies:
- pkgs:
- virtualenv
- ghp-import

{% if grains['kernel'] == 'Darwin' %}
# Workaround for https://github.com/saltstack/salt/issues/26414
servo-darwin-homebrew-versions-dependencies:
module.run:
- name: pkg.install
- pkgs:
- autoconf213
- taps:
- homebrew/versions

# Warning: These states that manually run brew link only check that some
# version of the Homebrew package is linked, not necessarily the version
# linked above. Whether this handles updates properly is an open question.
# These should be replaced by a custom Salt state.
homebrew-link-autoconf:
cmd.run:
- name: 'brew link --overwrite autoconf'
- user: administrator
- creates: /usr/local/Library/LinkedKegs/autoconf
- require:
- pkg: servo-dependencies
- module: servo-darwin-homebrew-versions-dependencies

homebrew-link-openssl:
cmd.run:
- name: 'brew link --force openssl'
- user: administrator
- creates: /usr/local/Library/LinkedKegs/openssl
- require:
- pkg: servo-dependencies
{% else %}
FIX enable multiverse:
pkgrepo.absent:
- name: deb http://archive.ubuntu.com/ubuntu trusty multiverse

enable multiverse:
pkgrepo.managed:
- name: deb http://archive.ubuntu.com/ubuntu trusty multiverse

ttf-mscorefonts-installer:
debconf.set:
- name: ttf-mscorefonts-installer
- data: { 'msttcorefonts/accepted-mscorefonts-eula': { 'type': 'boolean', 'value': True } }
pkg.installed:
- pkgs:
- ttf-mscorefonts-installer
- requires:
- debconf: ttf-mscorefonts-installer
{% endif %}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.