Граф коммитов

4976 Коммитов

Автор SHA1 Сообщение Дата
André Bargull f68188a9e5 Bug 1318403 - Part 4.1: Handle special casing characters in String.prototype.to(Lower|Upper)Case. r=Waldo 2017-04-06 10:11:05 +02:00
Carsten "Tomcat" Book 3a762886de Merge mozilla-central to mozilla-inbound 2017-04-07 15:33:03 +02:00
André Bargull 5923180124 Bug 1353649 - Update tzdata in ICU data files to 2017b. r=Waldo
--HG--
extra : rebase_source : 48f6ab3a2bc6c91a1b6cc7429dd1ac0cb12d68ff
extra : histedit_source : 9687446c9877953592b99dd51a6a4d22af874a70
2017-04-05 10:49:53 +02:00
Michael Layzell a6f6b4a390 Bug 1320179 - Part 4: MOZ_OBJDIR->MOZ_TOPOBJDIR and update m-c-changes.patch for protobuf changes, r=fitzgen
MozReview-Commit-ID: EPhkF350sGY
2017-04-06 18:37:31 -04:00
Michael Layzell 981693a30f Bug 1320179 - Part 2: Add the nserror rust crate and generate NS_ERROR codes, r=froydnj
MozReview-Commit-ID: FFU6WfEqev
2017-04-06 18:37:25 -04:00
Wes Kocher 1f91b9d155 Backed out 4 changesets (bug 1320179) for causing merge conflicts a=backout
Backed out changeset b8aa677f7452 (bug 1320179)
Backed out changeset 9e2f77570128 (bug 1320179)
Backed out changeset 470d8143b350 (bug 1320179)
Backed out changeset ea4f1b3cc7b1 (bug 1320179)
2017-04-06 15:29:24 -07:00
Michael Layzell c33097aeaa Bug 1320179 - Part 4: MOZ_OBJDIR->MOZ_TOPOBJDIR and update m-c-changes.patch for protobuf changes, r=fitzgen
MozReview-Commit-ID: EPhkF350sGY
2017-04-06 17:37:13 -04:00
Michael Layzell df411f4313 Bug 1320179 - Part 2: Add the nserror rust crate and generate NS_ERROR codes, r=froydnj
MozReview-Commit-ID: FFU6WfEqev
2017-04-06 17:22:08 -04:00
Mike Hommey 94c16743bb Bug 1344038 - Remove --disable-gio. r=karlt
--HG--
extra : rebase_source : 3b5b820536b0e9b1fb1da3a16c444ed7839770b9
2017-04-05 14:06:25 +09:00
Kartikaya Gupta 8e237884f7 Bug 1350001 - Run cargo in a clean environment when running in a MozillaBuild shell. r=ted
This prevents the variables set in vcvars.bat from causing build failures when
cargo tries to process build scripts in an environment where the default rust
toolchain doesn't match the MozillaBuild shell (in terms of 32-bit or 64-bit).

MozReview-Commit-ID: 5VRnQToYUYf

--HG--
extra : rebase_source : 4ac11f13e17ab04e70c7cb6f60ff46865027f506
2017-04-06 09:59:14 -04:00
Sebastian Hengst c8c533b78e Backed out changeset dc695c2ea24e (bug 1349064) for breaking Android build. r=backout 2017-04-06 22:49:32 +02:00
Sebastian Hengst be8901b6ca Backed out changeset 02e10c8eeb95 (bug 1349064) 2017-04-06 22:48:45 +02:00
Sebastian Hengst 110cacbc58 Backed out changeset 8c35a43033bc (bug 1349064) 2017-04-06 22:48:41 +02:00
Jeff Gilbert 4fbb95ac43 Bug 1349064 - Replace MSVC wrappers with std::exception::_Set_raise_handler. - r=froydnj
MozReview-Commit-ID: MG5c4bzDlI
2017-04-06 13:05:36 -07:00
Jeff Gilbert eaabf3f60f Bug 1349064 - Add <regex> to config/std-headers. - r=froydnj
MozReview-Commit-ID: 6PwjR2ENnfa
2017-04-06 13:05:33 -07:00
Jeff Gilbert 6616a79634 Bug 1349064 - Sort std-headers. - r=froydnj
MozReview-Commit-ID: IAgrtLrwqwD
2017-04-06 13:05:25 -07:00
Sebastian Hengst 312ab71575 Backed out changeset c34970cf36e9 (bug 1318403) 2017-04-06 15:23:13 +02:00
André Bargull 7bead5484a Bug 1318403 - Part 4.1: Handle special casing characters in String.prototype.to(Lower|Upper)Case. r=Waldo
--HG--
extra : rebase_source : 76ecb13008f5c7d5f224b08034653197df56966e
2017-04-06 10:11:05 +02:00
Mike Hommey 77e5b564fc Bug 1353640 - Also check sources in the objdir to preprocess generated sources. r=mshal
--HG--
extra : rebase_source : f4334635680d54e730346798450db8722f0443ff
2017-04-05 16:39:51 +09:00
Mike Hommey 91b701d7c6 Bug 1353640 - Use more targetted vpath instead of broad VPATH for preprocessor rules. r=mshal
VPATH applies to everything, but vpath applies to files matching the
pattern it's given.

--HG--
extra : rebase_source : 17339820e34f4d2f3d4ddde1a8a4325e92bfdb9e
2017-04-05 16:36:24 +09:00
Mike Hommey 9939009c87 Bug 1353640 - Avoid the preprocessor rules creating dependency files. r=mshal
--HG--
extra : rebase_source : bb9916f99533f518f1e65d5309130024c9288fb6
2017-04-05 16:33:37 +09:00
Mike Hommey b7fd4125eb Bug 1353640 - Factor the preprocessing rules to avoid all the redundancy. r=mshal
--HG--
extra : rebase_source : 4e45edfc94b06877ce25f1df5832faf61b236f66
2017-04-05 16:31:40 +09:00
Iris Hsiao 15a34cacd2 Backed out 3 changesets (bug 1344038) for bustage
Backed out changeset 4befea89d81b (bug 1344038)
Backed out changeset c859506b2e4e (bug 1344038)
Backed out changeset 5d28a6382285 (bug 1344038)

--HG--
rename : netwerk/protocol/gio/moz.build => extensions/gio/moz.build
rename : netwerk/protocol/gio/nsGIOProtocolHandler.cpp => extensions/gio/nsGIOProtocolHandler.cpp
2017-04-06 10:35:56 +08:00
Mike Hommey 0543a25916 Bug 1344038 - Remove --disable-gio. r=karlt
--HG--
extra : rebase_source : b380d5ebfc3689a9d8d4e3825c83028f837838f2
2017-04-05 14:06:25 +09:00
Mike Hommey 4bd092e460 Bug 1262241 - Add a build system mode that prints out how directories are recursed. r=mshal
Run with:
  make -C objdir target RECURSE_TRACE_ONLY=1

--HG--
extra : rebase_source : 25fd1812985433523cf94998b6f48fab8ace526f
2017-04-04 14:02:45 +09:00
Mike Hommey 767a11189c Bug 1353259 - Remove build system parts that generate a dtrace ELF object. r=mshal
The code doing that was already excluding OSX, so we obviously don't
need it on OSX. On FreeBSD, afaict, USDT (userspace dtrace) probes don't
require that extra ELF object. Solaris presumably does, but the 6 years
old bug 702179 says it's not been working for that long, and configure
doesn't support Solaris targets anyways.

Keeping this build system code working past the changes coming in bug
1262241 is not guaranteed and can't be tested, so I'd rather get rid of
effectively dead code rather than trying to maybe not break it while
moving it.

--HG--
extra : rebase_source : b41ab77804c17529e2580ced8e8b5fd302ff7831
2017-04-04 13:30:44 +09:00
Mike Hommey f4f1b7ba10 Bug 1353259 - Remove rules.mk sections depending on DTRACE_LIB_DEPENDENT. r=mshal
Nothing sets DTRACE_LIB_DEPENDENT.

--HG--
extra : rebase_source : adc650b19f1fa3af519d47482998033ccabb83a3
2017-04-04 13:28:11 +09:00
Jan Beich b7a7bfc4a0 Bug 1350426 - Define HAVE_POINTER_LOCALTIME_R in NSPR for Unix. r=glandium
MozReview-Commit-ID: FwMPxCDRTZS

--HG--
extra : rebase_source : 44644a63ddb401e409cddcd654025b8a8e9e0bfb
2017-03-24 19:45:06 +00:00
Tooru Fujisawa bdbfda64bc Bug 1343417 - Verify bytecode documentation in js/src/vm/Opcodes.h in make check. r=nbp 2017-04-03 10:14:38 +09:00
Ting-Yu Chou 9df076864f Bug 1347796 - Bump stack size 3x larger than default for win64 ASan. r=dbaron,gps
This is a similar issue to bug 582910 which the stack isn't big enough
to run the tests that recurse deeply. Set it 3x larger because the
offical site states they've seen up to 3x stack memory increase for
ASan, also the number was confirmed by the measurements in bug
1259796.


MozReview-Commit-ID: FLASlkVrEUM

--HG--
extra : rebase_source : 3e82439e3df7b1e2fa1759c9693bd197431c9f71
2017-03-20 10:52:00 +08:00
Xidorn Quan 12ae34813a Bug 1348157 - Add RUST_BACKTRACE=1 for cargo build. r=glandium
MozReview-Commit-ID: LOqNlOWZ2fC

--HG--
extra : source : a71fcfc7da72c159537cb3fd5ff9e3ef26168dac
2017-03-22 10:08:48 +11:00
Geoff Brown df122d5bfa Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach
sutagent is no longer built or used; devicemanagerSUT is completely
unused. After this change, devicemanagerADB is the only implementation of
devicemanager, and test harness options like --dm_trans are eliminated.
2017-03-21 12:20:01 -06:00
Jan Beich 2b7ca7d884 Bug 1348021 - Unbreak config/gcc_hidden.h build with libc++ after bug 1341238. r=froydnj
MozReview-Commit-ID: Bfv6inLV7lV

--HG--
extra : rebase_source : f0e2f461f4d3f4f54bf3d6db61a1202da7e8234c
2017-03-16 18:15:49 +00:00
David Major d1bf9bd2fd Bug 1345998: Clean up some unused libs and delayloads in xul.dll. r=glandium
MozReview-Commit-ID: 5VgLdt2esRY

--HG--
extra : rebase_source : 9197b09d2d27a5d38dec0a530afc30abe984481e
2017-03-14 22:23:52 +13:00
Makoto Kato cebfbb06e4 Bug 1345336 - Part 2. Update ICU date file. r=Waldo
MozReview-Commit-ID: 2CWHVsLtaIt
2017-03-13 13:38:01 +09:00
Sebastian Hengst 13270bd74d Backed out changeset 2140db6f8e48 (bug 1345336) 2017-03-13 10:46:40 +01:00
Makoto Kato 1f276e17d9 Bug 1345336 - Part 2. Update ICU date file. r=Waldo
MozReview-Commit-ID: 2CWHVsLtaIt

--HG--
extra : rebase_source : 0b800d13b8b1a4ab86a9f0e0472b4d7beb38eb79
2017-03-13 13:38:01 +09:00
BharatR123 a919e5ab29 Bug 1317099 - Fix filename in check_spidermonkey_style.py error message r=arai
MozReview-Commit-ID: 14H09snq6ht

--HG--
extra : rebase_source : 867fe7d39ab9e79dfdde4b8af15ebd6b94e7c491
2017-03-09 18:14:03 +05:30
Makoto Kato 37ffe9aa86 Bug 1340393 - Remove -FS option on SIMPLE_PROGRAM. r=glandium
Although bug 1322703 is backed out, we can remove -FS options to build SIMPLE_PROGRAM.

MozReview-Commit-ID: 7uO3We5hc5n

--HG--
extra : rebase_source : 6f909c4f38ba5a5bdffed7f9ca5be0030b9c681b
2017-03-07 17:19:04 +09:00
ffxbld cce942762c Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release
MozReview-Commit-ID: GEyM0F1O4hP
2017-03-06 23:53:55 +01:00
Carsten "Tomcat" Book cf269a43bd merge mozilla-inbound to mozilla-central a=merge 2017-03-03 13:03:48 +01:00
Makoto Kato 005b442f5f Bug 1225401 - Part 3. Update icudt58l.dat. r=Waldo
MozReview-Commit-ID: GxwJdkk134q
2017-03-03 15:16:06 +09:00
Makoto Kato 46f32e1ec4 Backed out changeset 8c51fd25a389 (bug 1225401)
MozReview-Commit-ID: HdWed0PDTc6
2017-03-03 14:16:07 +09:00
Makoto Kato 50db2c3032 Bug 1225401 - Part 3. Update icudt58l.dat. r=Waldo
MozReview-Commit-ID: BuB7VT3mwiS
2017-03-03 13:56:28 +09:00
Chris Manchester 69554aaee0 Bug 1339673 - Only force re-linking during PGO builds for the compile tier. r=glandium
Depending on a library or program in misc during a pgo build causes extraneous
rebuilding due to an added FORCE dependency, so we stop adding it except during
the compile tier.

MozReview-Commit-ID: 91dZFa6IRzt

--HG--
extra : rebase_source : 9994a5c05865c81d95ea075c753e270d3c223570
2017-02-17 11:08:50 -08:00
Sebastian Hengst 0c32b64e57 Backed out changeset 4aa866ebfeaa (bug 1322703) 2017-03-01 18:45:56 +01:00
Ted Mielczarek be6f12e547 bug 1322703 - use -Fd to specify unique PDB filename per-object-file for MSVC. r=glandium
MozReview-Commit-ID: CxpLruksaHg
2017-03-01 18:41:46 +01:00
André Bargull e10fb026e9 Bug 1343493 - Update tzdata in ICU data files to 2017a. r=Waldo 2017-03-02 02:11:16 -08:00
Ted Mielczarek b89045917e backout b7a2f7ff5e87 (bug 1322703) for making local xul.dll link times way slower
MozReview-Commit-ID: 5QVFWVhfFfD
2017-03-01 10:37:35 -05:00
Nathan Froyd 1cbbd567b5 Bug 1302704 - part 1 - define CARGO_TARGET_DIR in the backend; r=chmanchester
CARGO_TARGET_DIR is currently hardcoded to the current directory, but
we'd like the ability to choose a value for Rust libraries.
2017-02-23 10:35:07 -05:00
Iris Hsiao bc5590a600 Merge mozilla-central to autoland 2017-02-22 16:17:36 +08:00
Phil Ringnalda 53ccf8158e Backed out 5 changesets (bug 1318370) for mozilla-central Windows static-analysis bustage
Backed out changeset 196f9ddbf7aa (bug 1318370)
Backed out changeset 72f6eace33a1 (bug 1318370)
Backed out changeset c0c0e10ed613 (bug 1318370)
Backed out changeset a8032ae9cb2a (bug 1318370)
Backed out changeset 0848b3201c40 (bug 1318370)
2017-02-21 21:22:01 -08:00
Zibi Braniecki 27ba812587 Bug 1312053 - Expose an API to get locale information. r=Waldo
MozReview-Commit-ID: LivVJzrb3X1

--HG--
extra : rebase_source : a8c566cf918f01216e9f22e953da935ce41b7654
2017-02-17 20:06:43 -08:00
Lee Salzman fffec15aa3 Bug 1321129 - make nsShmImage stride compatible with XShm. r=karlt
MozReview-Commit-ID: GuiVTPKvAZM
2017-02-21 10:00:52 -05:00
Ted Mielczarek 0ba51f3683 bug 1318370 - move _DEPEND_CFLAGS+CL_INCLUDES_PREFIX to toolchain.configure, ignore {CC,CXX}_WRAPPER when using sccache r=glandium
Currently mozconfig.cache overrides a few build options for sccache. This
patch moves them into toolchain.configure so that the build system will
set them properly when sccache is in use. Additionally, {CC,CXX}_WRAPPER
are set in config.mk, so just avoid setting them when sccache is in use.

MozReview-Commit-ID: FYlVKRI8OiN

--HG--
extra : rebase_source : cc7e4346869b98a52840c101824044abc236637f
2017-01-10 16:52:27 -05:00
Ted Mielczarek 5d759be63f bug 1318370 - stop using -Z7 for MSVC compilation with sccache. r=glandium
We've been using -Z7 to make MSVC emit CodeView debug info directly in
the object files instead of in PDB files because sccache can't cache
PDB files if the same one is written to by multiple compiles, which
was previously happening in our build system, and was hard to override
in the NSS build. Now that those are fixed this should work fine.

This adds a bit to the compile rule to remove the PDB file before
compilation, since sccache won't cache a compilation if the PDB file
it is supposed to generate already exists (for the aforementioned reason).

MozReview-Commit-ID: rFlX0XfTGw

--HG--
extra : rebase_source : 8f991ce72115537466f5720c20dc53083f3b2b35
2016-12-14 14:58:26 -05:00
Ralph Giles 1021cfbd7f Bug 1340672 - Don't clobber CARGOFLAGS in non-debug builds. r=froydnj
Previously, we overrode the CARGOFLAGS when we set --release
for non-debug builds. This was an oversight from bug 1310939.

MozReview-Commit-ID: LOBkCmxwDzc

--HG--
extra : rebase_source : 0325d1705cb28d6c82369abffc6fac3ca5ee6f0a
2017-02-17 12:50:29 -08:00
Ralph Giles d3fb57abec Bug 1340587 - Remove MOZ_CARGO_SUPPORTS_FROZEN. r=froydnj
We now require cargo by version, and the minimum (0.16)
supports --frozen, so we don't need to check for this.

MozReview-Commit-ID: GPoadLkhRO5

--HG--
extra : rebase_source : e191e5dd2533e28c1bca0812f2776196cc3559cf
2017-02-17 12:16:45 -08:00
Mike Shal 206b54e042 Bug 1338608 - Use mozunit in check_mkdir.py; r=chmanchester
This makes the check_mkdir.py match the TEST-PASS output of other tests
in the suite.

MozReview-Commit-ID: FR3m09wRXg0

--HG--
extra : rebase_source : 2e59fb8bc4756a9ef9fdbcf69af80e179be80cc0
2017-02-02 18:04:23 -05:00
Mike Shal 0acd1a6b5f Bug 1338608 - Move check_mkdir.tpy into a python unittest manifest; r=chmanchester
We also rename it to check_mkdir.py for consistency with other python
files.

MozReview-Commit-ID: ALuX6NUMsD2

--HG--
rename : config/tests/makefiles/autodeps/check_mkdir.tpy => config/tests/makefiles/autodeps/check_mkdir.py
extra : rebase_source : a7215c832896dd040ae2c5b3c3c2d7247c8163d8
2017-02-02 17:49:11 -05:00
Mike Shal e86326d270 Bug 1338559 - Use the tier system to recurse for 'make check'; r=glandium
This helps us avoid recursing over every directory when we only need to
run 'make check' in a select few.

MozReview-Commit-ID: BJ3hJBOneIz

--HG--
extra : rebase_source : 2493f924b9ccba3c779e512d7a8b7a2c26f43797
2017-02-03 16:47:28 -05:00
Carsten "Tomcat" Book 4b09103e6f Merge mozilla-central to mozilla-inbound 2017-02-16 13:18:55 +01:00
Michał Górny f9a50474a4 Bug 1329798 - Include sys/sysmacros.h for major(), minor() on Linux. r=glandium
Include sys/sysmacros.h explicitly as that will be required by future
glibc versions to expose major() and minor() macros.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1329798
2017-02-15 00:49:00 +01:00
Tooru Fujisawa 43fdb1c7f0 Bug 1336783 - Part 1: Rework on reserved word and remove TokenStream::KeywordIsName. r=jwalden
--HG--
rename : js/src/jsautokw.py => js/src/frontend/GenerateReservedWords.py
rename : js/src/vm/Keywords.h => js/src/frontend/ReservedWords.h
2017-02-15 23:53:05 +09:00
Wes Kocher 51dac1f2e8 Merge m-c to autoland, a=merge
MozReview-Commit-ID: FqToQ9qk7dg
2017-02-15 16:33:46 -08:00
Ted Mielczarek 778b18b977 bug 1322703 - use -Fd to specify unique PDB filename per-object-file for MSVC. r=glandium
MozReview-Commit-ID: CxpLruksaHg

--HG--
extra : rebase_source : 16087aba96fb7e0d7f764b4ca21d27a78a19df4d
2016-12-14 14:40:59 -05:00
Kartikaya Gupta 7ed8a4e41a Bug 1337895 - Make the pkg-config rust crate happy when cross-compiling. r=froydnj
MozReview-Commit-ID: 1430wwCYbj4

--HG--
extra : rebase_source : a66e085219992f0cb75857afebeb1003df95bbdd
2017-02-08 14:13:50 -05:00
Tom Ritter 8d3b0051f6 Bug 1336569 Define SYMBOL_UNDERSCORE for ffi in the mingw build r=glandium
MozReview-Commit-ID: 6BiTcohFDPk

--HG--
extra : rebase_source : d783f2950009d07ea45cdcc693771f4141df6ee9
2017-02-08 09:36:04 -06:00
Martin Stransky 609b4c9aad Bug 1336047 - Add gdk/gdkwayland.h to system headers, r=glandium 2017-02-02 02:08:00 +01:00
Gregory Szorc 19ffcf1738 Bug 1322769 - Declare servo rust feature properly; r=manishearth
268fa5f3bc25 grafted an old patch to define --features=servo in
rules.mk. That patch was written before RUST_LIBRARY_FEATURES
existed. This commit fixes it up.

MozReview-Commit-ID: L5atm5CsP8d

--HG--
extra : amend_source : 9362db15a696ebd5871df94afb429d6f828de184
2017-02-02 16:32:54 -08:00
Gregory Szorc aaae03d7a8 Bug 1322769 - Add a "servo" feature; r=manishearth
MozReview-Commit-ID: A9dNTxNkl39

--HG--
extra : rebase_source : b9d115025beb00d596d34ca8d414a69b8ea2ba07
extra : source : f142ed52978bfab6407c252b7c56c53d0c3fcecd
2017-02-02 15:30:16 -08:00
Wes Kocher f5eab47fb9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: HVH8TbXbw7N
2017-02-01 16:30:50 -08:00
Michael Layzell 0dadca05f7 Bug 1335203 - Synchronize rust debug-assertions with C++ DEBUG, r=froydnj
MozReview-Commit-ID: JPD9eNFg89S
2017-02-01 13:54:22 -05:00
Chris Manchester d668d760b9 Bug 1333135 - Do not attempt to install SIMPLE_PROGRAMS during MOZ_PROFILE_GENERATE. r=mshal
MozReview-Commit-ID: BNvX0dFAIUf

--HG--
extra : rebase_source : ef5ccc377253b27012c7501197c232a18097a4f5
2017-02-01 10:59:41 -08:00
Mike Hommey dc5d1e6adf Bug 1335309 - Change the default for find_executables to False. r=mshal
Back when the class was written, for the packaging code, it made sense
that the default was True. But now that it's used all over the place,
and that the vast majority of uses are with find_executables=False, it
makes more sense for that to be the default.

--HG--
extra : rebase_source : ff813735fc0d53093f348f20eb77ee03e9b09d4e
2017-01-31 14:06:15 +09:00
Benjamin Smedberg beb6ea8925 Bug 1333826 - Remove a few references from .mk files, r=mshal
MozReview-Commit-ID: E5cDr4OO91C

--HG--
extra : rebase_source : 3480c22581113ceee42e07e933f10447048cec70
2017-01-25 14:21:30 -05:00
Benjamin Smedberg ca77995f5d Bug 1333826 - Remove SDK_FILES, SDK_LIBRARY, and related is_sdk support in the build goop, r=mshal
MozReview-Commit-ID: 52vPyDXdFte

--HG--
extra : rebase_source : c3217730bb70eb7319152dd07536b12f49d6a597
2017-01-30 11:24:10 -05:00
Nathan Froyd 960aa50e1b Bug 1324296 - only enable verbose cargo output if BUILD_VERBOSE_LOG; r=ted.mielczarek
This mirrors what we do elsewhere for C/C++/etc.
2017-01-26 20:38:27 -05:00
Chris Manchester 26adeacc8a Bug 1312916 - Add support for host rust libraries in moz.build. r=froydnj
MozReview-Commit-ID: It8VH5Obnx5

--HG--
extra : rebase_source : bc4dabb18ff51c45ac8df5a409881d0d4a7279fa
2017-01-19 14:58:10 -08:00
ffxbld ed04f7a449 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2017-01-23 15:38:06 +00:00
nfroyd@mozilla.com 8b92f8beb8 Bug 1302028 - part 6 - pass LIBCLANG_PATH and CLANG_PATH environment variables to cargo build; r=gps 2017-01-20 16:33:04 +00:00
Jan Beich 37441c2712 Bug 1325246 - Unbreak build --with-system-icu after bug 1270146. r=glandium
MozReview-Commit-ID: Dob5wTmHgxn

--HG--
extra : rebase_source : 7505163d23978c4cbb308314ba78a7063199face
2016-12-22 01:42:19 +00:00
André Bargull da4c250c9f Bug 1323254 - Part 1: Update in-tree ICU to release 58.2. r=Waldo 2016-12-13 13:15:43 -08:00
Zibi Braniecki ee5fe1af13 Bug 1270146 - Add PluralRules API. r=Waldo
MozReview-Commit-ID: 2WCcMjiGjwZ

--HG--
extra : rebase_source : 4fa494e35424be579ba3714bab2a4e1932d6404c
2016-12-20 11:54:44 -08:00
Xidorn Quan a2cddc7eb7 Bug 1323127 - Pass absolute path of DIST to cargo. r=froydnj
MozReview-Commit-ID: GOK2MSA6imC

--HG--
extra : rebase_source : 4abe1a93ff488a4612f4f6f4ca3961c9db3456e7
2016-12-13 15:38:37 +11:00
Phil Ringnalda 5b74c14e18 Backed out changeset 349a316ed0f7 (bug 1316735) for build packaging failures
CLOSED TREE
2016-12-13 10:48:40 -08:00
Jack Bates c2c1c10265 Bug 1316735 - Relative symlinks in the dist directory. r=gps
Make the symlinks in the dist directory relative instead of absolute.

MozReview-Commit-ID: HS7KL4JwSbV

--HG--
extra : rebase_source : 5dca673cc17423d47e6707d8800f7ee9693a9c48
2016-11-10 22:24:38 +00:00
André Bargull d1745aead9 Bug 1321030: Update tzdata in ICU data files to 2016j. r=Waldo 2016-11-29 15:16:21 -08:00
Phil Ringnalda 2edc2d42db Merge m-i to m-c, a=merge
MozReview-Commit-ID: ByPMe4s1FrG
2016-12-02 22:17:31 -08:00
Gregory Szorc c7c65f2fb5 Bug 1321750 - Remove automatic color flags from HOST_CFLAGS, HOST_CXXFLAGS; r=glandium
moz.configure only sets the color flags value for the target compiler.
If the host compiler is a different version and doesn't support color
flags, we may pass unrecognized command line options.

Until we have better distinction between host and target compilers
throughout the build system, just disable automatic color flags for
host invocations. We don't have too many host binaries, so this should
have negligible impact.

MozReview-Commit-ID: KWTLkKvtwHs

--HG--
extra : rebase_source : 97a7240a796bae42221b2952d4dc1e66294e6219
2016-12-02 10:10:24 -08:00
Nathan Froyd 1c12d3858c Bug 1319156 - part 2 - handle Rust library features in the recursivemake backend; r=chmanchester 2016-12-02 11:39:15 -05:00
Nathan Froyd 8783deedb3 Bug 1318981 - part 2 - pass MOZ_DIST as an environment variable to `cargo build`; r=chmanchester
rust-bindgen, at least, will need to know where Gecko's headers are to
parse them.
2016-12-02 11:38:45 -05:00
Nathan Froyd b3f52ed877 Bug 1318981 - part 1 - factor out a CARGO_BUILD makefile variable; r=chmanchester
This change makes the individual cargo rules easier to understand, and
provides a single place to change e.g. environment variables passed to
cargo.
2016-12-02 11:38:45 -05:00
Ting-Yu Chou 4941450f3f Bug 1316545 part 4 - Run clang.exe instead of clang-cl.exe for loading the plugin. r=ehsan,glandium
MozReview-Commit-ID: K85tFo0nzoI

--HG--
extra : histedit_source : 2652e6144760cf77d10ba3b28fc73b85378ec585
2016-11-22 14:20:58 +08:00
Mike Hommey 07083a8dfb Bug 1317504 - Make MSVC builds use the LINK variable instead of LD. r=chmanchester
At the same time, remove HOST_LD. It was only used for MSVC builds,
which don't support cross-compile anyways, so we can, at least for now,
use LINK for both host and target.

--HG--
extra : rebase_source : 9ee9e7e1bd3edefc043fa63d5c03f2a242f76982
2016-11-24 15:45:16 +09:00
Nathan Froyd 36fb414815 Bug 1293253 - part 6 - add build and installation rules for {HOST_,}RUST_PROGRAMS; r=chmanchester
The only complicating factor here is having to split out the --target
flag from cargo_build_flags, so we can pass the appropriate one
depending on our build target.
2016-11-28 11:20:39 -05:00
Nathan Froyd 3d6a6a666a Bug 1293253 - part 5 - move cargo_build_flags determination out of RUST_LIBRARY_FILE block; r=chmanchester
We need cargo_build_flags not just for Rust libraries now, but for Rust
programs as well.
2016-11-28 11:20:39 -05:00
Nathan Froyd cd91c3196d Bug 1293253 - part 1 - modify existing Rust library build rules to be explicitly about libraries; r=chmanchester
In preparation for a world where we have cargo building binaries too,
the existing rules should be renamed to reflect their library
associations.  The lone Cargo invocation should be updated to explicitly
build libraries only, so libraries and binaries in the same directory
will work correctly.

Fixup a leftover comment from a previous set of changes while we're here.
2016-11-28 11:20:39 -05:00
Wes Kocher b851c06cc9 Merge m-c to inbound, a=merge 2016-11-23 16:18:24 -08:00
André Bargull fa6366e3c1 Bug 1319465 - Use the newer ICU string normalization API to improve performance for partially normalized strings. r=arai 2016-11-22 09:20:18 -08:00
Sebastian Hengst e572ef1bbb Backed out changeset aabf76e98464 (bug 1319465) for failure in Intl.h in Sm-tc(nu). r=backout 2016-11-23 17:40:54 +01:00
André Bargull f65a5306ad Bug 1319465: Use the newer ICU string normalization API to improve performance for partially normalized strings. r=arai 2016-11-22 09:20:18 -08:00
Gregory Szorc ef9dd4c540 Bug 1319166 - Don't automatically enable color in iTerm2; r=glandium
iTerm2 interprets the byte sequence "ESC [ 2 i" as a request to open
a print dialog. This sequence can get emitted when printing colorized
compiler output.

Until we figure out a workaround, disable automatic coloring on iTerm2
so developers aren't annoyed.

MozReview-Commit-ID: 3Be4YgArg4k

--HG--
extra : rebase_source : e4e441a6fd97b09f55b05d53af91890649249e1c
2016-11-21 22:37:01 -08:00
Carsten "Tomcat" Book 8b27dda5d1 merge mozilla-inbound to mozilla-central a=merge 2016-11-22 15:53:05 +01:00
Andrew Halberstadt 6adcf5b456 Bug 1317970 - Use manifestparser manifests for python unit tests, r=chmanchester
This deprecates PYTHON_UNIT_TESTS and replaces it with PYTHON_UNITTEST_MANIFESTS.
In the build system, this means python unittests will be treated the same as all
other test suites that use manifestparser. New manifests called 'python.ini' have
been created for all test directories containing python unittests.

MozReview-Commit-ID: IBHG7Thif2D

--HG--
extra : rebase_source : 11a92a2bc544d067946bbd774975140147458caa
2016-11-16 09:59:22 -05:00
Mike Hommey e8af659498 Bug 1319345 - application.ini fixup for artifact build bustage; r=gps
--HG--
extra : amend_source : 2ee3e26e5e68bbdf718d02dd0d86d40fb0d18be6
2016-11-22 14:50:28 -08:00
Nathan Froyd 55243ce768 Bug 1300835 - enable --disable-optimize --enable-debug to DTRT for Rust code; r=ted.mielczarek 2016-11-21 17:39:39 -05:00
Richard Marti 26169e82fa Bug 1318798 - Remove config/external/nss/target in recurse.mk. r=ted
MozReview-Commit-ID: 884NGQYXfQl

--HG--
extra : amend_source : ed7edd124dc7f1847063f5c0f5a9b068cf45ffa3
2016-11-19 16:15:35 +01:00
Ted Mielczarek a449823a50 bug 1295937 - build NSS using gyp files. r=glandium
MozReview-Commit-ID: Gm1PLWSJwbD

--HG--
rename : config/external/nss/moz.build => security/moz.build
rename : config/external/nss/nss.symbols => security/nss.symbols
extra : rebase_source : bedd3b2f315f8504e1d0cb1ee94720e380466e5b
2016-11-09 12:37:09 -05:00
André Bargull af66848eae Bug 1314920 - Update tzdata in ICU data files to 2016i. r=Waldo
--HG--
extra : rebase_source : 3c3b0fa19d7d8f8a47148afaea4290fe6d9b6e65
2016-11-07 10:10:21 -08:00
Gregory Szorc 4732e7cb34 Bug 1171610 - Automatically enable color in compiler output; r=glandium
GCC and Clang will colorize compiler output automatically if stdout is a
TTY. Unfortunately, when the build backend is invoked via `mach`,
stdout is not a TTY.

6e9a4c0b9cd8 (bug 1315785) changed mach so it exports an environment
variable indicating whether mach's original stdout is a TTY. This was
later used to add color flags to `cargo` invocations.

Building on that work, this patch adds color flags to compiler
invocations if the compiler supports color and a mach TTY is
detected. The result is that compiler output from `mach build`
will be colorized automatically if Clang or a modern version of
GCC is used.

The only issue I see with this is that Clang doesn't "unset" its color
sequences when printing a newline. As a result, mach's time line
prefixing can sometimes inherit "bold" or other stylings. AFAICT this is
only a minor cosmetic concern. GCC does not exhibit this issue.

MozReview-Commit-ID: 5Icu6aXGZBL

--HG--
extra : rebase_source : 5b2bf5a287fdf8075b3d7dde36b91f3c65b60728
2016-11-09 14:01:24 -08:00
Phil Ringnalda aee7b7f39e Merge m-c to autoland 2016-11-14 20:08:18 -08:00
ffxbld d07aca95ba Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-11-14 13:29:32 +01:00
Martin Thomson 0b45b71319 Bug 1316261 - Configure trust anchors list to be empty for WebRTC, r=drno
MozReview-Commit-ID: ltSVAAp2WF

--HG--
extra : rebase_source : cd7e2aea72c74e8eda7089f5a540d3a839534acf
2016-11-12 10:57:21 +11:00
Carsten "Tomcat" Book 846adaea6c merge mozilla-inbound to mozilla-central a=merge 2016-11-09 16:38:04 +01:00
Gregory Szorc 389dbcf95f Bug 1315785 - Invoke cargo with --color=always when original stdout is a TTY; r=glandium
Combined with the previous patch that sets MACH_STDOUT_ISATTY, the
practical effect of this patch is that cargo is invoked with
`--color=always` when mach was attached to a TTY and colorized output
is sent to the terminal.

Note: this doesn't work with Rust/Cargo 1.10 for reasons unknown to me.
It appears there was a bug with Rust/Cargo because `--color=never` still
sent colorized output on that version! Cargo/Rust 1.12.1 works fine.

MozReview-Commit-ID: 6uXS3t3413i

--HG--
extra : rebase_source : 72df6e8248cb14c96850964f694576c7fd2f5fbb
2016-11-07 13:46:15 -08:00
Jan Beich 5e4ba89dca Bug 1315882 - Unbreak --with-system-nspr after bug 1115944. r=glandium
MozReview-Commit-ID: H9A63lwCasG

--HG--
extra : rebase_source : eded64cd638b5efc1293af0060e684c743993177
2016-11-08 06:44:36 +00:00
David Keeler aca0d93d8d bug 1195434 - specify what signature schemes the platform will actually accept in TLS handshakes r=mt
MozReview-Commit-ID: A3T4EgEfcfy

--HG--
extra : rebase_source : 0369bb38069fde33a57e885b5009257b4a16c7ac
2016-11-03 12:53:23 -07:00
Phil Ringnalda 06521a66a4 Merge m-c to m-i
MozReview-Commit-ID: 7W5SwSOspcB
2016-11-04 21:04:44 -07:00
Mike Hommey 342e5e3816 Bug 1115944 - Work around race condition between building NSPR and NSS. r=mshal
--HG--
extra : rebase_source : 61a9a23360d16ad6d60b0bb65107f2cb797d9736
2016-11-04 17:06:51 +09:00
André Bargull def7683621 Bug 1299615 - Part 5: Update tzdata in ICU data files to 2016h. r=Waldo 2016-10-27 15:39:49 -07:00
André Bargull a934a3b70d Bug 1299615 - Part 3: Update in-tree ICU to release 58.1. rs=Waldo 2016-11-03 05:27:28 -07:00
Emanuel Hoogeveen e0a81d7503 Bug 1309573 - Part 2: Define MOZ_HAS_MOZGLUE in various places so that the crash reason gets used. r=glandium
--HG--
extra : rebase_source : d55e8dd75469759f333366bdf9662178ff0a2474
2016-11-08 03:53:00 -05:00
Zibi Braniecki 89b4923282 Bug 966559 - Use public C API for NumberingSystem. r=Waldo
MozReview-Commit-ID: CBICCJQXI7R

--HG--
extra : rebase_source : b74b9d6038580ab970565bb56c09d5330be92407
2016-11-01 12:15:26 -07:00
Aaron Klotz a426b005cc Bug 1310841: Modify build rules to allow specification of a manifest for Windows DLLs; r=gps
MozReview-Commit-ID: EdY8Kx8irYW

--HG--
extra : histedit_source : 2c62d93279b54c30840910fb3fe54f9276a80f01
2016-10-17 16:03:11 -06:00
André Bargull aec865dde5 Bug 1312061 - iUpdate tzdata in ICU data files to 2016h. r=Waldo 2016-10-21 10:18:12 -07:00
Cameron McCormack 4378d41370 Bug 1310939 - Pass $(CARGOFLAGS) to cargo invocations so cargo flags can be passed from a .mozconfig file. r=froydnj
MozReview-Commit-ID: A5GNTzS0BTM

--HG--
extra : amend_source : 01749f41a239949510bbc1e90a3324c934cfe86a
2016-10-18 16:04:57 +08:00
André Bargull e92830ccfa Bug 1310733 - Part 1: Update tzdata in ICU data files to 2016g. r=Waldo
--HG--
extra : rebase_source : d96161ceb37720a00237d60c0c1b83112b056926
2016-10-18 11:45:57 -07:00
Eugen Sawin 5b99355518 Bug 1307570 - [1.4] Add XZ Embedded support configuration, scripts and the initial library version. r=glandium 2016-10-18 15:11:02 +02:00
Ted Mielczarek e9130abab5 bug 1305731 - Revert workaround from bug 1301751 now that we have updated to Rust 1.12. r=froydnj
MozReview-Commit-ID: 3akbELExfKT

--HG--
extra : rebase_source : 0308214bae6eb683df65991fc91d41679acd3530
2016-10-17 10:47:30 -04:00
Nathan Froyd e818915fae Bug 1304815 - rearrange Rust crate structure for newer Rust releases; r=ted.mielczarek
In our current Rust world, we have the following dependency structure:

  xul.so --------------------------+
                                   |
  xul-gtest.so -+--> xul.a --------+-> gkrust
                |
                +--> gkrust-gtest

This structure results in link errors with multiply-defined symbols
between gkrust-gtest and gkrust with newer Rust releases when linking
xul-gtest.so.  So we have to do something different.

Our new structure is:

  xul.so --------------------------+
                                   |
  xul-gtest.so -+--> xul.a --------+-> gkrust --+-> gkrust-shared
                |                               |
                +--> gkrust-gtest --------------+

and we enforce that a given shared library can only have at most one
Rust library that it depends on.  Said Rust library is assumed to
include all significant Rust dependencies of the dependent static
libraries as well.  (In the above structure, gkrust is simply a wrapper
around gkrust-shared, so gkrust-gtest doesn't have to include gkrust as
a dependency.)
2016-10-15 18:16:13 -04:00
Chris Pearce 35e13f726f Bug 1308076 - Move ClearKeyCencParser to PsshParser library. r=glandium
To validate the PSSH init data passed to EME, I'd like to reuse the same
PSSH parser that the ClearKey CDM shared library uses. So move the code
out of gmp-clearkey and into its own library, so we can link it statically
into code that needs to use it.



MozReview-Commit-ID: 7xSUSmCueJz

--HG--
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.cpp => media/psshparser/PsshParser.cpp
rename : media/gmp-clearkey/0.1/ClearKeyCencParser.h => media/psshparser/PsshParser.h
extra : source : 78dcbc5d3c26547c63269eb14034a67863cf28de
2016-10-06 20:23:38 +13:00
Enes Goktas 43ddfab91c Bug 1303227 - Wrap libxul.so linker to prevent getting the linking process killed; r=glandium
This patch removes the memory usage tracking in the script that wraps the
linking of the xul library. This patch also generalizes the wrapping of the
xul linking process to all platforms.

MozReview-Commit-ID: HyncF3aVwdx

--HG--
extra : rebase_source : 8fb90c896dc57793d1c9d9aa4e8492dec8697e36
2016-09-20 17:58:34 -07:00
Andrew Halberstadt 6b48ddc0b0 Bug 1304593 - Use |mach python-test| to run python unittests from make check, r=ted
Currently make check loops over all directories and runs each test file in PYTHON_UNIT_TESTS
individually. This patch instead creates a single top-level check target that runs
|mach python-tests|. This should make automation more similar to running locally, be a bit
quicker and make it easier to pull python tests out of make check completely at a future date.

MozReview-Commit-ID: 4Hg4zdFyc61

--HG--
extra : rebase_source : 31d0c38a76c11b75d3bf569f2bf22a0666161726
2016-09-26 15:29:02 -04:00
Carsten "Tomcat" Book 5b45193594 merge mozilla-inbound to mozilla-central a=merge 2016-09-29 11:44:58 +02:00
Makoto Kato d78efa6ffb Bug 1305677 - Remove requirement of libffi on aarch64 as default. r=chmanchester
To support android/aarch64, I want to remove the requirement of system's libffi.

MozReview-Commit-ID: Lc3POx09Cks

--HG--
extra : rebase_source : 384852e7b9e61d0d7a950159535e3ddc8457e889
2016-09-27 19:16:03 +09:00
Makoto Kato 347d2f4b09 Bug 1305931 - --enable-system-ffi is broken after landing bug 1262155. r=chmanchester
MozReview-Commit-ID: MQlMdXDhbW

--HG--
extra : rebase_source : cecaa8451f4bbad5ea77211f64c1dc5c90fe5257
2016-09-28 15:41:15 +09:00
Carsten "Tomcat" Book b5206d37f5 Merge mozilla-central to mozilla-inbound 2016-09-28 16:25:01 +02:00
Carsten "Tomcat" Book 572e74ee99 merge mozilla-inbound to mozilla-central a=merge 2016-09-28 15:56:33 +02:00
Tooru Fujisawa fd9e045dcb Bug 1304970 - Check encoding of js.msg-like files. r=jandem,gps 2016-09-28 14:12:54 +09:00
Ted Mielczarek abdba70d60 bug 1301751 - work around llvm-dsymutil crash by building rust with debuginfo=1 instead of -g. r=froydnj
MozReview-Commit-ID: 5pK8okLw0Cl

--HG--
extra : rebase_source : f1c366ae3751bcd70272e77c7754fb4adeafdd7b
2016-09-27 06:24:24 -04:00
Ted Mielczarek 6fba0e392a bug 1256642 - have the build system automatically detect LIB_IS_C_ONLY. r=glandium
MozReview-Commit-ID: 3xWSEe0Tmp9

--HG--
extra : rebase_source : 473fd5911dcf5e6d0122cb74de16e7d41cd35cdc
2016-08-24 11:29:00 -04:00
Sergei Chernov 976d5c3f1d Bug 1293231 - Certificate Transparency - basic telemetry reports; r=Cykesiopka,keeler
MozReview-Commit-ID: EGvuZADObJo

--HG--
extra : rebase_source : 9a059c9f8e2fdf9bfc693b0b5649808b1beeb67b
2016-08-11 13:41:50 +03:00
Martin Thomson 6158ad648f Bug 1304926 - Enable specific named groups, r=keeler
MozReview-Commit-ID: KIe6D9iRAXt

--HG--
extra : rebase_source : a8f6d712b59bf373e52a88b8451c8db4a3f71d65
extra : amend_source : 071e9f4c3ebe336af3888b76e778d0d753d326fc
2016-09-26 15:06:42 +10:00
Martin Thomson 54eb5cb215 Bug 1304919 - Update WebRTC to latest NSS, r=ekr
MozReview-Commit-ID: Jz9lraGZIyx

--HG--
extra : rebase_source : 9b80b600f46ecc04ea9f282342d3a98ef0e915b8
extra : source : f1aace586e14a276cc43dd00111d5c9d04580ea0
2016-09-23 13:47:00 +10:00
Sebastian Hengst a0d432121c Backed out changeset f1aace586e14 (bug 1304919) 2016-09-24 18:00:08 +02:00
Martin Thomson d566e166e9 Bug 1304919 - Update WebRTC to latest NSS, r=ekr
MozReview-Commit-ID: Jz9lraGZIyx

--HG--
extra : rebase_source : 9731046d82e7aeef9192fe6e7ce10dd56d80a78d
2016-09-23 13:47:00 +10:00
Chris Manchester 6736329d5e Bug 1262155 - Use moz.build instead of libffi's build system. r=ted,glandium
MozReview-Commit-ID: 3wobNk0HDU5
2016-08-08 16:58:54 -07:00
Chris Manchester bb8ff6012c Bug 1262155 - Always pass defines when compiling SOBJS. r=ted
This is relevant when attempting to build libffi with our build system
(libffi expects its assembly sources to be pre-processed).

MozReview-Commit-ID: J6mCUkYYjQh
2016-09-21 12:04:08 -07:00
Nathan Froyd ed9a70c138 Bug 1301076 - remove stlport support from the build system and stlport code; r=glandium
We can no longer build with STLport now that we require a
C++11-compliant standard library, so we might as well get rid of all the
support for it.
2016-09-21 19:21:40 -04:00
Michael Layzell 05bd5a1076 Bug 1300208 - Allow specifying multiple rust crates to mozbuild within the same FINAL_LIBRARY, r=froydnj
MozReview-Commit-ID: IIjV4Kg7wOv
2016-09-20 11:26:43 -04:00
Benjamin Bouvier 825a1575d8 Bug 1303085: Add fenv.h to the list of system-headers for rint/rintf; r=glandium
MozReview-Commit-ID: 2aOUxKqBj3g

--HG--
extra : rebase_source : 2481b138daa5fca18b8692ab47dbbb2ccdd0394b
extra : histedit_source : 4ad1e9befd98103ce80ffbfc1d70533e33c1e74f
2016-09-15 21:00:03 +02:00
ffxbld 857d1ac980 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-09-19 09:45:57 -04:00
Gian-Carlo Pascutto 2326cba3bf Bug 977786 - Add tests for nsProfileLock. r=ted
MozReview-Commit-ID: 6Cr0EwVwVIq

--HG--
extra : rebase_source : 9e85ddca27685f0fcfbe518884cc05e922f1994f
extra : histedit_source : 6f1d53d79f59ee6a8319e05e5943653b4e026522
2016-09-16 17:31:14 +02:00
Carsten "Tomcat" Book d2c3fe7fd3 merge autoland to mozilla-central a=merge 2016-09-14 12:07:02 +02:00
Tooru Fujisawa c0fc17d9f4 Bug 1298779 - Port jskwgen to Python. r=jwalden 2016-09-14 12:16:41 +09:00
Nathan Froyd a83ad8b858 Bug 1298472 - part 2 - use #include_next in STL header wrappers for clang-cl; r=glandium
clang-cl's system header detection doesn't kick in if we're using full
paths to the STL headers we need to include.  And if certain headers
aren't recognized as system headers, we get a pile of warnings from
said headers.  Use #include_next to ensure that system headers are
recognized as such, and suppress the warnings.

MozReview-Commit-ID: 4ZlAAGa49M1

--HG--
extra : rebase_source : c56711e09118fe930f389cc48543a661c293d7e4
2016-09-09 09:01:14 -04:00
Martin Thomson 3561540a50 Bug 1188657 - Enable SSLKEYLOGFILE for non-release builds, r=kaie,glandium
MozReview-Commit-ID: CeTSLPmkoJ8
2016-04-26 19:40:41 +10:00
Nathan Froyd 3369462f39 Bug 1298466 - avoid some spammy warnings for ICU when compiling with clang-cl; r=ted.mielczarek
We don't need to hear about ICU redefining macros we set up or about
include paths that are Microsoft-specific, but still resolve to where
they need to go.

MozReview-Commit-ID: D9lFiNCvkOh

--HG--
extra : rebase_source : 66848780bb4e2473a7f1df9a621f0b2f54171e70
2016-08-25 17:13:51 -04:00
Chris Manchester b0b84a1928 Bug 1240134 - Incorporate the interfaces.xpt from downloaded artifacts instead of building XPIDL during an artifact build. r=glandium
MozReview-Commit-ID: 8oEyS1xLOwV
2016-08-17 15:02:31 -07:00
Elias Probst fa561f244a Bug 1293234 - Use octal notation for permission modes in the build system; r=gps
As of Python 3, decimal notations of octal values for permission modes
are no longer permitted and will result in a `SyntaxError` exception
(`invalid token`).

Using the proper octal notation which is also Python 2.7 compatible will
fix this issue.

--HG--
extra : rebase_source : 2e897c51f04ad0ee69071f84b98df224f3af72d3
2016-08-08 13:45:17 +02:00
Carsten "Tomcat" Book 553a2da922 merge mozilla-inbound to mozilla-central a=merge 2016-08-10 15:54:26 +02:00
Mike Shal 549dd4ff30 Bug 1293784 - Only recurse into xpcom/idl-parser/xpidl once; r=gps
MozReview-Commit-ID: 823OM551BH6

--HG--
extra : rebase_source : 0770b3156d9abd60cb3520eaee87f1a3211a8351
2016-08-09 16:58:18 -04:00
Nathan Froyd 5330c39ccd Bug 1293315 - remove RUSTFLAGS and friends from the build system; r=mshal
Now that we compile with cargo, we don't have fine-grained control over
the build flags used via environment variables detected in configure or
set in config.mk.  We should just remove that dead code so nobody trips
over it.
2016-08-09 18:10:19 -04:00
Nathan Froyd f7fb6722a6 Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester
This patch is really two separate changes.

The first change is that rust crates are large, standalone entities that
may contain multitudes of source files.  It therefore doesn't make sense
to keep them in SOURCES, as we have been doing.  Moving to use cargo
will require a higher-level approach, which suggests that we need a
different, higher-level representation for Rust sources in the build
system.

The representation here is to have the build system refer to things
defined in Cargo.toml files as the entities dealt with in the build
system, and let Cargo deal with the details of actually building things.
This approach means that adding a new crate to an existing library just
requires editing Rust and Cargo.toml files, rather than dealing with
moz.build, which seems more natural to Rust programmers.  By having the
source files for libraries (and binaries in subsequent iterations of
this support) checked in to the tree, we can also take advantage of
Cargo.lock files.

The second is that we switch the core build system over to building via
cargo, rather than invoking rustc directly.

We also clean up a number of leftover things from the Old Way of doing
things.  A number of tests are added to confirm that we'll only permit
crates to be built that have dependencies in-tree.
2016-08-06 00:49:26 -04:00
Nathan Froyd 4fb1a7545d Bug 1231764 - part 0 - only link librul once; r=chmanchester
Through an oversight, we listed librul.a twice when linking libxul: once
as part of the "objects" we were linking, and once as a static library.
This duplication is unnecessary and would cause problems later when we
try to generate librul.a via cargo, as cargo will put it someplace
different from where we expect and the two names will conflict.  Let's
have rules.mk be the single source of truth for how librul.a is named,
and then the code to link libxul can simply refer to that name.
2016-08-06 00:49:26 -04:00
Carsten "Tomcat" Book cf611bec79 merge mozilla-inboudn to mozilla-central a=merge 2016-08-05 12:01:14 +02:00
Mike Hommey 9712b25c12 Bug 1292080 - Don't set NSINSTALL_BIN from old-configure. r=gps
The only use of this variable is to override NSINSTALL, and its value is
the same as NSINSTALL_PY.

While here, remove the outdated NSINSTALL_NATIVECMD that was used for
pymake.

--HG--
extra : rebase_source : b871fbb409836a17cb8d71cd1e5ddc9d5ad3f49f
2016-08-04 17:55:54 +09:00
James Willcox 26bcde6a5e Bug 1255628 - Replace and/or remove some graphics-related calls in AndroidBridge with NDK equivalents r=jchen 2016-08-04 09:23:34 -05:00
Carsten "Tomcat" Book 389a3e0817 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/GeckoLayerClient.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/LayerRenderer.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerRenderer.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/PanningPerfAPI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanningPerfAPI.java
2016-08-04 15:55:50 +02:00
Wes Kocher 9605851be0 Backed out 7 changesets (bug 1231764) for apparently causing linux debug wpt bustage
Backed out changeset 4b71272c92cf (bug 1231764)
Backed out changeset 234d8a930afa (bug 1231764)
Backed out changeset f9b204c2f5a7 (bug 1231764)
Backed out changeset f933119e57e4 (bug 1231764)
Backed out changeset e3af0b1d3473 (bug 1231764)
Backed out changeset 643b03aae1dd (bug 1231764)
Backed out changeset a945dbf63410 (bug 1231764)

--HG--
extra : rebase_source : e71360fa4b5e3e74859c82e74e183e13e6211c4c
2016-08-03 16:27:06 -07:00
Mike Hommey 47ba08e825 Bug 1290616 - Pass down LD to the NSS build system. r=gps
as opposed to passing down LINK when cross compiling.
Until bug 1290334, LINK was the variable used by the NSS build system
for the linker on Windows, but it now uses LD, like on other platforms.

But its default value on Windows is "link", which can pick /usr/bin/link
on msys2, instead of MSVC's so, pass down LD from the Gecko build
system. And do so an all platforms in all cases, because it shouldn't
hurt.

--HG--
extra : rebase_source : 3eb8236a8f032468d10c874be2daa1c66986bd47
2016-07-30 08:01:45 +09:00
Nathan Froyd 6b2618fb44 Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester
This patch is really two separate changes.

The first change is that rust crates are large, standalone entities that
may contain multitudes of source files.  It therefore doesn't make sense
to keep them in SOURCES, as we have been doing.  Moving to use cargo
will require a higher-level approach, which suggests that we need a
different, higher-level representation for Rust sources in the build
system.

The representation here is to have the build system refer to things
defined in Cargo.toml files as the entities dealt with in the build
system, and let Cargo deal with the details of actually building things.
This approach means that adding a new crate to an existing library just
requires editing Rust and Cargo.toml files, rather than dealing with
moz.build, which seems more natural to Rust programmers.  By having the
source files for libraries (and binaries in subsequent iterations of
this support) checked in to the tree, we can also take advantage of
Cargo.lock files.

The second is that we switch the core build system over to building via
cargo, rather than invoking rustc directly.

We also clean up a number of leftover things from the Old Way of doing
things.  A number of tests are added to confirm that we'll only permit
crates to be built that have dependencies in-tree.
2016-08-03 19:40:41 -04:00
Nathan Froyd a79d68b929 Bug 1231764 - part 0 - only link librul once; r=chmanchester
Through an oversight, we listed librul.a twice when linking libxul: once
as part of the "objects" we were linking, and once as a static library.
This duplication is unnecessary and would cause problems later when we
try to generate librul.a via cargo, as cargo will put it someplace
different from where we expect and the two names will conflict.  Let's
have rules.mk be the single source of truth for how librul.a is named,
and then the code to link libxul can simply refer to that name.
2016-08-03 19:40:41 -04:00
Xidorn Quan 8391c4bb40 Bug 1290336 - Define U_DEBUG flag for ICU in debug build. r=glandium
MozReview-Commit-ID: AHCydclfdcW

--HG--
extra : transplant_source : %D0%F32%BE%D2%5E8L%CF%7C%87v%16%DB%0ET4%2C%ACc
2016-07-29 14:31:22 +10:00
Mike Hommey c2df8cd611 Bug 1290026 - Automatically set LIB from configure. r=chmanchester 2016-08-02 13:17:19 +09:00
Mike Hommey c6b7fab94b Bug 1290026 - Automatically set INCLUDE from configure. r=chmanchester 2016-08-02 13:17:17 +09:00
ffxbld 3df383b855 Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-08-01 07:09:05 -07:00
Carsten "Tomcat" Book 8321d9897b Backed out changeset a4a381f85dc8 (bug 1290026) 2016-08-01 09:12:37 +02:00
Carsten "Tomcat" Book 2b84fbf042 Backed out changeset 90559af62774 (bug 1290026) 2016-08-01 09:12:36 +02:00
Carsten "Tomcat" Book fc8e03f0d8 Merge mozilla-central to autoland 2016-07-30 16:49:41 +02:00
Eugen Sawin a90cb717a5 Bug 1272693 - [1.1] Disable building libpkix. r=keeler,ted 2016-07-29 15:25:07 +02:00
Carsten "Tomcat" Book 73a62f5c90 Backed out changeset dd66dc5f5603 (bug 1272693) for bustage
--HG--
extra : rebase_source : cc915fd36fbd5119335a591382b81e9f84c78229
2016-07-29 13:27:30 +02:00
Eugen Sawin 164a43e6c7 Bug 1272693 - [1.1] Disable building libpkix. r=keeler,ted 2016-07-29 12:42:56 +02:00
Mike Hommey 8eff2bec09 Bug 1290026 - Automatically set LIB from configure. r=chmanchester
--HG--
extra : rebase_source : 4ca572685169fdd2fbb0c9ae6aac5361d2669569
2016-07-27 18:01:04 +09:00
Mike Hommey 9bca5c6d3a Bug 1290026 - Automatically set INCLUDE from configure. r=chmanchester
--HG--
extra : rebase_source : e96decbc05d41e25a80cd3d1d61a7b36ba91f08b
2016-07-27 17:03:09 +09:00
Mike Hommey 02e5baaf74 Bug 1289246 - Do not hardcode mt.exe as the Manifest Tool. r=chmanchester
Configure uses the value of the MT environment variable before falling back
to mt(.exe), but the build system was completely ignoring the MT
environment variable.

--HG--
extra : rebase_source : 8c9b43aeb08493ae5bd6d6361f4f18f097ea0553
2016-07-22 15:56:26 +09:00
Carsten "Tomcat" Book 8b6316ec5f Merge mozilla-central to mozilla-inbound 2016-07-22 11:59:06 +02:00
Thomas Zimmermann c0d13a09b6 Bug 1250922: Add gpsd geolocation provider on Linux, r=jdm,glandium
Gpsd is the GPS daemon on Linux. It implements support for a wide range
of GPS receivers. This patch adds support for gpsd to the Geolocation
module.

The build system can now test for libgps, which provides the public
interface to gpsd's functionality. If found, |GpsdLocationProvider|
is added to the build.

MozReview-Commit-ID: 1kBgFdEZePI
2016-07-22 11:52:09 +02:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Xidorn Quan 76db18facb Bug 1284406 part 3 - Export ICU headers in include/unicode. r=glandium
MozReview-Commit-ID: FuwAgEGjhxm

--HG--
extra : source : c07ceab42b47b18a1e8d436e7c888bdd113575fa
2016-07-20 15:00:13 +10:00
Rob Thijssen f360d0b65e Bug 1287258 - retry deletions on windows; r=ted
MozReview-Commit-ID: KObLa5RsjFW
2016-07-18 09:14:59 +01:00
Damien Zammit 44e85908a4 Bug 783733 - Wire up the jack cubeb backend in the build system. r=glandium
It's disabled by default for now.

MozReview-Commit-ID: CPrJQ07n26t
2016-07-18 13:28:39 +02:00
Carsten "Tomcat" Book a0992595d6 merge mozilla-inbound to mozilla-central a=merge 2016-07-17 10:08:08 +02:00
Xidorn Quan 30788d7d8b Backed out 4 changeset (bug 1284406) for build bustage on CLOSED TREE
--HG--
extra : amend_source : 9ad3b754789e60fe021f5b1989d7063cea8ca457
extra : histedit_source : 66c8b4fc923335e88a4593fd900c6c2cf57f6123%2C0f634c3c453a5d922de0e4e66dac69deec9f729c
2016-07-16 12:27:45 +10:00
Xidorn Quan 7167e29a37 Bug 1284406 part 2 - Export ICU headers in include/unicode. r=glandium
MozReview-Commit-ID: FuwAgEGjhxm

--HG--
extra : source : a90c00e3fa63f1e9934fe5f515233dddb11970b6
2016-07-16 11:44:15 +10:00
Luke Wagner be263565b4 Bug 1276029 - Add subset of prio.h to PosixNSPR.h so PRFileDesc can be used in SpiderMonkey (r=terrence)
MozReview-Commit-ID: JhNhUcg3eC0

--HG--
extra : rebase_source : 43f5cebebdd4ef889ec71b57f7dd4109c72fa187
2016-07-15 12:26:40 -05:00
Andrew Comminos 7d69ebf641 Bug 1286649 - Replace X11 SHM dependencies with XCB. r=glandium
MozReview-Commit-ID: Ii74rWquYhb

--HG--
extra : rebase_source : 3d5ba8333e6598d4940958920ea3271ad78c6785
2016-07-13 16:28:07 -04:00
Xidorn Quan 654a360362 No bug - Update icu data file.
MozReview-Commit-ID: LgyW3zrDb5t

--HG--
extra : source : 2ee37965ead5c9eda97741a1f96407a023f5940f
2016-07-12 21:12:06 +10:00
Thomas Zimmermann aa5eaa4bc0 Bug 1280600: Use Gecko's 'libgabi++' on b2g, r=glandium
B2g came with its own version of 'libgabi++' in its toolchain. Gecko
on b2g isn't build any longer with this toolchain. With this patch
applied, Gecko's internal version of 'libgabi++' is used for building.

MozReview-Commit-ID: KU4OBYQ6cAW
2016-07-11 15:16:56 +02:00
Gregory Szorc 5030a743a1 Bug 1186064 - Require Visual Studio 2015 Update 2; r=glandium
Per froydnj in bug 1186064 comment #23, "it makes sense to proceed with removing
MSVC 2013 support." This commit does that.

We also go a step further and require VS2015 Update 2 instead of just
update 1. This temporarily brings us down to just 1 officially supported
Visual Studio version. However, VS2015u3 was just released and is
unofficially supported.

Since MOZ_CRT is no longer set, references to it have been removed.

MozReview-Commit-ID: 8MUR6qLzQA5

--HG--
extra : rebase_source : 8f5061080a3d56dd484f9be03649fb65f0145f67
2016-07-06 09:01:38 -07:00
Wes Kocher a425a052c1 Backed out changeset d7f98208809f (bug 1186064) for breaking SM(pkg) jobs a=backout 2016-07-06 10:11:04 -07:00
Gregory Szorc 6e4d0edfbc Bug 1186064 - Require Visual Studio 2015 Update 2; r=glandium
Per froydnj in bug 1186064 comment #23, "it makes sense to proceed with removing
MSVC 2013 support." This commit does that.

We also go a step further and require VS2015 Update 2 instead of just
update 1. This temporarily brings us down to just 1 officially supported
Visual Studio version. However, VS2015u3 was just released and is
unofficially supported.

Since MOZ_CRT is no longer set, references to it have been removed.

MozReview-Commit-ID: 8MUR6qLzQA5

--HG--
extra : rebase_source : 22ab4f47661ead4995d0c5261104abfb02b82aa2
2016-07-06 09:01:38 -07:00
Ted Mielczarek 77d1cffec1 bug 1280326 - followup fix to make MockedOpen really case-insensitive on Windows. r=jmaher
MozReview-Commit-ID: CE2zMBFK6Tx

--HG--
extra : rebase_source : 0119d4b3148d624769b5dbbdb8958d810be4067a
2016-07-01 07:15:23 -04:00
Ted Mielczarek 12d21dc687 bug 1280326 - make MockedOpen case-insensitive on Windows. r=gps
MozReview-Commit-ID: O26u2kVrSk

--HG--
extra : rebase_source : 05233c7718a33fe4c87e087502d2d622c9e089a7
2016-06-28 16:11:33 -04:00
David Keeler 3fed4e5ecc bug 1272858 - use a name-agnostic method to find the built-in root PKCS#11 slot r=Cykesiopka
Previously this implementation would use the expected names of the built-in
module and slot to get a handle on them. This doesn't work on distributions that
use other names. The new implementation searches through the slots from the
default module list for one where PK11_HasRootCerts returns true (which
indicates that NSS considers that slot to contain the default built-in root
list).

MozReview-Commit-ID: LmX27hQfFJU

--HG--
extra : rebase_source : 50383dcc77257fe08ce2c7d908e95cda7c4bbe9d
2016-06-23 15:43:47 -07:00
Ted Mielczarek 82d77574ff bug 1266368 - move rust.m4 to configure. r=glandium
MozReview-Commit-ID: 9ol2nMYM0a0

--HG--
extra : rebase_source : 3f3feeac941791d081e09ebb096a3e052540a52c
2016-05-16 15:27:37 -04:00
Mike Shal b7110a8a71 Bug 1275111 - Move artifact download/install into its own tier; r=glandium
This also fixes the issue of processing the artifacts twice in some
situations (bug 1275673). Note that the artifact download no longer
happens when a specific target is passed to 'mach build'.


MozReview-Commit-ID: Ktys6u3r1kG
2016-06-01 13:48:53 -04:00
Mike Hommey 8a3b88f341 Bug 1278415 - Also write a mozinfo for js standalone builds. r=gps
Historically, a mozinfo for js standalone build has not been necessary,
but with the move towards a) having things work with mach and b)
buildconfig using the MozbuildObject.from_environment in next patch,
mozinfo becomes necessary (it's required for
MozbuildObject.from_environment to find the directory is an objdir).

Interestingly, hazard builds do both a js standalone build and a desktop
Firefox build at the same time, both of which are done with MOZCONFIG
set in the environment... with the Firefox mozconfig. The result of now
writing a mozinfo for js standalone builds is that in that case, they
end up with a reference to the mozconfig, which the build system then
reads, and finds a MOZ_OBJDIR, which then doesn't match the js
standalone build objdir. So for those builds, reset MOZCONFIG.
2016-06-16 11:43:23 +09:00
Mike Hommey cae8c6bcee Bug 1264534 - Create system wrappers for all declared STL headers. r=froydnj
Until now, we had some STL headers listed in the system-headers list
such that they would get a system wrapper, but not all of them.

On the other hand, the STL wrappers do the same job as the system
wrappers (applying default visibility), on top of their own, so the
presence of the STL headers in system-headers wasn't making much of a
difference.

Except we have places in the tree where we can't build with STL wrappers
for a number of reasons. And in that case, we *do* need system wrappers
for the STL headers, but we didn't have system wrappers for all of them.

So instead of relying on the STL headers being listed both in
system-headers and stl-headers, concatenate both lists to create the
system wrappers.
2016-06-15 19:57:12 +09:00
Mike Hommey aadf5fb0df Bug 1278456 - Bump libstdc++ requirement to 3.4.16 (4.6.1). r=froydnj
Similarly to the considerations about glibc, the Linux compatibility matrix
(https://developer.mozilla.org/en-US/Firefox/Linux_compatibility_matrix)
tells us no distro with Gtk+3 3.4 has a version of libstdc++ older than
4.6.

The data in the matrix doesn't go to that level of detail, but Ubuntu
12.04 LTS, being the only one with version 4.6 (others have at least
4.7), it's worth noting it has version 4.6.3. Which means we can safely
require libstdc++ symbols version 3.4.16 (which were added in 4.6.1).

This will allow us to remove a lot of the stdc++ compatibility hacks.
2016-06-12 18:51:32 +09:00
Mike Hommey a898d16968 Bug 1278456 - Bump glibc requirement to 2.12. r=froydnj
The requirement for glibc has been set to version 2.7 for a long while.

Spidermonkey uses the pthread_setname_np symbol, which is only available
since glibc 2.12. So far, we've been fortunate that the symbol doesn't
end up in libxul, or tests that link to js directly, because the symbol
is eliminated as being called by effectively dead code.

There are multiple reasons why this is going to change, one of which
being changes to the way things are linked, that will make the linker
not eliminate that code in some cases. Another is that eventually, the
separation of build systems between js and top-level is going to fade,
and the glibc checks, which apply to all gecko binaries, will also apply
to js binaries. They currently are not happening, and would fail because
of pthread_setname_np if they were.

Taking a step back, as of version 46, the mozilla.org builds require at
least Gtk+3 3.4. Which means the requirements for the underlying system
have received a dramatic bump, and it's time to revisit the requirements
for binary compatibility.

I went through all my notes from all the recent times binary compatibility
has been considered, and put together a compatibility matrix on MDN from
that data as well as more recent data that I could find here and there,
about the major non-rolling-release distros (RHEL, Fedora, SuSE, Debian,
Ubuntu)
https://developer.mozilla.org/en-US/Firefox/Linux_compatibility_matrix

Considering the data there, none of the distros that have at least Gtk+3
3.4 have a glibc older than 2.13. The list of symbols that 2.13 provides
that 2.12 doesn't have is not large enough, though, to really care about
depending on 2.13.
2016-06-12 18:51:23 +09:00
Dustin J. Mitchell eb7f0385b1 Bug 1275409: mock os.path.is{dir,file} too; r=gps
This uses a rough form of prefix matching, considering anything that ends in a
path separator and appears as a prefix of a file to be a directory.

MozReview-Commit-ID: 7FJSxI0fBSA

--HG--
extra : rebase_source : e4cece21a25ac1216d96647963955459d0f964e5
2016-06-05 18:34:31 +00:00
Wes Kocher 807cf956d8 Merge m-c to inbound, a=merge 2016-06-06 17:14:49 -07:00
ffxbld 219956a13e Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-06-06 15:18:13 -04:00
Dustin J. Mitchell 954a9c8264 Bug 1274611: handle empty error messages properly; r=gps
MozReview-Commit-ID: 4Adn7X0HOu1

--HG--
extra : rebase_source : 435de9993283df8362094f2033e9cf6d627f190e
2016-05-27 22:19:54 +00:00
Makoto Kato dcd9507126 Bug 1277498 - Remove MC (message compiler) define from old-configure.in. r=mshal
By bug 1270621, ETW support is removed.  So no one uses messege compiler.

MozReview-Commit-ID: HGUAkrb208N

--HG--
extra : rebase_source : 5178283b781e4805b4e97f09b35a4150119d060a
extra : histedit_source : 40d6992894315b51863db4e7697df1c1ef18edd8
2016-06-06 13:36:51 +09:00
Mike Hommey 6d9272b820 Bug 1276069 - Change the local variable used in config/external/nss/Makefile.in to pass down as XCFLAGS to NSS build system. r=froydnj
The intent in bug 1271829 was to make all the XCFLAGS set in
config/external/nss/Makefile.in accumulate instead of replacing each
other. Unfortunately, there is also an AC_SUBST variable named XCFLAGS,
use for other purposes, and we ended up adding on top of that variable.

Using a different local variable allows to still accumulate the values,
while keeping away from the XCFLAGS from autoconf.mk.
2016-05-27 13:23:16 +09:00
Dustin J. Mitchell 22bd1fe157 Bug 1272315: mozunit: log error message with line number only if available; r=glandium
MozReview-Commit-ID: 7Ye9RrKw6cw

--HG--
extra : rebase_source : d7ca5d202354f1c95a057abede465583c06b6c45
extra : source : 8b3b9c531a5ef763d2ee1c340aa41af474dd7810
2016-05-24 15:32:39 +00:00
David Keeler e87f6f88e2 bug 1273677 - ensure session cache is properly configured and torn down for TLSServerSocket r=mcmanus
MozReview-Commit-ID: 6i7HxTdLcID

--HG--
extra : rebase_source : 3c1b4c0ed798c166cbc2bcad71de90543af176c1
2016-05-23 13:58:56 -07:00
Mike Hommey 8855262939 Bug 1269171 - Change how mozalloc.h is hooked in STL wrappers. r=froydnj
Since the introduction of the STL wrappers, they have included
mozalloc.h, and multiple times, we've hit header reentrancy problems,
and worked around them as best as we could.

Taking a step back, all mozalloc.h does is:
- declare moz_* allocator functions.
- define inline implementations of various operator new/delete variants.

The first only requires the functions to be declared before they are used,
so mozalloc.h only needs to be included before anything that would use
those functions.

The second doesn't actually require a specific order, as long as the
declaration for those functions comes before their use, and they are
either declared in <new> or implicitly by the C++ compiler.

So all in all, it doesn't matter that mozalloc.h is included before the
wrapped STL headers. What matters is that it's included when STL headers
are included. So arrange things such that mozalloc.h is included after
the first wrapped STL header is fully preprocessed (and all its includes
have been included).
2016-05-22 08:32:40 +09:00
Mike Hommey 60564d7bff Bug 1269171 - Backout ccff1c4580ab (bug 1270832) because it doesn't actually work properly and blocks upcoming changes. r=froydnj
It turns out that, since we're including <new> before setting
_GLIBCXX_DEBUG, the debug parts of c++config.h are not activated, and
that has an impact of how much of the debug features of the STL are
activated.

In contrast, the upcoming changes to the STL wrappers are avoiding the
include of <new> before _GLIBCXX_DEBUG is set, which in turn breaks the
build because, as we link things that use STL wrappers with things that
don't, they end up with a different state of STL debugging, and have
mismatching symbols.
2016-05-22 08:32:33 +09:00
Ralph Giles 49736b0095 Bug 1271829 - Propagate MSVC -arch switch to nss. r=glandium
This updates the nss build to require SSE2 instructions on win32.

By default nss builds with -arch:IA32 for maximum compatibility.
Firefox 49 dropped support for non-SSE2 platforms, so propagate
that to the nss external build. XCFLAGS come after the nss build's
default settings, and the last -arch switch will override the
previous ones.

Bump CLOBBER because we've had trouble with file removal permission
errors on integration builds.

MozReview-Commit-ID: 2lfDq0e0T7Y
2016-05-20 19:35:51 -07:00
Ralph Giles 2e85949c69 Bug 1271829 - Don't clobber XCFLAGS building nss. r=glandium
Previously, this clobbered the XCFLAGS set by MOZ_FOLD_LIBS_FLAGS.
Combine them instead so we can pass multiple options through
this override mechanism.

This is a behaviour change building with --enable-llvm-hacks.

MozReview-Commit-ID: 4WP0asnc7Z6
2016-05-20 19:35:51 -07:00
Wes Kocher 4f7146f46c Backed out changeset 1b8f35a4774e (bug 1273677) for valgring leaks CLOSED TREE 2016-05-20 18:13:12 -07:00
David Keeler a53c0feecf bug 1273677 - ensure session cache is properly configured and torn down for TLSServerSocket r=mcmanus
MozReview-Commit-ID: 6i7HxTdLcID

--HG--
extra : rebase_source : 5a64db198fe582e6057bb58f8f51be3e9a63192b
2016-05-17 15:17:33 -07:00
Martin Thomson 57bd3390d7 Bug 1250568 - Enable building of TLS 1.3, r=ekr
MozReview-Commit-ID: BPaRVGPK7SR

--HG--
extra : rebase_source : 86dc610f3900e1dad2292d23e52dfb11da23492f
2016-04-04 16:21:19 -03:00
Dustin J. Mitchell 0444ac1f2f Bug 1258497: allow mozunit to pass along kwargs; r=gps
MozReview-Commit-ID: DzmF3zF5jeD

--HG--
extra : rebase_source : b8fead11cee6600cbf6ea241e77208f2418007cb
2016-05-09 18:56:24 +00:00
Nathan Froyd ba6687453e Bug 1270832 - turn on debug mode for libstdc++ headers; r=glandium 2016-05-11 17:01:39 -04:00
Nathan Froyd a780b60bd9 Backout fe3f7921e2dc (bug 1270832) because it's going to break Linux static analysis builds; r=me 2016-05-11 10:43:43 -04:00
Nathan Froyd d795a83fd0 Bug 1270832 - turn on debug mode for libstdc++ headers; r=glandium 2016-05-11 10:42:24 -04:00
Ralph Giles df51e79d6e Bug 1268617 - Pass -g to rustc on debug builds. r=ted
Enable debug output from the rust compiler when we're doing so
for the C/C++ compilers.

MozReview-Commit-ID: K0iqlPZ1Thu
2016-05-10 16:15:43 -07:00
Mike Shal 5ab92bb3fa Bug 1252804 - remove TARGET_LOCAL_INCLUDES; r=ted
MozReview-Commit-ID: 6s1SWINNMM9

--HG--
extra : rebase_source : 3c64cc907a41215be454ccae4230d3d216e097d9
2016-04-29 17:09:57 -04:00
Wes Kocher 61d73dfc73 Backed out changeset 6aa3f079d304 (bug 1268617) for debug windows devtools failures on a CLOSED TREE 2016-05-03 15:16:38 -07:00
Ralph Giles 1f7512408c Bug 1268617 - Pass -g to rustc on debug builds. r=ted
Enable debug output from the rust compiler when we're doing so
for the C/C++ compilers.

MozReview-Commit-ID: K0iqlPZ1Thu

--HG--
extra : rebase_source : 21220c0b7eeaa9036346e87d2bd1d475a129920e
2016-04-28 11:56:02 -07:00
Thomas Klausner 001b559468 Bug 1268879 - "complex" header missing from config/system-headers
MozReview-Commit-ID: 61GpVkY5JZS

--HG--
extra : rebase_source : 7d9b6d7e622b209f77ad837f09af4420c41c6afd
2016-05-02 17:27:34 -07:00
Lee Salzman a0a61c0134 Bug 1268816 - allow Skia to use C++11 features on platforms that have them. r=froydnj 2016-04-29 21:03:05 -04:00
ffxbld 50a14b0c3c Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2016-04-25 10:10:40 -07:00
David Keeler 1e53398a23 bug 1182742 - allow users to override small key size errors r=rbarnes
Key size enforcement for TLS certificates happens at two levels: PSM and NSS.
PSM enforces a minimum of 1024 bits. NSS enforces a minimum of 1023 bits by
default. The NSS error is not overridable, but the PSM error is. This change
allows users to connect to devices with small RSA keys (as little as 512 bits)
using the certificate error override functionality.

MozReview-Commit-ID: 2TZ8c4I3hXC

--HG--
extra : rebase_source : a9c550f15261c711e789a670c90c129c65802ff0
2016-04-11 13:45:47 -07:00
Nathan Froyd 82c6f5d7a7 Bug 1163224 - add build system support for multiple Rust crates; r=glandium
Our current build system support for Rust compiles any Rust crate into a
so-called staticlib, which is a static library (.a file) that includes
the Rust runtime. That staticlib is then linked into libxul. For
supporting multiple crates, this approach breaks down, as linking
multiple copies of the Rust runtime is going to fail.

For supporting multiple crates, the approach taken here is to compile
each crate into a so-called rlib, which is essentially a staticlib
without the Rust runtime linked in. The build system takes note of
every crate destined for linking with libxul (treating them like static
libraries generated from C/C++ files), and generates a super-crate,
whimsically named "rul", that is compiled as a staticlib (so as to
include the Rust runtime) and then linked into libxul. Thus only one
copy of the Rust runtime is included, and the Rust compiler can take
care of any inter-crate dependencies.

This patch currently only supports Rust code in shared libraries, not in
binaries.
2016-04-21 09:54:01 -04:00
J.C. Jones 63f7ce5155 Bug 1244960 - Complete FIDO u2f NSSToken (Part 1). r=keeler, r=baku
- Merge in test changes from Bug 1255784.
- Remove the unnecessary mutex
- Stop doing direct memory work in NSS Token
- Clean up direct memory work in ContentParent
- In order to store persistent crypto parameters, the NSSToken had to move
  onto the main thread and be interfaced with via IDL/IPDL.
- Support Register/Sign via NSS using a long-lived secret key
- Rename the softtoken/usbtoken "enable" prefs, because of hierarchy issues
  with the WebIDL Pref shadowing.
- Also orders the includes on nsNSSModule.cpp
- Attestation Certificates are in Part 2.

Updates per keeler review comments:

- Use //-style comments everywhere
- Refactor the PrivateKeyFromKeyHandle method
- Rename the logging and fix extraneous NS_WARN_IF/logging combinations
- Other updates from review

April 11-12:

- Correct usage of the "usageCount" flag for PK11_UnwrapPrivKey
- Rebase up to latest

April 15:
- Rebase to latest

MozReview-Commit-ID: 6T8jNmwFvHJ

--HG--
extra : transplant_source : w%26%CES%2Cu%04%3EAl%04%2Cb%E2v%C9%08%3A%CC%F4
2016-04-15 09:29:12 -07:00
Chris Manchester 6a21a3345a Bug 1256979 - Move MOZ_CHROME_FILE_FORMAT to Python configure. r=glandium
The config variable is re-named to avoid confusion, because it is not set by
--enable-chrome-format.

MozReview-Commit-ID: 37gvjGGSkRc
2016-04-14 12:26:38 -07:00
Kai Engert 70551ded71 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
Sebastian Hengst 364386e3cf Backed out changeset cb4b18566f30 and 7c4d19e3376f (bug 1163224) for build bustage. r=backout on a CLOSED TREE 2016-04-11 19:43:04 +02:00
Nathan Froyd e136c9ac20 Bug 1163224 - fix typo in creating global crate dependencies; r=me
Hoping the added Rust will let us reopen this CLOSED TREE.
2016-04-11 12:42:36 -04:00
Nathan Froyd 45af5cd66c Bug 1163224 - add build system support for multiple Rust crates; r=glandium
Our current build system support for Rust compiles any Rust crate into a
so-called staticlib, which is a static library (.a file) that includes
the Rust runtime.  That staticlib is then linked into libxul.  For
supporting multiple crates, this approach breaks down, as linking
multiple copies of the Rust runtime is going to fail.

For supporting multiple crates, the approach taken here is to compile
each crate into a so-called rlib, which is essentially a staticlib
without the Rust runtime linked in.  The build system takes note of
every crate destined for linking with libxul (treating them like static
libraries generated from C/C++ files), and generates a super-crate,
whimsically named "rul", that is compiled as a staticlib (so as to
include the Rust runtime) and then linked into libxul.  Thus only one
copy of the Rust runtime is included, and the Rust compiler can take
care of any inter-crate dependencies.

This patch currently only supports Rust code in shared libraries, not in
binaries.  The handling for the rul crate is placed in the common
backend, with a special hook for derived backends to handle shared
library objects.
2016-04-11 11:05:44 -05:00
Kai Engert f8da0365fd Backout revision 36f75c2863a1, bug 1258375 2016-04-11 17:00:39 +02:00
Kai Engert b471460db8 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
Thomas Zimmermann 119b6d864d Bug 1262385: Fix %progbits for GAS' .section directive in ICU, r=ted
In contrast to the GNU AS manual, the syntax for the .section directive
uses '%progbits' instead of '@progbits'; at least on ARM. Looking at the
ICU tools and the generated files confirms this.
2016-04-07 09:45:22 +02:00
Wes Kocher 06944947a0 Backed out changeset 069c82269f81 (bug 1258375) for Windows xperf failures
MozReview-Commit-ID: DwhDorbB2PO
2016-04-06 16:51:48 -07:00