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 upManage `sources.list` and make bootstrap script purge lists before updating #520
Conversation
highfive
commented
Oct 24, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @aneeshusa (or someone else) soon. |
|
It seems like Travis at least picks up on the updated |
| ## your rights to use the software. Also, please note that software in | ||
| ## multiverse WILL NOT receive any review or updates from the Ubuntu | ||
| ## security team. | ||
| deb http://archive.ubuntu.com/ubuntu trusty multiverse |
This comment has been minimized.
This comment has been minimized.
aneeshusa
Oct 30, 2016
Member
Since we're pre-enabling multiverse here, we'll need to remove the multiverse related states in servo-build-dependencies/init.sls.
This comment has been minimized.
This comment has been minimized.
choudhary001
Oct 30, 2016
Author
Contributor
servo-build-dependencies/init.sls has some if-else condition around multiverse related states. I am not sure what is the correct way to remove them. Should I remove multiverse links from source.list file?
This comment has been minimized.
This comment has been minimized.
aneeshusa
Oct 30, 2016
Member
Just remove the 2 multiverse related states in that file (but keep the ttf-mscorefonts-installer state), and fixup the requisites. You can ignore the if/else conditions for now.
| - group: root | ||
| - mode: 755 | ||
| - source: salt://{{ tpldir }}/apt/sources.list | ||
|
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| - user: root | ||
| - group: root | ||
| - mode: 755 | ||
| - source: salt://{{ tpldir }}/apt/sources.list |
This comment has been minimized.
This comment has been minimized.
aneeshusa
Oct 30, 2016
Member
nit: use salt://{{ tpldir }}/files/sources.list for consistency instead with other formulas
This comment has been minimized.
This comment has been minimized.
|
Looks like your commit history is a bit messed up - please rebase your changes on top of the latest master. Ask here or on IRC if you need help. |
| @@ -57,20 +58,6 @@ servo-darwin-install-autoconf213-and-fix-links: | |||
| - runas: {{ homebrew.user }} | |||
| - require: | |||
| - pkg: servo-dependencies | |||
| {% else %} | |||
This comment has been minimized.
This comment has been minimized.
aneeshusa
Oct 31, 2016
Member
You need to keep this {% else %} line to avoid breaking the Jinja syntax.
| @@ -0,0 +1,54 @@ | |||
| ## Note that this sources.list file is picked from saltfs repository | |||
This comment has been minimized.
This comment has been minimized.
aneeshusa
Oct 31, 2016
Member
Note the original source instead (I'm assuming an Ubuntu VM).
It's also probably a good idea to add a note/warning that this file is managed by Salt.
|
|
|
@aneeshusa Hey, I squashed all my commits in one. Let me know if everything is fine, it still shows the label 'needs-rebase'. |
|
Sorry about the delay, this is almost ready to merge! |
| @@ -0,0 +1,55 @@ | |||
| # Note that this sources.list file is copied from a Ubuntu vm | |||
This comment has been minimized.
This comment has been minimized.
| deb-src http://security.ubuntu.com/ubuntu trusty-security main | ||
| deb http://security.ubuntu.com/ubuntu trusty-security universe | ||
| deb-src http://security.ubuntu.com/ubuntu trusty-security universe | ||
| # deb http://security.ubuntu.com/ubuntu trusty-security multiverse |
This comment has been minimized.
This comment has been minimized.
aneeshusa
Dec 8, 2016
Member
We probably ought to uncomment these next two lines to enable security fixes for multiverse.
| file.managed: | ||
| - user: root | ||
| - group: root | ||
| - mode: 755 |
This comment has been minimized.
This comment has been minimized.
|
Interesting - everything seems to work fine in Vagrant, but the tests are failing on Travis, only on the builds from scratch. I'm not really sure what the problem is, so we'll have to do some research/try some different things out. Off the top of my head I'm guessing the issue may be related to ordering of the Salt states, which we can fix by adding requisites, or something apt related, e.g. maybe we need to run |
|
@aneeshusa [ERROR ] Data passed to highstate outputter is not a valid highstate return: {'local': ["No function declared in state 'onchanges' in SLS 'ubuntu'"]} |
|
This should fix the Travis build hopefully; I also recommend testing in Vagrant if you can. |
| refresh_pkg_db: | ||
| module.run: | ||
| - name: pkg.refresh_db | ||
| onchanges: |
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jun 6, 2017
Member
Oh, this needs to be an argument to module.run:
refresh_pkg_db:
module.run:
- name: ...
- onchanges:
- file: /etc/apt/sources.list
- sources.list file is now managed by Salt. - sources.list file is copied from a Ubuntu vm - auto refresh ubuntu package databases - use jinja templating create appropriate sources.list file depending on Ubuntu version
|
Sorry about the many delays, this LGTM and is r=me. I'll merge this after #719, which fixes our build. |
|
@bors-servo r+ |
|
|
|
@bors-servo r+ |
|
|
Manage `sources.list` and make bootstrap script purge lists before updating @aneeshusa Hi, As discussed I have created this pull request. Let know me what you think could be the issue. > > One way to test this is manual verification inside a Vagrant VM, > > I tried this as well after rebuilding the VMs, I checked in servo-master1 vm but could find the XXX string in the vm's sources.list file. Perhaps I am missing to modify some other config files. Fixes #417. <!-- 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/520) <!-- Reviewable:end -->
|
|
choudhary001 commentedOct 24, 2016
•
edited by KiChjang
@aneeshusa
Hi,
As discussed I have created this pull request. Let know me what you think could be the issue.
Perhaps I am missing to modify some other config files.
Fixes #417.
This change is