Commit Graph

9624 Commits

Author SHA1 Message Date
Andi-Bogdan Postelnicu
2b26dd3b3b Bug 1626555 - Add dom/workers to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D97170
2020-11-16 15:56:30 +00:00
Andi-Bogdan Postelnicu
575adf71a5 Bug 1626555 - Add dom/webgpu to the list of non-unified-build-compatible directories. r=sg,kvark
Differential Revision: https://phabricator.services.mozilla.com/D97166
2020-11-16 15:37:09 +00:00
Andi-Bogdan Postelnicu
bfa29c9f3f Bug 1626555 - Add dom/websocket to the list of non-unified-build-compatible directories. r=sg
Depends on D97121

Differential Revision: https://phabricator.services.mozilla.com/D97122
2020-11-16 10:23:00 +00:00
Andi-Bogdan Postelnicu
c3630ad787 Bug 1626555 - Add dom/webshare to the list of non-unified-build-compatible directories. r=sg
Depends on D97120

Differential Revision: https://phabricator.services.mozilla.com/D97121
2020-11-16 10:22:47 +00:00
Andi-Bogdan Postelnicu
9259dbc890 Bug 1626555 - Add dom/webidl to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D97120
2020-11-16 10:22:34 +00:00
David Major
864a71324c Bug 1677147 - Update build-clang.py for "llvmbuildectomy" r=firefox-build-system-reviewers,mhentges
A recent change upstream [0] removed llvm-build, so we can't test for its files anymore.

[0] 9218ff50f9

Differential Revision: https://phabricator.services.mozilla.com/D97017
2020-11-14 03:15:54 +00:00
Mihai Alexandru Michis
06103d0e92 Backed out 3 changesets (bug 1666345, bug 1667152, bug 1661624) for causing mochitest timeouts.
CLOSED TREE

Backed out changeset baa1f7a615e4 (bug 1666345)
Backed out changeset b6646baa866d (bug 1661624)
Backed out changeset e4d550db6037 (bug 1667152)
2020-11-13 22:14:45 +02:00
Mihai Alexandru Michis
57a979f85c Backed out changeset d1dd480fd638 (bug 1666347) for causing mochitest timeouts. 2020-11-13 21:13:25 +02:00
Mitchell Hentges
967783d0db Bug 1676915: Add documentation page about Unified Builds r=firefox-build-system-reviewers,mstange,dmajor DONTBUILD
Describe what unified builds are and how they can cause innocuous
changes to cause unexpected compilation failures.

Differential Revision: https://phabricator.services.mozilla.com/D96907
2020-11-13 17:16:33 +00:00
Ricky Stewart
22ac8c5585 Bug 1666347 - Delete assorted dead code after removal of vendored psutil r=firefox-build-system-reviewers,mhentges
Most of the deletions here come from bug 1481612, the `--with-windows-wheel` option to `mach vendor python`, which according to that commit message "is very single-purpose: it's intended to let us vendor an unpacked
wheel for psutil on Windows". Since vendoring `psutil` is something we're no longer doing, we can safely just delete that added code.

Differential Revision: https://phabricator.services.mozilla.com/D90919
2020-11-12 18:02:10 +00:00
Ricky Stewart
69321f149f Bug 1661624 - Include psutil in the mach virtualenvs r=firefox-build-system-reviewers,mhentges
Install `psutil` when setting up the `mach` `virtualenv`s and stop importing the in-tree version in the build.

Nothing in-tree currently assumes or mandates the installation of `psutil` (all uses of `psutil` are guarded with imports of the form `try : import psutil; except ImportError: psutil = None`), so there's no back-incompatibility concerns here. There will be an awkward period where telemetry will be lacking CPU/disk data for everyone until they re-run `mach bootstrap` or `mach create-mach-environment`, but that will come back as people gradually update their `virtualenv`s.

An alternative to circumvent that issue is REQUIRING that `psutil` be installed by adding an assertion in `mach` that `psutil` can be found (allowing us to remove all the conditional logic in-tree around whether `psutil` is installed), but I wouldn't claim that we're ready to do that and deal with whatever fallout might occur.

Differential Revision: https://phabricator.services.mozilla.com/D90914
2020-11-13 03:03:33 +00:00
Mitchell Hentges
eef15c6006 Bug 1676951: Improve "on Windows" * 2 sentence r=smacleod DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D96904
2020-11-12 20:39:19 +00:00
smolnar
1e6e466d99 Backed out 4 changesets (bug 1666347, bug 1667152, bug 1661624, bug 1666345) for causing mingw bustage. CLOSED TREE
Backed out changeset 19f707f5c097 (bug 1666347)
Backed out changeset 3732ee259759 (bug 1666345)
Backed out changeset 353d3c9e74b9 (bug 1661624)
Backed out changeset a651515586a8 (bug 1667152)
2020-11-12 19:55:58 +02:00
Ricky Stewart
15a9bfbe36 Bug 1666347 - Delete assorted dead code after removal of vendored psutil r=firefox-build-system-reviewers,mhentges
Most of the deletions here come from bug 1481612, the `--with-windows-wheel` option to `mach vendor python`, which according to that commit message "is very single-purpose: it's intended to let us vendor an unpacked
wheel for psutil on Windows". Since vendoring `psutil` is something we're no longer doing, we can safely just delete that added code.

Differential Revision: https://phabricator.services.mozilla.com/D90919
2020-10-27 21:15:08 +00:00
Ricky Stewart
55f90afcca Bug 1661624 - Include psutil in the mach virtualenvs r=firefox-build-system-reviewers,mhentges
Install `psutil` when setting up the `mach` `virtualenv`s and stop importing the in-tree version in the build.

Nothing in-tree currently assumes or mandates the installation of `psutil` (all uses of `psutil` are guarded with imports of the form `try : import psutil; except ImportError: psutil = None`), so there's no back-incompatibility concerns here. There will be an awkward period where telemetry will be lacking CPU/disk data for everyone until they re-run `mach bootstrap` or `mach create-mach-environment`, but that will come back as people gradually update their `virtualenv`s.

An alternative to circumvent that issue is REQUIRING that `psutil` be installed by adding an assertion in `mach` that `psutil` can be found (allowing us to remove all the conditional logic in-tree around whether `psutil` is installed), but I wouldn't claim that we're ready to do that and deal with whatever fallout might occur.

Differential Revision: https://phabricator.services.mozilla.com/D90914
2020-11-12 15:58:05 +00:00
David Major
02b04550c6 Bug 1676669 - Trim some context on downgrade-mangling-error.patch for clang-12 r=firefox-build-system-reviewers,rstewart
Some of the surrounding lines recently changed so the patch refuses to apply. We can live with less context so I'd rather trim it than make a new clang-12 version of this patch.

Differential Revision: https://phabricator.services.mozilla.com/D96725
2020-11-11 16:19:25 +00:00
Sylvestre Ledru
c7deb74f61 Bug 1670807 - Look for gm4 in addition to m4 r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D94305
2020-11-10 19:19:31 +00:00
Butkovits Atila
5e745619d9 Backed out changeset f38410c45877 (bug 1670807) for linting failures. CLOSED TREE 2020-11-10 20:37:44 +02:00
Sylvestre Ledru
8340ccd1e1 Bug 1670807 - Look for gm4 in addition to m4 r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D94305
2020-11-10 18:05:58 +00:00
Andi-Bogdan Postelnicu
6121332b48 Bug 1626555 - Add dom/webbrowserpersist to the list of non-unified-build-compatible directories. r=sg
Depends on D96590

Differential Revision: https://phabricator.services.mozilla.com/D96593
2020-11-10 16:18:01 +00:00
Andi-Bogdan Postelnicu
649fe4a141 Bug 1626555 - Add dom/webauthn to the list of non-unified-build-compatible directories. r=sg
Depends on D96586

Differential Revision: https://phabricator.services.mozilla.com/D96590
2020-11-10 16:32:16 +00:00
Andi-Bogdan Postelnicu
265193a613 Bug 1626555 - Add dom/vr to the list of non-unified-build-compatible directories. r=sg
Depends on D96573

Differential Revision: https://phabricator.services.mozilla.com/D96586
2020-11-10 16:08:48 +00:00
Andi-Bogdan Postelnicu
446acb4cea Bug 1626555 - Add dom/url to the list of non-unified-build-compatible directories. r=sg
Depends on D96572

Differential Revision: https://phabricator.services.mozilla.com/D96573
2020-11-10 13:43:07 +00:00
Andi-Bogdan Postelnicu
ff9bb66d6f Bug 1626555 - Add dom/u2f to the list of non-unified-build-compatible directories. r=sg
Depends on D96571

Differential Revision: https://phabricator.services.mozilla.com/D96572
2020-11-10 13:43:05 +00:00
Andi-Bogdan Postelnicu
9c73ee47bf Bug 1626555 - Add dom/tests to the list of non-unified-build-compatible directories. r=sg
Depends on D96570

Differential Revision: https://phabricator.services.mozilla.com/D96571
2020-11-10 13:42:06 +00:00
Andi-Bogdan Postelnicu
3e53bbe010 Bug 1626555 - Add dom/system to the list of non-unified-build-compatible directories. r=sg
Depends on D96569

Differential Revision: https://phabricator.services.mozilla.com/D96570
2020-11-10 13:41:58 +00:00
Andi-Bogdan Postelnicu
b9bd386da7 Bug 1626555 - Add dom/svg to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96569
2020-11-10 13:44:03 +00:00
Emilio Cobos Álvarez
440671e906 Bug 1676307 - Search for sccache in the toolchain search path. r=firefox-build-system-reviewers,mhentges
So that ac_add_options --with-ccache=sccache just works.

Differential Revision: https://phabricator.services.mozilla.com/D96501
2020-11-10 13:11:49 +00:00
Emilio Cobos Álvarez
1fe5a936f7 Bug 1676307 - Move compiler wrapper config after toolchain search path definition. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D96500
2020-11-10 12:54:10 +00:00
Bogdan Tara
1bda053029 Backed out 2 changesets (bug 1676307) for stackwalk related bustage CLOSED TREE
Backed out changeset 3b7922a9af19 (bug 1676307)
Backed out changeset 74e377213d81 (bug 1676307)
2020-11-10 14:42:43 +02:00
Emilio Cobos Álvarez
c2b9d3eb7f Bug 1676307 - Search for sccache in the toolchain search path. r=firefox-build-system-reviewers,mhentges
So that ac_add_options --with-ccache=sccache just works.

Differential Revision: https://phabricator.services.mozilla.com/D96501
2020-11-10 12:10:47 +00:00
Emilio Cobos Álvarez
73c892ab3f Bug 1676307 - Move compiler wrapper config after toolchain search path definition. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D96500
2020-11-10 12:09:05 +00:00
Andi-Bogdan Postelnicu
06adde3adb Bug 1626555 - Add dom/storage to the list of non-unified-build-compatible directories. r=sg
Depends on D96442

Differential Revision: https://phabricator.services.mozilla.com/D96530
2020-11-10 12:00:30 +00:00
Andi-Bogdan Postelnicu
e70abab259 Bug 1626555 - Add dom/smil to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96442
2020-11-10 11:20:23 +00:00
Andi-Bogdan Postelnicu
d81fefc9bc Bug 1626555 - Add dom/serviceworkers to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96441
2020-11-10 11:55:00 +00:00
Mike Hommey
af02c91f37 Bug 1665754 - Setup an Apple silicon macos build. r=firefox-build-system-reviewers,dmajor
Baby steps. This adds an unsigned non-universal Apple silicon-only macos
build.

Differential Revision: https://phabricator.services.mozilla.com/D96339
2020-11-10 08:46:22 +00:00
Mike Hommey
cc86146345 Bug 1676290 - Don't use a toolchain prefix when cross-compiling from mac to mac. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D96477
2020-11-09 23:43:56 +00:00
Andi-Bogdan Postelnicu
5e91efd61f Bug 1626555 - Add dom/security to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96427
2020-11-09 21:03:52 +00:00
Brindusan Cristian
ca85f574a0 Backed out changeset 3a087ad91d30 (bug 1626555) for build bustages. CLOSED TREE 2020-11-09 21:09:33 +02:00
Andi-Bogdan Postelnicu
6ffdaf663d Bug 1626555 - Add dom/security to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96427
2020-11-09 17:57:01 +00:00
Andi-Bogdan Postelnicu
6c639eb537 Bug 1626555 - Add dom/script to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96401
2020-11-09 16:50:39 +00:00
Andi-Bogdan Postelnicu
04b093b6a4 Bug 1626555 - Add dom/res to the list of non-unified-build-compatible directories. r=sg
Depends on D96398

Differential Revision: https://phabricator.services.mozilla.com/D96399
2020-11-09 12:24:01 +00:00
Andi-Bogdan Postelnicu
eddf5c3167 Bug 1626555 - Add dom/reporting to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D96398
2020-11-09 12:14:27 +00:00
Mike Hommey
af94e85e8d Bug 1675675 - Only put mach_bootstrap paths in PYTHONPATH for mach python --no-virtualenv. r=firefox-build-system-reviewers,rstewart
With PYTHONPATH containing other directories, such as the python ones,
bad things can happen when the python script that is being run then
goes on to subprocess.Popen a python process for a different virtualenv,
or a different version, or whatever.

Differential Revision: https://phabricator.services.mozilla.com/D96155
2020-11-06 17:30:58 +00:00
Andrew Halberstadt
331bc892dd Bug 1675319 - [manifestparser] Properly support multiline skip-if statements, r=jmaher,extension-reviewers,zombie
This supports one manifestparser expression per line in the 'skip-if',
'fail-if' and 'run-if' keys. As a side effect the:

    skip-if = foo ||
        bar

syntax is no longer supported. Instead it can be:

    skip-if =
        foo  # bug 123
        bar  # bug 456

Differential Revision: https://phabricator.services.mozilla.com/D95927
2020-11-05 19:55:08 +00:00
Mitchell Hentges
0bf01c3c96 Bug 1670264: Validate detected Java directory to ensure it's a JDK r=nalexander
Also consolidates bootstrap and configure Java-detection logic so
there's less surprises.

Differential Revision: https://phabricator.services.mozilla.com/D94664
2020-11-03 23:32:43 +00:00
Steve Fink
cb4e64b5f5 Bug 1666108 - Eliminate -Wimplicit-function-declaration warnings r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D95092
2020-11-04 00:54:57 +00:00
Kartikaya Gupta
2fd4f2fc5c Bug 1418001 - Generate analysis for file inclusions. r=asuth,andi
This introduces a new mangled symbol of the form FILE_<hash>. It's defined
on line 1 of each visited source file, and it's referenced in places that
the preprocessor tells us there was an #include. Both angle-bracket includes
and quote includes are supported here.

Differential Revision: https://phabricator.services.mozilla.com/D95529
2020-11-03 15:57:32 +00:00
Kartikaya Gupta
a979c5ff70 Bug 1418001 - Refactor to allow visitIdentifier callers to pass a full SourceRange. r=asuth,andi
In the next patch I'll want to be able to provide the entire source rather than
having visitIdentifier just use the token at `Loc`. The existing call sites
create a SourceRange from the SourceLocation and indicate (by not setting the
LocRangeEndValid flag) that the visitIdentifier function should retain it's
old behaviour of using the token to figure out the range.

Depends on D95527

Differential Revision: https://phabricator.services.mozilla.com/D95528
2020-11-02 20:38:37 +00:00
Kartikaya Gupta
b28eaef8b0 Bug 1418001 - Refactor to make file type detection more explicit. r=asuth,andi
This extracts a relativizePath function that normalizes a file path to be
relative to the source/objdir, and returns the type of the file.

Differential Revision: https://phabricator.services.mozilla.com/D95527
2020-11-02 20:38:36 +00:00
David Major
5fde4e00e2 Bug 1674907 - Clean up C++17 ifdefs in TestNoRefcountedInsideLambdas.cpp r=static-analysis-reviewers,sg
I'll need to update this file for clang-12, and in order to prevent the need for adding more of these ifdefs, let's just assume they are true and remove the checks. Our codebase has been on C++17 for a while now.

Differential Revision: https://phabricator.services.mozilla.com/D95592
2020-11-03 09:25:50 +00:00
Ricky Stewart
119ff36277 Bug 1674498 - Remove references to jarsigner from configure and delete the debug_sign_tool r=geckoview-reviewers,nalexander,snorp
This is no longer used by Android devs.

Differential Revision: https://phabricator.services.mozilla.com/D95417
2020-11-02 16:50:56 +00:00
Andi-Bogdan Postelnicu
e685a3df8c Bug 1626555 - Add dom/power to the list of non-unified-build-compatible directories. r=sg
Depends on D95169

Differential Revision: https://phabricator.services.mozilla.com/D95170
2020-10-29 16:22:53 +00:00
Andi-Bogdan Postelnicu
7411bbd17a Bug 1626555 - Add dom/plugins to the list of non-unified-build-compatible directories. r=sg
Depends on D95168

Differential Revision: https://phabricator.services.mozilla.com/D95169
2020-10-29 16:22:45 +00:00
Andi-Bogdan Postelnicu
b710a4fe2a Bug 1626555 - Add dom/permission to the list of non-unified-build-compatible directories. r=sg
Depends on D95167

Differential Revision: https://phabricator.services.mozilla.com/D95168
2020-10-29 16:21:52 +00:00
Andi-Bogdan Postelnicu
e10c399e77 Bug 1626555 - Add dom/performance to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95167
2020-10-29 17:37:02 +00:00
Andi-Bogdan Postelnicu
9495897723 Bug 1626555 - Add dom/payments to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95155
2020-10-29 16:15:45 +00:00
Andi-Bogdan Postelnicu
89f454c02b Bug 1626555 - Add dom/{notification, offline} to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95154
2020-10-29 15:21:57 +00:00
Andi-Bogdan Postelnicu
fea9419ddc Bug 1626555 - Add dom/network to the list of non-unified-build-compatible directories. r=sg
Depends on D95145

Differential Revision: https://phabricator.services.mozilla.com/D95153
2020-10-29 15:21:44 +00:00
Andi-Bogdan Postelnicu
53ece981b4 Bug 1626555 - Add dom/midi to the list of non-unified-build-compatible directories. r=sg
Depends on D95137

Differential Revision: https://phabricator.services.mozilla.com/D95145
2020-10-29 15:24:40 +00:00
Andi-Bogdan Postelnicu
c952a3b5d0 Bug 1626555 - Add dom/messagechannel to the list of non-unified-build-compatible directories. r=sg
Depends on D95057

Differential Revision: https://phabricator.services.mozilla.com/D95137
2020-10-29 14:15:23 +00:00
Andi-Bogdan Postelnicu
adc9f3324c Bug 1626555 - Add dom/media/ to the list of non-unified-build-compatible directories. r=sg
Depends on D95056

Differential Revision: https://phabricator.services.mozilla.com/D95057
2020-10-29 08:56:37 +00:00
Andi-Bogdan Postelnicu
758cd35669 Bug 1626555 - Add dom/media/webvtt to the list of non-unified-build-compatible directories. r=sg
Depends on D95055

Differential Revision: https://phabricator.services.mozilla.com/D95056
2020-10-29 08:56:11 +00:00
Andi-Bogdan Postelnicu
bbf4de2003 Bug 1671641 - Make dom/media/webspeech buildable outside of unified-build environment. r=sg
Depends on D95054

Differential Revision: https://phabricator.services.mozilla.com/D95055
2020-10-29 08:55:58 +00:00
Andi-Bogdan Postelnicu
2873f0158b Bug 1671641 - Make dom/media/webrtc buildable outside of unified-build environment. r=sg
Depends on D95041

Differential Revision: https://phabricator.services.mozilla.com/D95054
2020-10-29 08:55:41 +00:00
Andi-Bogdan Postelnicu
ea26376de0 Bug 1671641 - Make dom/media/webm buildable outside of unified-build environment. r=sg
Depends on D95040

Differential Revision: https://phabricator.services.mozilla.com/D95041
2020-10-29 08:54:14 +00:00
Andi-Bogdan Postelnicu
fbd830522f Bug 1671641 - Make dom/media/webaudio buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95040
2020-10-29 11:05:41 +00:00
Andi-Bogdan Postelnicu
4a46c92817 Bug 1626555 - Add dom/media/{test,tests,wave} to the list of non-unified-build-compatible directories. r=sg
Depends on D95038

Differential Revision: https://phabricator.services.mozilla.com/D95039
2020-10-29 08:51:46 +00:00
Andi-Bogdan Postelnicu
f159f49029 Bug 1671641 - Make dom/media/systemservices buildable outside of unified-build environment. r=sg
Depends on D95028

Differential Revision: https://phabricator.services.mozilla.com/D95038
2020-10-29 08:51:44 +00:00
Andi-Bogdan Postelnicu
18c05bf4d3 Bug 1671641 - Make dom/media/platforms buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95028
2020-10-29 08:51:41 +00:00
Andi-Bogdan Postelnicu
9ecafd735d Bug 1626555 - Add dom/media/ogg to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95027
2020-10-28 17:26:13 +00:00
Andi-Bogdan Postelnicu
d75ceb5f1d Bug 1671641 - Make dom/media/mp4 buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95026
2020-10-29 08:51:37 +00:00
Andi-Bogdan Postelnicu
cde98ad5b6 Bug 1671641 - Make dom/media/mp3 buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95025
2020-10-28 17:26:09 +00:00
Andi-Bogdan Postelnicu
7f54f93c82 Bug 1626555 - Add dom/media/mediasource to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D95024
2020-10-29 08:50:28 +00:00
Ricky Stewart
e6c9007806 Bug 1655845 - Collect OS version information in mach telemetry r=firefox-build-system-reviewers,dmajor
We add new metrics `distro` and `distro_version`. Their meaning varies based on the actual OS:

1. For Linux, the pair will be the name of the distribution and the distribution's version (e.g. `ubuntu`/`20.04`);

2. for macOS, the pair will be the string `macos` and the macOS version (e.g. `10.15.7`); and

3. for Windows, the pair will be the string (`windows`, `MAJOR.MINOR.BUILD`);

4. and for all other OS'es, the first will be the value of `sys.platform`, and the version string will be empty.

Differential Revision: https://phabricator.services.mozilla.com/D94781
2020-10-27 20:35:17 +00:00
Andi-Bogdan Postelnicu
aedab9e740 Bug 1626555 - Add dom/media/mediasession to the list of non-unified-build-compatible directories. r=sg
Depends on D95001

Differential Revision: https://phabricator.services.mozilla.com/D95003
2020-10-28 16:31:41 +00:00
Andi-Bogdan Postelnicu
7918bde89f Bug 1671641 - Make dom/media/mediacontroller buildable outside of unified-build environment. r=sg
Depends on D95000

Differential Revision: https://phabricator.services.mozilla.com/D95001
2020-10-28 16:31:26 +00:00
Andi-Bogdan Postelnicu
70af4aaffd Bug 1626555 - Add dom/media/{hls,imagecapture,ipc,mediacapabilities} to the list of non-unified-build-compatible directories. r=sg
Depends on D94991

Differential Revision: https://phabricator.services.mozilla.com/D95000
2020-10-28 16:30:45 +00:00
Andi-Bogdan Postelnicu
7e612d6c92 Bug 1671641 - Make dom/media/gtest buildable outside of unified-build environment. r=sg
Depends on D94985

Differential Revision: https://phabricator.services.mozilla.com/D94991
2020-10-28 16:30:30 +00:00
Andi-Bogdan Postelnicu
f9d22b5cd8 Bug 1626555 - Add dom/media/gmp-plugin-openh264 to the list of non-unified-build-compatible directories. r=sg
Depends on D94984

Differential Revision: https://phabricator.services.mozilla.com/D94985
2020-10-28 16:30:05 +00:00
Andi-Bogdan Postelnicu
0dce6f6e0c Bug 1671641 - Make dom/media/gmp buildable outside of unified-build environment. r=sg
Depends on D94983

Differential Revision: https://phabricator.services.mozilla.com/D94984
2020-10-28 16:29:57 +00:00
Andi-Bogdan Postelnicu
560b6d3239 Bug 1626555 - Add dom/media/fake-cdm, dom/media/flac and dom/media/fuzz to the list of non-unified-build-compatible directories. r=sg
Depends on D94977

Differential Revision: https://phabricator.services.mozilla.com/D94983
2020-10-28 16:29:47 +00:00
Andi-Bogdan Postelnicu
c2c4d8990b Bug 1671641 - Make dom/media/encoder buildable outside of unified-build environment. r=sg
Depends on D94975

Differential Revision: https://phabricator.services.mozilla.com/D94977
2020-10-28 16:29:37 +00:00
Andi-Bogdan Postelnicu
bfb8c3235d Bug 1626555 - Add dom/media/benchmark, dom/media/bridge, dom/media/doctor and dom/media/eme to the list of non-unified-build-compatible directories. r=sg
Depends on D94971

Differential Revision: https://phabricator.services.mozilla.com/D94975
2020-10-28 16:29:34 +00:00
Andi-Bogdan Postelnicu
6da52b6965 Bug 1626555 - Add dom/locales, dom/manifest and dom/mathml to the list of non-unified-build-compatible directories. r=sg
Depends on D94968

Differential Revision: https://phabricator.services.mozilla.com/D94971
2020-10-28 12:59:22 +00:00
Andi-Bogdan Postelnicu
4aee2df8a5 Bug 1671641 - Make dom/l10n buildable outside of unified-build environment. r=sg
Depends on D94967

Differential Revision: https://phabricator.services.mozilla.com/D94968
2020-10-28 12:49:46 +00:00
Andi-Bogdan Postelnicu
21d7516f1b Bug 1626555 - Add dom/jsurl to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94967
2020-10-28 12:34:05 +00:00
Andi-Bogdan Postelnicu
f01b2a6215 Bug 1671641 - Make dom/ipc buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94964
2020-10-28 12:31:35 +00:00
Andi-Bogdan Postelnicu
ff39a7b9a1 Bug 1626555 - Add dom/imptests and dom/interfaces to the list of non-unified-build-compatible directories. r=sg
Depends on D94945

Differential Revision: https://phabricator.services.mozilla.com/D94965
2020-10-28 12:30:09 +00:00
Andi-Bogdan Postelnicu
6381129ef6 Bug 1671641 - Make dom/html buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94945
2020-10-28 12:24:01 +00:00
Andi-Bogdan Postelnicu
f43e94f663 Bug 1626555 - Add dom/geolocation and dom/grid to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94942
2020-10-28 12:13:22 +00:00
Andi-Bogdan Postelnicu
67038c0182 Bug 1671641 - Make dom/gamepad buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94939
2020-10-28 12:29:56 +00:00
Andi-Bogdan Postelnicu
30d32f4fc7 Bug 1671641 - Make dom/flex buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94933
2020-10-28 09:28:50 +00:00
Andi-Bogdan Postelnicu
7eb0f25292 Bug 1671641 - Make dom/filesystem buildable outside of unified-build environment. r=sg
Depends on D94559

Differential Revision: https://phabricator.services.mozilla.com/D94569
2020-10-27 10:01:12 +00:00
Ricky Stewart
210585edd2 Bug 1672023 - Remove excluded files from black.yml
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

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

Depends on D94045
2020-10-26 18:21:44 +00:00
Ricky Stewart
02a7b4ebdf Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
sanketh
14a4c90302 Bug 1668304 - Bump mingw-clang builds to clang 11 r=tjr,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D94676
2020-10-24 05:07:23 +00:00
Bogdan Tara
da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart
fe80718d67 Bug 1672023 - Remove excluded files from black.yml r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-23 20:40:44 +00:00
Ricky Stewart
c0cea3b0fa Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Emilio Cobos Álvarez
c6950091db Bug 1672940 - Remove biplist. r=firefox-build-system-reviewers,glandium
biplist broke with python 3.9, but we don't need this anymore because
Python3's plistlib allows reading binary plists since python 3.4.

I've tested this with all sdks that I have and we support (10.11-10.15).

Differential Revision: https://phabricator.services.mozilla.com/D94577
2020-10-23 11:37:16 +00:00
Andi-Bogdan Postelnicu
fbef8c10ed Bug 1626555 - Add dom/filehandle to the list of non-unified-build-compatible directories. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94559
2020-10-23 08:53:19 +00:00
Jed Davis
cc6e7ab133 Bug 1440203 - Support memfd_create in IPC shared memory. r=glandium
This commit also allows `memfd_create` in the seccomp-bpf policy for all
process types.

`memfd_create` is an API added in Linux 3.17 (and adopted by FreeBSD
for the upcoming version 13) for creating anonymous shared memory
not connected to any filesystem.  Supporting it means that sandboxed
child processes on Linux can create shared memory directly instead of
messaging a broker, which is unavoidably slower, and it should avoid
the problems we'd been seeing with overly small `/dev/shm` in container
environments (which were causing serious problems for using Firefox for
automated testing of frontend projects).

`memfd_create` also introduces the related operation of file seals:
irrevocably preventing types of modifications to a file.  Unfortunately,
the most useful one, `F_SEAL_WRITE`, can't be relied on; see the large
comment in `SharedMemory:ReadOnlyCopy` for details.  So we still use
the applicable seals as defense in depth, but read-only copies are
implemented on Linux by using procfs (and see the comments on the
`ReadOnlyCopy` function in `shared_memory_posix.cc` for the subtleties
there).

There's also a FreeBSD implementation, using `cap_rights_limit` for
read-only copies, if the build host is new enough to have the
`memfd_create` function.

The support code for Android, which doesn't support shm_open and can't
use the memfd backend because of issues with its SELinux policy (see bug
1670277), has been reorganized to reflect that we'll always use its own
API, ashmem, in that case.

Differential Revision: https://phabricator.services.mozilla.com/D90605
2020-10-22 21:23:32 +00:00
Jan-Erik Rediger
4b11c48d2a Bug 1646165 - Make the test metrics file known to sphinx. r=janerik CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D94445
2020-10-22 14:02:00 +00:00
Andi-Bogdan Postelnicu
d001328cc5 Bug 1671641 - Make dom/file buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94082
2020-10-22 06:32:40 +00:00
Dorel Luca
bdc3f86e85 Backed out changeset 1de121cdb483 (bug 1671641) for build bustage in dom/file/ipc/RemoteLazyInputStreamThread.cpp. CLOSED TREE 2020-10-22 07:46:54 +03:00
Andi-Bogdan Postelnicu
83bf4bc5a3 Bug 1671641 - Make dom/file buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D94082
2020-10-21 20:58:07 +00:00
Mike Hommey
91d99a2d66 Bug 1671376 - Disable -Wmissing-braces on clang < 6. r=firefox-build-system-reviewers,dmajor
The warning is broken in older versions of clang. It also turns out we
were disabling it locally for some directories because of this very
problem.

A few local disable rules stay under accessible/ because they do hide
actual warnings from code generated by MIDL.

Differential Revision: https://phabricator.services.mozilla.com/D94262
2020-10-22 01:31:19 +00:00
Mike Hommey
198ea0303d Bug 1671569 - Normalize Xcode clang version to the underlying plain clang version. r=firefox-build-system-reviewers,rstewart
We used to have a complicated scheme to figure out the minimum supported
version of clang on OSX, based on some compiler feature, which wouldn't
allow to do other version checks further down the line.

The main blocker for better tests was to be able to distinguish between
Xcode clang and plain clang, which turns out to be possible with the
__apple_build_version__ define.

We still need to map versions manually, but it's better than the current
status quo.

Differential Revision: https://phabricator.services.mozilla.com/D94261
2020-10-22 01:31:17 +00:00
Dorel Luca
1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Dorel Luca
5d3bd01bca Backed out 2 changesets (bug 1440203) for Backout conflicts with Bug 1654103. CLOSED TREE
Backed out changeset 6e44c037b2dc (bug 1440203)
Backed out changeset ab11665d8607 (bug 1440203)
2020-10-22 03:47:17 +03:00
Dorel Luca
26941cf2f5 Backed out changeset 94ec15429e21 (bug 1672023) for Backout conflicts with Bug 1654103. CLOSED TREE 2020-10-22 03:43:01 +03:00
Jed Davis
61a83c3467 Bug 1440203 - Support memfd_create in IPC shared memory. r=glandium
This commit also allows `memfd_create` in the seccomp-bpf policy for all
process types.

`memfd_create` is an API added in Linux 3.17 (and adopted by FreeBSD
for the upcoming version 13) for creating anonymous shared memory
not connected to any filesystem.  Supporting it means that sandboxed
child processes on Linux can create shared memory directly instead of
messaging a broker, which is unavoidably slower, and it should avoid
the problems we'd been seeing with overly small `/dev/shm` in container
environments (which were causing serious problems for using Firefox for
automated testing of frontend projects).

`memfd_create` also introduces the related operation of file seals:
irrevocably preventing types of modifications to a file.  Unfortunately,
the most useful one, `F_SEAL_WRITE`, can't be relied on; see the large
comment in `SharedMemory:ReadOnlyCopy` for details.  So we still use
the applicable seals as defense in depth, but read-only copies are
implemented on Linux by using procfs (and see the comments on the
`ReadOnlyCopy` function in `shared_memory_posix.cc` for the subtleties
there).

There's also a FreeBSD implementation, using `cap_rights_limit` for
read-only copies, if the build host is new enough to have the
`memfd_create` function.

The support code for Android, which doesn't support shm_open and can't
use the memfd backend because of issues with its SELinux policy (see bug
1670277), has been reorganized to reflect that we'll always use its own
API, ashmem, in that case.

Differential Revision: https://phabricator.services.mozilla.com/D90605
2020-10-21 23:34:46 +00:00
Ricky Stewart
8b352f1843 Bug 1672023 - Remove excluded files from black.yml r=sylvestre,perftest-reviewers,geckoview-reviewers,agi
These files were omitted from the original patch because reformatting them required some manual intervention in order to avoid breaking unit tests. Generally the `noqa` lines were already there and just needed to be moved from one line to another (due to the reformatting by `black`), but sometimes `black` saw fit to move a bunch of stuff all onto one line, requiring me to introduce new `noqa` lines.

Besides the autoformat by `black` and some manual fixups, this patch contains no other changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94052
2020-10-21 21:29:30 +00:00
Ricky Stewart
50762dacab Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Jim Blandy
1c990385da Bug 1671251: Don't forget to 'import os' in build/.gdbinit.py.in. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D93582
2020-10-14 23:32:56 +00:00
Simon Giesecke
d1ed75b2b4 Bug 1626555 - Make dom/simpledb buildable outside of unified-build environment. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D94079
2020-10-21 13:18:15 +00:00
Simon Giesecke
7c4e805a15 Bug 1626555 - Add dom/indexedDB to the list of non-unified-build-compatible directories. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D94040
2020-10-21 13:17:31 +00:00
Simon Giesecke
f70bfd33ed Bug 1626555 - Make dom/localstorage buildable outside of unified-build environment. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D94034
2020-10-21 13:17:18 +00:00
Simon Giesecke
2282fb5a6a Bug 1626555 - Make dom/quota buildable outside of unified-build environment. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D94011
2020-10-21 13:16:19 +00:00
Andi-Bogdan Postelnicu
85c179d8f3 Bug 1671641 - Make dom/fetch buildable outside of unified-build environment. r=sg
Depends on D93998

Differential Revision: https://phabricator.services.mozilla.com/D94015
2020-10-21 08:00:18 +00:00
Andi-Bogdan Postelnicu
c954c55398 Bug 1671641 - Make dom/events buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93998
2020-10-21 08:00:18 +00:00
Andi-Bogdan Postelnicu
bb35771d56 Bug 1671641 - Add dom/docs and dom/encoding to whitelist for non-unified build. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93992
2020-10-21 08:00:17 +00:00
Andi-Bogdan Postelnicu
1ce4fd33cb Bug 1671641 - Add dom/debugger to whitelist for non-unified build. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93921
2020-10-21 08:00:17 +00:00
Andi-Bogdan Postelnicu
868134e958 Bug 1671641 - Add dom/crypto to whitelist for non-unified build. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93804
2020-10-21 08:00:17 +00:00
Andi-Bogdan Postelnicu
8dee6add0c Bug 1671641 - Add componets from dom that are non-unified build compatible to the whitelist. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93801
2020-10-21 08:00:16 +00:00
Andi-Bogdan Postelnicu
ff648dd64e Bug 1671641 - Add dom/credentialmanagement to whitelist for non-unified build. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93800
2020-10-21 08:00:16 +00:00
Andi-Bogdan Postelnicu
6c3bfe9d82 Bug 1671641 - Make dom/console buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93796
2020-10-21 08:00:16 +00:00
Andi-Bogdan Postelnicu
bb7a0e9a8f Bug 1671641 - Make dom/commandhandler buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93795
2020-10-21 08:00:16 +00:00
Andi-Bogdan Postelnicu
4d162f7eef Bug 1671641 - Make dom/clients buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93793
2020-10-21 08:00:15 +00:00
Andi-Bogdan Postelnicu
e872071d08 Bug 1671599 - Make dom/canvas buildable outside of unified-build environment. r=jgilbert
Differential Revision: https://phabricator.services.mozilla.com/D93753
2020-10-20 13:14:51 +00:00
Andi-Bogdan Postelnicu
7c4670b83d Bug 1671380 - Make dom/cache buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93642
2020-10-21 07:59:44 +00:00
Andi-Bogdan Postelnicu
b623ec4803 Bug 1626584 - Make dom/bindings buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93641
2020-10-16 15:04:52 +00:00
Andi-Bogdan Postelnicu
2f17c5961e Bug 1626555 - Make dom/base buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93640
2020-10-19 12:18:01 +00:00
Mike Hommey
5c05913d21 Bug 1495733 - Fix elfhack for files > 2GiB and < 4GiB. r=gsvelto
This only solves the easy half of the problem outlined in the bug,
leaving the other half for later.

iostream::tellg() actually returns streampos, which is able to support
files larger than 4GiB with libstdc++, but converting to an int
obviously truncated that, as well as transformed values between 2GiB and
4GiB into invalid negative numbers.

iostream::seekg() also takes a streampos, so storing the streampos as-is
is enough to address the problem with tellg()/seekg() sequences.

The other half of the problem involves elfhack converting 64-bits ELF
headers to 32-bits headers internally, which requires deeper changes.

This change however, is enough to support files up to 4GiB, which is
already a good first step.

Differential Revision: https://phabricator.services.mozilla.com/D94252
2020-10-21 07:30:38 +00:00
Mike Hommey
6504260166 Bug 1672306 - Don't enable rust "global" LTO when cross LTO is enabled. r=firefox-build-system-reviewers,dmajor
This avoids a sort of duplication of work between both, because the
linker will eventually LTO-compile everything, so we technically don't
really need the extra step of the rust compiler doing an intermediate
LTO on the static libraries it produces.

Differential Revision: https://phabricator.services.mozilla.com/D94224
2020-10-21 01:20:48 +00:00
J.C. Jones
f3f86339c2 Bug 1671713 - land NSS 58dc3216d518 UPGRADE_NSS_RELEASE, r=kjacobs
2020-10-13  Mike Hommey  <mh@glandium.org>

	* lib/freebl/freebl.gyp:
	Bug 1670839 - Use ARM crypto extension for AES, SHA1 and SHA2 on
	mac. r=kjacobs

	AFAICT, the Makefile equivalent already does.

	[58dc3216d518] [tip]

	* lib/freebl/sha1-armv8.c:
	Bug 1670839 - Only build sha1-armv8.c code when USE_HW_SHA1 is
	defined. r=kjacobs

	This matches what is done in sha256-armv8.c, and avoids
	inconsistency with sha1-fast.c, which will define the same functions
	in the case USE_HW_SHA1 is not defined.

	[54be084e3ba8]

2020-10-16  J.C. Jones  <jjones@mozilla.com>

	* automation/abi-check/expected-report-libnss3.so.txt, automation/abi-
	check/previous-nss-release, lib/nss/nss.h, lib/softoken/softkver.h,
	lib/util/nssutil.h:
	Set version numbers to 3.59 Beta
	[d4b21706e432]

Differential Revision: https://phabricator.services.mozilla.com/D94070
2020-10-20 14:39:49 +00:00
Valentin Gosu
75e57b5355 Bug 1672127 - Fix browser_fall_back_to_https.js to use actual host r=ckerschb
Adds secureonly.example.com:443 to server-locations.txt - this host is only available on HTTPS.
Regenerates certs using `./mach python build/pgo/genpgocert.py` command.
Sets network.dns.native-is-localhost pref in test so we don't trigger assertion.

Differential Revision: https://phabricator.services.mozilla.com/D94005
2020-10-20 10:26:41 +00:00
Valentin Gosu
db3e003790 Bug 1672115 - Fix genpgocert.py r=keeler
Error:
```
$ ./mach python build/pgo/genpgocert.py
Traceback (most recent call last):
  File "build/pgo/genpgocert.py", line 208, in <module>
    certificateStatus = constructCertDatabase(build, certdir)
  File "build/pgo/genpgocert.py", line 99, in constructCertDatabase
    openssl = distutils.spawn.find_executable("openssl")
AttributeError: module 'distutils' has no attribute 'spawn'
```

Differential Revision: https://phabricator.services.mozilla.com/D94006
2020-10-20 08:34:02 +00:00
Mike Hommey
5afb69830c Bug 1670156 - Use the same prefix/suffix for rust libraries on mingw builds. r=firefox-build-system-reviewers,dmajor
Rustc >= 1.44 changed the file names of the static libraries it
produces with -windows-gnu targets, to match that of mingw clang/gcc.

Considering we still build on 1.43, the best fix would be to derive the
prefix/suffix based on the version of rust, but that actually turns into
a hard-to-solve problem because of configure tests for bindgen also
depending on the prefix/suffix value to be known.

On the other hand, we're soon due to an update to 1.47, so the simpler
solution is to just push mingw builds to require 1.44 (settling for the
smallest upgrade possible for now) and to remove the split between C and
rust library prefix/suffixes.

Differential Revision: https://phabricator.services.mozilla.com/D93726
2020-10-16 16:06:19 +00:00
Mike Hommey
19c21c31d2 Bug 1669934 - Unset __PYVENV_LAUNCHER__ before reexecuting python configure in the virtualenv. r=firefox-build-system-reviewers,andi,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D93627
2020-10-15 21:30:23 +00:00
Ricky Stewart
362abcf949 Bug 1670357 - Remove make targets for cleaning: clean, realclean, clobber, distclean, clobber_all, everything r=firefox-build-system-reviewers,mhentges
The `clobber` targets are superseded by `mach clobber`, so we don't need them for any reason. The `clean` target is meant to get you to a post-`configure` state, but it doesn't really work, and if it's necessary for you to be in that state for some reason you can just clobber and re-`configure`, so it doesn't seem worth it to get it working again. Instead, delete all of them. Also delete `everything` which is not useful when `clobber` doesn't exist.

Differential Revision: https://phabricator.services.mozilla.com/D93514
2020-10-15 20:37:18 +00:00
Andi-Bogdan Postelnicu
b7e337ee5d Bug 1626532 - Make dom/animation buildable outside of unified-build environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D93635
2020-10-15 10:05:07 +00:00
Ricky Stewart
d8915aa0c8 Bug 1670167 - Fix janky Python 3 logic in configure from bug 1656993 r=firefox-build-system-reviewers,glandium
The `try : import mozfile; except ImportError: ...` thing was completely broken since it unconditionally triggered [this exception](https://searchfox.org/mozilla-central/rev/165e8d8f80c02605c2f3e89c5de462abfce91c32/python/mozbuild/mozbuild/configure/__init__.py#248). The `MOZBUILD_VIRTUALENV` thing should work now, so just use that as a signal for whether we're already in the `virtualenv` instead.

Also delete some `PATH` munging in `building.py`, which I think should be unnecessary after we make the above change.

Differential Revision: https://phabricator.services.mozilla.com/D93138
2020-10-13 16:05:51 +00:00
Razvan Maries
5fa72e54df Backed out 2 changesets (bug 1440203) for causing bug 1670277. CLOSED TREE
Backed out changeset 0b10bf76fe35 (bug 1440203)
Backed out changeset 468878422866 (bug 1440203)
2020-10-10 03:39:33 +03:00
Mike Hommey
0eb4a07d1d Bug 1670167 - Unset PYTHONEXECUTABLE once python configure has been reexecuted in the virtualenv. r=firefox-build-system-reviewers,andi,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D93061
2020-10-09 14:27:03 +00:00
Jed Davis
3680ce4b19 Bug 1440203 - Support memfd_create in IPC shared memory. r=glandium
This commit also allows `memfd_create` in the seccomp-bpf policy for all
process types.

`memfd_create` is an API added in Linux 3.17 (and adopted by FreeBSD
for the upcoming version 13) for creating anonymous shared memory
not connected to any filesystem.  Supporting it means that sandboxed
child processes on Linux can create shared memory directly instead of
messaging a broker, which is unavoidably slower, and it should avoid
the problems we'd been seeing with overly small `/dev/shm` in container
environments (which were causing serious problems for using Firefox for
automated testing of frontend projects).

`memfd_create` also introduces the related operation of file seals:
irrevocably preventing types of modifications to a file.  Unfortunately,
the most useful one, `F_SEAL_WRITE`, can't be relied on; see the large
comment in `SharedMemory:ReadOnlyCopy` for details.  So we still use
the applicable seals as defense in depth, but read-only copies are
implemented on Linux by using procfs (and see the comments on the
`ReadOnlyCopy` function in `shared_memory_posix.cc` for the subtleties
there).

There's also a FreeBSD implementation, using `cap_rights_limit` for
read-only copies, if the build host is new enough to have the
`memfd_create` function.

Differential Revision: https://phabricator.services.mozilla.com/D90605
2020-10-08 02:25:20 +00:00
Kartikaya Gupta
cfcbbaae93 Bug 1668921 - Update cbindgen version and generate ostream serializers for WR structs. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D92842
2020-10-08 09:24:36 +00:00
Sylvestre Ledru
9bce072e44 Bug 1588458 - Replace dxr by searchfox in the rst doc r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D49140
2020-10-08 08:13:15 +00:00
Mike Hommey
d3519998ac Bug 1520395 - Remove the python configure distinction between option and js_option. r=firefox-build-system-reviewers,andi,rstewart
Now that we don't recurse into the js python configure, we don't need to
have a special treatment for the options that need to be passed down to
that subconfigure, which is what js_option was for.

Differential Revision: https://phabricator.services.mozilla.com/D92727
2020-10-08 04:07:46 +00:00
Mike Hommey
a12805866c Bug 1669633 - Remove the JS_STANDALONE option. r=firefox-build-system-reviewers,rstewart
It was only meant to be used internally, when the top-level python
configure invoked the js python subconfigure. Now that this doesn't
happen, we can remove the option, and consolidate js_standalone and
building_js, which are now roughly synonyms.

Differential Revision: https://phabricator.services.mozilla.com/D92726
2020-10-07 17:48:06 +00:00
Mike Hommey
9ebbe2c5bc Bug 1669633 - Don't recurse into js/src for the python-part of configure. r=firefox-build-system-reviewers,rstewart
Instead, we now run js/src/old-configure from the top-level configure
after having run old-configure and extracted a few variables to inherit
from it.

Because we're now running from the top-level, $_objdir is always the
top-level objdir, which simplifies some things. The topobjdir in
js/src/config.status, however, needs to stay in js/src because of the
build frontend expecting it there.

When running js/src/old-configure, we used to need some special
treatment for a large number of variables for historic reasons, where
we'd take values from the assigned values before running old-configure
for some, or from AC_SUBSTs after running old-configure.

Now that both old-configure and js/src/old-configure get the same
assignments from old-configure.vars, we don't need anything special for
the former. And only a few remaining variables still need manual work
for the latter.

One notable difference, though, is that the new code doesn't try to
avoid running js subconfigure, which added complexity, and was actually
error-prone.

Differential Revision: https://phabricator.services.mozilla.com/D92725
2020-10-07 21:13:19 +00:00
Mike Hommey
796301bdaa Bug 1669633 - Turn old_configure into a template. r=firefox-build-system-reviewers,rstewart
This helps reduce the diff size for subsequent patches.

Differential Revision: https://phabricator.services.mozilla.com/D92723
2020-10-07 17:56:27 +00:00
Mike Hommey
485eeaf755 Bug 1669633 - Split prepare_configure and move autoconf to old_configure. r=firefox-build-system-reviewers,rstewart
Preparing to run both old-configure and js/src/old-configure from the
same python configure run, we refactor things such that shared parts are
separate.

Differential Revision: https://phabricator.services.mozilla.com/D92722
2020-10-07 21:34:13 +00:00
Mike Hommey
cd3a2d5a79 Bug 1669633 - Remove MOZ_BUILD_ROOT. r=firefox-build-system-reviewers,andi,rstewart
It is only really used in js/src/devtools/rootAnalysis/Makefile.in,
and even there, the way it is used seems wrong, so fix that at the
same time (binaries have been linked into $DIST/bin directly for a
while).

Differential Revision: https://phabricator.services.mozilla.com/D92721
2020-10-07 17:57:38 +00:00
Mike Hommey
1b0b2b298e Bug 1669633 - Don't set AC_SUBSTs and AC_DEFINEs from old-configure directly. r=firefox-build-system-reviewers,rstewart
In order to be able to run both old-configure and js/src/old-configure
from the same python configure run, we need to stop setting the items
set by old-configure into the global sandbox config, and instead store
them to be later handled by configure.py.

Differential Revision: https://phabricator.services.mozilla.com/D92718
2020-10-07 17:59:51 +00:00
Mike Hommey
3a86574eae Bug 1669642 - Rename LLVMCONFIG to LLVM_CONFIG and derive it like we do for LLVM_OBJDUMP. r=firefox-build-system-reviewers,andi,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D92737
2020-10-07 22:36:49 +00:00
Razvan Maries
75a5750a87 Backed out 5 changesets (bug 1662564, bug 1664922, bug 1440203) for Valgrind bustages. CLOSED TREE
Backed out changeset 9366b15ee97c (bug 1440203)
Backed out changeset bb512f5fdeda (bug 1440203)
Backed out changeset be90d6aec690 (bug 1664922)
Backed out changeset f6527a1d0f14 (bug 1662564)
Backed out changeset 3a2941fa7d4b (bug 1662564)
2020-10-07 08:38:13 +03:00
Daniel Holbert
675e1e5b28 Bug 1669409: Convert the nsIPrintSettings:kEnableSelectionRB flag into a boolean, since it's the only entry in a bitfield. r=jwatt,emilio
This was the last flag that the PrintOptions bitfield was tracking.

So, this patch is effectively converting that bitfield (and its alias
"PrintOptionsBits") into a new, simpler boolean field named
"isPrintSelectionRBEnabled".

Differential Revision: https://phabricator.services.mozilla.com/D92542
2020-10-07 00:36:51 +00:00
Jed Davis
c4968e6653 Bug 1440203 - Support memfd_create in IPC shared memory. r=glandium
This commit also allows `memfd_create` in the seccomp-bpf policy for all
process types.

`memfd_create` is an API added in Linux 3.17 (and adopted by FreeBSD
for the upcoming version 13) for creating anonymous shared memory
not connected to any filesystem.  Supporting it means that sandboxed
child processes on Linux can create shared memory directly instead of
messaging a broker, which is unavoidably slower, and it should avoid
the problems we'd been seeing with overly small `/dev/shm` in container
environments (which were causing serious problems for using Firefox for
automated testing of frontend projects).

`memfd_create` also introduces the related operation of file seals:
irrevocably preventing types of modifications to a file.  Unfortunately,
the most useful one, `F_SEAL_WRITE`, can't be relied on; see the large
comment in `SharedMemory:ReadOnlyCopy` for details.  So we still use
the applicable seals as defense in depth, but read-only copies are
implemented on Linux by using procfs (and see the comments on the
`ReadOnlyCopy` function in `shared_memory_posix.cc` for the subtleties
there).

There's also a FreeBSD implementation, using `cap_rights_limit` for
read-only copies, if the build host is new enough to have the
`memfd_create` function.

Differential Revision: https://phabricator.services.mozilla.com/D90605
2020-10-06 19:20:29 +00:00
Ricky Stewart
56a1a229f2 Bug 1668718 - Don't import mach_bootstrap for virtualenvs that don't have populate_local_paths set, or in Python 3 r=mhentges,firefox-build-system-reviewers
Before, this would be written to `sitecustomize.py` irrespective of the value of `populate_local_paths`. This doesn't make sense -- since the local paths aren't included in the `virtualenv`'s `PYTHONPATH` when Python starts up, it doesn't know how to `import mach_bootstrap`. Since on `mach` startup the import hook will be loaded anyway, and the `virtualenv`s in `~/.mozbuild` (i.e. the only `virtualenv`s for which we don't `populate_local_paths`) are just used to run `mach`, this is fine and won't regress anything.

Also, since the `import` hook is only necessary for Python 2, add a couple conditional checks to get rid of the added overhead when we're running with Python 3.

This was never noticed because importing `sitecustomize` is allowed to throw an `ImportError`, which failure is ignored silently. This may be fixed in the latest version of `virtualenv`.

Differential Revision: https://phabricator.services.mozilla.com/D92290
2020-10-05 17:05:05 +00:00
David Major
0b9c307bbe Bug 1667841 - Update revert-r362047-and-r362065.patch for clang-12 r=firefox-build-system-reviewers,rstewart
The patch no longer applies cleanly because of nearby changes in 4b8cb665a1.

Instead of forking a clang-12 version of this patch, we can get away with carrying a little less context in our patch file.

Differential Revision: https://phabricator.services.mozilla.com/D91625
2020-09-28 19:03:18 +00:00
Andi-Bogdan Postelnicu
0ec28a45b6 Bug 1666993 - new bakend for static-analysis that prevents regressing issues with files that can be built outside of the unified environment. r=botond
1. Provide a new backend dedicated for C++ static-code_analysis
2. Build a list with directories, from non-unified-compat that have been fixed and
permit compiling of C++ files outside of the unified environment. With this list
we eliminate the unified sources and instead use the original source for command
attribute from compile_commands.json.
In this way if a regression appears clang-tidy will report it since it no longer uses
the unified environment for files that are compatible to be compiled standalone.
3. Remove the coverity functionality that was reading and using non-unified build files
since in practive it proved to be sub-optimal.

Differential Revision: https://phabricator.services.mozilla.com/D91011
2020-09-30 04:29:25 +00:00
Razvan Maries
3b3e92d8ee Backed out changeset a86359ce9e75 (bug 1667892) for L10n bustages. CLOSED TREE 2020-09-30 05:16:28 +03:00
Ricky Stewart
2bb808e369 Bug 1667896 - Remove MOZ_ANDROID_DISTRIBUTION_DIRECTORY r=nalexander
This config value is evidently a Fennec thing that isn't used anywhere any more.

Differential Revision: https://phabricator.services.mozilla.com/D91647
2020-09-29 01:51:13 +00:00
Ricky Stewart
d9aa989230 Bug 1667892 - Move search for wget binary from old-configure to Python configure r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D91645
2020-09-28 22:33:33 +00:00
Geoff Brown
7d74529955 Bug 1638974 - Run 'mach mochitest' with Python 3; r=bc
Minor fix to remoteautomation.py: Increment stdoutlen before any type conversions,
to ensure that it accurately reflects the byte offset in the file.

With this last change, 'mach mochitest' appears to run correctly on Android with Python 3:
switch it over to Python 3.

Differential Revision: https://phabricator.services.mozilla.com/D91586
2020-09-28 16:30:33 +00:00
Michael Froman
5b942915e9 Bug 1664898 - move media/mtransport to media/transport. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D90309
2020-09-22 21:43:49 +00:00
J.C. Jones
f2b2199636 Bug 1666567 - land NSS c28e20f61e5d UPGRADE_NSS_RELEASE, r=kjacobs
2020-09-18  Kevin Jacobs  <kjacobs@mozilla.com>

        * automation/abi-check/previous-nss-release, lib/nss/nss.h,
        lib/softoken/softkver.h, lib/util/nssutil.h:
        Set version numbers to 3.58 Beta
        [c28e20f61e5d] [tip]

        * .hgtags:
        Added tag NSS_3_57_RTM for changeset cf7e3e8abd77
        [a963849538ca] <NSS_3_57_BRANCH>

        * lib/nss/nss.h, lib/softoken/softkver.h, lib/util/nssutil.h:
        Set version numbers to 3.57 final
        [cf7e3e8abd77] [NSS_3_57_RTM] <NSS_3_57_BRANCH>

Differential Revision: https://phabricator.services.mozilla.com/D91070
2020-09-22 22:31:15 +00:00
Mitchell Hentges
1de0840710 Bug 1665445: install-moz-phab installs the Phabricator credentials r=firefox-build-system-reviewers,rstewart
Since `install-moz-phab` is meant to simplify the moz-phab setup flow,
automatically prompting for Phabricator credentials removes an otherwise
manual step.

Detecting the "console_script" location of a package in a
cross-platform, virtualenv-supporting and "--user"-supporting way is
tough, and the most consistent solution seems to be to list the package
contents of moz-phab and look for the one that seems to be the entry
point.

Differential Revision: https://phabricator.services.mozilla.com/D90642
2020-09-22 20:44:32 +00:00
Simon Giesecke
ee5a559a7d Bug 1666307 - Turn assertion failure into an early return for now. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D90959
2020-09-22 12:33:32 +00:00
Sylvestre Ledru
264cb8dba5 no bug - fx doc - Fix some rst warnings
Depends on D90832

Differential Revision: https://phabricator.services.mozilla.com/D90864
2020-09-22 06:26:42 +00:00
Mike Hommey
76570df2df Bug 1665558 - Remove -Wno-noexcept-type. r=dmajor
It was added in bug 1320656 because back then we were building as C++14
with warnings about future incompatibilities with C++17. Since then,
we've switched to C++17, which means we had to fix those
incompatibilities, and thus they don't exist anymore. A local build with
-Werror=noexcept-type finishes just fine.

This removes the only difference between top-level and js warning flags.

Differential Revision: https://phabricator.services.mozilla.com/D90521
2020-09-17 12:33:48 +00:00
Mike Hommey
b297cc22e4 Bug 1664077 - Remove _NON_GLOBAL_ACDEFINES. r=firefox-build-system-reviewers,mhentges,rstewart
I think they're remnants from the past that we don't really need anymore.
And they're making things more complicated for some pending work of mine.

Differential Revision: https://phabricator.services.mozilla.com/D89687
2020-09-15 14:25:14 +00:00
Kartikaya Gupta
c95f299299 Bug 1661117 - Follow-up to update standalone WR CI for osmesa-src bump. r=kvark
This extracts an install-meson.sh helper script to install meson in both
the wrench-deps task for Firefox CI and the taskcluster.yml in WebRender CI.

Differential Revision: https://phabricator.services.mozilla.com/D90441
2020-09-16 18:02:45 +00:00
Mitchell Hentges
648ccad85b Bug 1654074: Publish glean handle to mach commands r=firefox-build-system-reviewers,rstewart
Allows mach commands to define their own glean metrics with the `metrics_path` @CommandProvider parameter.
When `metrics_path` is defined:
* A `metrics` kwarg is provided to the decorated class. This `metrics` handle is a Glean instance, so Glean documentation should be consulted for usage information.
* When `mach doc telemetry` is run, metrics docs will be generated from all the registered metrics files.

Note: there was some consideration between making `metrics_path` a @CommandProvider or @Command parameter.
In the end, @CommandProvider seemed like a better fit because:
* Metrics seem to be more associated with the entire class than a specific command/method. This is because a class represents a "domain", and that domain may have different commands that have overlapping metrics.  Accordingly, all the metrics should be defined once as available to the entire class.
* Currently, @Command methods only take parameters that map one-to-one with CLI arguments. It could seem inconsistent to have one exception: the metrics handle

Differential Revision: https://phabricator.services.mozilla.com/D85953
2020-09-15 21:15:20 +00:00
Doug Thayer
cd96536b38 Bug 1656526 - Add resolver_64.cc to asan_blacklist_win.txt r=dmajor
resolver_64.cc should have been on the list all along, because the InternalThunk
constructor runs before ASan init. It was probably just accident (maybe inlining?)
that we got away with not including it in the past.

Differential Revision: https://phabricator.services.mozilla.com/D89669
2020-09-15 14:50:26 +00:00
june wilde
9178fec3e3 Bug 1664394 - rename linux64-civet-tidy to linux64-external-tidy;r=andi
Differential Revision: https://phabricator.services.mozilla.com/D90158
2020-09-15 15:06:10 +00:00
Gregory Mierzwinski
5a1f44cb77 Bug 1664541 - Add package-lock.json to browsertime resources. r=perftest-reviewers,kimberlythegeek
Differential Revision: https://phabricator.services.mozilla.com/D89953
2020-09-15 16:23:18 +00:00
Ricky Stewart
4822d7dd4c Bug 1663755 - Remove inherit-from-parent-environment implementation r=ahal
This was originally meant to allow `virtualenv`s to use packages from a parent Python environment without having to re-install them. This turned out to not pan out as we would have liked, so we're going another way to solve the same problem. Bug 1660351 walked back a bunch of this logic; this patch deletes the rest of it.

Differential Revision: https://phabricator.services.mozilla.com/D89492
2020-09-11 22:14:41 +00:00
Andi-Bogdan Postelnicu
17c635393e no bug - Doc: add reference for Visual Studio Code the build documentation. r=sylvestre DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D90215
2020-09-15 14:32:17 +00:00
Razvan Maries
f46af2adfc Backed out changeset ee6dbeaf8852 (bug 1664077) for build bustages on gfxFontUtils.h. CLOSED TREE 2020-09-15 04:02:01 +03:00
Mike Hommey
3fd47263f8 Bug 1664077 - Remove _NON_GLOBAL_ACDEFINES. r=firefox-build-system-reviewers,mhentges,rstewart
I think they're remnants from the past that we don't really need anymore.
And they're making things more complicated for some pending work of mine.

Differential Revision: https://phabricator.services.mozilla.com/D89687
2020-09-14 16:31:31 +00:00
David Major
84a0b6afc4 Bug 1662608 - Set -fcrash-diagnostics-dir in build-clang.py r=froydnj
This will let us get reproducers for compiler self-host assertion failures.

Differential Revision: https://phabricator.services.mozilla.com/D89079
2020-09-10 20:25:54 +00:00
Dorel Luca
634b687351 Backed out 4 changesets (bug 1656526) for Browser-chrome failures in toolkit/xre/test/browser_checkdllblockliststate.js. CLOSED TREE
Backed out changeset 24648c48a49c (bug 1656526)
Backed out changeset 472b724994eb (bug 1656526)
Backed out changeset 6fbb7e7ac121 (bug 1656526)
Backed out changeset 88ff36a4bcfb (bug 1656526)
2020-09-11 23:17:23 +03:00
Doug Thayer
ebf7f05657 Bug 1656526 - Add resolver_64.cc to asan_blacklist_win.txt r=dmajor
resolver_64.cc should have been on the list all along, because the InternalThunk
constructor runs before ASan init. It was probably just accident (maybe inlining?)
that we got away with not including it in the past.

Differential Revision: https://phabricator.services.mozilla.com/D89669
2020-09-11 14:12:25 +00:00
Mitchell Hentges
565f11ba0a Bug 1651424: Report build telemetry using Glean r=firefox-build-system-reviewers,Dexter,rstewart
In addition to the existing build telemetry, also gather the stats and
report with Glean. This new telemetry is reported in tandem with the existing
telemetry to allow testing and confidence before a full roll-out.

Additionally, Glean isn't compatible with Python 2, so the new telemetry only runs
on Python 3 mach commands.

Differential Revision: https://phabricator.services.mozilla.com/D83572
2020-09-09 23:51:57 +00:00
Mihai Alexandru Michis
8b42ade55d Merge autoland to mozilla-central. a=merge 2020-09-10 18:12:07 +03:00
Csoregi Natalia
7909e86bd0 Backed out 2 changesets (bug 1663755, bug 1663786) for causing bustages in Bug 1664106. a=backout
Backed out changeset 972df2adcffa (bug 1663786)
Backed out changeset f97f4ae8e721 (bug 1663755)
2020-09-10 15:50:24 +03:00
Mike Hommey
a133ef0e15 Bug 1663863 - Vendor autoconf 2.13. r=firefox-build-system-reviewers,rstewart
The files are copied verbatim from upstream autoconf 2.13 (but only the
files we need) and old.configure is adapted to use the vendored version.

Differential Revision: https://phabricator.services.mozilla.com/D89554
2020-09-09 23:50:38 +00:00
Ricky Stewart
be7fcb68ee Bug 1663755 - Remove inherit-from-parent-environment implementation r=ahal
This was originally meant to allow `virtualenv`s to use packages from a parent Python environment without having to re-install them. This turned out to not pan out as we would have liked, so we're going another way to solve the same problem. Bug 1660351 walked back a bunch of this logic; this patch deletes the rest of it.

Differential Revision: https://phabricator.services.mozilla.com/D89492
2020-09-09 18:15:28 +00:00
Mike Hommey
3c3839d4b3 Bug 1664083 - Remove support for external source directories. r=nalexander
It was there for comm-central, and hasn't been used since bug 1479904.

Differential Revision: https://phabricator.services.mozilla.com/D89691
2020-09-10 03:44:30 +00:00
Nicholas Nethercote
0f7f399e93 Bug 1426269 - Change the slashslash filter in preprocessor.py. r=glandium
This commit does the following.

- Renames `slashslash` as `dumbComments`. As a result, it now comes before
  `emptyLines` in alphabetical ordering, which means that if you apply both
  `dumbComments` and `emptyLines`, lines that contain only comments will be
  fully removed.

  (I contemplated changing the filter ordering to match the order specified,
  rather than using alphabetical ordering, but that was more invasive and not
  obviously better.)

- Changes `dumbComments` so it only applies if the comment is at the start of
  the line (with optional leading whitespace). This is so it can be used with
  prefs files, which contain lines like `pref("foo", "https://mozilla.org");`
  where the `//` must not be treated as a comment.

Note that `slashslash` wasn't being used anywhere.

Depends on D88240

Differential Revision: https://phabricator.services.mozilla.com/D88242
2020-09-08 23:04:51 +00:00
Nicholas Nethercote
1aa3d23435 Bug 1426269 - Remove the spaces filter from preprocessor.py. r=glandium
It's not used, probably because it's pretty strange and hard to imagine using
safely. (Stripping leading and trailing space could be useful, but collapsing
sequences of spaces? Hmm.)

Differential Revision: https://phabricator.services.mozilla.com/D88240
2020-09-08 06:54:04 +00:00
Mike Hommey
d5f182fdf4 Bug 1663771 - Allow builds with the 11.0 macOS SDK. r=firefox-build-system-reviewers,rstewart DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D89495
2020-09-08 21:08:48 +00:00
Bogdan Tara
5bbb6dee2e Backed out changeset 1d92340a0f3c (bug 1662608) for clang5.0 failures CLOSED TREE 2020-09-09 01:43:09 +03:00
Gijs Kruitbosch
8f276c24d2 Bug 1663424 - fix pgo file writing from non-webcontent child processes in PROFILE_GENERATE runs, r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D89467
2020-09-08 17:08:41 +00:00
Kristen Wright
30a9faf35b Bug 1642727 - Remove the VarCache machinery r=njn
This commit removes Varcache entirely, putting an end to our quest to get rid of VarCache.

Differential Revision: https://phabricator.services.mozilla.com/D79538
2020-09-08 17:12:01 +00:00
David Major
398ec52cef Bug 1662608 - Set -fcrash-diagnostics-dir in build-clang.py r=froydnj CLOSED TREE
This will let us get reproducers for compiler self-host assertion failures.

Differential Revision: https://phabricator.services.mozilla.com/D89079
2020-09-02 00:27:12 +00:00
Mike Hommey
aa86bba7ac Bug 1662601 - Remove fileid. r=gsvelto
The last thing that was using fileid was fix-stacks, which, as of bug
1662037, doesn't anymore.

Differential Revision: https://phabricator.services.mozilla.com/D89076
2020-09-05 05:31:28 +00:00