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

364 Коммитов

Автор SHA1 Сообщение Дата
Kim Moir 4380b3f45b Bug 1510602 - update build documentation to mention artifact builds r=firefox-build-system-reviewers,gps
Differential Revision: https://phabricator.services.mozilla.com/D13435

--HG--
extra : moz-landing-system : lando
2018-12-05 19:49:38 +00:00
Andi-Bogdan Postelnicu e82882ae01 Bug 1511827 - Download clang based static-analysis during bootstrap after every other dependency is downloaded. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D13678

--HG--
extra : moz-landing-system : lando
2018-12-04 18:42:00 +00:00
Panos Astithas a825a2ade4 Bug 1508184 - Don't try to set the active python during bootstrap if not necessary r=gps
Differential Revision: https://phabricator.services.mozilla.com/D12237

--HG--
extra : moz-landing-system : lando
2018-11-30 00:25:48 +00:00
Andi-Bogdan Postelnicu ecc4f819bb Bug 1509296 - Download clang based static-analysis during bootstrap. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D12658

--HG--
extra : moz-landing-system : lando
2018-11-27 19:43:37 +00:00
Thomas Daede 9ae2c6e168 Bug 1501796 - Add nasm to bootstrap scripts. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D9852

--HG--
extra : moz-landing-system : lando
2018-11-09 05:27:54 +00:00
Panos Astithas b23feb0362 Bug 1506317 - Use clang-7.0 for bootstraping using macports r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D11548

--HG--
extra : moz-landing-system : lando
2018-11-13 05:01:37 +00:00
Nathan Froyd 9f42e70b61 Bug 1504031 - follow-up - require Rust 1.30.1 in bootstrap; r=me 2018-11-09 18:47:37 -05:00
Ted Mielczarek 8a92d6f72c bug 1483941 - prompt to enable build system telemetry in bootstrap. r=nalexander
This change adds a prompt to enable build system telemetry as part of
bootstrap. The prompt will only be shown if the build.telemetry config value
is not present, so users will not be prompted again if they have already
opted-in. However, if a user answers 'no' we don't save that value to
the config file because the default is to not send telemetry, so unless
they manually add `telemetry = false` to their config file they will be
prompted again the next time they run bootstrap.

The config value is always written to `~/.mozbuild/machrc` where we store
other Firefox build-related state. A standalone function is used to write
the config file so that we can do so even when running from bootstrap.py
outside of the context of a mach command.

As part of this change a `prompt_yesno` method is added to `BaseBootstrapper`.

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

--HG--
extra : moz-landing-system : lando
2018-11-06 14:19:24 +00:00
Gurzau Raul 26c6e57600 Backed out changeset dc7924e3ea6b (bug 1483941) for causing bug 1504449. a=backout 2018-11-03 20:41:00 +02:00
Emilio Cobos Álvarez b21276e549 Bug 1482923 - cross-compile cbindgen on Mac OS. r=froydnj
I got nerdsniped on the weekend.

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

--HG--
extra : moz-landing-system : lando
2018-11-01 13:35:44 +00:00
Connor Sheehan c51f546bd5 Bug 1503817: add missing checkout directory argument to `configure_git` call r=glob
In bug 1481425 I added an argument to `configure_git` for
the root directory of the current Firefox checkout, so
we could check for and remove the MozReview commit message
hook. I overlooked one other call to that function in
`bootstrap.py`, which is now failing due to too few
arguments. This commit adds the missing parameter.

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

--HG--
extra : moz-landing-system : lando
2018-11-01 13:54:50 +00:00
Ted Mielczarek 01a1ddddb0 bug 1483941 - prompt to enable build system telemetry in bootstrap. r=nalexander
This change adds a prompt to enable build system telemetry as part of
bootstrap. The prompt will only be shown if the build.telemetry config value
is not present, so users will not be prompted again if they have already
opted-in. However, if a user answers 'no' we don't save that value to
the config file because the default is to not send telemetry, so unless
they manually add `telemetry = false` to their config file they will be
prompted again the next time they run bootstrap.

The config value is always written to `~/.mozbuild/machrc` where we store
other Firefox build-related state. A standalone function is used to write
the config file so that we can do so even when running from bootstrap.py
outside of the context of a mach command.

As part of this change a `prompt_yesno` method is added to `BaseBootstrapper`.

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

--HG--
extra : moz-landing-system : lando
2018-10-31 20:03:53 +00:00
Emilio Cobos Álvarez b85791110f Bug 1503401 - Update cbindgen due to breaking change. r=boris
https://github.com/eqrion/cbindgen/pull/233 changed the way one of the options
we use work.

I think the new behavior is better, but we should do this sooner rather than
later, and fix broken builds.

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

--HG--
extra : moz-landing-system : lando
2018-10-30 21:25:17 +00:00
Connor Sheehan 97ed5fb15c Bug 1481425: remove git-mozreview commit message hook during `mach vcs-setup` r=mcote,gps
During the MozReview days, users of git-cinnabar would install a
commit message hook to include `MozReview-Commit-Id` in their
commit messages. MozReview has seen been retired, yet there
are still a few users with the hook in their configs who now
have both a MozReview commit ID and a Phabricator Differential
link in their commits. This commit makes `mach vcs-setup` (and
`mach bootstrap`, since the former is called during the latter)
remove the commit hook on git checkouts of a Firefox repo. We
check the `commit-msg` hook file for "mozreview" anywhere in
the hook and remove if it is found.

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

--HG--
extra : moz-landing-system : lando
2018-10-30 17:52:52 +00:00
Emilio Cobos Álvarez f00ba0c6e2 Bug 1496619 - Update min cbindgen version in osx.py. a=emilio
I mentioned it on the review but it slipped through it seems.

--HG--
extra : source : cd47bdbd4efa6bda0dc86c3eec25d1ea92e2518a
2018-10-27 13:07:10 +02:00
Chris Manchester 2afea4f01b Bug 1500269 - Upgrade to rustc 1.29.2 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D9170

--HG--
extra : moz-landing-system : lando
2018-10-22 13:12:43 +00:00
Tooru Fujisawa 0c58650a99 Bug 1494287 - followup: Fix undefined variable in fallback path. r=me 2018-10-12 08:24:04 +09:00
Tooru Fujisawa c5cbf8d38f Bug 1494287 - Check existing cbindgen version and update if necessary. r=ted 2018-10-12 07:59:22 +09:00
Jan Beich 9bfc52ba08 Bug 1496708 - Install node as system package. f=gaston r=Build r=froydnj
Mozilla binaries (including toolchain artifacts) aren't available on BSDs.
2018-10-05 05:37:00 +03:00
Jan Beich 4737c23ba2 Bug 1496708 - Install cbindgen as system package. f=gaston r=Build r=froydnj
cargo build is no longer called, so bootstrap will be faster.
All dependencies (including cbindgen) are usually up-to-date on BSDs
because there's no fallback to Mozilla binaries.
2018-10-05 05:37:00 +03:00
Jan Beich c6dd37c2bc Bug 1496733 - Explicitly install libXt on FreeBSD. r=Build r=froydnj 2018-10-05 07:02:00 +03:00
Chris Manchester de165d4dba Bug 1490145 - Download rustc 1.29 in mach bootstrap. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D5825

--HG--
extra : moz-landing-system : lando
2018-09-14 02:21:26 +00:00
Steve Armand 1812539078 Bug 1490167 - MacPorts in bootstrap.py is out of date r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D5494

--HG--
extra : moz-landing-system : lando
2018-09-11 19:36:09 +00:00
Gabriele Svelto d5ab0ca667 Bug 1490355 - Teach |mach bootstrap| to automatically install the latest version of the Oracle JDK r=nalexander
This patch makes the bootstrap code "ask" Gentoo's package manager for
human-readable information on how to get the latest JDK, then parses it and
locates the tarball URL on its own. The whole procedure is now fully automatic
(until the package output or Oracle web pages change).

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

--HG--
extra : moz-landing-system : lando
2018-09-12 12:08:51 +00:00
Bas Schouten efa3734e21 Bug 1485485 - Followup: Fix which function definition in derrived classes. r=froydnj 2018-08-28 18:24:50 +02:00
Nathan Froyd 5ba4a13346 Bug 1485485 - make bootstrap accept rustc/cargo in known-good locations; r=chmanchester
moz.configure looks for rustc/cargo on PATH and in ~/.cargo/bin.
Bootstrap only looks on PATH and not in ~/.cargo/bin, though it is smart
enough to complain if rustc/cargo can't be found on PATH and you have
them in ~/.cargo/bin.  Bootstrap should look in both places by default,
and be content if it finds them wherever they are, so long as
moz.configure can find them.
2018-08-28 09:31:48 -04:00
Panos Astithas 312fdae0eb Bug 1484243 - Detect vcs automatically in |mach vcs-setup|. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D3942

--HG--
extra : moz-landing-system : lando
2018-08-22 17:26:58 +00:00
Emilio Cobos Álvarez fd187833dd Bug 1484485: Create state dir and install node / stylo stuff in bootstrap's non-interactive mode. r=ted
The state directory is in $HOME by default, so should be fine to just create it
if we get --no-interactive I think.

Differential Revision: https://phabricator.services.mozilla.com/D3838
2018-08-22 11:17:51 +02:00
Panos Astithas 6a01b19a19 Bug 1257478 - Turn mercurial-setup into vcs-setup and add git support. r=gps
MozReview-Commit-ID: AD6gLqFm8Nn

--HG--
extra : rebase_source : 0214cdc6f6acaaf0621e25f30cb0a2c81849063e
2018-07-04 21:48:42 +03:00
Ting-Yu Lin 1199851701 Bug 1476147 - Use path.isfile() instead of patch.exists() in which(). r=glandium
This excludes directories, and returns true only if it's an executable file.

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

--HG--
extra : moz-landing-system : lando
2018-08-15 06:15:57 +00:00
Emilio Cobos Álvarez 818db7603f Bug 1478813 - Add cbindgen toolchain job and install via bootstrap. r=ted
And require it for taskcluster build already, because it doesn't harm and lets
me put all the yml changes in the same commit.

I gave up cross-compiling for OSX after a few tries and after realizing it
wasn't enough with cctools and such, but that I also needed the Mac SDK, for
which I don't have permission...

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

--HG--
extra : moz-landing-system : lando
2018-08-13 10:58:22 +00:00
Dan Mosedale b7242c9e28 Bug 1481693 - Implement no_system_changes for moz_bootstrap, r=gps
MozReview-Commit-ID: CnS94verabV
2018-08-10 19:58:03 -07:00
Dan Mosedale ee200cd836 Bug 1481693 - Factor out install_private_packages from moz_bootstrap, r=gps
MozReview-Commit-ID: It9IumV141L
2018-08-10 19:58:03 -07:00
Dan Mosedale 98be0c2bfe Bug 1481693 - Factor out try_to_create_state_dir from mach_bootstrap, r=gps
MozReview-Commit-ID: H6DhV56n3Cc
2018-08-10 19:58:02 -07:00
Dan Mosedale 58963c546b Bug 1481693 - Add --no-system-changes argument to 'mach bootstrap', r=gps
MozReview-Commit-ID: AMYM3rAPVcl
2018-08-10 19:58:01 -07:00
Dan Mosedale e2e43a5c7a Bug 1481693 - Teach mach bootstrap to install NodeJS from toolchain artifact, r=gps
MozReview-Commit-ID: DBUCcGXxM0a
2018-08-10 19:58:00 -07:00
Mike Hommey f4f54e5aeb Bug 1482330 - Upgrade to Android NDK r17b and API level 16 (JB). r=snorp
We're currently using NDK r15c, which is rather old, and happens to come
with a buggy gold linker. Let's use a more recent NDK, with a fixed
linker.

Unfortunately, we're currently at NDK API level 9, which the newer NDK
doesn't provide for x86 anymore. But that corresponds to Gingerbread
(2.3), which we've long stopped supporting. On the SDK side, we already
dropped support of versions before Jelly Bean, so we can do the same on
the NDK side. That corresponds to API level 16. So let's just use that
as a baseline.

Another change in the newer NDK is that the target-name changed from
i386-linux-android to i686-linux-android, so adjust for that in the
android x86 mozconfigs.
2018-08-11 09:47:41 +09:00
Bogdan Tara 347da2ba78 Backed out changeset 003838e8d110 (bug 1482330) for Adnroid build bustages on mozalloc_abort.cpp CLOSED TREE 2018-08-11 03:22:58 +03:00
Mike Hommey ee95699e6b Bug 1482330 - Upgrade to Android NDK r17b and API level 16 (JB). r=snorp
We're currently using NDK r15c, which is rather old, and happens to come
with a buggy gold linker. Let's use a more recent NDK, with a fixed
linker.

Unfortunately, we're currently at NDK API level 9, which the newer NDK
doesn't provide for x86 anymore. But that corresponds to Gingerbread
(2.3), which we've long stopped supporting. On the SDK side, we already
dropped support of versions before Jelly Bean, so we can do the same on
the NDK side. That corresponds to API level 16. So let's just use that
as a baseline.

Another change in the newer NDK is that the target-name changed from
i386-linux-android to i686-linux-android, so adjust for that in the
android x86 mozconfigs.
2018-08-11 06:50:21 +09:00
Chris Manchester 1f0dff8087 Bug 1450077 - Download rust 1.28 in mach bootstrap. r=froydnj,mshal
MozReview-Commit-ID: IBdFRyWlQTW

--HG--
extra : rebase_source : 25a75a65c70004e8849c108ba6163f421f36945c
2018-08-07 13:21:29 -07:00
Dorel Luca e549807ade Merge mozilla-central to mozilla-inbound 2018-07-27 13:48:50 +03:00
Andreas Tolfsen c7e21b65bc Bug 1476263 - Suggest to create mozconfig if it does not exist. r=gps
A frequent question when mentoring new contributors is what "your
mozconfig file" is.  By suggesting to create the file if it does
not exist, we can hopefully alleviate some new contributor frustration.

This change does unfortunately not take into account that the
mozconfig file can be named .mozconfig or even be in a designated
location defined by the MOZCONFIG environment variable, but it
seems reasonable to assume that developers who already know about
those alternatives will know which file to edit, and that what we
should optimise for during the bootstrapping process is to get new
contributors up and running quickly.
2018-07-27 11:15:16 +01:00
Aniket Kadam 3cad808ba6 Bug 1460355 - Fix: Change how the packages are sent to the sdkmanager to install, avoid missing argument. r=nalexander
The argument --package_file was removed in the latest sdkmanager by Google's Android. But the docs for it say
packages can also be sent by putting them in quotes and calling the sdk manager with them as individual args.
So now instead of sending the file directly with the --package_file argument, the package names are read from
the file and the sdk manager is called with them as individual args.
Historically this has been thought of as a bug that happens with the wrong version of the JDK, but this can be
reproduced with just java 1.8.0_181 and the most up to date version of sdkmanager currently 26.1.1
Important note, the mach bootstrap command downloads an older version of the sdk and this bug is not present in
the older version.
Since the way of updating packages I'm proposiing to use is backwards compatible, there shouldn't be any problem
in any version of the sdkamanger.
This is a simpler fix than trying the --package_file argument, particularly because it would involve capturing
output (to detect this particular bug) that's also supposed to be shown to the user because this also happens
when the user is supposed to be interacting with the install.

MozReview-Commit-ID: L7VhCVKJNIf
***
Formatting changes to satisfy the linter.

--HG--
extra : rebase_source : f67d2cb85a4136eb8ad5c3053f5436a8870ab528
2018-07-24 20:06:21 +05:30
Tudor-Gabriel Vîjială 7034598959 Bug 1476165 - Part 2: Update Android Gradle plugin to version 3.1.0. r=nalexander,snorp
MozReview-Commit-ID: LR1OWncvuwt

--HG--
extra : rebase_source : 6de8f8927e801789d559a7c361c7b434ae1f74c4
2018-07-17 13:20:19 +01:00
Tooru Fujisawa 457a074699 Bug 1475443 - Properly detect Xcode licence agreement issue in bootstrap.py; r=gps
--HG--
extra : amend_source : 7287bcedc11089e08c96318913c6f5a5e6b003f7
2018-07-13 12:32:45 +09:00
Chris Manchester 04c4288d0d Bug 1472857 - Require rustc 1.27 to build. r=glandium
MozReview-Commit-ID: 5WsP4EQxSil

--HG--
extra : rebase_source : e4506f9c4dfcccdf691fb944270e1a508edc02d5
2018-07-03 15:27:20 -07:00
Rok Garbas 2a544047c6 Bug 1471541 - switch to new tooltool url, r=jlund
--HG--
extra : rebase_source : 85cd6f1e78ec293d5c9fba8d41b31b5ca8bc521e
2018-07-03 15:35:58 -07:00
Mike Hommey 993aa6d00f Bug 1447116 - Require rust 1.26. r=froydnj
We're well overdue for an upgrade of the rust compiler requirements.
Now that we're building with 1.28 (albeit a beta, due to be bumped when
it's released), we can bump the requirement away from 1.24 which is now
old. 1.27 is too new, though, so settle for the older 1.26.

--HG--
extra : rebase_source : a17aa496bf3d4af4d1349d69a637c686c6817d0f
2018-06-26 18:05:23 +09:00
Gregory Szorc ff2bb5e8f2 Bug 1469441 - Support fetching bootstrap files from an arbitrary revision; r=glandium
By making the archive URL dynamic, we can fetch an old version of the
bootstrap files. This will make it easier to test the bootstrapper in
CI.

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

--HG--
extra : rebase_source : 9ba582cf3c138dba433e2bb354650f14b3f16aa7
extra : amend_source : 8a515bb755187e7f0d87b90a25a99f3803ea9e0f
extra : source : 1dcd43dd2a7b04e2bb714349033a456ea5158f3e
2018-06-27 12:15:44 -07:00
Gregory Szorc f0815b582e Bug 1469441 - Use working yasm rpm URLs; r=glandium
The previously listed server wasn't working. This has likely been
broken for years (I initially authored this commit in November 2016).

Differential Revision: https://phabricator.services.mozilla.com/D1697
2018-06-26 08:11:51 +00:00