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 upWindows: updated instructions #11392
Conversation
|
r? @metajack |
|
|
||
| Install MSYS2 from [here](https://msys2.github.io/). After you have done so, open an MSYS shell | ||
| window and update the core libraries and install new packages: | ||
|
|
||
| ```sh | ||
| update-core | ||
| pacman -Su | ||
| pacman -Sy git mingw-w64-x86_64-toolchain mingw-w64-x86_64-freetype \ |
This comment has been minimized.
This comment has been minimized.
aneeshusa
May 24, 2016
Member
Partial upgrades are unsupported by pacman (at least natively on Arch, not sure about on MSYS). We should combine these two lines into pacman -Syu git mingw-w64-x86_64-toolchain ....
|
This looks good, but have you verified this works on a fresh install? I seem to recall that deep withing some configure script it relied on mingw python not the system python. this seems to remove the instructions to install mingw python (and then let native python through for python2.7). I'm very happy if this is actually possible, but skeptical considering how much fighting @larsbergstrom and @vvuk did with this. If it does work, this is r=me with the nit from @aneeshusa fixed.
|
|
Oops, sorry; it's late and I didn't see the change to msys2 to have pacman natively understand system updates. Carry on :p |
|
@vvuk Actually, I looked into a bit more after your comment and I think my earlier comment may not be correct. It seems that after a See commonquail/pa#2 and the warnings in the image from Alexpux/MSYS2-pacman#26. |
|
Thanks for the feedback. Will retry with these instructions on a fresh MSYS2 install just to ensure that they are fully followable. |
|
@aneeshusa Yeah, I'm guessing the "native support" just does an update to the core packages first, and then prompts you to restart.. after that, a second update would be required to take care of the rest of the packages. It's better than before, where doing a full update that picked up core packages would cause a lot of stuff after it to fail, leaving the system in an inconsistent state. |
highfive
commented
May 25, 2016
|
New code was committed to pull request. |
* MSYS2: Removed the reference to the update-core script, which has been removed in MSYS2: Alexpux/MSYS2-pacman#26. * Added more details about strange prompts that might appear. :) * Added more details on how to install Python correctly. With these changes in place, I am successfully able to at least get the build starting. (getting non-Python related errors, but will file a separate issue about that)
highfive
commented
May 25, 2016
|
New code was committed to pull request. |
You're right, it seems to not fully work; I am getting errors in |
|
@perlun Any new info on this? |
Ah, sorry for lack of feedback on my behalf. I tried to get `mozjs_sysz to compile using a native Python; managed to get some stuff working but ended up banging my head into the wall because of lack of enough Python-fu skills. So, it wasn't completed. I wonder if we should try it the other way around instead? I.e. make it work with the MSYS/MINGW-provided Python instead, to remove the need to require a native Python. The text indicates that this doesn't work "out of the box" but does anyone (you or others) have an idea of how much work it would take? I would be willing to experiment a bit there I think. I'm also kind of wondering: since you are doing a bit of work on the "other" Windows-based toolchain support (i..e MSVC/Visual Studio), which one is going to be "the way" going forward? Do we intend to support both of them (like rustc does) or is the plan to pick the one we feel is best and drop support for the other one? To put it bluntly: would it make more sense that I help out in getting the MSVC-based port more complete? What do you think? |
|
The best scenario would be to support both with msvc builds requiring normal python, and msys builds requiring msys python, but not having both. I'd also probably be fine supporting only msvc builds since that is probably what people will want given the debugging situation. I'll ask others. In the meantime, should we close this? |
It's `pacman -Su` nowadays, per Alexpux/MSYS2-pacman#26. (This is a very selective cherry-pick of servo#11392. The other parts were more controversial; they didn't fully work so let's disregard them for now.)
It's `pacman -Su` nowadays, per Alexpux/MSYS2-pacman#26. (This is a very selective cherry-pick of servo#11392. The other parts were more controversial; they didn't fully work so let's disregard them for now.)
Alright, that sounds reasonable. I'll see how hard it would be to get the msys build working with msys python.
Yes. I opened a new one with the update-core change, since that should be a no-brainer to merge. Thanks for taking some time to ensure we get things closed & moving forward! Good for everybody. |
Removed reference to update-core It's `pacman -Su` nowadays, per Alexpux/MSYS2-pacman#26. (This is a very selective cherry-pick of #11392. The other parts were more controversial; they didn't fully work so let's disregard them for now.) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11718) <!-- Reviewable:end -->
Removed reference to update-core It's `pacman -Su` nowadays, per Alexpux/MSYS2-pacman#26. (This is a very selective cherry-pick of #11392. The other parts were more controversial; they didn't fully work so let's disregard them for now.) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11718) <!-- Reviewable:end -->
Removed reference to update-core It's `pacman -Su` nowadays, per Alexpux/MSYS2-pacman#26. (This is a very selective cherry-pick of #11392. The other parts were more controversial; they didn't fully work so let's disregard them for now.) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11718) <!-- Reviewable:end -->
Removed reference to update-core It's `pacman -Su` nowadays, per Alexpux/MSYS2-pacman#26. (This is a very selective cherry-pick of #11392. The other parts were more controversial; they didn't fully work so let's disregard them for now.) <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11718) <!-- Reviewable:end -->
perlun commentedMay 24, 2016
•
edited by larsbergstrom
Details about changes:
With these changes in place, I am successfully able to at least get the build starting. (getting non-Python related errors, but will file a separate issue about that)
This change is