Commit Graph

4641 Commits

Author SHA1 Message Date
Geoff Brown
7e2ceb9259 Bug 1527011 - Support win64-aarch64 artifact builds; r=nalexander 2019-02-12 18:03:38 -07:00
Andi-Bogdan Postelnicu
843d0d6fcf Bug 1527286 - For 'mach clang-format' don't pass files that we don't exist on the disk. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D19481

--HG--
extra : moz-landing-system : lando
2019-02-12 12:54:22 +00:00
Andi-Bogdan Postelnicu
1a6a9cbcf1 Bug 1520920 - do not 'mach configure' when downloading clang-tidy artifact. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D16969

--HG--
extra : moz-landing-system : lando
2019-02-12 10:44:17 +00:00
Dorel Luca
7d3d8441a9 Backed out changeset d6bda0108d61 (bug 1520920) as requested by the dev 2019-02-12 12:38:48 +02:00
Andi-Bogdan Postelnicu
72161a32a3 Bug 1520920 - do not 'mach configure' when downloading clang-tidy artifact. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D16969

--HG--
extra : moz-landing-system : lando
2019-02-12 10:27:19 +00:00
Jeff Gilbert
721d8c2e22 Bug 1526509 - Remove lib32-libstdc++5 requirement from mozboot/archlinux.py. r=glandium
lib32-libstdc++5 moved from multilib to AUR, but it seems like we don't
need this anymore anyway.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 02:49:16 +00:00
Chris Manchester
7b468805c5 Bug 1525733 - Require rust 1.32 to build. r=firefox-build-system-reviewers,ted
Differential Revision: https://phabricator.services.mozilla.com/D19244

--HG--
extra : moz-landing-system : lando
2019-02-11 19:43:18 +00:00
Mike Hommey
e3b77d6ed3 Bug 1526062 - Add a configure lint for undefined variables. r=nalexander
There are cases that can be easily detected where an undefined variable
is used, and such mistakes seem to happen more often than they should,
as all the errors fixed in the previous patches (that this new lint
caught).

Depends on D19112

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

--HG--
extra : moz-landing-system : lando
2019-02-08 20:38:05 +00:00
Mike Hommey
83b2adb600 Bug 1526062 - Improve error reporting by the configure lint. r=nalexander
Currently, running the configure lint will raise errors with little
context, if any, which can make finding the cause of the errors tedious.

So instead of raising exceptions directly, we use a hack to make the
exception appear as if they had been thrown at the code location an
issue is reported for, which makes the test harness print more useful
context.

With more context, printed out, some exception messages can be made
lighter.

The added _raise_from method does more than is necessary here, but will
be fully used in a new check shortly.

Depends on D19111

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

--HG--
extra : moz-landing-system : lando
2019-02-08 22:47:02 +00:00
Mike Hommey
845718811d Bug 1526062 - Add AssertionError to the python configure sandbox builtins. r=nalexander
Using the `assert` keyword actually generates bytecode that uses the
`AssertionError` class under the hood. Ideally, we should probably not
use asserts in python configure, but there are currently so many that
it's easier to allow it, until a better strategy is decided upon.

Depends on D19110

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

--HG--
extra : moz-landing-system : lando
2019-02-08 16:57:55 +00:00
Mike Hommey
39bdbdd823 Bug 1525999 - Default to arm instead of armv7a for android builds. r=nalexander
That makes target.toolchain match what the NDK provides.

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

--HG--
extra : moz-landing-system : lando
2019-02-08 22:37:25 +00:00
Yuan Cheng
7be13dade4 Bug 1519923 - Migrate about:rights to Fluent, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D17731

--HG--
extra : moz-landing-system : lando
2019-02-08 17:36:15 +00:00
arthur.iakab
27c92bb1ae Backed out changeset 51697f8232c5 (bug 1525999) for causing multiple Android failures on build/target.raptor.tests.tar.gz CLOSED TREES 2019-02-08 19:48:55 +02:00
Mike Hommey
f36d444aa0 Bug 1525999 - Default to arm instead of armv7a for android builds. r=nalexander
That makes target.toolchain match what the NDK provides.

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

--HG--
extra : moz-landing-system : lando
2019-02-08 16:45:55 +00:00
Mike Hommey
33a69b7eea Bug 1524467 - Use -m32/-m64 in more cases. r=froydnj
In upcoming changes, we're going to use the normal compiler flags for
bindgen instead of having a separate logic for essentially the same
flags (and there's not much reason not to use the same flags after all).

One hiccup, though is that for some reason, --target=i686-linux-gnu
doesn't work with bindgen while it works with clang in the same setup.
But -m32 does.

Considering -m32 and -m64 are standard flags and that we're using them
in many cases, it doesn't hurt to use them instead of --target with
clang.

While we're doing that, we might as well refactor a little to avoid the
multiple branches handling the use of -m32/-m64, and fix the theoretical
compile-x86_64-with-x86-clang-cl case, as well as the weird check for
aarch64.

And because only two cases actually require -Xclang, only one of which
requires a condition, and the control flow is not too complex to avoid
flag duplication, we just remove the append_flag function; it was too
confusing, with all the cases we skipped it when -Xclang was not wanted.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 17:22:58 +00:00
Tooru Fujisawa
b4ec772dc0 Bug 1525688 - Lazily import mozbuild.base in mozboot/util.py. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D18986

--HG--
extra : moz-landing-system : lando
2019-02-07 16:10:12 +00:00
Nabil Lamrabet
68cbcb9990 Bug 1518175 - Update bootstrap.py for ElementaryOS. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D18701

--HG--
extra : moz-landing-system : lando
2019-02-06 17:18:04 +00:00
Oana Pop Rus
e00ea598e5 Merge inbound to mozilla-central. a=merge 2019-02-06 11:53:48 +02:00
Cosmin Sabou
dade738a6a Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-06 01:07:08 +02:00
Cosmin Sabou
8bd3dcb455 Merge mozilla-inbound to mozilla-central. a=merge 2019-02-05 23:58:20 +02:00
Razvan Maries
f86459d5dc Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-02-05 18:59:13 +02:00
Paolo Amadini
289bde6908 Bug 1523907 - Fix building the new "about:config" page on release channels. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D18082

--HG--
extra : rebase_source : 7094aa1a5dbfc33d7b77a387f12eb14cff66d9e9
2019-02-02 17:49:41 +00:00
Daniel Varga
69ace4b45f Backed out 3 changesets (bug 1525069) for linting failure at /builds/worker/checkouts/gecko/python/mozboot/mozboot/mozillabuild.p on a CLOSED TREE
Backed out changeset 1a41624ff365 (bug 1525069)
Backed out changeset ef7b4d60481f (bug 1525069)
Backed out changeset 898be859c1a4 (bug 1525069)
2019-02-04 23:50:08 +02:00
Nathan Froyd
94eb92d082 Bug 1525069 - part 3 - install 32-bit node on aarch64 devices; r=nalexander
One less paper cut for frontend developers.
2019-02-04 16:32:17 -05:00
Nathan Froyd
006caee023 Bug 1525069 - part 2 - add a 32-bit node variable for bootstrapping; r=nalexander
We don't use this yet, but it's easy enough to get out of the way.
2019-02-04 16:32:17 -05:00
Nathan Froyd
553faffae5 Bug 1525041 - avoid downloading rust packages when bootstrapping for artifact builds; r=Gijs
We do similar things for bindgen/clang.
2019-02-04 12:47:33 -05:00
Justin Wood
bf9836a1bb Bug 1524444 - Respect -n for linting in py3/py2 and better support it in other linters. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D6847

--HG--
extra : moz-landing-system : lando
2019-02-01 20:39:05 +00:00
Brian
8bc1981dda Convert resetProfile.dtd to Fluent (Bug 1517307) r=jaws,flod
Convert resetProfile.dtd to resetProfile.ftl. Modify dependencies for resetProfile.xul, safeMode.xul, aboutSupport.xhtml.

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

--HG--
extra : moz-landing-system : lando
2019-02-03 21:33:23 +00:00
Coroiu Cristina
667401357b Merge mozilla-central to autoland a=merge on a CLOSED TREE 2019-02-04 23:47:17 +02:00
Andrew Halberstadt
83e75a8676 Bug 1483228 - [mozboot] Add ability to get a srcdir specific state dir r=nalexander
Sometimes we want to store state that only applies to a particular srcdir, but
there isn't a standard directory where this lives. Let's add an argument to
'get_state_dir()' to provide an "official" place.

The new API to get the local state dir is 'get_state_dir(srcdir=True)'. Like
the global state dir, this directory is not guaranteed to exist. A reference to
this value can also be obtained via 'self._mach_context.local_state_dir' from
within a mach command (in this case it will be created automatically if it
doesn't exist).

Note: we should probably just make sure both exist at mach startup, but it felt
outside the scope of this change.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 21:07:25 +00:00
Andrew Halberstadt
8bc7850637 Bug 1483228 - [mozboot] Simplify get_state_dir()'s return value r=nalexander
mozboot.util.get_state_dir() returns a tuple of (<path>, <bool). The bool
denotes whether or not the state dir came from an environment variable.

But this value is only used in a single place, and is very easy to test for
anyway. It's not worth the added complexity it imposes on all other consumers
of this function. Let's just make this function return the path.

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

--HG--
extra : moz-landing-system : lando
2019-02-04 20:52:31 +00:00
Mike Hommey
6c620a55e7 Bug 1523341 - Allow to only pass the CPU to --target and get the right thing for Fennec builds. r=nalexander
Also use armv7a as the default when no target is given at all.

Also change bootstrap to create a simpler mozconfig. The downside is
that the resulting mozconfig would not work when building older
revisions.

Add unit tests for this as well as the simplications added in bug
1523341.

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

--HG--
extra : moz-landing-system : lando
2019-01-31 18:08:44 +00:00
arthur.iakab
c152ccec1d Backed out 4 changesets (bug 1508381) for multiple Windows build bustages CLOSED TREE
Backed out changeset f01cec6f712e (bug 1508381)
Backed out changeset ba69e59924de (bug 1508381)
Backed out changeset 97fe4e5a665e (bug 1508381)
Backed out changeset 0c3065c12bef (bug 1508381)
2019-01-31 23:14:11 +02:00
Dustin J. Mitchell
a694ddb320 Bug 1508381 - update buglist_creator to use new version of tc client r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D18117

--HG--
extra : moz-landing-system : lando
2019-01-31 20:24:04 +00:00
Tom Prince
dee8c2fbb2 Bug 1517177: Fix hash verification of downloaded toolchains; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D15961

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:26 +00:00
Gurzau Raul
7555c5cdea Merge inbound to mozilla-central. a=merge 2019-01-30 19:03:12 +02:00
Tom Ritter
55eb3434be Bug 1523003 - Remove the force-ms-compatibility for clang-cl r=glandium 2019-01-27 17:19:57 -06:00
Avery Berninger
c4951880ce Bug 1517519 - Migrated aboutTabCrashed dtd files to ftl files with migration script, r=jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D16789

--HG--
extra : moz-landing-system : lando
2019-01-30 14:12:39 +00:00
shindli
011ea038cb Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-29 23:54:31 +02:00
shindli
d5c5369355 Merge inbound to mozilla-central. a=merge 2019-01-29 23:37:33 +02:00
Emilio Cobos Álvarez
f85d524658 Bug 1523686 - Support giving a commit or commit range to mach clang-format. r=Ehsan
I always forget to run clang-format before-hand. This allows me to run it on a
particular commit of my tree where the formatting doesn't match the canonical
one.

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

--HG--
extra : moz-landing-system : lando
2019-01-29 17:33:04 +00:00
Tom Ritter
0a85461461 Bug 1376621 - Search for networking symbols in rust code and fail if they are found. r=glandium
--HG--
extra : amend_source : dfe442d1be95c5f37c959b38c12701d8d14432c1
2019-01-25 12:19:41 -06:00
Cosmin Sabou
599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
Sebastian Hengst
9ece29fd9b Merge mozilla-central to autoland. CLOSED TREE 2019-01-29 12:59:48 +02:00
Mike Hommey
95cdfbcd30 Bug 1523204 - Automatically add WIN_DIA_SDK_BIN_DIR to PATH when running dump_syms. r=chmanchester
We can't run dump_syms without the DIA SDK binary directory in $PATH
because dump_syms requires the DIA dll from there.

Obviously, the corresponding test can't run if the DIA SDK binary
directory is not known (rather than when the dia2.h header is not found,
since the build system currently relies on WIN_DIA_SDK_BIN_DIR being
given manually).

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

--HG--
extra : moz-landing-system : lando
2019-01-29 07:38:12 +00:00
Jared Wein
480921246a Bug 1517508 - Migrate aboutRobots.dtd to Fluent. r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D15661

--HG--
extra : moz-landing-system : lando
2019-01-28 22:31:09 +00:00
Mike Hommey
5f875e708a Bug 1522788 - Harmonize config.guess handling between mach and configure. r=chmanchester
In fact, "simply" use whatever python configure does to find a shell to
execute config.guess and config.sub, and get both the mozconfig content
and the real, canonicalized target alias. This has the side effect of
making builds with --target=$cpu use a complete obj-$cpu-$os default
objdir instead of obj-$cpu. This will also allow to change the
host-guessing logic without having to duplicate code.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 22:14:23 +00:00
Jan Henning
879d1a037c Bug 1503455 - Part 4: Compile with SDK28. r=nalexander,snorp
android.test.* is no longer part of the main framework, so as per
https://developer.android.com/training/testing/set-up-project,
- we must no longer declare them as a *required* dependency in our manifests
- we must explicitly include a dependency on them in our build config

This will temporarily break running tests depending on android.test.* (i.e.
mainly Robocop) on devices using P or newer until we also start targeting P as
well.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 18:32:11 +00:00
Mike Hommey
38189d89a7 Bug 1523146 - Remove checks for MSVC < 2017. r=dmajor
We reject MSVC compilers < 2017 already, there's no point checking for
smaller versions after that.

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

--HG--
extra : moz-landing-system : lando
2019-01-28 03:30:03 +00:00
Cosmin Sabou
ee75c9f2c6 Backed out 6 changesets (bug 1516228) for causing bug 1523056. a=backout
Backed out changeset 24ebb52d21fa (bug 1516228)
Backed out changeset 53d93ee3ad84 (bug 1516228)
Backed out changeset 4f53ede33517 (bug 1516228)
Backed out changeset 2e6bec87c9f3 (bug 1516228)
Backed out changeset 09ee05a4cc30 (bug 1516228)
Backed out changeset 8456feb780f7 (bug 1516228)
2019-01-26 21:12:33 +02:00