Commit Graph

488 Commits

Author SHA1 Message Date
Michael Forney
48e9b9c824 Bug 1615713 - Update breakpad to upstream revision 5bba75bfd6ec386b8e3af0b91332388a378135bf r=gsvelto
This includes several fixes required to build against musl libc.

Conflicts were resolved in 00-arm-exidx-rollup.patch and
10-json-upload.patch. 08-dont-add-sp-to-clobber-list.patch was
applied upstream and is no longer needed. The others applied cleanly.

breakpad_getcontext.S is now built conditionally based upon the
available of getcontext() from libc, rather than only on Android.
The profiler was updated to reflect this change.

Differential Revision: https://phabricator.services.mozilla.com/D67108

--HG--
rename : toolkit/crashreporter/breakpad-patches/09-gnu-alt-form-minimal-support.patch => toolkit/crashreporter/breakpad-patches/08-gnu-alt-form-minimal-support.patch
rename : toolkit/crashreporter/breakpad-patches/10-json-upload.patch => toolkit/crashreporter/breakpad-patches/09-json-upload.patch
rename : toolkit/crashreporter/google-breakpad/src/common/android/breakpad_getcontext.S => toolkit/crashreporter/google-breakpad/src/common/linux/breakpad_getcontext.S
rename : toolkit/crashreporter/google-breakpad/src/common/android/breakpad_getcontext_unittest.cc => toolkit/crashreporter/google-breakpad/src/common/linux/breakpad_getcontext_unittest.cc
extra : moz-landing-system : lando
2020-03-19 22:52:26 +00:00
Michael Froman
55663c4b8d Bug 1622356 - change minimum supported linux nasm to 2.14.02. r=froydnj
Dav1d 0.6.0 requires nasm 2.14.02.

Differential Revision: https://phabricator.services.mozilla.com/D67219

--HG--
extra : moz-landing-system : lando
2020-03-19 16:53:47 +00:00
Mike Hommey
646579d57d Bug 1618781 - Use the taskcluster artifact for pdbstr on both Windows native and cross builds. r=froydnj
And make it an explicit dependency of the build system.

Differential Revision: https://phabricator.services.mozilla.com/D67086

--HG--
extra : moz-landing-system : lando
2020-03-18 04:21:18 +00:00
Ciure Andrei
19d8351b5f Backed out 2 changesets (bug 1618781) for toolchain bustages CLOSED TREE
Backed out changeset 83026834b242 (bug 1618781)
Backed out changeset ac168e956e3a (bug 1618781)
2020-03-18 05:32:00 +02:00
Mike Hommey
570134e4a8 Bug 1618781 - Use the taskcluster artifact for pdbstr on both Windows native and cross builds. r=froydnj
And make it an explicit dependency of the build system.

Differential Revision: https://phabricator.services.mozilla.com/D67086

--HG--
extra : moz-landing-system : lando
2020-03-17 14:01:46 +00:00
Molly Howell
1ce92ca69d Bug 1602463 Part 1 - Add a build flag to disable the default browser agent. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D61888

--HG--
extra : moz-landing-system : lando
2020-03-16 18:32:51 +00:00
Mihai Alexandru Michis
12c2ba4b56 Backed out 5 changesets (bug 1602463) for causing diffoscope failures.
CLOSED TREE

Backed out changeset ff565862e785 (bug 1602463)
Backed out changeset 2583a2703658 (bug 1602463)
Backed out changeset 8f3de97c5d50 (bug 1602463)
Backed out changeset be11972a8149 (bug 1602463)
Backed out changeset 5a6058d8266c (bug 1602463)
2020-03-16 20:29:20 +02:00
Molly Howell
62c6a2b1df Bug 1602463 Part 1 - Add a build flag to disable the default browser agent. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D61888

--HG--
extra : moz-landing-system : lando
2020-03-16 16:42:14 +00:00
Adam Gashlin
b7a227398f Bug 1515451 Part 2 - Build update agent in-tree r=firefox-build-system-reviewers,mhowell,rstewart
The configure option --enable-update-agent is left disabled by default.

Differential Revision: https://phabricator.services.mozilla.com/D35506

--HG--
extra : moz-landing-system : lando
2020-03-11 22:32:26 +00:00
Mihai Alexandru Michis
e1e250413b Backed out 3 changesets (bug 1515451) for causing sm failures in components/updateagent/Cargo.toml
CLOSED TREE

Backed out changeset 85ea1d36da66 (bug 1515451)
Backed out changeset 779bc1fa07ae (bug 1515451)
Backed out changeset 0c6771b60b76 (bug 1515451)
2020-03-11 22:03:19 +02:00
Adam Gashlin
3b0b84fbee Bug 1515451 Part 2 - Build update agent in-tree r=firefox-build-system-reviewers,mhowell,rstewart
The configure option --enable-update-agent is left disabled by default.

Differential Revision: https://phabricator.services.mozilla.com/D35506

--HG--
extra : moz-landing-system : lando
2020-03-10 17:41:45 +00:00
Mike Hommey
5e3d7e3257 Bug 1619867 - Look for .exe-suffixed midl and rc from configure. r=dmajor
With this and all the previous changes, the necessary mozconfig for
local cross-builds only contains DIA_SDK_PATH, WINDOWSSDKDIR and
--target.

Differential Revision: https://phabricator.services.mozilla.com/D65295

--HG--
extra : moz-landing-system : lando
2020-03-04 17:13:24 +00:00
Mike Hommey
d747b65211 Bug 1617794 - Wrap Windows tools with Wine on cross builds. r=dmajor
Windows programs run via Wine don't like Unix absolute paths (they look
like command line arguments), so we need to use relative paths.

Mingw already run fxc2 via wine, but for some reason it doesn't care
about the Unix absolute paths. genshaders does need some adjustements to
run properly with the real fxc.

Now, on actual Windows, because the temporary directory where
tempfile.NamedTemporaryFile creates files by default is not necessarily
on the same drive as where the command runs from, a relative path can't
be constructed. So we also force the temporary file to be created in the
current (obj) directory.

There is no similar concern for other files because we only go from
objdir to srcdir, and the build system already doesn't support both
being on a separate drive.

While here, flush stdout when the genshared script writes to it, so that
the messages are printed out immediately rather than randomly, later,
after output from subprocesses.

Differential Revision: https://phabricator.services.mozilla.com/D64294

--HG--
extra : moz-landing-system : lando
2020-02-27 04:42:57 +00:00
Mike Hommey
b543758acf Bug 1614152 - Simplify DUMP_SYMS check, and make it optional. r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D64282

--HG--
extra : moz-landing-system : lando
2020-02-26 20:51:04 +00:00
Mike Hommey
f9434a7b48 Bug 1618068 - Remove clang-cl < 8 specific code from python configure. r=dmajor
clang-cl versions older than 8 are already rejected in
toolchain.configure as of bug 1550868.

Differential Revision: https://phabricator.services.mozilla.com/D64261

--HG--
extra : moz-landing-system : lando
2020-02-26 20:51:04 +00:00
Dana Keeler
3878240938 bug 1603834 - let cert_storage and intermediate preloading ride the trains r=jcj,froydnj
(intermediate preloading is still disabled on mobile for now)

Differential Revision: https://phabricator.services.mozilla.com/D63560

--HG--
extra : moz-landing-system : lando
2020-02-22 00:54:32 +00:00
Tom Prince
4396de38b8 Bug 1527313: [mozharness] Checkout l10n-central next to mozilla-central; r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D62410

--HG--
extra : moz-landing-system : lando
2020-02-19 22:20:11 +00:00
Nathan Froyd
9871aad8ea Bug 1610149 - let x86-64 Mac enable wasm sandboxing; r=firefox-build-system-reviewers,rstewart
Everything that we need is supported on Mac, too.

Depends on D62799

Differential Revision: https://phabricator.services.mozilla.com/D62800

--HG--
extra : moz-landing-system : lando
2020-02-13 23:40:13 +00:00
Thinker Li
dbada9842d Bug 1609881 - Part 3: build the fork server for Linux & FreeBSD. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D61255

--HG--
extra : moz-landing-system : lando
2020-02-14 16:50:33 +00:00
Coroiu Cristina
9526bf7b4d Backed out 3 changesets (bug 1610149) for instr bustage on a CLOSED TREE
Backed out changeset b815d0a94385 (bug 1610149)
Backed out changeset dfca4a56fa51 (bug 1610149)
Backed out changeset 0568028bb4dd (bug 1610149)
2020-02-14 01:14:05 +02:00
Nathan Froyd
8f585aba02 Bug 1610149 - let x86-64 Mac enable wasm sandboxing; r=firefox-build-system-reviewers,rstewart
Everything that we need is supported on Mac, too.

Depends on D62799

Differential Revision: https://phabricator.services.mozilla.com/D62800

--HG--
extra : moz-landing-system : lando
2020-02-13 21:17:18 +00:00
Nathan Froyd
3f2d9684cb Bug 1610986 - define ldflags for lucetc in configure; r=firefox-build-system-reviewers,rstewart
These vary per-target, and it's nicer to define them here rather than
define them somewhere in rules.mk.

Depends on D62796

Differential Revision: https://phabricator.services.mozilla.com/D62797

--HG--
extra : moz-landing-system : lando
2020-02-13 21:20:11 +00:00
Nathan Froyd
9df9f90a4a Bug 1610986 - add a specific target for lucet compilation; r=firefox-build-system-reviewers,rstewart
We're going to need this for handling Mac cross compiles correctly.

Depends on D62795

Differential Revision: https://phabricator.services.mozilla.com/D62796

--HG--
extra : moz-landing-system : lando
2020-02-13 21:20:34 +00:00
Andreea Pavel
3dfe514f42 Backed out changeset 84184c894e33 (bug 1609881) for multiple failures e.g assertion failure StaticPrefList_layers.h on a CLOSED TREE 2020-02-12 21:05:21 +02:00
Thinker Li
8753b31c60 Bug 1609881 - Part 2: build the fork server for Linux & FreeBSD. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D61255

--HG--
extra : moz-landing-system : lando
2020-02-12 16:57:20 +00:00
Shane Caraveo
97562b2ac6 Bug 1602840 add build switch for sideloading addons r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D57660

--HG--
extra : moz-landing-system : lando
2020-02-04 23:27:10 +00:00
Ricky Stewart
ffbd93e65a Bug 1611002 - configure/test_toolkit_moz_configure.py supports Python 3 r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D60777

--HG--
extra : moz-landing-system : lando
2020-01-30 10:34:51 +00:00
Razvan Maries
9ad088b041 Backed out 4 changesets (bug 1602840, bug 1603227) for xpcshell perma fails on test_registry.js. CLOSED TREE
Backed out changeset 02d52e2e7d62 (bug 1603227)
Backed out changeset faa15c6fed65 (bug 1602840)
Backed out changeset bc6122544852 (bug 1602840)
Backed out changeset 5ad4c0f6c5db (bug 1602840)
2020-01-20 22:10:42 +02:00
Shane Caraveo
f4e8956a36 Bug 1602840 add build switch for sideloading addons r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D57660

--HG--
extra : moz-landing-system : lando
2020-01-16 22:13:31 +00:00
Gabriele Svelto
96a70684f4 Bug 1588538 - Use the new Windows dump_syms tool to dump symbols in local builds r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D57094

--HG--
extra : moz-landing-system : lando
2020-01-16 14:14:13 +00:00
Shane Caraveo
8351044ded Bug 1524327 remove MOZ_ALLOW_LEGACY_EXTENSIONS and extensions.legacy.enabled r=zombie,aswan
Legacy extensions are no longer loaded, so we can drop the build config for it.  We
still need flags for handling experimental APIs since what we require differs between builds
and distributions.

Differential Revision: https://phabricator.services.mozilla.com/D57413

--HG--
extra : moz-landing-system : lando
2020-01-15 21:38:40 +00:00
Csoregi Natalia
57eb78c63c Backed out changeset 5d0b75e5f795 (bug 1588538) for DUMP_SYMS bustage. CLOSED TREE 2020-01-14 13:53:54 +02:00
Gabriele Svelto
e62e144c3c Bug 1588538 - Use the new Windows dump_syms tool to dump symbols in local builds r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D57094

--HG--
extra : moz-landing-system : lando
2020-01-14 10:08:52 +00:00
Nathan Froyd
c27f84822c Bug 1608326 - only check for wasm tools when compiling; r=firefox-build-system-reviewers,chmanchester
...so that we can correctly declare that we are using sandboxed
library(ies) from our "parent" build, but not check for all the tools to
compile code.

Depends on D59554

Differential Revision: https://phabricator.services.mozilla.com/D59555

--HG--
extra : moz-landing-system : lando
2020-01-10 19:56:17 +00:00
Nathan Froyd
2aa36b39fc Bug 1608326 - move most wasm sandboxing configury under an only_when; r=firefox-build-system-reviewers,chmanchester
This change eliminates a lot of repetition, and paves the way for the
next change.

Differential Revision: https://phabricator.services.mozilla.com/D59554

--HG--
extra : moz-landing-system : lando
2020-01-10 19:56:05 +00:00
Nathan Froyd
92e5beb60a Bug 1569370 - add mozconfig fragments for declaring wasm sandboxing bits; r=firefox-build-system-reviewers,rstewart
This patch is not ideal: if would be better to do the defaulting in
`toolkit/moz.configure`, but doing it there runs into problems with base
toolchain configurations, as the clang there is not new enough.  So we
have this, doing everything with environment variables, which is easily
turned on or off, depending on the needs of the specific configuration.

The `mozconfig.no-compile` change is not really needed, as the wasm
sandboxing detection bits are not conditional on
`--enable-compile-environment`.  Those bits should be, and I will tackle
doing that after the holidays.

Differential Revision: https://phabricator.services.mozilla.com/D58102

--HG--
extra : moz-landing-system : lando
2020-01-07 10:28:47 +00:00
Chris Manchester
2f9f317ece Bug 1605213 - Add compiler wrapper to the wasm compiler. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D59239

--HG--
extra : moz-landing-system : lando
2020-01-09 16:13:12 +00:00
Andreas Tolfsen
e816b7ccd2 bug 1598286: toolkit: enable remote agent on Windows AArch64; r=remote-protocol-reviewers,whimboo,froydnj
The remote agent used to not compile on Windows AArch64 due to iovec's
dependency on a version of winapi without support for this architecture.

Now that the remote agent has upgraded to http 0.2, which depends on
a version of the bytes crate that has moved away from iovec in favour
of std::io::IoSlice, we are able to turn on support for Windows AArch64.

This in turn will also fix bug 1606935 because the browser-chrome
test manifest for M(remote) will no longer be empty.  It was a
regression caused by 1603930 where we fixed a logic error causnig
ENABLE_REMOTE_AGENT to be inappropriately set on non-trunk branches.

Differential Revision: https://phabricator.services.mozilla.com/D58767

--HG--
extra : moz-landing-system : lando
2020-01-06 14:24:15 +00:00
Razvan Maries
81bbc79be4 Backed out changeset 691de0626040 (bug 1569370) as per Nathan's request. CLOSED TREE 2020-01-03 23:07:24 +02:00
Andreas Tolfsen
42644cd640 bug 1603930: toolkit: fix remote agent build targets; r=firefox-build-system-reviewers,mshal
The remote agent component was meant to only be built on the
Nightly release channel, but 868b1bf043dc accidentally reversed
--enable-cdp and --reverse-cdp, not understanding that there's a
semantic difference in the build config parser for this.

This has had the undesired effect that the remote agent has been
built on all release channels since around 25th April of this year.
This in itself is not a huge concern because the feature is disabled
through the remote.enabled preference in modules/libpref/init/all.js,
except on Nightly.

This patch reverses s/disable/enable/ which causes ENABLE_REMOTE_AGENT
to be set only on the Nightly release channel, or when --enable-cdp
is explicitly used, thus achieving the original, intended effect.

We caught this when running the bc test
remote/test/browser/browser_agent.js as part of beta simulations
for Firefox 73.  I wrote that test explicitly to test for this
eventuality, so I will consider it good enough for this change to
ship without additional tests.

Differential Revision: https://phabricator.services.mozilla.com/D58452

--HG--
extra : moz-landing-system : lando
2020-01-02 14:35:17 +00:00
Nathan Froyd
be320d836e Bug 1569370 - add mozconfig fragments for declaring wasm sandboxing bits; r=firefox-build-system-reviewers,rstewart
This patch is not ideal: if would be better to do the defaulting in
`toolkit/moz.configure`, but doing it there runs into problems with base
toolchain configurations, as the clang there is not new enough.  So we
have this, doing everything with environment variables, which is easily
turned on or off, depending on the needs of the specific configuration.

The `mozconfig.no-compile` change is not really needed, as the wasm
sandboxing detection bits are not conditional on
`--enable-compile-environment`.  Those bits should be, and I will tackle
doing that after the holidays.

Differential Revision: https://phabricator.services.mozilla.com/D58102

--HG--
extra : moz-landing-system : lando
2020-01-02 14:50:08 +00:00
shindli
4f5d5bf966 Backed out changeset 008852b3720d (bug 1569370) for causing linux x64 wasm bustages CLOSED TREE
--HG--
extra : rebase_source : bb2fac5057260496f457c6466a0803c3c41b930c
2019-12-30 21:15:37 +02:00
Nathan Froyd
52c254b0e6 Bug 1569370 - add mozconfig fragments for declaring wasm sandboxing bits; r=firefox-build-system-reviewers,rstewart
This patch is not ideal: if would be better to do the defaulting in
`toolkit/moz.configure`, but doing it there runs into problems with base
toolchain configurations, as the clang there is not new enough.  So we
have this, doing everything with environment variables, which is easily
turned on or off, depending on the needs of the specific configuration.

The `mozconfig.no-compile` change is not really needed, as the wasm
sandboxing detection bits are not conditional on
`--enable-compile-environment`.  Those bits should be, and I will tackle
doing that after the holidays.

Differential Revision: https://phabricator.services.mozilla.com/D58102

--HG--
extra : moz-landing-system : lando
2019-12-24 04:27:01 +00:00
Andreea Pavel
bfb46a92de Backed out changeset c867ca4daf74 (bug 1569370) for build bustages on a CLOSED TREE 2019-12-24 05:40:35 +02:00
Nathan Froyd
be203e102e Bug 1569370 - add mozconfig fragments for declaring wasm sandboxing bits; r=firefox-build-system-reviewers,rstewart
This patch is not ideal: if would be better to do the defaulting in
`toolkit/moz.configure`, but doing it there runs into problems with base
toolchain configurations, as the clang there is not new enough.  So we
have this, doing everything with environment variables, which is easily
turned on or off, depending on the needs of the specific configuration.

The `mozconfig.no-compile` change is not really needed, as the wasm
sandboxing detection bits are not conditional on
`--enable-compile-environment`.  Those bits should be, and I will tackle
doing that after the holidays.

Differential Revision: https://phabricator.services.mozilla.com/D58102

--HG--
extra : moz-landing-system : lando
2019-12-23 16:47:18 +00:00
Nathan Froyd
e4254ac900 Bug 1605456 - add environment variable for wasi sysroot location; r=firefox-build-system-reviewers,rstewart
We often include common mozconfig fragments to turn various options on.
When doing that, environment variables are more easily turned off by
later mozconfig fragments (e.g. `build/mozconfig.no-compile` for
artifact builds) than command-line options.  Therefore, include an
alternate environment variable for identifying the location of the wasi
sysroot.

Differential Revision: https://phabricator.services.mozilla.com/D58037

--HG--
extra : moz-landing-system : lando
2019-12-20 20:35:38 +00:00
shravanrn@gmail.com
a3f185ef1b Bug 1576052 - Use configuration/macro definition to selectively enable wasm sandbox for graphite r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D43710

--HG--
extra : moz-landing-system : lando
2019-12-19 22:17:13 +00:00
J.C. Jones
942507de3e Bug 1594931 - Stop compiling NSS' DBM legacy database r=kjacobs,keeler,mhowell,MattN
This change modifies all tests that use key3/cert8 to use the new files. It
removes test_sdr_upgraded_with_password, as without the upgrade part that is now
the same test as test_sdr_preexisting_with_password.

Differential Revision: https://phabricator.services.mozilla.com/D55708

--HG--
rename : security/manager/ssl/tests/unit/test_sdr_preexisting/key4.db => security/manager/ssl/tests/unit/test_broken_fips/key4.db
extra : moz-landing-system : lando
2019-12-16 17:35:49 +00:00
Csoregi Natalia
5f6f55422f Backed out changeset 5c137b3793a7 (bug 1594931) for failures on test_sdr_preexisting.js. CLOSED TREE
--HG--
rename : security/manager/ssl/tests/unit/test_broken_fips/key4.db => security/manager/ssl/tests/unit/test_sdr_preexisting/key4.db
2019-12-16 18:52:41 +02:00
J.C. Jones
4916451c01 Bug 1594931 - Stop compiling NSS' DBM legacy database r=kjacobs,keeler,mhowell,MattN
This change modifies all tests that use key3/cert8 to use the new files. It
removes test_sdr_upgraded_with_password, as without the upgrade part that is now
the same test as test_sdr_preexisting_with_password.

Differential Revision: https://phabricator.services.mozilla.com/D55708

--HG--
rename : security/manager/ssl/tests/unit/test_sdr_preexisting/key4.db => security/manager/ssl/tests/unit/test_broken_fips/key4.db
extra : moz-landing-system : lando
2019-12-14 18:52:26 +00:00