Closed
Bug 1119776
Opened 10 years ago
Closed 10 years ago
Don't define snprintf if MSVC provides it (VS2015 and later do)
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox36 wontfix, firefox37 fixed, firefox38 fixed, firefox39 fixed, firefox40 fixed)
RESOLVED
FIXED
mozilla40
People
(Reporter: briansmith, Assigned: briansmith)
References
Details
Attachments
(10 files, 3 obsolete files)
(deleted),
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
rillian
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jesup
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jesup
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
lmandel
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
mozilla
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
gw280
:
review+
|
Details | Diff | Splinter Review |
These patches are required in order for VS2015 to build mozilla-central correctly.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8546599 -
Flags: review?(ehsan)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8546600 -
Flags: review?(cpearce)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8546601 -
Flags: review?(rjesup)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8546604 -
Flags: review?(jwalden+bmo)
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8546605 -
Flags: review?(mcmanus)
Assignee | ||
Comment 6•10 years ago
|
||
Ted, I'll check this into the NSPR repository after it is r+d.
Attachment #8546606 -
Flags: review?(ted)
Assignee | ||
Comment 7•10 years ago
|
||
Attachment #8546607 -
Flags: review?(benjamin)
Assignee | ||
Comment 8•10 years ago
|
||
Benoit,
I understand that your team upstreams patches to Angle and Skia before landing them in mozilla-central. Could you help me do that for these changes? I think it's likely to be trivial for you, but easy for me to screw up.
Thanks!
Attachment #8546608 -
Flags: review?(jacob.benoit.1)
Assignee | ||
Comment 9•10 years ago
|
||
Here's a try run with these patches:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c63b55fd66a5
I'm not sure what the deal is with Android Mochitest-8. I think maybe I had my local tree based on something that broke that test; I'll verify that before landing any of this.
Updated•10 years ago
|
Attachment #8546607 -
Flags: review?(benjamin) → review+
Updated•10 years ago
|
Attachment #8546605 -
Flags: review?(mcmanus) → review?(rjesup)
Updated•10 years ago
|
Attachment #8546599 -
Flags: review?(ehsan) → review+
Updated•10 years ago
|
Attachment #8546601 -
Flags: review?(rjesup) → review+
Comment 10•10 years ago
|
||
Comment on attachment 8546605 [details] [diff] [review]
Part 5: Avoid defining snprintf when MSVC provides it (netwerk)
Review of attachment 8546605 [details] [diff] [review]:
-----------------------------------------------------------------
Please send email to Michael Tuexen (Michael Tuexen <tuexen@fh-muenster.de>) with a pointer to this patch so he can land it in upstream. Thanks!
Attachment #8546605 -
Flags: review?(rjesup) → review+
Updated•10 years ago
|
Attachment #8546604 -
Flags: review?(jwalden+bmo) → review+
Comment 11•10 years ago
|
||
Comment on attachment 8546600 [details] [diff] [review]
Part 2: Avoid defining snprintf when MSVC provides it (video)
Review of attachment 8546600 [details] [diff] [review]:
-----------------------------------------------------------------
Ralph is more up with the play WRT whether we're taking patches directly against libvpx etc, so I'll pass the review to him.
Attachment #8546600 -
Flags: review?(cpearce) → review?(giles)
Comment 12•10 years ago
|
||
Comment on attachment 8546600 [details] [diff] [review]
Part 2: Avoid defining snprintf when MSVC provides it (video)
Review of attachment 8546600 [details] [diff] [review]:
-----------------------------------------------------------------
Please split the libvpx change into a separate commit.
For libvpx, in addition to the change to vp9_systemdependent.h please add a patch file to media/libvpx/ with the same change and add it to apply_patches() in update.py (see https://github.com/mozilla/gecko-dev/blob/master/media/libvpx/update.py#L530). This will ensure your change isn't clobbered the next time we pull from this library's upstream source.
Stagefright patch looks fine. r=me with these changes.
Attachment #8546600 -
Flags: review?(giles) → review+
Updated•10 years ago
|
Attachment #8546606 -
Flags: review?(ted) → review+
Comment 13•10 years ago
|
||
(In reply to Brian Smith (:briansmith, :bsmith, use NEEDINFO?) from comment #6)
> Ted, I'll check this into the NSPR repository after it is r+d.
I just tagged a new NSPR beta the other day, feel free to tag another one. Given that today is an uplift day, though, we might want to cut a NSPR release from the current trunk and then land this patch for the next version (just to minimize churn when we land the NSPR release changeset on aurora).
Assignee | ||
Comment 14•10 years ago
|
||
Comment on attachment 8546608 [details] [diff] [review]
Part 8: Avoid defining snprintf when MSVC provides it (gfx)
Review of attachment 8546608 [details] [diff] [review]:
-----------------------------------------------------------------
Jeff, could you help me with the review for this patch and to help merge it upstream? I don't have access to the upstream repositories to do the merge myself. Thanks!
Attachment #8546608 -
Flags: review?(jacob.benoit.1) → review?(jmuizelaar)
Comment 15•10 years ago
|
||
Comment on attachment 8546608 [details] [diff] [review]
Part 8: Avoid defining snprintf when MSVC provides it (gfx)
Review of attachment 8546608 [details] [diff] [review]:
-----------------------------------------------------------------
I'll do what I can. It may be a bit of a long process.
Assignee | ||
Comment 16•10 years ago
|
||
Comment on attachment 8546599 [details] [diff] [review]
Part 1: Avoid defining snprintf when MSVC provides it (dom/media)
https://hg.mozilla.org/integration/mozilla-inbound/rev/4f852d38c615
Attachment #8546599 -
Flags: checkin+
Assignee | ||
Comment 17•10 years ago
|
||
Comment on attachment 8546600 [details] [diff] [review]
Part 2: Avoid defining snprintf when MSVC provides it (video)
https://hg.mozilla.org/integration/mozilla-inbound/rev/60e60567879b
Attachment #8546600 -
Flags: checkin+
Assignee | ||
Comment 18•10 years ago
|
||
Comment on attachment 8546601 [details] [diff] [review]
Part 3: Avoid defining snprintf when MSVC provides it (WebRTC)
https://hg.mozilla.org/integration/mozilla-inbound/rev/9ca86f8617aa
Attachment #8546601 -
Flags: checkin+
Assignee | ||
Comment 19•10 years ago
|
||
Comment on attachment 8546604 [details] [diff] [review]
Part 4: Avoid defining snprintf when MSVC provides it (MFBT)
https://hg.mozilla.org/integration/mozilla-inbound/rev/6979b5854ef4
Attachment #8546604 -
Flags: checkin+
Assignee | ||
Comment 20•10 years ago
|
||
Comment on attachment 8546605 [details] [diff] [review]
Part 5: Avoid defining snprintf when MSVC provides it (netwerk)
https://hg.mozilla.org/integration/mozilla-inbound/rev/b44a29a96736
Attachment #8546605 -
Flags: checkin+
Assignee | ||
Comment 21•10 years ago
|
||
Comment on attachment 8546606 [details] [diff] [review]
Part 6: Avoid defining snprintf when MSVC provides it (NSPR)
Part 6 was checked into NSPR and then the new version of NSPR was imported into mozilla-inbound/central, so Part 6 isn't needed any more.
Attachment #8546606 -
Attachment is obsolete: true
Assignee | ||
Comment 22•10 years ago
|
||
Comment on attachment 8546607 [details] [diff] [review]
Part 7: Avoid defining snprintf when MSVC provides it (other)
https://hg.mozilla.org/integration/mozilla-inbound/rev/3fbe6908e21f
Attachment #8546607 -
Flags: checkin+
Assignee | ||
Comment 23•10 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #15)
> I'll do what I can. It may be a bit of a long process.
Thanks Jeff! I appreciate it.
Also, thanks a lot to everybody else that reviewed these patches!
Keywords: leave-open
Comment 24•10 years ago
|
||
(In reply to Brian Smith (:briansmith, :bsmith, use NEEDINFO?) from comment #23)
https://twitter.com/sayrer/status/19304989209
Comment 25•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/4f852d38c615
https://hg.mozilla.org/mozilla-central/rev/60e60567879b
https://hg.mozilla.org/mozilla-central/rev/9ca86f8617aa
https://hg.mozilla.org/mozilla-central/rev/6979b5854ef4
https://hg.mozilla.org/mozilla-central/rev/b44a29a96736
https://hg.mozilla.org/mozilla-central/rev/3fbe6908e21f
Comment 26•10 years ago
|
||
This is a backport of just the libstagefright changes from part 2 to reduce variance between firefox 37 and 38.
Approval Request Comment
[Feature/regressing bug #]: MSE
[User impact if declined]: Harder to backport other changes later.
[Describe test coverage new/current, TBPL]: Landed on m-c
[Risks and why]: Minimal. Include changes for MSVC 2015.
[String/UUID change made/needed]: None
Approval is requested for this patch alone.
Attachment #8549728 -
Flags: approval-mozilla-aurora?
Comment 27•10 years ago
|
||
Comment on attachment 8549728 [details] [diff] [review]
Part 2: Aurora backport of stagefright changes.
Aurora+
Attachment #8549728 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 28•10 years ago
|
||
Comment 29•10 years ago
|
||
Set tracking flags to reflect uplift status.
This isn't really 'fixed' on firefox 37. We only uplifted the stagefright changes.
Assignee | ||
Comment 30•10 years ago
|
||
Rebased. Any chance of a review of this any time soon? It's been several months now.
Attachment #8546608 -
Attachment is obsolete: true
Attachment #8546608 -
Flags: review?(jmuizelaar)
Attachment #8586307 -
Flags: review?(jmuizelaar)
Comment 31•10 years ago
|
||
(In reply to Brian Smith (:briansmith, :bsmith, use NEEDINFO?) from comment #30)
> Created attachment 8586307 [details] [diff] [review]
> Part 8: Avoid defining snprintf when MSVC provides it (gfx) [v2]
>
> Rebased. Any chance of a review of this any time soon? It's been several
> months now.
Sorry about that. It's probably worth splitting out this patch for skia, angle and harfbuzz and have them reviewed and upstreamed individually. I haven't had a chance to do this for each of the projects. gw280 can deal with skia patch, jgilbert can do the angle part and Jonathan Kew can do the harfbuzz part.
Updated•10 years ago
|
Attachment #8586307 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 32•10 years ago
|
||
Jeff, Jeff M. suggested you are the best person to review and upstream this. All the non-gfx patches in this bug have already been checked in. Thanks in advance!
Attachment #8586307 -
Attachment is obsolete: true
Attachment #8586317 -
Flags: review?(jgilbert)
Assignee | ||
Comment 33•10 years ago
|
||
Jonathan, Jeff M. suggested you are the best person to review and upstream this. All the non-gfx patches in thus bug have already landed. Thanks in advance!
Attachment #8586321 -
Flags: review?(jfkthame)
Assignee | ||
Updated•10 years ago
|
Attachment #8586317 -
Attachment description: Avoid defining snprintf when MSVC provides it (angle) → Part 8: Avoid defining snprintf when MSVC provides it (angle)
Assignee | ||
Comment 34•10 years ago
|
||
George, Jeff M. suggested you are the best person to review and upstream this. All the non-gfx patches in this bug have already landed. Thanks in advance!
Attachment #8586324 -
Flags: review?(gwright)
Comment 35•10 years ago
|
||
HarfBuzz patch is upstream now.
Comment 36•10 years ago
|
||
Comment on attachment 8586317 [details] [diff] [review]
Part 8: Avoid defining snprintf when MSVC provides it (angle)
Review of attachment 8586317 [details] [diff] [review]:
-----------------------------------------------------------------
This is already present in upstream ANGLE.
Attachment #8586317 -
Flags: review?(jgilbert) → review+
Assignee | ||
Comment 37•10 years ago
|
||
(In reply to Behdad Esfahbod from comment #35)
> HarfBuzz patch is upstream now.
Great! Can you r+ the patch so I can land it? Thanks!
Assignee | ||
Comment 38•10 years ago
|
||
Comment on attachment 8586317 [details] [diff] [review]
Part 8: Avoid defining snprintf when MSVC provides it (angle)
https://hg.mozilla.org/integration/mozilla-inbound/rev/0c264a5558d6
Attachment #8586317 -
Flags: checkin+
Updated•10 years ago
|
Attachment #8586321 -
Flags: review?(jfkthame) → review+
Comment 39•10 years ago
|
||
Comment 40•10 years ago
|
||
Comment on attachment 8586324 [details] [diff] [review]
Part 10: Avoid defining snprintf when MSVC provides it (skia)
Review of attachment 8586324 [details] [diff] [review]:
-----------------------------------------------------------------
I'll upstream this
Attachment #8586324 -
Flags: review?(gwright) → review+
Comment 41•10 years ago
|
||
Assignee | ||
Comment 42•10 years ago
|
||
Comment on attachment 8586321 [details] [diff] [review]
Part 9: Avoid defining snprintf when MSVC provides it (harfbuzz)
https://hg.mozilla.org/integration/mozilla-inbound/rev/25178d030eef
Attachment #8586321 -
Flags: checkin+
Assignee | ||
Comment 43•10 years ago
|
||
Comment on attachment 8586324 [details] [diff] [review]
Part 10: Avoid defining snprintf when MSVC provides it (skia)
https://hg.mozilla.org/integration/mozilla-inbound/rev/9b20a8b5edec
Attachment #8586324 -
Flags: checkin+
Assignee | ||
Comment 44•10 years ago
|
||
Thanks for all the reviews! All the patches for this have landed now.
Keywords: leave-open
Comment 45•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/25178d030eef
https://hg.mozilla.org/mozilla-central/rev/9b20a8b5edec
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: mozilla37 → mozilla40
Comment 46•10 years ago
|
||
Calling Fx39 fixed to make my "needs uplift" bug queries happy (I'm assuming we don't intend to backport any further patches from this bug to the release branches).
status-firefox39:
--- → fixed
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•