Commit Graph

544 Commits

Author SHA1 Message Date
Karl Dubost
c6ae17ea64 Bug 1482675 - Adds no-system-changes option to bootstrap. r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D78855
2020-07-01 00:11:55 +00:00
Ricky Stewart
01f005d7d7 Bug 1647830 - Users trying to build Firefox for Android on Windows should get a warning in bootstrap and configure r=nalexander
We get a lot of bugs about building Firefox for Android not working, and there's been ongoing confusion about whether this is something that does work or who has ever worked. The warning should hopefully clarify the current situation for people.

Differential Revision: https://phabricator.services.mozilla.com/D81585
2020-06-29 22:36:02 +00:00
David Major
b6eec29461 Bug 1649039 - Update bootstrap's rustc to match bug 1648343 r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D81565
2020-06-29 17:44:52 +00:00
Ricky Stewart
d44b1b67a3 Bug 1647873 - Remove "mach bootstrap is not fully implemented in MozillaBuild" message r=nalexander
This message dates from bug 1177128, the commit where this bootstrapper was added. At the time of writing that was certainly true, but today it doesn't appear to be true in any meaningful way. There's certainly an expectation that installing MozillaBuild and running `mach bootstrap` will get your machine ready to build Firefox; or at least, if it doesn't, it prints out some error messages telling you to do extra stuff, like we see in bug 1644794 for example. Therefore, I don't see how this message is relevant at all any more.

Differential Revision: https://phabricator.services.mozilla.com/D80730
2020-06-24 02:47:43 +00:00
Mitchell Hentges
7914702f50 Bug 1647865: Bootstrap should stop if run with Python 2 r=rstewart
This uses sys.exit() instead of throwing an exception since:
1. It isn't an error, and bug 1646406 isn't finished yet
2. The output is more straightforward for the user

This verification happens separately from the other python-verification logic, but that's
because I wanted the validation to happen as soon as possible - before the user invests too
much time, and before too much of the script ran with the wrong interpreter.

Differential Revision: https://phabricator.services.mozilla.com/D80726
2020-06-23 21:40:55 +00:00
Mitchell Hentges
58848678dc Bug 1644794: Improve "missing JDK" error message and docs r=rstewart,geckoview-reviewers,agi
Additionally, recommends the installation of AdoptOpenJDK instead of the Oracle JDK.
This required a different "JAVA_HOME" detection mechanism, which is implemented in this revision.

Differential Revision: https://phabricator.services.mozilla.com/D79547
2020-06-17 12:17:48 +00:00
Mitchell Hentges
d92816473f Bug 1645047: Recommend adding cinnabar to path if not exists r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D79393
2020-06-12 19:43:38 +00:00
Mitchell Hentges
0fcab2f5a1 Bug 1643317: |mach bootstrap --help| uses file ref to explain --app-choice r=rstewart
Previously, python import syntax was used to refer users to the definition of the --application-choice arguments.
However, it isn't straightforward to the uninitiated, especially since it doesn't work in searchfox.

Instead, by providing a file reference, it should be more accessible.

Differential Revision: https://phabricator.services.mozilla.com/D79003
2020-06-10 16:27:24 +00:00
Mitchell Hentges
0cd86be789 Bug 1643298: |mach bootstrap --no-system-changes| should still output mozconfig r=rstewart,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D78997
2020-06-09 23:19:48 +00:00
Mitchell Hentges
ed90a04ad1 Bug 1632874: |mach bootstrap| should write mozconfig file if it doesn't exist r=rstewart
Rather than always printing instructions at the end of the bootstrap phase, we will now create a mozconfig
file if one doesn't exist and there's configuration to be written.

Differential Revision: https://phabricator.services.mozilla.com/D78417
2020-06-08 19:36:56 +00:00
Mitchell Hentges
a8304147a8 Bug 1643158: remove mozboot/util.py dependency on six r=rstewart
bootstrap.py depends on mozboot/util.py, but bootstrap needs to run in a bare environment without `six`.

Differential Revision: https://phabricator.services.mozilla.com/D78352
2020-06-04 18:59:51 +00:00
Valentin Gosu
9e9b45920a Bug 1643370 - Add POP!_OS to supported debian distros r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78316
2020-06-04 15:45:15 +00:00
Tom Prince
9eac413f54 Bug 1642446: Add an attribute to annotate toolchain tasks used by mach bootstrap; r=firefox-build-system-reviewers,rstewart
Toolchains that are used for local development need to be built on a level-3
branch to installable via `mach bootstrap`. Add an attribute to track the fact
that a toolchain is used that way, and:
- ensure that everything installed via `mach boostrap` has that attribute set
- ensure that everything with that attribute set is built on trunk projects

We could additionally verify that attribute is only set on things used by
bootstrap, but bootstrap doesn't currently have an exhaustive list of things
that it might install, making that difficult.

Differential Revision: https://phabricator.services.mozilla.com/D77706
2020-06-03 15:55:26 +00:00
Emily McDonough
c6e4f99f13 Bug 1642040 - Add VoidLinux support to mach bootstrap r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D77571
2020-06-01 19:37:06 +00:00
Mitchell Hentges
811fbf178f Bug 1640064: Don't attempt to install python-pip (py2) on Debian Sid r=rstewart
Differential Revision: https://phabricator.services.mozilla.com/D77517
2020-05-29 20:17:40 +00:00
Ricky Stewart
6cda2c27f5 Bug 1640261 - Expand set of possible Python 3's you can use in bootstrap/debian.py r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D76529
2020-05-22 19:34:08 +00:00
Ricky Stewart
0a8ac76fef Bug 1639986 - Add hack to bootstrap to install Python 2 on macOS r=firefox-build-system-reviewers,nalexander
This is ugly and complicates the code some but it's manageable and allows us to keep things afloat on macOS while the testing team plugs along with the `mach` migration.

Differential Revision: https://phabricator.services.mozilla.com/D76386
2020-05-21 20:25:34 +00:00
Chris AtLee
ef685f3549 Bug 1637379: Optimize android toolchains r=gbrown
Create an emulator toolchain
Stop including mozboot/sdk-*.zip in our tarball

Differential Revision: https://phabricator.services.mozilla.com/D74931
2020-05-21 13:28:10 +00:00
Cameron McCormack
252e4e5c55 Bug 1639788 - Update IRC reference in mach bootstrap output. r=glob
Differential Revision: https://phabricator.services.mozilla.com/D76271
2020-05-21 05:39:24 +00:00
Alex Vincent
449dbae8b1 Bug 1588166 - Remove python-dbus build dependency. (notify-send replaced it and it's no longer needed.) r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D74798
2020-05-20 15:19:13 +00:00
Nathan Froyd
9f876bab7a Bug 1638012 - commonize taskcluster-related bootstrappers for Linux; r=nalexander
This change doesn't fix all of the boilerplate involved in declaring
that certain packages should be fetched from taskcluster, but it's a
start, at least.

Differential Revision: https://phabricator.services.mozilla.com/D75330
2020-05-18 16:27:09 +00:00
Ricky Stewart
ab8348bc51 Bug 1638783 - Install Mercurial with pip3 rather than pip, which no longer exists on new Ubuntu/Debian versions r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D75816
2020-05-18 20:10:19 +00:00
Corentin Arnould
e7a750541a Bug 1638799 - Added python-pip to archlinux's bootstrap. r=froydnj
pip3 is an optional dependency of python on archlinux. It needs to be installed explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D75785
2020-05-18 12:50:54 +00:00
Nicklas Boman
7c411a044b Bug 1637721 - openSUSEs bootstrap does not download the stackwalk toolchain r=firefox-build-system-reviewers,rstewart
In Bug1127565 bootstrap was given support for the openSUSE Linux distribution
Fetching the Stackwalk toolchain was not added unfortunately

his bug1636797 was hit during testing...
(also fixed some formatting "issues")

Differential Revision: https://phabricator.services.mozilla.com/D75189
2020-05-13 21:38:07 +00:00
Tarek Ziadé
080870795e Bug 1635136 - add a --push-to-try option r=aerickson
This patch is adding an option to push a perftest run in the CI.

It's based on :
- sparse profiles
- push_to_try
- options passed through try_task_config.json

Differential Revision: https://phabricator.services.mozilla.com/D74115
2020-05-12 21:19:48 +00:00
Mitchell Hentges
b8108d6064 Bug 1632429: Migrate |./mach try| to python 3; r=rstewart,ahal
|./mach try| subcommands are now compatible with both python 2 and 3.

Hand-tested with many combinations of subcommand and subcommand flags.

Updates tryselect unit tests to use Python 3.

Differential Revision: https://phabricator.services.mozilla.com/D73398
2020-05-06 22:17:14 +00:00
Nicklas Boman
a9633edb83 Bug 1127565 - bootstrap.py not implemented for openSUSE r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D74544
2020-05-10 00:51:03 +00:00
Geoff Brown
1c32970a45 Bug 1635834 - Install minidump_stackwalk in 'mach bootstrap'; r=nalexander
Install minidump_stackwalk as part of 'mach bootstrap' so that it is readily available
for generating crash reports, if desired.

Differential Revision: https://phabricator.services.mozilla.com/D74442
2020-05-08 19:09:43 +00:00
Mike Hommey
ece7e458a5 Bug 1635664 - Don't capture the output from sdkmanager in ensure_android_packages. r=rstewart
We always print the output when there is no error. In case of error, we
stick the output in the thrown exception, but nothing actually prints
that out. It's simpler to just let the subprocess print its own output
instead of capturing it, so that important error messages are not hidden
in the case of failure.

Differential Revision: https://phabricator.services.mozilla.com/D74004
2020-05-07 00:08:16 +00:00
Csoregi Natalia
d68addcbf2 Backed out changeset 44a166a4efdb (bug 1555255) for causing bustage of android-sdk-linux because the docs package doesn't exist anymore. CLOSED TREE 2020-05-06 07:12:30 +03:00
Nazım Can Altınova
418de925f0 Bug 1635381 - Change the -q flag of brew cask outdated into --quiet. r=rstewart,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D73837
2020-05-05 17:31:58 +00:00
Mitchell Hentges
1b7be4fbeb Bug 1624380: upgrades brew packages if they're out-of-date r=rstewart
`./mach bootstrap` prepares your environment for a build and installs missing "brew" packages".
However, if a package is installed but out-of-date, it was being ignored by the bootstrapping logic.

This change ensures that `brew update` is run, and updates any out-of-date packages that are requested.

Differential Revision: https://phabricator.services.mozilla.com/D72956
2020-04-29 21:17:25 +00:00
Gabriele Svelto
96edbb04b7 Bug 1631382 - Update the Gentoo |mach bootstrap| implementation r=glandium
This fixes multiple issues:
* It switches mobile builds from the Oracle JDK to OpenJDK and removes all the
  logic needed to download the former
* It only installs the build dependencies required for building Firefox and
  stores them in the world file

Differential Revision: https://phabricator.services.mozilla.com/D71539
2020-04-23 08:09:37 +00:00
Ricky Stewart
c9156704b1 Bug 1630317 - Add a warning if there is an attempt to mach bootstrap from an "old commit" r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D71076

--HG--
extra : moz-landing-system : lando
2020-04-15 20:58:58 +00:00
Sylvestre Ledru
0fcd204f92 Bug 1626098 - mach bootstrap - Only install python-pip on Ubuntu < 20.04 and Debian != "bullseye" r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D68900

--HG--
extra : moz-landing-system : lando
2020-04-07 16:40:49 +00:00
Aaron Klotz
cbad7b5792 Bug 1627354: Part 3 - Update mozboot and wpt SDK dependencies; r=jgraham,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D69633

--HG--
extra : moz-landing-system : lando
2020-04-04 03:15:56 +00:00
Bogdan Tara
6b0b300cc5 Backed out 3 changesets (bug 1620145) for lints failure and Android bustages CLOSED TREE
Backed out changeset eee5907efc81 (bug 1620145)
Backed out changeset 80acd7d7bc10 (bug 1620145)
Backed out changeset f07bb47f20b3 (bug 1620145)
2020-03-28 01:36:27 +02:00
Aaron Klotz
fa8d4a5ee5 Bug 1620145: Part 0 - Set compileSdkVersion to use ANDROID_TARGET_SDK; r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D68612

--HG--
extra : moz-landing-system : lando
2020-03-27 22:52:30 +00:00
byron jones
8559ac6776 Bug 1623544 - Install python3-pip on Debian during bootstrap; r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D68160

--HG--
extra : moz-landing-system : lando
2020-03-25 15:31:09 +00:00
Nicholas Nethercote
e7da41700a Bug 1624980 - Install fix-stacks with mach bootstrap on artifact builds. r=glandium
Because it's needed for DMD, which can be run on artifact builds.

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

--HG--
extra : moz-landing-system : lando
2020-03-26 00:49:38 +00:00
Ricky Stewart
da102cb24e Bug 1622529 - Don't install removed Python 2 packages on Ubuntu 20.04 r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D67405

--HG--
extra : moz-landing-system : lando
2020-03-19 17:10:53 +00:00
Sylvestre Ledru
70e97e578f Bug 1622405 - Remove ConEmu r=dmajor
Depends on D66829

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

--HG--
extra : moz-landing-system : lando
2020-03-13 21:15:53 +00:00
Sylvestre Ledru
59307d7c00 Bug 1622405 - Remove MSYS2 r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D66829

--HG--
extra : moz-landing-system : lando
2020-03-13 21:14:34 +00:00
Makoto Kato
070a000dd4 Bug 1620511 - Make ensure_mobile_android_packages Python3 compatible. r=firefox-build-system-reviewers,rstewart
Differential Revision: https://phabricator.services.mozilla.com/D65683

--HG--
extra : moz-landing-system : lando
2020-03-06 17:30:27 +00:00
Nicholas Nethercote
62a87c4bd1 Bug 1604095 - Install fix-stacks in mach bootstrap. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D64529

--HG--
extra : moz-landing-system : lando
2020-03-05 00:23:40 +00:00
Chris Manchester
b99c6dd1df Bug 1618316 - Update builders to rustc 1.41.1 r=dmajor
Differential Revision: https://phabricator.services.mozilla.com/D64636

--HG--
extra : moz-landing-system : lando
2020-02-27 19:47:45 +00:00
Mohammad H Sekhavat
ca91501545 Bug 1617984 - Fix mach bootstrap failure on Archlinux when PKGDEST is set; r=firefox-build-system-reviewers,rstewart
Makepkg has a commented config in /etc/makepkg.conf to set the path for packages to be built:
```
#PKGDEST=/home/packages
```
When you uncommit this line, packages will be built in the specified path, instead of cwd. This causes the bootstrap script to fail.

This commit will override the PKGDEST config so that package is built in cwd and could be located by the following lines of script.

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

--HG--
extra : moz-landing-system : lando
2020-02-26 16:33:24 +00:00
Emilio Cobos Álvarez
0181023bd5 Bug 1617095 - Fix mach bootstrap interactive mode with python 3. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63661

--HG--
extra : moz-landing-system : lando
2020-02-21 14:19:44 +00:00
Steve Fink
68147f294f Bug 1614518 - Allow using internal name for selecting application to bootstrap. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D62379

--HG--
extra : moz-landing-system : lando
2020-02-20 18:33:10 +00:00
Steve Fink
46dbe458f2 Bug 1614518 - Remove code only present for python 2.6 compatibility. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D62378

--HG--
extra : moz-landing-system : lando
2020-02-11 17:16:45 +00:00