Closed Bug 1407368 Opened 7 years ago Closed 7 years ago

Rename Breakpad's src/common/memory.h

Categories

(Toolkit :: Crash Reporting, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: ted, Assigned: ted)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We have a dumb makefile rule in a Makefile for Breakpad to fiddle with INCLUDES because the build system always has -I$(srcdir), and that directory has a header named memory.h, which shadows a system header:
https://hg.mozilla.org/mozilla-central/file/77a4c52e9987d2359969d7c478183b438b464744/toolkit/crashreporter/google-breakpad/src/common/Makefile.in#l9

We could figure out a smarter way to fix this, but I propose we just upstream a patch to rename that header and move on in life.
Blocks: buildtup
Upstream patch:
https://chromium-review.googlesource.com/c/breakpad/breakpad/+/723261

Once that lands I'll cherry-pick it for m-c.
Assignee: nobody → ted
This landed upstream, I should have a patch against m-c today.
(In reply to Chris Manchester (:chmanchester) from comment #3)
> We can get rid of
> http://searchfox.org/mozilla-central/rev/
> dca019c94bf3a840ed7ff50261483410cfece24f/toolkit/crashreporter/google-
> breakpad/src/common/moz.build#67 once this lands as well.

Thanks! I caught that by accident as I was making sure I had fixed everything to work with this patch. I split the patches here into "just the rename" and "remove the workarounds".
Comment on attachment 8919529 [details]
bug 1407368 - rename Breakpad's src/common/memory.h.

https://reviewboard.mozilla.org/r/190368/#review195758

LGTM. I've been thinking of pulling from breakpad for a while but I've got so many other things to do I keep postponing it.
Attachment #8919529 - Flags: review?(gsvelto) → review+
(In reply to Gabriele Svelto [:gsvelto] from comment #8)
> LGTM. I've been thinking of pulling from breakpad for a while but I've got
> so many other things to do I keep postponing it.

Yeah, no worries. I don't think there are a lot of upstream fixes that'd actually be useful to us anyway.
Comment on attachment 8919530 [details]
bug 1407368 - remove workarounds in google-breakpad/src/common.

https://reviewboard.mozilla.org/r/190370/#review196008
Attachment #8919530 - Flags: review?(mshal) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: