Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMach bootstrap: Add more platforms #579
Conversation
|
I haven't reviewed this yet, but please rebase on top of #582 and make similar additions for other OSes. (The requirement is LLVM > 3.3, so exact version can vary a little.) |
|
Done, |
| @@ -21,7 +21,7 @@ python2-dev: | |||
| pip: | |||
| pkg.installed: | |||
| - pkgs: | |||
| {% if grains['os'] == 'Ubuntu' %} | |||
| {% if grains['os'] in ('CentOS', 'Fedora', 'Ubuntu') %} | |||
This comment has been minimized.
This comment has been minimized.
| @@ -35,6 +35,31 @@ servo-dependencies: | |||
| - xpra | |||
| - xserver-xorg-input-void | |||
| - xserver-xorg-video-dummy | |||
| {% elif grains['os'] in ('CentOS', 'Fedora') %} | |||
This comment has been minimized.
This comment has been minimized.
| - libXi-devel | ||
| - libXmu-devel | ||
| - libXrandr-devel | ||
| - libtool |
This comment has been minimized.
This comment has been minimized.
| - mesa-libGL-devel | ||
| - mesa-libOSMesa-devel | ||
| - openssl-devel | ||
| - rpm-build |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| - freetype-devel | ||
| - gcc-c++ | ||
| - glib2-devel | ||
| - gperf |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jdm
Jan 25, 2017
Member
It's in the list of Servo prerequisites at https://github.com/servo/servo/#on-debian-based-linuxes; I forget which dependency in particular requires it.
|
|
||
| {% if grains['os'] == 'Ubuntu' %} | ||
| {% if grains['os'] == 'Ubuntu' and not salt['pillar.get']('is_bootstrap') %} |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| @@ -28,6 +28,7 @@ pip: | |||
| {% endif %} | |||
| - reload_modules: True | |||
|
|
|||
| {% if not salt['pillar.get']('is_bootstrap') %} | |||
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jan 23, 2017
Member
There's no is_bootstrap pillar; use {% if salt['pillar.get']('fully_managed', True) %} for now instead.
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jan 23, 2017
Member
Also, I don't see the harm in having this while bootstrapping anyways.
| @@ -36,15 +36,17 @@ servo-dependencies: | |||
| - xserver-xorg-input-void | |||
| - xserver-xorg-video-dummy | |||
| {% endif %} | |||
| {% if not salt['pillar.get']('is_bootstrap') %} | |||
This comment has been minimized.
This comment has been minimized.
|
Overall looks good, but I'd like to take this chance to remove any obsolete dependencies. Also, there is no |
|
|
||
| {% if grains['os'] == 'Ubuntu' %} | ||
| {% if grains['os'] == 'Ubuntu' and grains['oscodename'] == 'trusty' %} | ||
| multiverse: | ||
| pkgrepo.managed: | ||
| - name: 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' |
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jan 25, 2017
Member
Instead of gating on being Trusty, try replacing trusty on this line with {{ grains['oscodename'] }}. I'm not 100% sure but I think it should work on Trusty and Xenial both.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jan 25, 2017
Member
I just tried it locally with an ubuntu/xenial64 Vagrant box and it worked fine. What error are you getting?
This comment has been minimized.
This comment has been minimized.
UK992
Jan 25, 2017
Author
Contributor
that python-apt is not installed, after installing it, still same error.
This comment has been minimized.
This comment has been minimized.
UK992
Jan 25, 2017
•
Author
Contributor
[ERROR ] Failed to examine repo 'deb http://archive.ubuntu.com/ubuntu xenial multiverse': Error: 'python-apt' package not installed
[ERROR ] State 'debconf.set' was not found in SLS 'servo-build-dependencies'
Reason: 'debconf.set' is not available.
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jan 25, 2017
Member
OK, I've reproduced this and the fix is non-trivial so I will handle it in a follow up.
|
Thanks @UK992! @bors-servo r+ |
|
|
|
|
Mach bootstrap: Add more platforms This PR add support for Fedora/CentOS platforms and also Ubuntu 16.04. r? @aneeshusa <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/579) <!-- Reviewable:end -->
UK992 commentedJan 22, 2017
•
edited by larsbergstrom
This PR add support for Fedora/CentOS platforms and also Ubuntu 16.04.
r? @aneeshusa
This change is