Commit Graph

5928 Commits

Author SHA1 Message Date
André Bargull
450cd2c190 Bug 1792775 - Part 2: Update in-tree ICU to 72. r=platform-i18n-reviewers,dminor
Update to ICU 72 by running `./update-icu.sh https://github.com/unicode-org/icu.git maint/maint-72`.

Differential Revision: https://phabricator.services.mozilla.com/D160180
2022-11-23 17:56:04 +00:00
Tom Ritter
6badb2f981 Bug 1801758: Fix globbing of .git files/directories in moz.yaml exclusions r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D162756
2022-11-23 15:00:26 +00:00
Noemi Erli
57fbfda9e8 Backed out 16 changesets (bug 1792775) for causing build bustage in TestDateIntervalFormat.cpp CLOSED TREE
Backed out changeset 240681aef215 (bug 1792775)
Backed out changeset e15aea6bb46b (bug 1792775)
Backed out changeset ee9cd4c8d5cd (bug 1792775)
Backed out changeset 0be61a39756f (bug 1792775)
Backed out changeset 7db4fb376f48 (bug 1792775)
Backed out changeset 7009b35a05a0 (bug 1792775)
Backed out changeset 5abc2704004e (bug 1792775)
Backed out changeset 6d76fe50cf35 (bug 1792775)
Backed out changeset d6300cbbf628 (bug 1792775)
Backed out changeset 8f5e0e60d195 (bug 1792775)
Backed out changeset 0b9cf0354dc0 (bug 1792775)
Backed out changeset 7136c85641b7 (bug 1792775)
Backed out changeset 486778427d64 (bug 1792775)
Backed out changeset 7acee89c2699 (bug 1792775)
Backed out changeset 654c5f659fed (bug 1792775)
Backed out changeset a60b1bc33f91 (bug 1792775)
2022-11-23 17:18:45 +02:00
André Bargull
902df0f4d2 Bug 1792775 - Part 2: Update in-tree ICU to 72. r=platform-i18n-reviewers,dminor
Update to ICU 72 by running `./update-icu.sh https://github.com/unicode-org/icu.git maint/maint-72`.

Differential Revision: https://phabricator.services.mozilla.com/D160180
2022-11-23 10:42:32 +00:00
Noemi Erli
001626e217 Backed out 3 changesets (bug 1792775) for causing build bustages in dateTimeField.js CLOSED TREE
Backed out changeset afc4c848f6cd (bug 1792775)
Backed out changeset 3ad9903f28d8 (bug 1792775)
Backed out changeset 838947448110 (bug 1792775)
2022-11-23 11:19:20 +02:00
André Bargull
409ed6f810 Bug 1792775 - Part 2: Update in-tree ICU to 72. r=platform-i18n-reviewers,dminor
Update to ICU 72 by running `./update-icu.sh https://github.com/unicode-org/icu.git maint/maint-72`.

Differential Revision: https://phabricator.services.mozilla.com/D160180
2022-11-23 08:38:46 +00:00
Arthur Carcano
5a01512e0f Bug 1798283 - Add a subcommand cargo clippy to mach. r=glandium
Depends on D160749

Differential Revision: https://phabricator.services.mozilla.com/D160750
2022-11-22 23:55:13 +00:00
Arthur Carcano
0b504d3991 Bug 1798282 - Add a subcommand cargo audit to mach. r=glandium
Depends on D159838

Differential Revision: https://phabricator.services.mozilla.com/D160749
2022-11-22 23:55:13 +00:00
Arthur Carcano
0030786063 Bug 1796543 - Add a subcommand cargo udeps to ./mach. r=glandium,firefox-build-system-reviewers
This adds a subcommand ./mach cargo udeps with the following
sub command arguments:

Sub Command Arguments:
  --all-crates          Check all of the crates in the tree.
  crates                The crate name(s) to check.
  --jobs [jobs], -j [jobs]
                        Run the tests in parallel using multiple
processes.
  -v, --verbose         Verbose output.
  --message-format-json
                        Emit error messages as JSON.
  --expect-unused       Do not return an error exit code if udeps
detects unused dependencies.

Differential Revision: https://phabricator.services.mozilla.com/D159838
2022-11-22 06:22:17 +00:00
Mozilla Releng Treescript
456de3449a Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-11-14 15:13:23 +00:00
ahochheiden
0760a997f7 Bug 1744340 - Disable colored output from cargo if NO_ANSI is set r=sheehan
Differential Revision: https://phabricator.services.mozilla.com/D161665
2022-11-09 17:47:51 +00:00
André Bargull
7d0125b8c7 Bug 1799859: Add support for "microsecond" and "nanosecond" units. r=dminor
Steps performed:
- Add "microsecond" and "nanosecond" to "intl/icu/data_filter.json".
- Run "icu_sources_data.py" to update the ICU data file.
- Run "update-tzdata.sh" to reapply the tzdata 2022f changes.
- Add "microsecond" and "nanosecond" to "SanctionedSimpleUnitIdentifiers.yaml".
- Run "make_intl_data.py units" to regenerate additional SpiderMonkey files.

Spec PR: https://github.com/tc39/ecma402/pull/708

Differential Revision: https://phabricator.services.mozilla.com/D161676
2022-11-09 16:45:43 +00:00
ahochheiden
604d394173 Bug 1744340 - Enable colored output on Windows - r=firefox-build-system-reviewers,glandium
- The bug that was constantly disabling `VIRTUAL_TERMINAL_PROCESSING` has been fixed upstream in CYGWIN (fdbd153932) and merged into MSYS2 (e4fdb0cb73)
- The upcoming MozillaBuild `4.0.2` release will have the updated MSYS2 that contains this fix, allowing us to enable colored output on Windows.
- We will enable `ENABLE_VIRTUAL_TERMINAL_PROCESSING` once (For each stdout and stderr) on initializing the formatter to ensure that `VIRTUAL_TERMINAL_PROCESSING` is enabled whenever Mach is called..
- These changes will only be active if the MozillaBuild version is greater than or equal to Release `4.0.2`

Differential Revision: https://phabricator.services.mozilla.com/D138256
2022-11-09 04:33:19 +00:00
Butkovits Atila
fe7ef22ba5 Backed out 7 changesets (bug 1744340, bug 1798827) for causing mach failures at test_commands.py. CLOSED TREE
Backed out changeset 9cb83a8d1f28 (bug 1798827)
Backed out changeset ebff36a14737 (bug 1744340)
Backed out changeset 5d6aabaf72c4 (bug 1744340)
Backed out changeset 8efafab5495f (bug 1744340)
Backed out changeset 8a873505f17d (bug 1744340)
Backed out changeset 3024fff68f6c (bug 1744340)
Backed out changeset 42a0a61583f0 (bug 1744340)
2022-11-09 04:21:47 +02:00
ahochheiden
fbba799d5f Bug 1744340 - Enable colored output on Windows - r=firefox-build-system-reviewers,glandium
- The bug that was constantly disabling `VIRTUAL_TERMINAL_PROCESSING` has been fixed upstream in CYGWIN (fdbd153932) and merged into MSYS2 (e4fdb0cb73)
- The upcoming MozillaBuild `4.0.2` release will have the updated MSYS2 that contains this fix, allowing us to enable colored output on Windows.
- We will enable `ENABLE_VIRTUAL_TERMINAL_PROCESSING` once (For each stdout and stderr) on initializing the formatter to ensure that `VIRTUAL_TERMINAL_PROCESSING` is enabled whenever Mach is called..
- These changes will only be active if the MozillaBuild version is greater than or equal to Release `4.0.2`

Differential Revision: https://phabricator.services.mozilla.com/D138256
2022-11-09 00:40:56 +00:00
Mike Hommey
1ed19c9524 Bug 1791476 - When clang is newer than rust's llvm, use clang sanitizer runtimes. r=firefox-build-system-reviewers,ahochheiden
To do so, we move cargo-linker from shell to python because it's more
convenient.

Differential Revision: https://phabricator.services.mozilla.com/D161010
2022-11-08 00:44:27 +00:00
André Bargull
83b9a93f65 Bug 1798623: Update time zone data to tzdata2022f. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D161007
2022-11-04 06:57:16 +00:00
Henri Sivonen
1737aa6569 Bug 1630920 - Remove the gb2312han and big5han collations. r=anba
Makes the ICU data 191 KB smaller.

Differential Revision: https://phabricator.services.mozilla.com/D160337
2022-10-28 08:44:04 +00:00
Henri Sivonen
0b6dc7aed6 Bug 1793749 - Build ICU with the implicithan collation root. r=anba
Makes ICU data 353 KB smaller.

Differential Revision: https://phabricator.services.mozilla.com/D160345
2022-10-28 08:43:58 +00:00
André Bargull
b9446c85e2 Bug 1797248: Update time zone data to tzdata2022e. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D160173
2022-10-27 11:32:17 +00:00
Stanca Serban
09251682b1 Backed out changeset 5bb3611c95d7 (bug 1797248) for causing time zones failures. CLOSED TREE 2022-10-27 13:00:39 +03:00
André Bargull
2b52b24839 Bug 1797248: Update time zone data to tzdata2022e. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D160173
2022-10-27 09:11:48 +00:00
Mozilla Releng Treescript
d63c4b1078 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-10-17 14:03:50 +00:00
Nika Layzell
a04c002ee0 Bug 1794644 - Part 1: Remove rlbox shared lock workaround for macOS 10.{9-11}, r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D159084
2022-10-14 14:20:34 +00:00
Joel Maher
b9f4654ae1 Bug 1794675 - Remove unnecessary 'sort' from config/tests makefile to avoid windows newlines. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D159240
2022-10-13 12:46:52 +00:00
Mozilla Releng Treescript
6d7704caae Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-09-19 10:51:32 +00:00
Mike Hommey
3b6d66eba3 Bug 1788858 - Remove HOST_MAJOR_VERSION. r=firefox-build-system-reviewers,necko-reviewers,andi
`HAS_CONNECTX` is not used in `netwerk/protocol/http` as of bug 1689604.
In NSPR, it is used to enable the use of `connectx`, which is available
since macOS 10.11, and we target 10.12, which means it's always
available, so we don't need to check for it based on the target version
(and checking the host version was wrong, too).

Differential Revision: https://phabricator.services.mozilla.com/D156275
2022-09-05 21:24:25 +00:00
Mozilla Releng Treescript
00e5040835 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-08-22 14:31:36 +00:00
André Bargull
52aed99c43 Bug 1786025: Update time zone data to tzdata2022b. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D155068
2022-08-19 17:14:03 +00:00
Mike Hommey
7500b3d911 Bug 1783800 - Remove now apparently unnecessary compiler flags for ICU. r=firefox-build-system-reviewers,ahochheiden
Considering builds with clang-cl now enable all the same warnings as those
with clang, and those flags are not given to clang-cl, that means
they're not necessary.

Differential Revision: https://phabricator.services.mozilla.com/D154054
2022-08-16 00:55:05 +00:00
Nika Layzell
665766a29c Bug 1759555 - Part 2: Partially configure rust-analyzer for ./mach ide vscode, r=glandium,andi
In order to allow rust-analyzer to be able to use the build script in
the mozbuild crate to discover the configuration information, this patch
adds new flags to the vscode config to tell rust-analyzer to invoke
cargo through `./mach cargo check`, and use the correct target directory
within the objdir rather than `$(topsrcdir)/target`.

Due to the virtual filesystem used by rust-analyzer not including files
in the object directory, this is not sufficient to get suggestions for
symbols from the included files, however it will accurately fetch
diagnostics upon save and run things like proc macros.

A new feature will likely need to be added to rust-analyzer to allow us
to specify additional paths to add to the source root for packages to
fix that issue.

Due to this change using `./mach cargo check`, rather than running it
independently, we don't run into issues caused by running `check`
against crates in the workspace which aren't being used, making the
diagnostics more useful.

An additional feature needed to be added to `./mach cargo check` to
allow specifying `--message-format=json`. I am open to suggestions for a
more elegant way to communicate this flag into the makefile.

Depends on D153269

Differential Revision: https://phabricator.services.mozilla.com/D153270
2022-08-09 14:12:12 +00:00
Nika Layzell
c8e801b440 Bug 1759555 - Part 1: Avoid using env! for includes in the mozbuild crate, r=glandium
This switches the code to instead use the generated source file, which is
discovered based on `OUT_DIR` so is easier for rust-analyzer to understand.

The configuration for rust-analyzer will be updated in the next part to
make sure that rust-analyzer is able to take advantage of these changes,
and produce better diagnostics.

Differential Revision: https://phabricator.services.mozilla.com/D153269
2022-08-09 14:12:11 +00:00
Mike Hommey
cbc9dc5ed6 Bug 1783798 - Disable enum-constexpr-conversion error in ICU for now. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D154052
2022-08-09 07:45:54 +00:00
Mozilla Releng Treescript
17e7325646 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-07-25 16:15:27 +00:00
Dmitry Bezhetskov
1bb5a69ae1 Bug 1768214 - introduce wasm32 codegen. r=jandem
We are going to compile JS into WebAssembly! This is the first patch
in an upcoming queue. Here we introduce wasm32 architecture so that
SpiderMonkey can be compiled with enabled jit for wasi target.

Differential Revision: https://phabricator.services.mozilla.com/D145790
2022-07-01 04:23:16 +00:00
Mozilla Releng Treescript
82769fbd14 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-06-27 15:55:43 +00:00
Emilio Cobos Álvarez
bdc3a430c4 Bug 1774594 - Don't add color flags to linker. r=glandium
This should work. I don't recall there being any linker honoring these
but I might be wrong.

Differential Revision: https://phabricator.services.mozilla.com/D149609
2022-06-21 06:42:35 +00:00
Emilio Cobos Álvarez
84a20431f4 Bug 1773359 - Remove TRANSPARENT workaround in webrender bindings. r=gfx-reviewers,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D148679
2022-06-08 19:19:08 +00:00
ahochheiden
4bb296a301 Bug 1766497 - Add opener parameter to _MockBaseOpen so that <PathObject>.open calls are mocked as expected r=ahal
Depends on D148176

Differential Revision: https://phabricator.services.mozilla.com/D148177
2022-06-07 23:52:50 +00:00
Haik Aftandilian
4591ba72b4 Bug 1770484 - Make Mac processes not depend on DYLD_LIBRARY_PATH to load libraries r=glandium,gsvelto,mac-reviewers,necko-reviewers,dragana,spohl
Change XUL and other dylibs to be built with an @rpath/<dylib> install name (LC_ID_DYLIB) instead of @executable_path/<dylib>.

Change executables to be built with an @rpath dyld search path set to @executable_path by default so that @rpath/<dylib> dylibs in the same directory can be resolved. For executables not in the same directory as @rpath dylibs, such as plugin-container, set a relative @rpath such as @executable_path/../../../.

Previously, dylib install names were set as @executable_path/<dylib> allowing them to be resolved by dyld for the loading executable if the executable resided in the same directory as the dylib. For executables not in the same directory as the dylibs, dyld resolved these dylibs using DYLD_LIBRARY_PATH set before launching the process by Firefox code. With this change, loading does not rely on DYLD environment variables. Instead, dylibs have an install name set as @rpath/<dylib> and each executable loading a dylib has its @rpath set at compile-time to refer to dylib directory.

Differential Revision: https://phabricator.services.mozilla.com/D147360
2022-06-03 21:14:01 +00:00
Mozilla Releng Treescript
8e705edc38 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-05-30 11:42:22 +00:00
Mozilla Releng Treescript
87ecd21d3c Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-05-02 14:42:53 +00:00
Mike Hommey
6b078d7de3 Bug 1660745 - Update encoding_rs to 0.8.31 and packed_simd to 0.3.7. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D88002
2022-04-20 06:24:28 +00:00
Jesse Schwartzentruber
efb130aed4 Bug 1762324 - Disable sanitizers for non-Linux native builds. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D142617
2022-04-11 19:22:27 +00:00
André Bargull
d9409e29f8 Bug 1763783 - Part 2: Update in-tree ICU to release 71.1. r=platform-i18n-reviewers,jfkthame
Depends on D143273

Differential Revision: https://phabricator.services.mozilla.com/D143275
2022-04-10 09:17:54 +00:00
Mozilla Releng Treescript
b9bcf6abd9 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2022-04-04 15:55:18 +00:00
Nordin Abouzahra
82b9d72e94 Bug 1351378 - Add an --enable-audio-backends option. r=mhentges
This addresses the original intent of the bug report which asks for allowing
sndio to be built on more than just OpenBSD. In addition of modifying the
existing --enable-sndio to support this request, the option
--enable-audio-backends was added which takes a list of possible backends to
support per discussion in the bug report.

For example specifying --enable-audio-backends=alsa,jack,pulseaudio,sndio
allows for runtime selection of those four cubeb backends. If all four backends
are available the user can specify `media.cubeb.backend` in `about:config` to
force a specific backend.

Removed superfluous set_define()s as libcubeb's moz.build does the necessary
`DEFINES['...']` assignments for each backend.

In addition logic for finer control of audio backend selection on Android was
added. One can now specify aaudio, opensl or both (which is the default).

Differential Revision: https://phabricator.services.mozilla.com/D141450
2022-03-28 20:48:52 +00:00
Iulian Moraru
866f261a7d Backed out changeset c25c591841cd (bug 1351378) for causing multiple failures. CLOSED TREE 2022-03-22 19:37:46 +02:00
Nordin Abouzahra
2b0b1c90db Bug 1351378 - Add an --enable-audio-backends option. r=mhentges
This addresses the original intent of the bug report which asks for allowing
sndio to be built on more than just OpenBSD. In addition of modifying the
existing --enable-sndio to support this request, the option
--enable-audio-backends was added which takes a list of possible backends to
support per discussion in the bug report.

For example specifying --enable-audio-backends=alsa,jack,pulseaudio,sndio
allows for runtime selection of those four cubeb backends. If all four backends
are available the user can specify `media.cubeb.backend` in `about:config` to
force a specific backend.

***
Bug 1351378 - Address linter error. r?mhentges,glandium

***
Bug 1351378 - Remove superfluous set_define(). r?mhentges,glandium

libcubeb's moz.build does the necessary `DEFINES['...']` assignments for each
backend. Remove superfluous set_define().

Differential Revision: https://phabricator.services.mozilla.com/D141450
2022-03-22 17:02:05 +00:00
Mitchell Hentges
4a128101e2 Bug 1758204: mozunit should use --tb=short with pytest r=ahal
This will decrease test output clutter while making it easier to
identify and diagnose test failures.

Differential Revision: https://phabricator.services.mozilla.com/D140421
2022-03-08 15:32:06 +00:00