Closed Bug 1108759 Opened 10 years ago Closed 10 years ago

libmozsandbox breaks no-opt B2G build

Categories

(Core :: Security, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla37

People

(Reporter: jld, Assigned: jld)

Details

Attachments

(1 file, 1 obsolete file)

libmozsandbox needs to USE_LIBS mfbt (or maybe mozglue?) because of the symbol dependency on mozilla::unused present on no-optimization builds.

This breaks the B2G no-optimization build, which appears to be very uncommon — this has probably been broken for months (since bug 1059038 landed), and so far only one person has run into it — but it should be fixed.

(Note: the ICS B2G no-opt build is broken both by this and by ICEs in Neon-specific code in libvpx and skia, but bug 1056337 could fix that.)
Attached patch bug1108759-noopt-mfbt-hg0.diff (obsolete) — Splinter Review
Seems to not break any of the existing builds: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=42599d6539fc
Attachment #8533441 - Flags: review?(mh+mozilla)
…or maybe this is fallout from bug 1077148, and the correct fix is to change SharedLibrary to GeckoSharedLibrary?
Comment on attachment 8533441 [details] [diff] [review]
bug1108759-noopt-mfbt-hg0.diff

Review of attachment 8533441 [details] [diff] [review]:
-----------------------------------------------------------------

::: security/sandbox/linux/moz.build
@@ +45,5 @@
>          'rt',
>      ]
>  
> +USE_LIBS += [
> +    'mfbt',

make that mozglue, and only in the case you define a SharedLibrary.
Attachment #8533441 - Flags: review?(mh+mozilla) → feedback-
Attached patch Patch [v2]Splinter Review
Attachment #8533441 - Attachment is obsolete: true
Attachment #8533862 - Flags: review?(mh+mozilla)
Attachment #8533862 - Flags: review?(mh+mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/dd8ab8e5292d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: