Commit Graph
5079 Commits
Author SHA1 Message Date
Mike Hommey 7c880c80a1 Bug 1551639 - Don't build generated source files during the export tier. r=nalexander
As established previously, generated source files that are not included
don't need to be built during the export tier.

Differential Revision: https://phabricator.services.mozilla.com/D33771
2019-06-06 04:35:00 +00:00
Jorg K aa6c3c9bf8 Backed out changeset bb3d70c37398 (bug 1543725) for busting Thunderbird builds. a=backout 2019-06-05 22:24:02 +02:00
Cosmin Sabou 5aaaf91d2c Backed out changeset 028c8f1b6b5b (bug 1551368) for linting failure on mozbuild/controller/clobber.py. 2019-06-06 00:40:06 +03:00
Eric Rahm f27acaaf4d Bug 1551368 - Part 1: Factor out subdirectory logic. r=firefox-build-system-reviewers,chmanchester
Pull out the logic for filtering subdirectories and deleting them into
reusable functions.

Differential Revision: https://phabricator.services.mozilla.com/D31308
2019-05-21 20:46:43 +00:00
Samuel Thibault a750b72f84 Bug 1543725 Add marionette support to thunderbird r=ato,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D27102
2019-06-05 07:59:19 +00:00
Mike Hommey 37ca8a0c62 Bug 1556662 - Fix a typo in change from bug 1469091. r=dmajor
In a branch for `isinstance(obj, (HostSources, HostGeneratedSources))`,
`isinstance(obj, GeneratedSources)` is clearly not going to match
anything. `isinstance(obj, HostGeneratedSources)` is what was intended.

Differential Revision: https://phabricator.services.mozilla.com/D33603
2019-06-04 11:39:44 +00:00
Chris Manchester 5a3fabb63e Bug 1556185 - Ensure autoconf.mk is tracked as a dependency when preprocessing webidls. r=nalexander
webidlsrcs.mk is treated specially by the build system, and this entire
process should be supported better by moz.build, but in the meantime this
fixes the clobber bug caused by not re-building these targets when defines
are updated.

Differential Revision: https://phabricator.services.mozilla.com/D33415
2019-06-03 20:33:36 +00:00
Jeremy Lempereur 0dd7533e90 Bug 1556257 - Add Funtoo support to mach bootstrap. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D33425
2019-06-03 01:15:09 +00:00
Andrew Halberstadt 12596513b3 Bug 1555824 - Don't call MozbuildObject.substs from a MachCommandCondition r=nalexander
Invoking MozbuildObject.substs causes an exception to be raised if there is no
BuildEnvironment. This means that we hit an error on |mach help| if there is no
build, which is not ideal for people trying to learn how to build :).

Differential Revision: https://phabricator.services.mozilla.com/D33217
2019-05-30 21:47:56 +00:00
Nick Alexander 4ffabfe61b Bug 1508976 - Produce a multi-architecture GeckoView "fat AAR". r=glandium
This follows the model set down for EME artifacts:

- a new tier is added that uses a new Python build action to fetch and
  artifacts
- the action unpacks the fetched artifacts and moves specific inputs
  into places expected by the build and packager
- in automation, MOZ_ARTIFACT_TASK* is used to ensure the artifacts
  come from the correct tasks

In this case, the artifact fetching is done entirely in a new Python
build action that internally uses `mach artifact install --job ...`.
The action also verifies that the fetched artifacts are compatible and
that we're not assembling a fat AAR that is nonsensical.  The specific
inputs are not used in the Fennec APK that is produced; they're only
used in the GeckoView AAR that is produced.

The artifact fetching itself required tweaking to fetch only
`target.maven.zip` artifacts and to not unpack them.

The specific inputs used are the native libraries (libs/$ARCH/*.so)
and the architecture-specific preference files ($ARCH/greprefs.js and
defaults/pref/$ARCH/geckoview-prefs.js).  None of these inputs are
impacted by l10n.

Differential Revision: https://phabricator.services.mozilla.com/D31572
2019-05-30 15:22:09 +00:00
Nick Alexander a9f1441223 Bug 1508976 - Pre: Add --maven-zip and --no-process to mach artifacts install. r=glandium
This allows to use the existing artifacts VCS-based crawling to
download the "raw" target.maven.zip from Android jobs and not process
it further.  It's just put in a specific directory, ready for use.
This isn't a big deal in automation, where all URLs are known, but
it's very useful when building locally and the VCS and the pushlog
must be consulted to determine task URLs.

Differential Revision: https://phabricator.services.mozilla.com/D31571
2019-05-30 15:21:55 +00:00
prathiksha 4282135034 Bug 1549561 - Migrate strings from pipnss.properties to aboutCertError.ftl. r=flod CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com//D32513
2019-05-30 09:43:23 +03:00
Tom Prince d8ff5e3423 Bug 1549889: Add support for displaying WNP conditionally on build-id; r=nthomas
Differential Revision: https://phabricator.services.mozilla.com/D33039
2019-05-29 23:47:07 +00:00
Chris Manchester c0aaceaaed Bug 1555397 - Download sccache on macOS as a part of bootstrap. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D33105
2019-05-29 23:55:37 +00:00
Justin Wood 322f81e893 Bug 1547730 - don't fail on an unsupported .seek() needed to support adding from compressed zipfile.ZipFile entries. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D29216
2019-05-28 14:28:55 +00:00
Justin Wood ac676f6155 Bug 1547730 - Set python test annotations to correspond to currently-passing py3 tests r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28122
2019-05-28 14:28:53 +00:00
Justin Wood 4f2612616f Bug 1547730 - Finish up some final py3-izing in getting mozjar.py to work in py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28120
2019-05-28 14:28:45 +00:00
Justin Wood 20969c0ffc Bug 1547730 - Make more of configure/__init__ work in py3 r=glandium
(adds __build_class__ to the builtin sandbox and allow CombinedDependsFunction to be hashed)

Differential Revision: https://phabricator.services.mozilla.com/D28114
2019-05-28 14:28:41 +00:00
Justin Wood 0db61d8a26 Bug 1547730 - Use six.moves.builtins in the sandbox for configure r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28113
2019-05-28 14:28:36 +00:00
Justin Wood cc0a929dba Bug 1547730 - Use new inspection methods introduced in py3 but work in py2.7 for functions r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28112
2019-05-28 14:28:34 +00:00
Justin Wood 1c39c23f3c Bug 1547730 - Define __hash__ for SandboxDependsFunction and CombinedDependsFunction so we can reference it as a dictionary key in py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28111
2019-05-28 14:28:30 +00:00
Justin Wood 9cc33a30f8 Bug 1547730 - Stop using some cases of types.NoneType. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D30966
2019-05-28 14:28:25 +00:00
Justin Wood 61037dd56d Bug 1547730 - Recognize StreamWriter exceptions for fileno() in py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28110
2019-05-28 14:28:23 +00:00
Justin Wood 622f6305e8 Bug 1547730 - Use six.moves.reduce for reduce() r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28109
2019-05-28 14:28:18 +00:00
Justin Wood 9332d8536e Bug 1547730 - Use six.moves for urllib.urlparse r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28108
2019-05-28 14:28:01 +00:00
Justin Wood 76ba8192dc Bug 1547730 - Fix b''.join(rand.choice(bytestring)..) to use bytes() constructor instead r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28107
2019-05-28 14:26:10 +00:00
Justin Wood 3e9ff50669 Bug 1547730 - Use six.moves.xrange() instead of xrange() r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28106
2019-05-28 14:25:49 +00:00
Justin Wood 84c3342b4d Bug 1547730 - Compensate for __builtin__ use in files accessed by py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28105
2019-05-28 14:25:30 +00:00
Justin Wood 90f9969b4d Bug 1547730 - Don't try to py3-ize indented_repr yet. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28103
2019-05-28 14:25:23 +00:00
Justin Wood d7b3095878 Bug 1547730 - don't use py2 builtin 'unicode' in mozpack and deps r=glandium
Also adjust 'basestring' usage in some places.

Differential Revision: https://phabricator.services.mozilla.com/D28102
2019-05-28 14:25:15 +00:00
Justin Wood 438beac484 Bug 1547730 - do s/StringIO.StringIO/six.StringIO/ to support py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28101
2019-05-28 14:25:00 +00:00
Justin Wood 854812974f Bug 1547730 - do py3 for cStringIO r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28100
2019-05-28 14:24:47 +00:00
Justin Wood 62e67b5ace Bug 1547730 - Do s/StandardError/Exception/ to support py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28099
2019-05-28 14:24:40 +00:00
Justin Wood 844f670d33 Bug 1547730 - Switch to six.string_types instead of types.StringTypes for py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28098
2019-05-28 14:24:27 +00:00
Justin Wood ae19c7bbb7 Bug 1547730 - Allow testing of mozpack on py3 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28097
2019-05-28 14:24:14 +00:00
Justin Wood c8a378cbb4 Bug 1547730 - use six.iterkeys() r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28119
2019-05-28 14:24:07 +00:00
Justin Wood dc56d4511f Bug 1547730 - Do six.itervalues instead of dict.itervalues r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D28104
2019-05-28 14:23:54 +00:00
Justin Wood 519c0ab0ae Bug 1547730 - Do dict.iteritems() via six to support py3. r=glandium
shellutil.py needed special handling since it is invoked earlier than the
vendor directory adding we do, so it does not have six available.

Differential Revision: https://phabricator.services.mozilla.com/D28096
2019-05-28 14:23:47 +00:00
Justin Wood 1b781944c7 Bug 1542963 - Insert unicode_literals into python/mozbuild/mozpack and called mozbuild/* files. r=firefox-build-system-reviewers,chmanchester
Lint python/mozbuild/{mozbuild,mozpack}.

This makes sure we use byte strings (type(b'')) in many places.
This also has a few places where we know we want unicode, by enforcing it.

This code also has a few places where we call into windows API's which expect either all args to be unicode,
or all args to be bytestrings (not-unicode) so make sure those calls align.

This is the most risky of the stack, since there are some mach commands and codepaths that are neither excercised in automation
nor excercised in tests.

Differential Revision: https://phabricator.services.mozilla.com/D26645
2019-05-28 14:23:25 +00:00
Justin Wood dec88c40d5 Bug 1542963 - use print_function for mozbuild and mozpack. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26644
2019-05-28 14:23:00 +00:00
Justin Wood f616f0c807 Bug 1542963 - Add absolute_imports to mozbuild and mozpack. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}. r=#build

Add 'from __future__ import absolute_import' to all missing files in python/mozbuild/{mozbuild,mozpack}/**/*.py

Differential Revision: https://phabricator.services.mozilla.com/D26643
2019-05-28 14:22:45 +00:00
Justin Wood 51cac68bf0 Bug 1542963 - Fix undefined var 'defines' when use_defines_in_asflags is set. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}.

Differential Revision: https://phabricator.services.mozilla.com/D26642
2019-05-28 14:22:30 +00:00
Justin Wood 4d1f50905c Bug 1542963 - Fix most flake8 issues in python/mozbuild/mozbuild/* r=firefox-build-system-reviewers,chmanchester
Leaving one fix for an explicit review.

Lint python/mozbuild/{mozbuild,mozpack}. r=#build

Differential Revision: https://phabricator.services.mozilla.com/D26641
2019-05-28 14:22:20 +00:00
Justin Wood efc8345dc8 Bug 1542963 - run './mach lint ... --fix' on mozbuild/mozbuild, undoes some black changes. r=glandium
Lint python/mozbuild/{mozbuild,mozpack}.

ran './mach lint -l py2 -l flake8 -l shellcheck -l codespell -l yaml python/mozbuild/{mozbuild,mozpack}/  --fix' in order
to undo some black changes and get closer to  making this folder able to be validated on every lint run

Differential Revision: https://phabricator.services.mozilla.com/D26640
2019-05-28 14:22:00 +00:00
Rok Garbas 1fcacdf1b7 Bug 1548204 - fixing test for raptor-tp6-8 r=rail
Differential Revision: https://phabricator.services.mozilla.com/D30479
2019-05-28 07:44:41 +00:00
Nathan Froyd bf85c45a36 Bug 1542746 - remove code for frontend-based PGO instrumentation; r=dmajor
We're moving to IR-level PGO instrumentation for clang-cl.  We've also
moved to using static linker ordering files, which was the primary
application of the previous style of PGO instrumentation.  We therefore
we no longer need this code.

Differential Revision: https://phabricator.services.mozilla.com/D31134
2019-05-24 20:00:38 +00:00
Myk Melez 628b8020ea Bug 1543829 - include LMDB license in about:license r=mossop,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D30122
2019-05-24 01:25:44 +00:00
Dzmitry Malyshau eb27513dcf Bug 1552549 - Update rand dependency to 0.6 r=kats,froydnj,nika,jkt,jcj
Update rand version in u2fhid and xpcom

Differential Revision: https://phabricator.services.mozilla.com/D31669
2019-05-23 19:54:25 +00:00
Nathan Froyd 4cc540ad5c Bug 1553810 - remove RSSRCS support from the build system; r=nalexander
We used to support specifying single Rust files for compilation,
emphasis on "used to".

Differential Revision: https://phabricator.services.mozilla.com/D32314
2019-05-23 15:20:26 +00:00
Sylvestre Ledru c2446b6046 Bug 1552897 - Ride along: format with black r=ahal
Depends on D31807

Differential Revision: https://phabricator.services.mozilla.com/D31808
2019-05-23 16:44:04 +00:00