Commit Graph
5079 Commits
Author SHA1 Message Date
Chris Manchester 270a1dea6d Bug 1385391 - Update artifact names for artifact builds to reflect Taskcluster package names on windows. r=nalexander
MozReview-Commit-ID: kC09UUfAsN
2017-07-28 18:47:23 -07:00
Nick Alexander 5a72a72c28 Bug 1255227 - Pre: Use {0} for Python 2.6. r=sebastian
Per https://stackoverflow.com/a/5447119, Python 2.6 doesn't support
anonymous fields (like {}).  This patch uses {0} instead.

MozReview-Commit-ID: 1VgppEkFn0W
2017-07-25 14:46:53 -07:00
Swapnesh Kumar Sahoo 771b55361e Bug 1347582 - Use File object to obtain normalized file mode; r=dustin,gps
MozReview-Commit-ID: HeDq4EwAfVS
2017-07-26 11:51:37 +05:30
Ted Mielczarek 1a4902e620 bug 1384568 - Write a generated-sources.json. r=gps
Capture the list of generated source files derived from moz.build data
and save it in a generated-sources.json in the objdir so that we can upload
generated source files for use in crash reports and when debugging release
builds.

MozReview-Commit-ID: FrHcyFo0rBF
2017-07-26 07:34:38 -04:00
maliu c72bb6f3d9 Bug 1316462 - Increase minsdk to 16 and remove EOL notification. r=sebastian, r=snorp, r=rnewman
MozReview-Commit-ID: 7o1xqIqVWC6
2017-07-27 08:27:08 -04:00
Nick Alexander d35cc34abe Bug 1384400 - Add input to output mappings to mozpack.FileRegistry. r=gps
This is necessary because the existing manifests don't expose full
dependency information.  I needed to avoid the existing dependency
files because those code paths need to know the output destination of
the manifest in order to parse the Make dependency files; trying to
adapt this system is more complicated than just preprocessing each
file to extract dependency information directly.

MozReview-Commit-ID: 5m0SEqmhJMM
2017-07-25 12:28:31 -07:00
Alex Gaynor 816eb46859 Bug 1384224 - Add support for hardlinks to InstallManifest; r=gps
Also removes InstallManifestNoSymlinks which can be more simply expressed by
passing link_policy='copy' to InstallManifest.populate_registry.

MozReview-Commit-ID: Bkjc2hIub4A
2017-07-25 14:06:15 -04:00
Carsten "Tomcat" Book afc8a0096e Merge mozilla-central to autoland 2017-07-26 11:18:21 +02:00
Carsten "Tomcat" Book d81e194db5 merge mozilla-inbound to mozilla-central a=merge 2017-07-26 11:11:40 +02:00
Mike Hommey b8d056b408 Bug 1382571 - Remove support for tooltool manifest filtering in mach artifact toolchain. r=gps 2017-07-26 14:41:53 +09:00
Mike Hommey 61181ba9a0 Bug 1382571 - Change install_tooltool_clang_package to use mach artifact toolchain --from-build. r=gps 2017-07-26 14:36:07 +09:00
Mike Hommey 95e9dcc514 Bug 1382569 - Make mach artifact toolchain --from-build use the toolchain-artifact info from bug 1374940. r=gps 2017-07-26 14:15:33 +09:00
Philip Chimento 844f7715a8 Bug 1379537 - Fix InstallManifestNoSymlinks to not install symlinks. r=glandium 2017-07-21 20:13:34 -07:00
Mike Hommey 42e363bc1c Bug 1382502 - Remove ${var}_IS_SET variables. r=ted
In bug 1181040, we added ${var}_IS_SET variables for
mk_add_options-defined variables. In the two years since, that has never
been used for anything else than MOZ_PGO_IS_SET, and the only use for
that has now been removed, so remove those ${var}_IS_SET variables.
2017-07-20 14:22:11 +09:00
Mike Hommey 4ad2f218c9 Bug 1383996 - Add an argument to mach artifact toolchain to store a manifest for chain-of-trust validation. r=gps
Chain of trust validation will require to know what the inputs for a
given build are, and mach artifact toolchain fetches such inputs.

So we make it output a manifest that the chain of trust validation
process will be able to use and correlate with other information, such
as the one from bug 1383993.

At the same time, we make the produced manifest contain information
about tooltool-downloaded packages, which will allow to track the
progress in the migration from tooltool to TC artifacts.
2017-07-20 17:52:56 +09:00
Nick Alexander 3b888f4e45 Bug 1384202 - Add --no-interactive bootstrap support for Android SDK and NDK. r=rillian
Hacky, but it works -- until Google updates its license hashes.  This
looks ahead to using |mach bootstrap| to build docker images.

MozReview-Commit-ID: DF23v8tr8SW
2017-07-19 15:29:11 -07:00
Nick Alexander ac1d23a240 Bug 1384202 - Pre: Make mozboot/android.py an executable script. r=rillian
This looks ahead to using |mach bootstrap| when building docker
images.

MozReview-Commit-ID: LoMU7ji5T0x
2017-07-18 15:47:04 -07:00
Nick Alexander a2a9b7ae4b Bug 1384199 - Fix path issue in Android bootstrap. r=rillian
This was a regression introduced in Bug 1344244.  Google changed the
layout of their packages.  It used to be that the Android SDK archive
had a top-level 'android-sdk-$OS_NAME' directory; that's no longer the
case.  It would be cleaner to unpack to 'android-sdk' without the OS
name, but that complicates the logic that detects existing installs.

MozReview-Commit-ID: 4B2Rt1AM2ky
2017-07-19 15:24:47 -07:00
Nick Alexander 06baf53635 Bug 1384199 - Pre: Remove unused messages and print statements. r=rillian
MozReview-Commit-ID: 5w7xwj7MvE4
2017-07-19 15:21:20 -07:00
Ralph Giles 027ceb4e6e Bug 1382743 - mozboot: Update rust to 1.19.0. r=mshal
Consider Rust toolchains prior to 1.19.0 old enough to update
by the `mach bootstrap` command, in preparation for requiring
that release during Firefox 57 nightly development.

MozReview-Commit-ID: JaaM3sPDmzn
2017-07-21 15:36:26 -07:00
Alex Gaynor 7a0ed42fba Bug 1382739 - Added support for hardlinks to mozbuild; r=gps
MozReview-Commit-ID: 7DcOAVNsr3c
2017-07-20 14:04:05 -04:00
Tom Prince c46f05e2ca Bug 1385539 - Re-add accidentally deleted documentation of mozbuild.configure.ConfigureSandbox.include_file; r=glandium
The code was deleted in Bug 1256571.

MozReview-Commit-ID: JgWoxOyMQ8z
2017-07-29 00:31:17 -06:00
Nathan Froyd fefca604b9 Bug 1378830 - part 2 - add tests for {LIB,PROG}_IS_C_ONLY; r=chmanchester
Adding PROG_IS_C_ONLY seems like a good point to add tests, and once we
have tests for that, adding tests for the existing library support is
not too difficult.
2017-08-17 16:21:22 -04:00
Nathan Froyd 08d1ceeb80 Bug 1378830 - part 1 - define PROG_IS_C_ONLY variables for PROGRAM and SIMPLE_PROGRAMS; r=chmanchester
Similar to the existing LIB_IS_C_ONLY variable, these variables indicate
that the program in question has only C sources and so can be linked by
the C compiler rather than the C++ compiler.  We need to add a little
more information to BaseProgram so we can avoid emitting periods into
Makefile variables.
2017-08-17 16:21:23 -04:00
Andrew Halberstadt 5a306cd0b1 Bug 1311991 - Add CRAMTEST_MANIFEST moz.build variable, r=gps
Supports CRAMTEST_MANIFEST manifestparser manifests in moz.build. Add a new
manifest like:

CRAMTEST_MANIFEST += [
    'path/to/cram.ini',
]

MozReview-Commit-ID: 1eagYMnCrnz
2017-01-17 16:21:36 -05:00
Mike Hommey 3e2fbffd22 Bug 1382564 - Use the information from bug 1374940 with mach artifact toolchain. r=gps
Bug 1374940 adds a MOZ_TOOLCHAINS environment variable with a list of
path@task-id strings, where task-id is corresponding to the (possibly
optimized) toolchain job, and path corresponding to the
toolchain-artifact defined for that toolchain job.

We want to use that to pull artifacts instead of tooltool packages.
2017-06-21 15:18:33 +09:00
Gregory Szorc 8e15f7253c Bug 1377216 - Use configure-derived VCS info to find repository; r=glandium
For reasons I can't explain, Windows builds are failing intermittently
because they are unable to locate the `hg` binary when running
some SpiderMonkey test processes. These processes use
mozversioncontrol.get_repository_from_env() to locate the
current repository.

We now store VCS info in configure. This makes it available to anything
running in a build system context.

This commit teaches mozversioncontrol.get_repository_from_env()
to import the "buildconfig" module to locate VCS info. If the module
can be imported, it is the sole source of VCS info. Otherwise, we
fall back to the existing detection mechanisms.

This should get rid of the intermittent failure. If it doesn't,
it is still a step in the right direction because it will allow
build system processes to consistently use a well-defined VCS
binary.

MozReview-Commit-ID: DMxXheJLRqH
2017-07-18 15:46:47 -07:00
Gregory Szorc 88e6e2b83e Bug 1377216 - Use substs for resolving path to Mercurial and Git; r=glandium
We now store HG or GIT in substs. We don't need to search for
binary paths.

MozReview-Commit-ID: 8sSgPNLok9M
2017-07-14 17:23:34 -07:00
Gregory Szorc 3633c8f4d9 Bug 1377216 - Use substs for determining checkout type; r=glandium
We now have a variable in config.status for recording the checkout
type. These helper functions for determining if we're Mercurial or Git
can now be one-liners.

As a bonus, we no longer do I/O as part of this function.

MozReview-Commit-ID: HT9sbOhDEkf
2017-07-14 17:22:14 -07:00
Ryan VanderMeulen a97112e33f Backed out 6 changesets (bug 1377216) for SM(pkg) bustage on a CLOSED TREE.
Backed out changeset b5701f3ce506 (bug 1377216)
Backed out changeset 1f37aebe0f43 (bug 1377216)
Backed out changeset c8931588f674 (bug 1377216)
Backed out changeset ded5328ba74c (bug 1377216)
Backed out changeset 6cb234539746 (bug 1377216)
Backed out changeset ce836965fd58 (bug 1377216)
2017-07-19 22:14:03 -04:00
Gregory Szorc 681ecc0640 Bug 1377216 - Use configure-derived VCS info to find repository; r=glandium
For reasons I can't explain, Windows builds are failing intermittently
because they are unable to locate the `hg` binary when running
some SpiderMonkey test processes. These processes use
mozversioncontrol.get_repository_from_env() to locate the
current repository.

We now store VCS info in configure. This makes it available to anything
running in a build system context.

This commit teaches mozversioncontrol.get_repository_from_env()
to import the "buildconfig" module to locate VCS info. If the module
can be imported, it is the sole source of VCS info. Otherwise, we
fall back to the existing detection mechanisms.

This should get rid of the intermittent failure. If it doesn't,
it is still a step in the right direction because it will allow
build system processes to consistently use a well-defined VCS
binary.

MozReview-Commit-ID: DMxXheJLRqH
2017-07-18 15:46:47 -07:00
Gregory Szorc af2c611ac8 Bug 1377216 - Use substs for resolving path to Mercurial and Git; r=glandium
We now store HG or GIT in substs. We don't need to search for
binary paths.

MozReview-Commit-ID: 8sSgPNLok9M
2017-07-14 17:23:34 -07:00
Gregory Szorc f17e6fbbab Bug 1377216 - Use substs for determining checkout type; r=glandium
We now have a variable in config.status for recording the checkout
type. These helper functions for determining if we're Mercurial or Git
can now be one-liners.

As a bonus, we no longer do I/O as part of this function.

MozReview-Commit-ID: HT9sbOhDEkf
2017-07-14 17:22:14 -07:00
Ryan VanderMeulen e1ae483189 Merge inbound to m-c. a=merge
CLOSED TREE
2017-07-19 10:00:35 -04:00
Rok Garbas 9206e4afbe Bug 1364650 - retry on ChunkedEncodingError; r=gps DONTBUILD CLOSED TREE
MozReview-Commit-ID: 5F9ZwOvFG2V
2017-07-18 23:02:29 +01:00
Gregory Szorc f046054d08 Bug 1381353 - Set RUST_BACKTRACE=1 during mach run; r=ted
Having Rust dump a stack on panic seems like a useful on-by-default
feature.

MozReview-Commit-ID: ABYTArsMTFh
2017-07-17 13:57:50 -07:00
Andrew Halberstadt 2d33c0aac7 Bug 1381802 - [mach] Allow subcommands to use the 'parser' argument, r=gps
This allows subcommands to use external argument parsers.

MozReview-Commit-ID: 7TkbTff0Tv8
2017-07-18 08:53:13 -04:00
Andrew Halberstadt 2ce89a05c9 Bug 1381802 - [mach] Ensure subcommand help is displayed whenever a subcommand and --help are specified, r=gps
After this patch, the following will all display the subcommand help where they previously displayed
the command help:

    $ mach help <command> <subcommand>
    $ mach <command> --help <subcommand>
    $ mach <command> <subcommand> --help

The command help will still be shown for:

    $ mach help <command>
    $ mach <command> --help

MozReview-Commit-ID: 7EsVblnCaFM
2017-07-18 08:42:41 -04:00
Nick Alexander b903484d51 Bug 1344244 - Post: Allow --application-choice to |mach bootstrap|. r=glandium
MozReview-Commit-ID: 496iK5iTEPX
2017-07-05 13:25:04 -07:00
Nick Alexander bcf6a18b23 Bug 1344244 - Part 4: Homebrew includes |brew cask| directly now. r=glandium
There's no need to install the caskroom bits for Homebrew now,
allowing to fix Java installation on Mac OS X and simplify the code at
the same time.

MozReview-Commit-ID: 1Ssjm4YRrPQ
2017-07-05 17:05:25 -07:00
Nick Alexander 3086a5befb Bug 1344244 - Part 3: Use sdkmanager rather than android. r=glandium
This is the real fix.  Google has replaced the |android --no-ui ...|
tool with a simpler |sdkmanager| tool, which makes it easier to
install packages with particular major versions.  (Minor versions
still can't be controlled; for example, the m2repository extras are
constantly rolling forward.)

|sdkmanager| fails if the required packages aren't installed and can't
be installed, so there's no need to search for missing packages, etc,
simplifying the code considerably.

I don't see an easy way to upgrade outdated Android SDK installations
-- it's not clear that unpacking over top of an existing SDK
installation succeeds -- so I've included a message about moving or
removing outdated installations.  This will punish folks who have
added additional Android platforms, or download emulator images using
the Android toolchain (but not those downloaded using |mach
emulator|).  C'est la vie.

MozReview-Commit-ID: GLhKyuq701k
2017-07-05 16:49:09 -07:00
Nick Alexander d1b23fae33 Bug 1344244 - Part 2: Merge similar code into android.py. r=glandium
This refactoring unifies similar code that has been copy-pasted and
subsequently diverged.

MozReview-Commit-ID: EuVQBR4gsDo
2017-07-05 14:02:58 -07:00
Nick Alexander 22f42a75c9 Bug 1344244 - Pre: Support mobile/android in bootstrap on CentOS. r=glandium
This works in a centos:7 docker image.

MozReview-Commit-ID: LZEgSho7xb
2017-07-05 15:06:46 -07:00
Haik Aftandilian e850ae58e6 Bug 1380132 - Part 2 - Set MOZ_DEVELOPER_OBJ_DIR before launching Firefox. r=gps
MozReview-Commit-ID: CvSUt2KueHr
2017-07-12 17:01:56 -07:00
Greg Mierzwinski bda0009d8c Bug 1378533 - Make the keys for linked-map-files.json entries absolute paths. r=marco
This patch changes the name of the keys that are in the 'linked-files-map.json' that is produced in the code coverage build and are used to map symbolic links to their source files. The new key names (which are the paths to the symbolic links) are now the entire absolute path to each of the files.

MozReview-Commit-ID: 4x1dfk9h2Ov
2017-07-06 10:14:00 -04:00
Mike Shal 98eee724f7 Bug 1380381 - Set rust debuginfo=1 for cross-OSX builds; r=glandium a=kwierso to reopen this CLOSED TREE
This is similar to bug 1301751, where something in rust seems to trigger errors
running dsymutil to generate debug symbols in OSX. We can set debuginfo=1 for
these builds as a temporary workaround for now, while we work on a more
permanent solution in rust and/or dsymutil. debuginfo=1 still gives us enough
info for stack traces, although without line info. debuginfo=2 would be useful
for debugging, but is irrelevant to crash reports.

MozReview-Commit-ID: DdA00GzVfWg
2017-07-13 18:49:10 -04:00
Andi-Bogdan Postelnicu afccf8b48b Bug 1438566 - pass clang-format from ~/mozbuild/clang-tools to clang-format-diff. r=sylvestre
MozReview-Commit-ID: HgHOv1k7I5p
2018-02-15 19:21:35 +02:00
Rail Aliiev 6db69bbd2e Bug 1380297 - Mac nightly repackage fails trying to read CodeName r=mshal
MozReview-Commit-ID: LauJRihWxJ0
2017-07-12 09:30:41 -04:00
Sebastian Hengst 43668ac013 Backed out changeset ad2fdd0912ed (bug 1347582) for breaking taskcluster jobs, or not scheduling them. r=backout on a CLOSED TREE 2017-07-12 21:45:30 +02:00
Swapnesh Kumar Sahoo 431dfdb859 Bug 1347582 - Add option to force file mode during tar creation; r=dustin
MozReview-Commit-ID: HeDq4EwAfVS
2017-07-12 22:59:26 +05:30