Граф коммитов

638 Коммитов

Автор SHA1 Сообщение Дата
Gabriele Svelto 831c355e81 Bug 1701576 - Improve openSUSE detection during bootstrap r=glandium,mhentges DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D110059
2021-04-01 10:04:31 +00:00
Connor Sheehan 17a15ff0aa Bug 1697956: install `m4` as a common package on Debian/Ubuntu r=firefox-build-system-reviewers,mhentges DONTBUILD
During `mach bootstrap` for Firefox desktop, m4 is installed via `libgtk2.0-dev`.
Since we don't install that package for Android bootstrap, this causes
configure failures.

Install `m4` as a common package to fix configure on Android. Since we plan
to remove `libgtk2.0-dev` soon, this will also avoid breakage when that change
lands.

Differential Revision: https://phabricator.services.mozilla.com/D108692
2021-03-17 14:19:35 +00:00
Mike Hommey f74f871db7 Bug 1697950 - Partial support for mach bootstrap on arm64 mac. r=firefox-build-system-reviewers,sheehan,mhentges
This is enough to make the instructions on the Google doc unnecessary.

Differential Revision: https://phabricator.services.mozilla.com/D108132
2021-03-17 02:11:51 +00:00
Mike Hommey a34d14071f Bug 1697960 - Don't prompt for telemetry when glean couldn't be installed. r=firefox-build-system-reviewers,mhentges,sheehan
Bootstrap runs mach create-mach-environment, which may or may not
successfully install glean. When it doesn't, it's not useful to ask
whether to enable telemetry when it's not going to work.

Differential Revision: https://phabricator.services.mozilla.com/D108131
2021-03-12 21:14:40 +00:00
Mitchell Hentges 9501e0ca97 Bug 1507272: Removes unused parameter in bootstrap function r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D106813
2021-03-12 16:07:12 +00:00
Mitchell Hentges b7e0dfe1d1 Bug 1695272: Move `--no-interactive` to global mach args r=firefox-build-system-reviewers,glandium
Updates `./mach bootstrap` to use `--no-interactive` from global args.
Ensures all bootstrap prompts have a default option.

Differential Revision: https://phabricator.services.mozilla.com/D106814
2021-03-12 16:07:11 +00:00
Mitchell Hentges 8133abcb41 Bug 1695973: Remove retry limit from bootstrap prompt r=firefox-build-system-reviewers,sheehan,glandium
The retry limit doesn't add much value - if user doesn't want
to answer a prompt, they can CTRL-C.

Additionally, `prompt_yesno` doesn't have a retry limit, so
this increases prompt behaviour consistency.

Differential Revision: https://phabricator.services.mozilla.com/D107122
2021-03-12 16:07:11 +00:00
Mike Hommey b09eaee3e9 Bug 1379426 - Simplify Xcode/command line tools setup on macOS. r=firefox-build-system-reviewers,mhentges
Xcode hasn't been necessary to build Firefox for a while. Command line
tools are enough, but if Xcode is available, that's also sufficient.

Mach bootstrap, however, for historic reasons, mostly, ends up wanting
to install both, which is a waste of time and disk space.

Differential Revision: https://phabricator.services.mozilla.com/D107770
2021-03-10 22:33:21 +00:00
Andrew Halberstadt 155dabdde2 Bug 1697272 - [mozboot] Consider 'MACHRC' environment variable when enabling telemetry, r=firefox-build-system-reviewers,mhentges DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D107705
2021-03-09 20:04:57 +00:00
Mike Hommey 88789bd14f Bug 1696091 - Add arm64 mac rustup. r=firefox-build-system-reviewers,sheehan,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D107028
2021-03-08 21:31:25 +00:00
Mike Hommey c3a31b9c58 Bug 1696091 - Upgrade rustup to 1.23.1. r=firefox-build-system-reviewers,sheehan,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D107027
2021-03-08 21:31:24 +00:00
Mike Hommey 9367a34337 Bug 1696091 - Convert python/mozboot/mozboot/rust.py's __main__ to python 3. r=firefox-build-system-reviewers,sheehan,mhentges
- Replace urllib2.urlopen with requests.get. We use requests because
  http_download_and_hash, which is also used by __main__ uses it already.
- Convert byte strings to unicode strings.
- Don't wrap sys.stdout, and instead explicitly flush when wanted.

Differential Revision: https://phabricator.services.mozilla.com/D107026
2021-03-08 21:31:24 +00:00
Connor Sheehan a977bf134b Bug 1696509: move to bash installer for Homebrew r=firefox-build-system-reviewers,mhentges
Download `installer.sh` from the same source and pass it to
 `bash` instead of `ruby`.

Differential Revision: https://phabricator.services.mozilla.com/D107279
2021-03-08 17:41:15 +00:00
Connor Sheehan c5d34d14ef Bug 1688263: remove macports as a package manager in bootstrap r=firefox-build-system-reviewers,mhentges
Removes MacPorts as an option for package management on OSX. Changes
most error messages to be Homebrew specific, and rips out the `getattr`
based function resolution used to support both managers.

Differential Revision: https://phabricator.services.mozilla.com/D107277
2021-03-08 17:41:14 +00:00
Agi Sferro d7c56b38e4 Bug 1688062 - Update target SDK to API 30. r=esawin,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D106556
2021-03-01 19:12:16 +00:00
Noemi Erli 67edd199af Backed out changeset 0ca845833464 (bug 1688062) for causinf Android Webrender bustages CLOSED TREE 2021-02-27 14:15:09 +02:00
Agi Sferro b69e57d56f Bug 1688062 - Update target SDK to API 30. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D106556
2021-02-26 21:45:15 +00:00
Dorel Luca 0875c78fec Backed out changeset 0e3e3b8a55b4 (bug 1688062) for Linting failure in java/org/mozilla/gecko/GeckoAppShell.java. CLOSED TREE 2021-02-26 19:02:12 +02:00
Agi Sferro c0dc6e84b0 Bug 1688062 - Update target SDK to API 30. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D106556
2021-02-26 16:34:02 +00:00
Mike Hommey e5c73b99a0 Bug 1692940 - Don't bootstrap yasm. r=firefox-build-system-reviewers,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D105599
2021-02-23 01:26:47 +00:00
Aaron Klotz 7847613f0d Bug 1581971: Part 1 - Bump Android NDK requirement to 21d; r=snorp,firefox-build-system-reviewers,mhentges
NDK 21 includes `lldb-server`, which we need in order to support
`./mach run --debug` with `lldb`.

The Android SDK manager no longer includes a standalone `lldb` package; perhaps
it was deprecated? Anyway, this appears to currently be the best way to get
`lldb-server` into a location that is easy to find during build configuration.

Differential Revision: https://phabricator.services.mozilla.com/D94379
2021-02-19 21:07:18 +00:00
Mitchell Hentges a3eb85e571 Bug 1687980: Make macOS quickstart docs more concise r=sylvestre,mhoye
* Puts the docs in order, so that contributors aren't jumping to the
  middle of the page to install system tools, then back to the top to
  clone Firefox.
* Removes docs on MacPorts since it's being removed in bug 1688263.
* Removes step to manually install brew packages since that happens
   automatically in bootstrap now.
* Simplifies mercurial installation docs
* Removes unnecessary mozconfig-tweaking instructions
* Removes almost-always-unnecessary DEFINE and troubleshooting
  information.

Differential Revision: https://phabricator.services.mozilla.com/D102973
2021-02-16 17:48:11 +00:00
Mike Hommey 5d9084e8a0 Bug 1689058 - Rename clang-cl toolchains to clang. r=firefox-build-system-reviewers,dmajor
Bug 1553230 made configure automatically get toolchain artifacts in some
cases. The artifacts for clang-cl builds are clang.tar.zst, and extract to
clang/. Configure derives the task name from that knowledge, and fails
to find clang-cl tasks because of that.

For consistency, these tasks should be called clang. They are clang
builds anyways, and like any other clang builds, they also contain
clang-cl.

Differential Revision: https://phabricator.services.mozilla.com/D103150
2021-01-28 00:30:56 +00:00
Connor Sheehan 57d304dec4 Bug 1686333: don't install `libpython2-dev` r=firefox-build-system-reviewers,mhentges
Seems it isn't always available. Since Py2 is optional anyways, it
shouldn't cause failures in `mach bootstrap`.

Differential Revision: https://phabricator.services.mozilla.com/D101499
2021-01-12 21:55:57 +00:00
Connor Sheehan 5f3ac9bc5b Bug 1684915: install Python development headers during bootstrap on Fedora/Debian flavors r=firefox-build-system-reviewers,mhentges
Since zstandard has native code that must be compiled, and that code
uses Python headers, we should be installing those headers as part
of bootstrap.

Most users will have these packages on their machines through various
other means (notably installing `pip`, ie `sudo apt install python3-pip`),
but since it is possible to avoid a pip installation (for example
by installing Mercurial through `yum` and then running bootstrap
immediately after cloning) we should specify these packages as required
by bootstrap.

Differential Revision: https://phabricator.services.mozilla.com/D101479
2021-01-12 20:35:24 +00:00
Connor Sheehan 44d4f310aa Bug 1685811: recommend saving `bootstrap.py` to disk instead of piping directly to `python` r=mhentges DONTBUILD
The current recommendation fails while waiting on user input. Instead, just
save the script to disk as an intermediate step, then invoke it.

Differential Revision: https://phabricator.services.mozilla.com/D101228
2021-01-11 16:53:32 +00:00
ankushduacodes fd084434a1 Bug 1684348 - Patching error occuring while running brew cask list as this method has been deprecated by homebrew r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D100496
2021-01-08 19:51:41 +00:00
Mitchell Hentges 633efc7476 Bug 1680630: Generate android mozconfig without pkg manager r=nalexander
Knowing whether `brew` or `macports` is available isn't necessary
to generate the android mozconfig.
This should fix the generation of android mozconfig when a package
manager isn't available.

Differential Revision: https://phabricator.services.mozilla.com/D99496
2021-01-05 20:30:56 +00:00
Sylvestre Ledru 635ee5f1cd no bug - doc: replaces mdn links by in-tree docs r=marco,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D100782
2021-01-05 15:46:00 +00:00
Cosmin Sabou 8a46d2e9d6 Backed out 3 changesets (bug 1680802, bug 1680630) for turning Bug 1521378 into permafail. CLOSED TREE
Backed out changeset 3464c8f10994 (bug 1680630)
Backed out changeset 591d32364c0f (bug 1680802)
Backed out changeset 3e9350fd509d (bug 1680802)
2021-01-04 18:47:44 +02:00
Mitchell Hentges 043990b9c4 Bug 1680630: Generate android mozconfig without pkg manager r=nalexander
Knowing whether `brew` or `macports` is available isn't necessary
to generate the android mozconfig.
This should fix the generation of android mozconfig when a package
manager isn't available.

Differential Revision: https://phabricator.services.mozilla.com/D99496
2020-12-17 17:41:39 +00:00
longsonr 5bc0a7bf2c Bug 1683929 - fix brew list r=mhentges
Differential Revision: https://phabricator.services.mozilla.com/D100347
2020-12-22 19:38:46 +00:00
Dorel Luca 780ce73d25 Backed out 2 changesets (bug 1680802, bug 1680630) for Linting failure. CLOSED TREE
Backed out changeset 9385e7989433 (bug 1680630)
Backed out changeset 19db3f7eb204 (bug 1680802)
2020-12-16 01:07:11 +02:00
Mitchell Hentges 1a678bc9e3 Bug 1680630: Generate android mozconfig without pkg manager r=nalexander
Knowing whether `brew` or `macports` is available isn't necessary
to generate the android mozconfig.
This should fix the generation of android mozconfig when a package
manager isn't available.

Differential Revision: https://phabricator.services.mozilla.com/D99496
2020-12-15 21:14:01 +00:00
Narcis Beleuzu 074a2d3400 Backed out 2 changesets (bug 1680802, bug 1680630) for linting failure. CLOSED TREE
Backed out changeset 14747923c401 (bug 1680630)
Backed out changeset 3fbd3ae18e3f (bug 1680802)
2020-12-15 22:39:07 +02:00
Mitchell Hentges 85956749dc Bug 1680630: Generate android mozconfig without pkg manager r=nalexander
Knowing whether `brew` or `macports` is available isn't necessary
to generate the android mozconfig.
This should fix the generation of android mozconfig when a package
manager isn't available.

Depends on D99482

Differential Revision: https://phabricator.services.mozilla.com/D99496
2020-12-11 19:08:02 +00:00
Mitchell Hentges 16222ee4ed Bug 1680162: Install python packages after system packages r=firefox-build-system-reviewers,glandium
Native python packages will probably require python headers. For some
systems, these are available in a separate system package (such as
python[3]-dev).

If the user is bootstrapping with "--no-system-changes", we just
try to install these native packages and fail gracefully if required
headers aren't installed.

Differential Revision: https://phabricator.services.mozilla.com/D98530
2020-12-08 15:35:05 +00:00
Mike Hommey 72cc842ad5 Bug 1671545 - Require at least rustc 1.47.0 to build. r=firefox-build-system-reviewers,dmajor
And remove the rust 1.43 toolchain, now it's not used anymore.

Differential Revision: https://phabricator.services.mozilla.com/D93733
2020-12-02 00:01:56 +00:00
Mike Hommey 05a9029609 Bug 1679363 - Fail mach bootstrap early on Apple Silicon. r=firefox-build-system-reviewers,mhentges
It currently doesn't work for several reasons, and even if what
currently fails would start working, we don't actually want people to be
using the clang it installs, for example, because it would run through
Rosetta and be slow. So until all these details are figured out, we
should outright reject mach bootstrap and send people to the always
evolving google doc that has the instructions.

Differential Revision: https://phabricator.services.mozilla.com/D97985
2020-11-26 20:32:34 +00:00
Mike Hommey d15ea2973f Bug 1679367 - Don't install node from macports/brew. r=firefox-build-system-reviewers,andi,mhentges
We've been installing a toolchain artifact since bug 1481693.

Differential Revision: https://phabricator.services.mozilla.com/D97986
2020-11-26 18:05:17 +00:00
Gabriele Svelto f61fb9dd2b Bug 1676815 - Factorize Linux bootstrapping of Android builds r=andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D96813
2020-11-12 12:40:55 +00:00
Mitchell Hentges aadd76c48c Bug 1675306: Add mocks so Java-detection doesn't hit real file system r=firefox-build-system-reviewers,rstewart
Previously, configure checked for Java binaries using
"configure"-specific "which()" and environment-variable-getter
functions. When bug 1670264 changed Java detection to use logic shared
between "configure" and "bootstrap", more general "which()"
/environment-variable-getter functions were used.

The test used to work because the "configure"-specific functions
respect the mocked-out file system and environment variables.
This patch adjusts the test to add mocks so the more general logic
is redirected to respect the mocked data.

Differential Revision: https://phabricator.services.mozilla.com/D96189
2020-11-06 22:15:02 +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
Greg Tatum 5054c8bf2a Bug 1674189 - Warn the user if their PYTHONPATH is set in mach bootstrap; r=rstewart DONTBUILD
This environment variable can cause the module resolution to break
and have unexpected behavior while running mach bootstrap.

Differential Revision: https://phabricator.services.mozilla.com/D95185
2020-10-30 09:28:05 +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
Mike Hommey 2bf535bb2b Bug 1672895 - Bootstrap nasm from toolchain artifacts on mac. r=firefox-build-system-reviewers,rstewart DONTBUILD
Rather than homebrew/macports.

Differential Revision: https://phabricator.services.mozilla.com/D94539
2020-10-23 13:54:18 +00:00
Mike Hommey d4daba77e3 Bug 1672894 - Don't bootstrap autoconf 2.13. r=firefox-build-system-reviewers,rstewart DONTBUILD
We've vendored it in bug 1663863 so we don't need it installed on the
system anymore.

Differential Revision: https://phabricator.services.mozilla.com/D94538
2020-10-23 13:54:08 +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 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
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00