Commit Graph
4567 Commits
Author SHA1 Message Date
Mike Hommey efc9ec384d Bug 1496995 - Account for all dictionaries when updating built_in_addons.json during l10n repack. r=nalexander
All directories are part of the langpack that is being merged in, but
when the langpack includes the english dictionary, it is not handled
at the same time as other dictionaries, because it is also part of the
original application.

Instead of trying to catch all places where a dictionary might be added
to the final repack, we wrap the formatter so that it tracks all of them
wherever they're added from, and updates the built_in_addons.json file
accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D16785
2019-01-18 21:53:16 +00:00
Chris Manchester 01326fb1a7 Bug 1520516 - Set verbose logging for cargo when -v is passed to |./mach build|. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D16907
2019-01-18 19:03:24 +00:00
Mike Hommey aac108fce7 Bug 1520718 - In python configure, fix when in option. r=nalexander
Make option(..., when='--foo') equivalent to
option(..., when=depends('--foo')(lambda x: x)).

Differential Revision: https://phabricator.services.mozilla.com/D16795
2019-01-17 17:04:06 +00:00
Nick Alexander 7f16c9e106 Bug 1477487 - Part 3: Make |mach bootstrap| for Android install Rust toolchains. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D16139
2019-01-17 21:31:12 +00:00
Nick Alexander 5731054c6c Bug 1477487 - Part 2: Make |mach bootstrap| for Android recommend toolchain clang and lld. r=agi,froydnj,#firefox-build-system-reviewers
We're seeing all sorts of problems with the NDK toolchain compilers
and the various versions of the NDK.  In automation we build with r17b
and our own toolchain clang; let's try to standardize on that.

This patch is ugly because of the evolution of mozboot.  Long ago, we
passed arguments around and interpolated strings into function names
rather than setting members with the application name and whether
we're in artifact mode.  The places I needed to modify didn't have the
right data at the right time so I added it to the bootstrap instance.
I don't have the time or energy to use the instance variables
through-out: that'll have to be future follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D16138
2019-01-17 21:30:49 +00:00
Nick Alexander 33c146d36d Bug 1477487 - Part 1: Look for java and pin to Java 1.8 in |mach bootstrap|; r=agi
What is happening is that distribution JRE and JDK packages roll
forward, installing a different version of Java than what is expected.
We don't check the version installed, so sadness ensues.

Right now, we require Java 1.8 to build, but in the near future, after
Android-Gradle plugin 3.2.1+, we'll be free to use later Java
versions.

However, Android's `sdkmanager` itself requires exactly Java 1.8.  We
only require `sdkmanager` to install `emulator`, really -- everything
else will be fetched by Gradle -- but I don't want to unravel that
right now.

So let's just provide decent error messages and try to prevent the
worst of the footguns.

Differential Revision: https://phabricator.services.mozilla.com/D16137
2019-01-17 21:30:29 +00:00
Nick Alexander 85022395cf Bug 1477487 - Part 0: Make GeckoView more prominent in |mach bootstrap|. r=agi
This is part of the larger shift toward GeckoView and away from
Firefox for Android.  We need GV to "show up" in these kind of
onboarding tools; here's a small first step.

Differential Revision: https://phabricator.services.mozilla.com/D16136
2019-01-17 21:30:06 +00:00
Nick Alexander dc1887ac8f Bug 1477487 - Pre: Bump Android SDK version. r=agi
Just hygiene, no reason to lag, no reason to expect changes.

Differential Revision: https://phabricator.services.mozilla.com/D16135
2019-01-17 21:29:40 +00:00
Nick Alexander 6409bcf596 Bug 1477487 - Pre: Don't require outdated packages. r=agi
These are downloaded from maven.google.com by Gradle now.

Differential Revision: https://phabricator.services.mozilla.com/D16134
2019-01-17 21:29:15 +00:00
Emilio Cobos Álvarez b7a3e0c81e Bug 1520683 - When the file generation fails, don't write to the underlying file. r=mshal,froydnj
That way we avoid massive rebuilds due to errors that are recoverable and that
would make the file generation succeed with the same contents as before.

Differential Revision: https://phabricator.services.mozilla.com/D16858
2019-01-17 15:52:10 +00:00
Mike Hommey a89ddfd1bc Bug 1520394 - Wrap the os and subprocess modules in python configure sandbox. r=nalexander
Because the sandbox has its own environment from which it initializes,
os.environ should reflect that in the sandbox. And the few obvious
things that use os.environ too, i.e. subprocess.*.

Depends on D16667

Differential Revision: https://phabricator.services.mozilla.com/D16668
2019-01-16 23:39:10 +00:00
Mark Banner 1169d35e98 Bug 1487490 - Update the python modules installed on OS X by bootstrap, following changes in homebrew. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D16672
2019-01-16 15:07:11 +00:00
Daniel Varga 2636ff04db Merge mozilla-inbound to mozilla-central. a=merge 2019-01-16 06:49:11 +02:00
Mike Hommey 41ba7afe3b Bug 1520108 - Move MOZ_CONFIGURE_OPTIONS to toolkit/moz.configure. r=froydnj
It is only used to fill about:buildconfig.

Differential Revision: https://phabricator.services.mozilla.com/D16526
2019-01-15 15:28:00 +00:00
Cosmin Sabou cbd2f0b8a3 Backed out 6 changesets (bug 1514806) for causing windows 2012 opt repack bustages.
Backed out changeset 63debb1d02d3 (bug 1514806)
Backed out changeset 803d20ba3f80 (bug 1514806)
Backed out changeset 3b95c5d8466d (bug 1514806)
Backed out changeset eb09e108a439 (bug 1514806)
Backed out changeset 6a738993de29 (bug 1514806)
Backed out changeset 303b19a8b923 (bug 1514806)
2019-01-15 19:17:09 +02:00
Matt Howell c1e773d1c2 Bug 1514806 Part 6 - Disable running UPX in the installer package for targets it doesn't support. r=firefox-build-system-reviewers,mshal#firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D15984
2019-01-14 21:59:06 +00:00
Ted Mielczarek 849d9aab69 bug 1517793 - fix mach run --debug to not hit an exception if no debugger can be found. r=nalexander
This change simply moves a check for the "no debugger found" situation out
of a conditional so it will catch more cases.

Differential Revision: https://phabricator.services.mozilla.com/D16476
2019-01-14 18:09:48 +00:00
Alex Chronopoulos e180a27a5c Bug 1519358 - Update upstream commint hash when import libdav1d. r=TD-Linux
Differential Revision: https://phabricator.services.mozilla.com/D16298
2019-01-14 21:46:32 +00:00
Andrew Halberstadt 108231426a Bug 1520006 - [mach] Fix bug in 'mach completion', r=nalexander
This fixes an issue from bug 1518586.

It stemmed from the fact that I misunderstood how the 'parser' attribute
was being used in mach commands and didn't do enough testing. This patch
fixes things such that we check that 'parser' is not None, as well as
add the completion targets from 'handler.arguments'.

Differential Revision: https://phabricator.services.mozilla.com/D16501
2019-01-14 21:20:55 +00:00
Andrew Halberstadt 608c118c1e Bug 1519968 - [mach] Minor improvements to autocomplete docs, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D16495
2019-01-14 19:43:53 +00:00
Mike Hommey 97653b68d5 Bug 1519308 - Try toolchain-prefixed pkg-config. r=froydnj
When doing cross-compiles for Desktop, system pkg-config is going to be
looking for .pc files for the host, but systems setup for cross-compiles
come with a toolchain-prefixed pkg-config, which we should be looking
for.

Differential Revision: https://phabricator.services.mozilla.com/D16318
2019-01-11 23:56:19 +00:00
Andrew Halberstadt ca4b45b651 Bug 1518586 - [mach] Implement bash completion for subcommands and arguments r=nalexander
Since we're calling into a mach command for the current completion
implementation anyway (and incurring python startup penalties), we
might as well move all the bash logic into the mach command.

The new 'mach-completion' command was created in case there are
scripts relying on the current behaviour of 'mach-commands'.

Depends on D16254

Differential Revision: https://phabricator.services.mozilla.com/D16255
2019-01-11 15:28:49 +00:00
Andrew Halberstadt 256bec85f6 Bug 1518586 - [mach] Add some basic usage docs r=nalexander
I was looking for a good place to put documentation for enabling the
bash completion script when I realized that the 'mach' documentation
is targeted at tool developers rather than users.

Seeing as this is the main 'mach' documentation and we want to make
'firefox-source-docs' the place to go for contribution information,
we should endeavour to target end users with this documentation.

This adds a very basic usage page which should be expanded upon, but
is better than nothing.

I changed the headers in 'index.rst' to use raw:: html so that they
don't show up in the nav bar to the left (and subsequently block the
*actually important* things from appearing).

Differential Revision: https://phabricator.services.mozilla.com/D16254
2019-01-11 03:34:30 +00:00
Daniel Varga 1399fd56f3 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2019-01-11 06:19:53 +02:00
Daniel Varga 4d220562b6 Merge mozilla-inbound to mozillia-central. a=merge 2019-01-11 06:14:14 +02:00
Eric Rahm 2b7e60fe29 Bug 1519209 - Disable NSS_ALLOW_SSLKEYLOGFILE in beta and release. r=glandium
This disables NSS_ALLOW_SSLKEYLOGFILE in beta in release in order to avoid shutdown hangs until the NSS project has time to fix the root cause of the issue.
2019-01-10 13:14:41 -08:00
Zibi Braniecki 4c66cf1d0a Bug 1509583 - Migrate region/language names resources to Fluent. r=flod,mossop
Differential Revision: https://phabricator.services.mozilla.com/D12807
2019-01-11 00:23:50 +00:00
Mike Hommey 51417001f7 Bug 1519042 - Replace the last non-third-part uses of OS_TEST with TARGET_CPU. r=ted
Depends on D16161

Differential Revision: https://phabricator.services.mozilla.com/D16162
2019-01-10 22:06:10 +00:00
Mike Hommey ec88c4d6ae Bug 1519030 - Move libav-fft configuration to python configure. r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D16157
2019-01-10 22:00:41 +00:00
Ehsan Akhgari 740aeb37f2 Bug 1518959 - Don't format Java files by default; r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D16115
2019-01-10 09:05:54 +00:00
Ted Mielczarek 00d0a9655e bug 1517909 - format build telemetry time correctly when seconds has no fractional component. r=nalexander
It turns out that Python's `datetime.isoformat` method will leave off the
fractional component of seconds if it would be all zeroes, but the voluptuous
`Datetime` validator wants it to be present, so it's possible to hit an error
if you run mach at exactly an integer second.

This patch switches from `isoformat` to `strftime` with an explicit format
string instead.

Differential Revision: https://phabricator.services.mozilla.com/D15981
2019-01-08 21:29:26 +00:00
Bogdan Tara 9137112605 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-15 18:14:20 +02:00
Nomis101 b219f95686 Bug 1519740 - Include MacPorts Mojave package in bootstrap.py. r=glandium 2019-01-14 00:08:54 +01:00
Chris Manchester 0e6e6fa380 Bug 1517532 - Extend artifact builds to find and download artifacts from pgo builds when MOZ_PGO is set. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D15988
2019-01-08 23:03:27 +00:00
Ted Mielczarek 9cb3c07a28 bug 1517712 - log mach output when test_telemetry.py fails. r=sheehan
Differential Revision: https://phabricator.services.mozilla.com/D15716
2019-01-08 15:14:51 +00:00
Ted Mielczarek 8581f32e20 bug 1517811 - use mozdebug in mach to validate debugger arguments. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15847
2019-01-08 16:10:36 +00:00
Andrew Halberstadt f79b8a9239 Bug 1515261 - [mozversioncontrol] Fix unicode env string on Windows, r=sheehan
Differential Revision: https://phabricator.services.mozilla.com/D15727
2019-01-07 16:26:49 +00:00
Nick Alexander 2df8fdfe39 Bug 1496190 - Add |mach package-multi-locale|; produce multi-locale GeckoView archives. r=Callek,firefox-build-system-reviewers,ted
All that is really required for this ticket is to invoke |mach android
archive-geckoview| after |mach package| in the right place.

But it's actively unhelpful to have this magic in mozharness --
especially since the documentation in `locales.rst` is subtly
incorrect (the environment variables and Make variables don't quite
work as written).  So this commit adds a Mach command to do the actual
work and replaces most of the mozharness magic with that command.
Since the l10n Make targets check out the l10n HG repositories
locally, this basically Just Works without the mozharness checkout
steps when developing locally.

Differential Revision: https://phabricator.services.mozilla.com/D12455
2019-01-07 19:22:44 +00:00
arthur.iakab 5ccb27be44 Backed out changeset 5f6139ef7c2c (bug 1515261) for causing Windows build bustages CLOSED TREE 2019-01-04 18:29:53 +02:00
Andrew Halberstadt dcfd060126 Bug 1515261 - [mozversioncontrol] Fix unicode env string on Windows, r=sheehan
Differential Revision: https://phabricator.services.mozilla.com/D15727
2019-01-04 15:31:56 +00:00
Chris Manchester e97baf9e74 Bug 1507344 - Add configure machinery for MOZ_PROFILE_USE and merging profile. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D13863
2018-12-21 19:02:11 +00:00
Mike Hommey 287145772a Bug 1515901 - Avoid loading mozconfig multiple times from MozbuildObject. r=froydnj
When running `mach help`, mozconfig is loaded multiple times, and even
with an almost empty mozconfig, this makes mach help take close to 10
seconds on my Windows machine.

With some memoization, the time to run mach help gets down to 2s.

Differential Revision: https://phabricator.services.mozilla.com/D15186
2018-12-29 14:15:38 +00:00
Ted Mielczarek 1828251e6a bug 1517244 - Try to log more info during intermittent test_telemetry failure. r=sheehan
Differential Revision: https://phabricator.services.mozilla.com/D15578
2019-01-02 16:56:12 +00:00
Bogdan Tara d2a8b61ef9 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-28 23:53:12 +02:00
Jared Wein 217f770838 Bug 1507595 - Test fixes. r=flod,Gijs
There are multiple fixes contained in this patch:
- fixes for Android/mobile support
- adding extra strings to the ftl file that were never defined before, and previously the ID was just printed to the page
- update test_l10n.py to not rely on about:support anymore
- changing Troubleshoot.jsm to return and ID and args for the strings that should be displayed, so it is compatible with the Fluent API
- misc. fixes so strings that are not localized don't go through the Fluent codepath

Differential Revision: https://phabricator.services.mozilla.com/D15437
2018-12-28 19:40:33 +00:00
Jared Wein ecc894a2b4 Bug 1507595 - Convert about:support to Fluent. r=Gijs,flod
Initial patch by Collin Wing ([email protected]).

Differential Revision: https://phabricator.services.mozilla.com/D14905
2018-12-28 19:40:17 +00:00
Chris Manchester 9ba6d35ee0 Bug 1515512 - Require rustc 1.31. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D15396
2018-12-27 02:22:54 +00:00
Cosmin Sabou a5d0471991 Backed out changeset f162598ad12c (bug 1515512) on the suspicion of causing Linux asan browser chrome exceptions. 2018-12-27 07:43:08 +02:00
Chris Manchester 6d4289e700 Bug 1515512 - Require rustc 1.31. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D15396
2018-12-27 02:22:54 +00:00
Ciure Andrei b8f9396335 Backed out 2 changesets (bug 1507595) for Android build bustages, missing aboutSupport.dtd CLOSED TREE
Backed out changeset 485ea25a3b82 (bug 1507595)
Backed out changeset 28805dd1b97a (bug 1507595)
2018-12-24 18:44:38 +02:00