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

Glutin 0.21 #23288

Merged
merged 4 commits into from May 22, 2019
Merged

Glutin 0.21 #23288

merged 4 commits into from May 22, 2019

Conversation

@paulrouget
Copy link
Contributor

paulrouget commented Apr 29, 2019

Fix #23189

Depends on #23233

Dependencies update:


This change is Reviewable

@highfive
Copy link

highfive commented Apr 29, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/Cargo.toml
  • @wafflespeanut: python/servo/command_base.py, python/servo/testing_commands.py, python/servo/build_commands.py, python/servo/post_build_commands.py
  • @KiChjang: components/script/Cargo.toml
  • @edunham: servo-tidy.toml
  • @emilio: components/style/Cargo.toml, components/layout/Cargo.toml
@highfive
Copy link

highfive commented Apr 29, 2019

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
@jdm
jdm approved these changes Apr 29, 2019
components/canvas/Cargo.toml Outdated Show resolved Hide resolved
@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2019

The latest upstream changes (presumably #23289) made this pull request unmergeable. Please resolve the merge conflicts.

@Manishearth
Copy link
Member

Manishearth commented Apr 30, 2019

Also depends on servo/rust-azure#298

@Manishearth
Copy link
Member

Manishearth commented Apr 30, 2019

Needs a bump of azure to v0.36.0

@paulrouget paulrouget force-pushed the paulrouget:glutin-21 branch from 21e284a to 9c8341b Apr 30, 2019
@paulrouget
Copy link
Contributor Author

paulrouget commented Apr 30, 2019

Running into a compilation issue with rand_core…

@paulrouget paulrouget force-pushed the paulrouget:glutin-21 branch from 9c8341b to 306f025 Apr 30, 2019
@Manishearth
Copy link
Member

Manishearth commented Apr 30, 2019

Probably because of the multiple rand packages conflicting

@paulrouget
Copy link
Contributor Author

paulrouget commented Apr 30, 2019

That was not an issue with the RC:

Investigating.

@paulrouget
Copy link
Contributor Author

paulrouget commented Apr 30, 2019

error[E0277]: the trait bound `rand_hc::Hc128Rng: rand_core::SeedableRng` is not satisfied
  --> /Users/paul/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/rngs/std.rs:55:6
   |
55 | impl SeedableRng for StdRng {
   |      ^^^^^^^^^^^ the trait `rand_core::SeedableRng` is not implemented for `rand_hc::Hc128Rng`

error[E0277]: the trait bound `rand_chacha::ChaChaRng: rand_core::SeedableRng` is not satisfied
   --> /Users/paul/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/deprecated.rs:141:6
    |
141 | impl SeedableRng for ChaChaRng {
    |      ^^^^^^^^^^^ the trait `rand_core::SeedableRng` is not implemented for `rand_chacha::ChaChaRng`

error[E0277]: the trait bound `rand_hc::Hc128Rng: rand_core::SeedableRng` is not satisfied
   --> /Users/paul/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/src/deprecated.rs:198:6

and more like this.

@jdm
Copy link
Member

jdm commented Apr 30, 2019

When I've seen errors like that,bit usually requires updating an older version of the Rand package.

@paulrouget paulrouget force-pushed the paulrouget:glutin-21 branch from 306f025 to 76718f1 May 2, 2019
@paulrouget
Copy link
Contributor Author

paulrouget commented May 2, 2019

@jdm it worked. Thank you.

PR updated.

@paulrouget
Copy link
Contributor Author

paulrouget commented May 2, 2019

The way context are handled in this new version of glutin is a bit tricky.

A context is either current or not, and switching from one to the other consumes the context. So we can't simply store a context. See 76718f1#diff-7f61eab416c6c9fd2e6bfc9bb5b22f9bR22

@paulrouget paulrouget changed the title WIP: Glutin 0.21 Glutin 0.21 May 2, 2019
@paulrouget
Copy link
Contributor Author

paulrouget commented May 2, 2019

bors-servo added a commit that referenced this pull request May 2, 2019
Glutin 0.21

Fix #23189

Depends on #23233

Dependencies update:
- servo/rust-webvr#73
- servo/skia#172
- servo/rust-glx#23
- servo/surfman#134

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23288)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 2, 2019

Trying commit 76718f1 with merge d865a87...

@paulrouget
Copy link
Contributor Author

paulrouget commented May 2, 2019

Not ready for review. Need tries and servo/skia#175

@paulrouget
Copy link
Contributor Author

paulrouget commented May 2, 2019

bors-servo added a commit that referenced this pull request May 2, 2019
Glutin 0.21

Fix #23189

Depends on #23233

Dependencies update:
- servo/rust-webvr#73
- servo/skia#172
- servo/rust-glx#23
- servo/surfman#134

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23288)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 2, 2019

Trying commit 1af3508 with merge 6f77968...

@bors-servo
Copy link
Contributor

bors-servo commented May 2, 2019

💔 Test failed - android-mac

@bors-servo
Copy link
Contributor

bors-servo commented May 21, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
State: approved= try=True

@paulrouget
Copy link
Contributor Author

paulrouget commented May 22, 2019

I'll see if we can land this with 2 versions of gl_generator (which won't require a mozangle update). And we will de-dupe once servo/mozangle#19 land.

@paulrouget paulrouget force-pushed the paulrouget:glutin-21 branch from c3dc0f3 to ab4d659 May 22, 2019
@paulrouget paulrouget force-pushed the paulrouget:glutin-21 branch from ab4d659 to d55d664 May 22, 2019
@paulrouget
Copy link
Contributor Author

paulrouget commented May 22, 2019

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

bors-servo commented May 22, 2019

Trying commit d55d664 with merge b9b69df...

bors-servo added a commit that referenced this pull request May 22, 2019
Glutin 0.21

Fix #23189

Depends on #23233

Dependencies update:
- servo/rust-webvr#73
- servo/skia#172
- servo/rust-glx#23
- servo/surfman#134

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23288)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 22, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
State: approved= try=True

@paulrouget
Copy link
Contributor Author

paulrouget commented May 22, 2019

All look green.

Need an approval for duplicating gl_generator, a r+, and we good to go.

@jdm
Copy link
Member

jdm commented May 22, 2019

@bors-servo
Copy link
Contributor

bors-servo commented May 22, 2019

📌 Commit d55d664 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented May 22, 2019

Testing commit d55d664 with merge a911b82...

bors-servo added a commit that referenced this pull request May 22, 2019
Glutin 0.21

Fix #23189

Depends on #23233

Dependencies update:
- servo/rust-webvr#73
- servo/skia#172
- servo/rust-glx#23
- servo/surfman#134

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23288)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented May 22, 2019

☀️ Test successful - arm64, linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing a911b82 to master...

@bors-servo bors-servo merged commit d55d664 into servo:master May 22, 2019
4 checks passed
4 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
This was referenced May 25, 2019
bors-servo added a commit that referenced this pull request May 25, 2019
Glutin 0.21

This is just #23288 taking into account the lessons learned in #23448 so that Android builds successfully.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23457)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants
You can’t perform that action at this time.