Commit Graph

52 Commits

Author SHA1 Message Date
Andrew McCreight
0203f28a01 Bug 1438688, part 3 - Remove XPT files from the packaging process. r=glandium
Now that XPT files are not loaded from files at runtime, code for
packaging XPT files can be removed.

This means that a couple of test XPIDL interfaces will get shipped in
builds to users that weren't before, but I don't think that matters
much.

This also puts XPT files into the local objdir for the XPIDL makefile,
instead of dist/bin, because they are no longer part of the
distribution.

MozReview-Commit-ID: 7gWj8KWUun3
2018-03-05 14:27:29 -08:00
Dorel Luca
d611d1ef40 Backed out 7 changesets (bug 1438688) for android xpcshell failures on builds/worker/workspace/build/tests/bin/components/test_necko.xpt
Backed out changeset 8786eabb61a4 (bug 1438688)
Backed out changeset e05ec1e08b46 (bug 1438688)
Backed out changeset 4c437ba9d984 (bug 1438688)
Backed out changeset 2f243bca1af3 (bug 1438688)
Backed out changeset 4da0e1839353 (bug 1438688)
Backed out changeset 186f916dcc7a (bug 1438688)
Backed out changeset 08b1a5f904e4 (bug 1438688)
2018-04-03 02:30:53 +03:00
Andrew McCreight
020905c403 Bug 1438688, part 3 - Remove XPT files from the packaging process. r=glandium
Now that XPT files are not loaded from files at runtime, code for
packaging XPT files can be removed.

This means that a couple of test XPIDL interfaces will get shipped in
builds to users that weren't before, but I don't think that matters
much.

This also puts XPT files into the local objdir for the XPIDL makefile,
instead of dist/bin, because they are no longer part of the
distribution.

MozReview-Commit-ID: 7gWj8KWUun3
2018-03-05 14:27:29 -08:00
Ting-Yu Chou
bf62163b88 Bug 1360650 part 1 - Archive pdb files of the binaries for llvm-symbolizer. r=ted 2017-12-18 11:26:02 -05:00
Mike Shal
3383b336e3 Bug 1402012 - Update buildconfig.py to use PartialConfigEnvironment; r=glandium
By using the PartialConfigEnvironment, the clients of buildconfig will
depend on config.statusd/ files instead of config.status directly.
Clients can access substs and defines using buildconfig.substs['FOO'] or
buildconfig.defines['BAR'], and then collect file-level dependencies for
make using buildconfig.get_dependencies(). All GENERATED_FILES rules
already make use of this because file_generate.py automatically includes
these dependencies (along with all python modules loaded).

As a result of this commit, re-running configure will no longer cause
the world to be rebuilt. Although config.status is updated, no build
steps use config.status directly and instead depend on values in
config.statusd/, which are written with FileAvoidWrite. Since those
files are not official targets according to the make backend, make won't
try to continually rebuild the backend when those files are out of date.
And since they are FileAvoidWrite, make will only re-run dependent steps
if the actual configure value has changed.

As a result of using JSON to load data from the config.statusd
directory, substs can be unicode (instead of a bare string type).
generate_certdata.py converts the subst manually to a string so the
value can be exported to the environment without issue on Windows.

Additionally, patching the buildconfig.substs dict no longer works, so
the unit-symbolstore.py test was modified to patch the underlying
buildconfig.substs._dict instead.

The other files that needed to be modified make use of all the defines
for the preprocessor. Those that are used during 'mach build' now use
buildconfig.defines['ALLDEFINES'], which maps to a special
FileAvoidWrite file generated for the PartialConfigEnvironment.

MozReview-Commit-ID: 2pJ4s3TVeS8
2017-08-24 22:52:01 -04: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
Chris AtLee
c5a7fa6496 Bug 1351071: Get rid of pre-generated startup cache r=glandium
MozReview-Commit-ID: BcWcqEKwGBv
2017-04-04 09:26:25 -04:00
Carsten "Tomcat" Book
57562766fc Backed out changeset 0f320509eddb (bug 1351071) for slowness 2017-05-09 16:58:19 +02:00
Mike Shal
df657a2c26 Bug 1337145 - Revert build system changes used for EME voucher; r=glandium
There is no single bug that was reverted, as this work was done over
several bugs, including 1091668, 1123990, 1138535, and 1265272. Most
notable is that we are moving the precomplete generation back into
packager.py rather than spread out over various make variables (except
for the Windows installer, which is still specified in packager.mk).

MozReview-Commit-ID: KDcfR23kKr8
2017-04-06 17:28:39 -04:00
Chris AtLee
24bb152a2d Bug 1351071: Get rid of pre-generated startup cache r=glandium
MozReview-Commit-ID: BcWcqEKwGBv
2017-04-04 09:26:25 -04:00
Mike Shal
ce0cb4746c Bug 1339182 - Remove OSX universal support in the build system; r=glandium
This removes the UNIFY_DIST and UNIFIED_BUILD variables, as well as the
--unify flag from the packager and UnifiedBuildFinder from mozpack. As a
result the STAGEPATH variable is never defined anymore, so its uses can
be removed as well.

test_unify.py is currently the only mozbuild/mozpack test that fails
without running configure first, and there isn't much point in fixing
tests for things that we don't actually use anymore.

MozReview-Commit-ID: F5q1FPW3Did
2017-02-10 16:52:17 -05:00
Mike Hommey
ab4e2a0d39 Bug 1335309 - Add explicit find_executables arguments to every use of FileFinder. r=mshal
And make it an error not to give it. While the default is True, we do
pass a value of False wherever it makes sense, which happens to be, in
most places.

This is an intermediate step to flip the default from True to False,
ensuring that we don't unwantedly switch some calls to False.
2017-01-31 13:01:34 +09:00
Mike Shal
8df0df34e3 Bug 1183613 - Cross compile universal OSX builds in Taskcluster; r=froydnj,ted
MozReview-Commit-ID: HNTqiVF9gov
2016-10-21 13:54:10 -04:00
Mike Hommey
2bc26245c7 Bug 1293837 - Move HAVE_64BIT_BUILD test to python configure. r=chmanchester
Also, now that we're using modern C++11 compilers, we can just rely on
static_assert, instead of the pile of macros used in the autoconf test.
2016-08-10 09:00:23 +09:00
Kai Engert
d19348b2ad Bug 1258375, NSS_3_24_BETA6 and required adjustments to PSM and packaging, r=martin.thomson, r=glandium 2016-04-12 14:40:44 +02:00
Kai Engert
6aa9ead470 Backout revision 36f75c2863a1, bug 1258375 2016-04-11 17:00:39 +02:00
Kai Engert
3d289162c3 Bug 1258375, NSS_3_24_BETA5 and required adjustments to PSM and packaging, r=martin.thomson, r=glandium 2016-04-11 16:40:36 +02:00
Chris Manchester
1de8363e54 Bug 1240149 - Build system changes necessary to run linux artifact builds in automation. r=glandium
MozReview-Commit-ID: CJ0CTBtklCs
2016-02-11 18:46:46 -08:00
Gregory Szorc
296978dd32 Bug 1251313 - Adjust PATH to find pgort140.dll under Visual Studio 2015; r=ted
32-bit PGO builds need to modify the PATH to find pgortXXX.dll. We were
doing this for Visual Studio 2013 (VC12) in 2 locations. We weren't
doing it for Visual Studio 2015. This resulted in a failure to launch
PGO instrumented executables because pgort140.dll could not be found.

This commit refactors the PATH munging to support Visual Studio 2015.

MozReview-Commit-ID: 4EKf8gjcNH6
2016-02-27 13:18:26 -08:00
Chris AtLee
5109ae1fcf Bug 1231379 - Disable omni.ja compression on desktop platforms r=catlee,glandium 2015-12-15 10:11:12 -05:00
Mike Hommey
72723e066c Bug 1216371 - Use the PiecemealFormatter for the OmniJarFormatter. r=gps 2015-11-19 08:05:51 +09:00
Mike Hommey
f5274b8df1 Bug 1224490 - Kill LIBXUL_DIST. r=mshal 2015-11-17 10:00:19 +09:00
Ehsan Akhgari
112be3554d Bug 1215676 - Disable leak reporting during packaging; r=glandium 2015-10-20 08:41:31 -04:00
Mike Hommey
899f1cabf4 Bug 1211765 - Remove remnants from --with-libxul-sdk. r=bsmedberg
The configure option has explicitly thrown an error for more than a year now,
and it happens that the remaining way to still forcefully use it has been
broken for more than 8 months.
2015-10-14 08:02:34 +09:00
Chris Manchester
432d21ea13 Bug 1181255 - Turn off tsan checking during packaging. r=glandium 2015-07-14 18:45:54 -07:00
Mike Hommey
2e51d2ef87 Bug 1147283 - Replace mozpack.path with mozpath. r=mshal
Back when mozpack.path was added, it was used as:

  import mozpack.path
  mozpack.path.func()

Nowadays, the common idiom is:

  import mozpack.path as mozpath
  mozpath.func()

because it's shorter.

$ git grep mozpath\\. | wc -l
423
$ git grep mozpack.path\\. | wc -l
123

This change was done with:
$ git grep -l mozpack.path\\. | xargs sed -i 's/mozpack\.path\./mozpath./g'
$ git grep -l 'import mozpack.path$' | xargs sed -i 's/import mozpack.path$/\0 as mozpath/'
$ (pat='import mozpack.path as mozpath'; git grep -l "$pat" | xargs sed -i "1,/$pat/b;/$pat/d")
2015-03-27 08:13:16 +09:00
Mike Hommey
af2413e477 Bug 910660 - Make the SimplePackager emit a separate base for addons. r=gps
Addons are detected by the presence of an install.rdf file in their base.
2015-03-24 09:10:33 +09:00
Mike Hommey
d14c249954 Bug 1143510 - Fix line numbers for removal errors during make package. r=gps 2015-03-17 10:04:20 +09:00
Mike Shal
b57132dd7f Bug 1123990 - installer needs voucher.bin; r=glandium, r=cpearce, a=RyanVM 2015-02-19 10:04:16 -05:00
Phil Ringnalda
96de3b5850 Back out f543e83304e9 (bug 1123990) for nightly build bustage
CLOSED TREE
2015-02-11 22:12:49 -08:00
Mike Shal
0d9d460e17 Bug 1123990 - installer needs voucher.bin; r=glandium, r=cpearce 2015-01-21 18:27:20 -05:00
Carsten "Tomcat" Book
07f732f050 Backed out changeset 2742651b0cd9 (bug 1123990) for suspicion that this broke the nightly builds a=sheriffduty 2015-02-03 13:49:17 +01:00
Mike Shal
8b5989b20c Bug 1123990 - installer needs voucher.bin; r=glandium, r=cpearce 2015-01-21 18:27:20 -05:00
Stephen Pohl
0fa995bd2a Bug 1096494: Cleanup package manifest after the v2 signing changes on OSX. r=rstrong 2014-11-18 12:15:03 -05:00
Carsten "Tomcat" Book
cb5a2aaea2 Backed out changeset 132909245ca8 (bug 1096494) for causing merge conflicts to m-c 2014-11-18 13:14:15 +01:00
Stephen Pohl
840ad4cc7a Bug 1096494: Cleanup package manifest after the v2 signing changes on OSX. r=rstrong 2014-11-17 13:23:12 -05:00
David Major
61e965f2d8 Bug 1084162 - Part 1: Move the PGO path hack to a more general location. r=ted 2014-11-04 14:26:36 +13:00
Mike Hommey
fc74d6a658 Fixup for bug 1038639. r=me 2014-07-17 09:37:21 +09:00
Brian R. Bondy
e696b03758 Bug 598615 - Rename HAVE_64BIT_OS to HAVE_64BIT_BUILD. r=ted 2014-06-24 22:16:25 -04:00
Alexandre Poirot
264295d76f Bug 999631 - Disable startup cache via a dedicated flag. r=mshal 2014-04-23 04:57:00 -04:00
Gregory Szorc
3ffe1dbe60 Bug 903149 - Part 3: Support for minifying packaged JavaScript; r=glandium 2013-09-11 19:54:19 -07:00
David Major
bd3edb5d47 Bug 919735: For VS2013, put the 32-bit PGO files first on the PATH. r=ted 2014-03-14 12:48:59 -07:00
Nick Alexander
804c0c9a2f Bug 888646 - Update missed use of SimpleManifestSink API. r=trivial
This is a simple follow-up to Bug 887121.
2013-06-29 20:15:08 -07:00
Mike Hommey
5630e65cba Bug 872439 - Fix GRE path used for startup cache precompilation with --with-libxul-sdk. r=gps 2013-05-15 19:23:03 +02:00
Panos Astithas
4bbedfdc51 Bug 855223 - Packaging fails when using a symlink format with: TypeError: fatal() takes exactly 2 arguments (3 given); r=glandium 2013-03-27 13:10:22 +02:00
Gregory Szorc
0b37be4ddf Bug 784841 - Part 17: Handle unicode during packaging; r=glandium 2013-02-25 12:47:17 -08:00
Mike Hommey
8c68cdf751 Bug 840094 - Change how nsZipArchive logging works. r=taras,r=gps
Now log in a single file given by the MOZ_JAR_LOG_FILE environment variable.
Log entries contain the URI of the Zip archive, followed by the path in the
archive.
* * *
Bug 840094 - Fixup for debug builds failure because of nsZipArchive::CloseArchive being called several times
2013-02-19 11:02:12 +01:00
Mike Hommey
2a64cdfa4a Bug 836218 - Always copy files instead of skipping when destination is newer when doing l10n-repacks. r=ted 2013-02-03 07:20:24 +01:00
Mike Hommey
0db6eb8e66 Bug 835309 - Look at .xpi file contents when unifying them for universal builds. r=gps 2013-02-03 07:19:15 +01:00
Mike Hommey
be417d0ed2 Bug 835309 - Fix JarFileReader.readlines() and make flake8 happier. r=gps 2013-02-03 07:18:55 +01:00