Commit Graph
2412 Commits
Author SHA1 Message Date
Tom Ritter 0fc2330f17 Bug 1392643 Turn on c++14 for MinGW globally r=bagder,froydnj
Technically this turns on gnu++14. I encountered a few errors when using c++14:
1) _USE_MATH_DEFINES needed to be defined for MinGW
2) MinGW did not define _finite under c++14
3) MinGW's float.h did not define Microsoft specific float functions under c++14

All of these were because c++14 defines _STRICT_ANSI_ which MinGW obeys and
avoids defining certain functions. The first two could be patched around, but
the third was a blocker, so we switched to gnu++14

MozReview-Commit-ID: 6Y7gEQgApYp
2017-09-22 12:26:42 -05:00
Philip Jenvey 84ba5df95a Bug 1401718: adapt to xcode's new non-ascii license error r=gps
avoid unicode conversion (since unicode_literals is in use)

MozReview-Commit-ID: AfgzAWsjRp
2017-09-22 14:58:28 -07:00
Dustin J. Mitchell 8ff3f5ff2e Bug 1383880: handle keyError from find_task_id; r=gps
MozReview-Commit-ID: F3mVgKcqZwA
2017-09-21 12:02:44 +00:00
Dustin J. Mitchell a1f463e914 Bug 1383880: --from-build is a dev tool, not for automation; r=glandium
MozReview-Commit-ID: EGs3Zy012JA
2017-09-15 12:26:14 +00:00
Dustin J. Mitchell d76c4ac56b Bug 1383880: adjust mach artifact toolchain --from-build; r=glandium
MozReview-Commit-ID: AhGS54jB8Wl
2017-09-19 12:55:37 +00:00
Dustin J. Mitchell 4e4bff2c8a Bug 1383880: add support for SCHEDULES in moz.build; r=gps
MozReview-Commit-ID: 2pfLr0VTy2J
2017-07-31 20:44:56 +00:00
Phil Ringnalda b76b48b887 Backed out 12 changesets (bug 1383880) for decision task bustage
CLOSED TREE

Backed out changeset fd3615e7e0a3 (bug 1383880)
Backed out changeset 8cceb6a82bfb (bug 1383880)
Backed out changeset 571a6c9054a5 (bug 1383880)
Backed out changeset ec2b8ba5a949 (bug 1383880)
Backed out changeset 8e5847d9acda (bug 1383880)
Backed out changeset b354fdf6e233 (bug 1383880)
Backed out changeset ebdd6ccbcfca (bug 1383880)
Backed out changeset ebcc9d20981a (bug 1383880)
Backed out changeset 97eedc84d6e8 (bug 1383880)
Backed out changeset a3116da52b4e (bug 1383880)
Backed out changeset b3eb0c939720 (bug 1383880)
Backed out changeset 7c07cb798530 (bug 1383880)

MozReview-Commit-ID: EPDuQHr7w2y
2017-09-20 19:57:39 -07:00
Dustin J. Mitchell 11aa938e1d Bug 1383880: --from-build is a dev tool, not for automation; r=glandium
MozReview-Commit-ID: EGs3Zy012JA
2017-09-15 12:26:14 +00:00
Dustin J. Mitchell f3b34308ef Bug 1383880: adjust mach artifact toolchain --from-build; r=glandium
MozReview-Commit-ID: AhGS54jB8Wl
2017-09-19 12:55:37 +00:00
Dustin J. Mitchell 4df44dcc2c Bug 1383880: add support for SCHEDULES in moz.build; r=gps
MozReview-Commit-ID: 2pfLr0VTy2J
2017-07-31 20:44:56 +00:00
Chris Manchester dbecb1e573 Bug 1398897 - Move os includes to computed flags. r=glandium
MozReview-Commit-ID: Ef1wu5fQo7M
2017-09-20 12:43:24 -07:00
Chris Manchester 1a610ec778 Bug 1398897 - Move includes associated with CPP_UNIT_TESTS to the CppUnitTests template. r=glandium
MozReview-Commit-ID: DhjnzhAjoyy
2017-09-20 12:43:24 -07:00
Chris Manchester d6086e1e47 Bug 1398897 - Move breakpad include munging to moz.build r=glandium
Unfortunately this also needs to be kept in Makefile.in to handle
other consumers of INCLUDES while we transition them.

MozReview-Commit-ID: 9OYlu6Jv1XZ
2017-09-20 12:43:24 -07:00
Chris Manchester b6b63101f6 Bug 1398897 - Move includes to computed flags. r=glandium
MozReview-Commit-ID: Ec0wZfoV63B
2017-09-20 12:43:23 -07:00
Chris Manchester 6d38dc675e Bug 1398897 - Move defines to computed compile flags. r=glandium
MozReview-Commit-ID: CgQv79dYj7Y
2017-05-01 18:13:48 -07:00
Chris Manchester 30615a75d1 Bug 1398897 - Do not emit compile flags for directories only containing rust libraries. r=glandium
MozReview-Commit-ID: 94PFyi5VQux
2017-09-20 12:43:14 -07:00
Andi-Bogdan Postelnicu 4cd89a7421 Bug 1328454 - Run static analysis based on clang-tidy from mach. r=glandium
MozReview-Commit-ID: 7H1HvYE9umf
2017-05-04 14:41:34 +03:00
Botond Ballo 696c2dee09 Bug 1398966 - Suggest checking JAVA_HOME if javac is out of date. r=nalexander
MozReview-Commit-ID: FJDrLsTxwIr
2017-09-11 19:06:26 -04:00
Sebastian Hengst 114eb8db4c merge mozilla-central to autoland. r=merge a=merge 2017-09-13 11:30:55 +02:00
Andi-Bogdan Postelnicu c7712b5b52 Bug 1379961 - Add platform and architecture name to MozbuildObject. r=gps
MozReview-Commit-ID: 7F0oFEkTAsk
2017-09-05 16:10:09 +03:00
Kris Maglione 24ea921958 Bug 1371065: Follow-up: Fix emitter sandbox validation bustage. r=me CLOSED TREE
MozReview-Commit-ID: 8XK9HuAgtD0
2017-09-12 12:42:11 -07:00
Kris Maglione 051a41c813 Bug 1371065: Part 1 - Remove external references to the add-on SDK. r=Mossop,glandium
MozReview-Commit-ID: D5KyHcg8Ujk
2017-09-12 11:54:47 -07:00
Chris Manchester 56f581e3c0 Bug 1386876 - Do not provide initial values for COMPILE_FLAGS when invoking within a template. r=glandium
MozReview-Commit-ID: 9JNEThJvva6
2017-09-11 11:37:13 -07:00
Chris Manchester d68e6d052c Bug 1386876 - Replace all uses of NO_VISIBILITY_FLAGS with a template and remove NO_VISIBILITY_FLAGS. r=glandium
MozReview-Commit-ID: 194U1WMCAM0
2017-05-01 18:12:35 -07:00
Chris Manchester deaaa50b67 Bug 1386876 - Allow dictionary variables to be passed to gyp_dir_attrs. r=glandium
MozReview-Commit-ID: HTfZLqM9Mdd
2017-09-11 11:36:46 -07:00
Chris Manchester 803043e595 Bug 1386876 - Move visibility flag handling to computed compile flags with templates. r=glandium
MozReview-Commit-ID: 9hwiCQv8WKU
2017-09-11 11:36:31 -07:00
Chris Manchester 67a3d90503 Bug 1386876 - Replace all uses of DISABLE_STL_WRAPPING with a template, remove DISABLE_STL_WRAPPING. r=glandium
MozReview-Commit-ID: FMEtb5PY7iP
2017-09-11 11:33:26 -07:00
Chris Manchester 975f30ab1c Bug 1386876 - Add classes to handle compile flags computed by moz.build with templates, convert 'DISABLE_STL_WRAPPING' to use them. r=glandium
MozReview-Commit-ID: 3PYOtX4E8OC
2017-04-28 16:35:19 -07:00
Zibi Braniecki 934d4496cb Bug 1395457 - De-hardcode product name when producing webext-langpack. r=kmag
MozReview-Commit-ID: D6TbDR7dkY6
2017-09-07 13:16:20 -07:00
Gregory Szorc 93af7e36ad Bug 1397406 - Add a helper function to retrieve a BuildReader; r=dustin
The code for obtaining a BuildReader for evaluating moz.build files
is generic and non-trivial. We already had a custom implementation
for `mach file-info` that implemented support for Mercurial
integration. Bug 1383880 will introduce a second consumer.

So this commit factors out the "obtain a BuildReader" logic into
a reusable function on our base MozbuildObject class. This makes
it easily available to various parts of the build system and mach
commands.

As part of the change, we detect when ``.`` is being used as the
revision and verify the working directory is clean. This behavior
can be disabled via argument if unwanted. But it's useful by default
to ensure consumers aren't expecting to read uncommitted changes.

MozReview-Commit-ID: LeYFqAb3HAe
2017-09-06 12:18:51 -07:00
Gregory Szorc ab8ea49c51 Bug 1397406 - Don't mark finder as a protected attribute; r=dustin
It seems reasonable to expose this outside of the BuildReader.

MozReview-Commit-ID: 4paDbYl9dEd
2017-09-06 12:13:38 -07:00
Nick Fitzgerald 092523d8e4 Bug 1277338 - Part 12: Make js/rust a top level crate instead of js/src; r=froydnj
The `js` crate at `js/rust` depends on the `mozjs_sys` crate at `js/src`, so it
makes sense to make it the top level crate.
2017-09-05 09:26:22 -07:00
Zibi Braniecki 7d132e6d0f Bug 1396334 - Add sources list to manifest.json. r=kmag
MozReview-Commit-ID: 4kIowQG2HxR
2017-09-02 18:18:17 -07:00
Zibi Braniecki 1c4ca75e3c Bug 1395456 - Use MOZ_APP_MAXVERSION for strict_max_version in langpack manifest. r=Pike
MozReview-Commit-ID: 63BQQt4U8if
2017-08-31 11:54:26 -07:00
Jim Chen cab1539d80 Bug 1378410 - 2a. Expose set to moz.build sandbox; r=gps
To construct an empty set, we need to use the `set()` notation. In order
to do that, we need to expose `set` to the moz.build sandbox.

MozReview-Commit-ID: DMyKnF0FEx2
2017-09-01 14:02:30 -04:00
Gregory Szorc f13716c346 Bug 1393242 - Normalize paths in MercurialRevisionFinder; r=mshal
This ensures we use forward slashes, even if Mercurial emits
backslashes (which it can do on Windows).

MozReview-Commit-ID: 2dnWAEvytwn
2017-08-31 10:39:28 -07:00
Gregory Szorc 94260848c9 Bug 1393242 - Make hglib tests more resilient; r=mshal
These tests weren't running in automation because hglib wasn't
available. An upcoming commit will vendor hglib. This exposed that the
tests can fail if ui.username isn't set.

In this commit, we introduce a helper function to obtain an hglib
client with ui.username set. We also convert tests to use the context
manager form of the client so resources are cleaned up immediately
without relying on refcounting or garbage collection.

MozReview-Commit-ID: HRSBDlYgqpC
2017-08-30 10:42:35 -07:00
Gregory Szorc 6dffc4410e Bug 1393242 - Return a Repository using configure preferences; r=mshal
If configure has defined VCS binaries, we should use those.

MozReview-Commit-ID: DVnsSaJC8eN
2017-08-23 15:04:46 -07:00
Ryan VanderMeulen c41dc43ff0 Backed out 9 changesets (bug 1383880) for decision task bustage.
Backed out changeset 53f5d47a7cb0 (bug 1383880)
Backed out changeset a0abda41172a (bug 1383880)
Backed out changeset 729a7e2091e8 (bug 1383880)
Backed out changeset a33f5a14a471 (bug 1383880)
Backed out changeset 5b10d321cfee (bug 1383880)
Backed out changeset 8056488d8aed (bug 1383880)
Backed out changeset e62c90e3c1e8 (bug 1383880)
Backed out changeset 91f116ce6c2a (bug 1383880)
Backed out changeset 045498bc36c4 (bug 1383880)
2017-09-01 15:37:08 -04:00
Dustin J. Mitchell a4e086e4f2 Bug 1383880: add support for SCHEDULES in moz.build; r=gps
MozReview-Commit-ID: 2pfLr0VTy2J
2017-07-31 20:44:56 +00:00
Andrew Halberstadt f7b445f2f2 Bug 1339178 - Use pytest to run python-tests, r=davehunt
This switches most tests over to use pytest as the runner instead of unittest (taking
advantage of the fact that pytest can run unittest based tests).

There were a couple tests that had failures when swithing to pytest:
config/tests/unit-expandlibs.py
xpcom/idl-parser/xpidl/runtests.py

For these tests, I added a runwith='unittest' argument so that they still run the
same way as before. Once we fix them to use pytest, the unittest logic in mozunit.py
can be deleted.

MozReview-Commit-ID: Gcsz6z8MeOi
2017-08-29 14:50:33 -04:00
Zibi Braniecki 4bf783e7b6 Bug 1393147 - Update the new langpack-webext manifest scheme. r=kmag
MozReview-Commit-ID: 80g61YvsiSk
2017-08-28 10:42:31 -07:00
Mike Shal bcc4159f57 Bug 1394576 - Fix install manifests tracking with broken symlinks; r=gps
The install manifest with the .track files uses os.path.exists() to
determine if a previously tracked file is no longer installed and needs
to be removed from the system. However, exists() returns False for
broken symlinks, so as far as the manifest is concerned, there is no
file in the filesystem that needs to be removed. We should use lexists()
so we know that the broken symlink still exists in the system so
that it can be removed when the install manifest is processed.

MozReview-Commit-ID: 6v7CYOKzjGs
2017-08-28 22:12:04 -04:00
Gregory Szorc efef2c20eb Bug 1394071 - Ignore moz.build files that should be ignored; r=mshal
Before, the "relevant" moz.build files were based strictly on filename.
In reality, there are some moz.build files that we wish to ignore.

The previous commit introduced a Finder that knows how to ignore
moz.build files that should be ignored. In this commit, we hook
it up to our low-level function for determining the set of relevant
moz.build files for a path.

The main benefit of this change is that paths in the moz.build
test directory no longer say test moz.build files are relevant.
Previously, we would return these test moz.build files. Some of
these are invalid and would cause execution to fail. So, commands
like `mach file-info` will no longer attempt to evaluate moz.build
files they weren't supposed to and will stop erroring.

Another benefit is that the function returns faster. When passing
in every file in the repo (>230,000 files), execution time dropped
from ~8.03s to ~6.16s. This is probably due to fewer path operations.

MozReview-Commit-ID: J2d25ZtxjFt
2017-08-25 19:17:35 -07:00
Gregory Szorc 11980522d9 Bug 1394071 - Create a Finder for relevant moz.build files; r=mshal
Not every moz.build file in the repo is a normal moz.build file.
Some moz.build files are used for testing moz.build files. Others
may exist in directories that should be ignored.

all_mozbuild_path() already knew how to filter out moz.build files
that should be ignored. Let's extract the Finder for doing this
into an instance attribute so it can be used elsewhere.


MozReview-Commit-ID: 9PaZQAbjIZO
2017-08-25 19:08:24 -07:00
Dustin J. Mitchell 3a965a964e Bug 1390968: python-3 compatibility for python/**/*.py; r=Alex_Gaynor,gps
This passes `python3 -mcompileall`.  Changes:

 * use `0o` prefix for octal literals
 * print as a function
 * except .. as
 * use six.reraise to replace a multi-argument raise statement
 * use six.string_types and six.moves.configparser
 * remove uses of `L` suffix for long integers

MozReview-Commit-ID: KLaYRNHGpay
2017-08-28 21:31:30 +00:00
Johan Lorenzo 9d82d58d34 Bug 1384482 - Rename android-api-15 into android-api-16 r=mtabara
MozReview-Commit-ID: 4j66pTZEJzq
2017-08-09 16:18:15 +02:00
Mike Hommey e595c3653c Bug 1352595 - Add basic support for brotli compression to the packager. r=gps
Bug 1355661 added support for brotli streams in "jar" files handled by
Gecko, and bug 1355671 made us build the `bro` command line utility that
allows to compress and decompress brotli streams.

This change uses the `bro` command line utility in the packager so that
it can create and handle "jar" files using brotli streams.

However, the `bro` command line utility is not available to l10n
repacks. As, at the moment, we're only hoping that the outcome of using
brotli will be good, we avoid doing all the work to make those work and
just hook things enough to enable brotli, while ensuring l10n repacks
don't break. This involves forcing some files to be deflated, and to
disable some optimizations from the packager.

Things will need to be figured out more properly if the experiment
proves brotli to be worthwhile.
2017-08-18 05:37:18 +09:00
Chung-Sheng Fu 93a9d33793 Bug 863246 - Move resources that need to be exposed to web content to locations that are marked as contentaccessible r=billm
MozReview-Commit-ID: ArhSHKPYOr8
2017-06-08 17:52:46 +08:00
Andrew Swan 33c093d127 Bug 1393156 Legacy extension test loose ends r=kmag
Change webextensions experiments test to use the shimmed certficiate DB
instead of the extensions.legacy.enabled pref.
In builds that don't honor the extensions.legacy.enabled pref, disable
test_legacy.js since that tests that flipping that preference works properly.
Finally, remove a now doubly-obsolete test of plugins embedded in xpis.

MozReview-Commit-ID: JiRdgCXyjKR
2017-08-26 08:55:20 -07:00