Commit Graph

101 Commits

Author SHA1 Message Date
Nick Alexander
f124e6f82a Bug 1194365 - Bump Andoid NDK to r10e; manually install Android SDK and NDK on Mac OS X. r=mcomella
This bumps the NDK version to r10e.

Previously, we used brew to install android-sdk and a custom version
of android-ndk.  That makes it hard to control the installed versions.
This installs from downloaded archives, which unifies the Mac OS X
approach with the straight-forward Linux approach.
2015-09-22 13:56:17 -07:00
Nick Alexander
6d6aa6371e Bug 1171232 - Depend on platform-tools-preview; don't check for missing and failing Android packages. r=mcomella
The 'tools' package depends on 'platform-tools-preview' now.  Roll
with it until Google breaks us back again.

The behaviour of the |android| tool has changed; recent versions don't
reveal what packages are installed.  That means we can't skip already
installed packages; and we can't really tell if our installation
attempts succeeded.  But we have faith!
2015-09-22 13:54:17 -07:00
Nick Alexander
9b66003e46 Bug 1204260 - Post: remove platforms/android-* from |mach bootstrap|. r=glandium 2015-09-22 11:40:06 -07:00
Gregory Szorc
fef6091d15 Bug 1174037 - Support installing Mercurial from pip; r=glandium
Previously, we used a PPA on Ubuntu to install Mercurial. The PPA has
proved to be unreliable. Furthermore, we didn't have a mechanism for
installing a modern Mercurial on Debian and other derived distros.

In this commit, we remove the PPA from Ubuntu. We add the ability to
install Mercurial from pip to the Debian bootstrapper. However, since
some people may not want <not apt> installing package-like things,
we add a prompt explaining the situation and giving users a choice.
We recommend installing a modern Mercurial via pip. But we also given
the option to install a likely legacy version via apt. And, for Git
users, we give the option to not install Mercurial at all.

Since the new version of the Ubuntu bootstrapper is empty, it doesn't
need to exist, so it has been removed.

DONTBUILD (NPOTB)
2015-09-04 10:37:29 -07:00
Aaron Raimist
ec0cc06ddd Bug 1171783 - Fix bootstrap.py by using DNF instead of Yum if possible; r=mshal
DONTBUILD (NPOTB)
2015-08-19 12:56:22 -07:00
Niels De Graef
4fe87ee1fb Bug 1195182 - Fixed broken AUR link for uuid; r=gps
DONTBUILD (NPOTB)
2015-08-18 09:26:37 -07:00
Mike Hommey
3d894925ae Bug 1186229 - Enable Gtk+3 builds by default. r=gps
Note Gtk+3 builds need both Gtk+2 *and* Gtk+3.
2015-07-23 10:24:31 +09:00
Ben Hearsum
dd3a063bf2 bug 1185530: mach boostrap should ensure that gnutar is installed. r=gps 2015-07-20 14:26:58 -04:00
Gregory Szorc
b796a94133 Bug 1184030 - Avoid implicit unicode <-> str conversion; r=smacleod
CalledProcessError.output and subprocess.check_output's return value
are str types. This file uses unicode_literals. If we do something
like `if 'foo' in e.output`, there will be a mix of str and unicode
types and Python will do implicit conversion. If the strings aren't
ASCII, we'll likely encounter a UnicodeDecodeError.

Use b'' literals around all strings to prevent this coercion from
occurring.
2015-07-17 11:25:49 -07:00
Gregory Szorc
d993a444fa Bug 1176642 - Use absolute_import in mach_commands.py files; r=glandium
This removes ambiguity as to which modules are being imported, making
import slightly faster as Python doesn't need to test so many
directories for file presence.

All files should already be using absolute imports because mach command
modules aren't imported to the package they belong to: they instead
belong to the "mach" package. So relative imports shouldn't have been
used.
2015-06-21 17:39:09 -07:00
Gregory Szorc
1420a63f28 Bug 1168466 - Bump minimum Mercurial version in bootstrapper; r=me
This should have been done in 4c757e339f81.

DONTBUILD (NPOTB)
2015-06-10 15:38:46 -07:00
Timur Timirkhanov
6f7c9bfab5 Bug 1169089 - Detect CentOS 7 in bootstrapper; r=gps
CentOS has apparently changed its disto name. Detect the new version.

DONTBUILD (NPOTB)
2015-06-10 11:27:15 -07:00
Benjamin Smedberg
49f7642400 Bug 1168861 - Make mach bootstrap install GConf2-devel on Fedora, r=glandium 2015-05-27 11:01:22 -04:00
Michael Comella
bfb2840dd5 Bug 1165422 - Bump mach bootstrap versions for SDK 22. r?nalexander 2015-06-04 10:53:24 -07:00
Morgan Phillips
6ea7ec43d2 Bug 1151834 - Allow users to skip all interactive prompts; r=gps
Interactive prompts make automation more difficult for developers looking to stand up machines using bootstrap en masse.
Two new options have been added to allow users with such needs to bypass all prompts: one for selecing an application
(desktop/mobile) and another for assuming yes to all questions posed by package managers (apt-get/yum).
2015-04-22 16:37:19 +00:00
Dirkjan Ochtman
6d6f0ae7a1 Bug 1143660 - Fix spacing around operators. r=gps 2015-03-18 19:13:27 +01:00
Dirkjan Ochtman
f2fb39ca4b Bug 1143660 - Remove empty lines before EOF. r=gps 2015-03-18 19:11:50 +01:00
Dirkjan Ochtman
9bd2846b03 Bug 1143660 - Make sure inline comments are preceded by two spaces. r=gps 2015-03-18 19:10:41 +01:00
Dirkjan Ochtman
268419db5a Bug 1143660 - Fix continuation line indentations for visual indent. r=gps 2015-03-18 19:08:55 +01:00
Dirkjan Ochtman
9f3e65c1c2 Bug 1143660 - Ascertain 2 blank lines between top-level elements. r=gps 2015-03-18 18:58:35 +01:00
Dirkjan Ochtman
ef851e9a3d Bug 1143660 - Remove unused imports from mozboot. r=gps 2015-03-18 18:53:24 +01:00
Sylvestre Ledru
14985a6e05 Bug 1143412 - Make sure that we run "apt-get update". Otherwise, the install of packages will fail r=nalexander 2015-03-16 14:29:53 +01:00
Nick Alexander
80310df495 Bug 1142897 - Include archlinux module in bin/bootstrap.py download list. r=gps 2015-03-13 13:24:47 -07:00
Geoffroy Planquart
43d3c692b6 Bug 942475 - Add ArchlinuxBootstrapper; r=gps 2015-03-12 10:27:44 +01:00
vidit23
c5e761a8de Bug 1121317 - Install Maven repositories during |mach bootstrap| for mobile/android. r=nalexander
DONTBUILD NPOTB
2015-03-04 11:22:00 -08:00
Nick Alexander
62dde1cf2c Bug 1123824 - Include platforms/android-VERSION in suggested mozconfig. r=me,f=psd
DONTBUILD NPOTB
2015-01-26 11:13:49 -08:00
Nick Alexander
c99845c696 No bug - Fix typo in mozconfig output message. r=me
DONTBUILD NPOTB on a CLOSED TREE

This was tested by ally and mfinkle in #mobile.
2015-01-12 14:51:31 -08:00
Nick Alexander
c09b1243eb Bug 1117357 - Fix |mach bootstrap| for mobile/android on Mac OS X. r=gps
This does two things.  First, it aligns the brew formula name
(AndroidNdk) with the brew file name (android-ndk.rb).  Second, it
makes sure that we actually find the android-ndk.rb file.  I think
|mach bootstrap| always worked, due to a felicity where the working
directory always contained android-ndk.rb; but |python bootstrap.py|
failed because android-ndk.rb was downloaded to a temporary location
that was not included in the |brew install| command.
2015-01-08 13:47:42 -08:00
Nick Alexander
dc4ab68d97 Bug 1108771 - Part 4: Implement |mach bootstrap| for mobile/android on OS X with homebrew. r=gps
Pushing on a CLOSED TREE because this is NPOTB.

The custom brew formula is a lightly edited version of an earlier
revision of brew's android-ndk.rb.  It's not clear that using a custom
brew formula for the Android SDK version r8e is better than using the
existing android Python module for installing the SDK and the NDK, but
it's done now and works locally.  If we really wanted to avoid shipping
it, we could probably arrange to land it in
https://github.com/Homebrew/homebrew-versions.

I see no easy way to install the Java 1.7 JDK with macports, so in the
spirit of the good now being better than the perfect later, I've
punted.  (I don't see an Android NDK package either, but that
functionality exists in Python.)  Patches wanted!
2014-12-21 15:29:19 -08:00
Nick Alexander
fbe70122ec Bug 1108771 - Part 3: Factor _ensure_*_packages out of OS X bootstrapper. r=gps
This prepares the way for implementing install_mobile_android_packages
on OS X.
2014-12-21 15:29:19 -08:00
Nick Alexander
278608061f Bug 1108771 - Part 2: Implement |mach bootstrap| for mobile/android on Debian-like systems. r=gps
This adds a generic android Python module that handles:

* downloading and unpacking Google's Android SDK and NDK bundles;
* using the |android| tool to install additional Android packages;
* printing a mozconfig snippet suitable for mobile/android builds.
2014-12-21 15:29:18 -08:00
Nick Alexander
75df86f032 Bug 1108771 - Part 1: Prompt for which application to bootstrap. r=gps
This lays the foundation for adding support for bootstrapping
mobile/android.

* Queries for which application to bootstrap, currently browser or
  mobile/android;

* Adds call to install_APPLICATION_packages after
  install_system_packages;

* Adds call to suggest_APPLICATION_mozconfig after bootstrapping
  everything;

* and splits install_browser_packages out of install_system_packages
  throughout (essentially untested, but generally simple).

To implement a new application (b2g?), just add it to the list of
applications and implement install_b2g_packages throughout.
2014-12-21 15:29:17 -08:00
Pavel Roskin
b7eb105ffc Bug 1111256 - Use LooseVersion for Python version comparison; r=gps
Python release candidates didn't parse with StrictVersion. Use
LooseVersion instead.
2014-12-23 09:43:45 -08:00
Anton Neumann
b69c112b23 Bug 906177 - Fix bootstrap on elementary; r=gps
DONTBUILD (NPOTB)
2014-11-21 09:58:29 -08:00
Gregory Szorc
431cb04d1a Bug 1078007 - Update URL for Homebrew installer; rs=RyanVM
The installer URL moved upstream. Reflect that move.

DONTBUILD (NPOTB)
2014-10-20 09:12:50 -07:00
Roshan M Regy
db25f7e71a Bug 1057305 - Make mach bootstrap work with elementary os; r=gps
DONTBUILD (NPOTB)
2014-08-22 16:54:48 +05:30
Carsten "Tomcat" Book
083eea59e8 Merge mozilla-central to mozilla-inbound on a CLOSED TREE 2014-07-28 16:30:30 +02:00
Paul Adenot
ea13bc0d4a No Bug - Revert part of 2fe40d407853 added by mistake. 2014-07-28 15:40:02 +02:00
Wes Kocher
9e51564a67 Merge m-c to fx-team 2014-07-25 16:27:34 -07:00
Paul Adenot
20cea91126 Bug 1043025 - Null-check when getting the parent object of an AudioContext because we might not have a window all all time during shutdown. r=roc 2014-07-24 12:01:13 +02:00
Gregory Szorc
e78609e62e Bug 1039806 - UnboundLocalError: local variable 'output'; r=mshal
DONTBUILD (NPOTB)
2014-07-16 16:02:31 -07:00
Tom Schuster
1c25c3296a Bug 981146 - Make a dbus-based notification appear when the build completes (if the build took >300s, a pre-existing limit) on some Linux systems. (Works on Fedora, doesn't work on Debian/Ubuntu -- just needs someone to perform the trivial work [if you run Debian] of determining what packages are needed to make this patch's additions work. Patches welcome!) r=gps 2014-06-09 12:46:15 -07:00
Gregory Szorc
96c0ce82ef Bug 1033656 - Add reviewboard to mach mercurial-setup; version checking; r=smacleod
We want to make it turnkey for people to use reviewboard. So, we add
reviewboard and related functionality to |mach mercurial-setup|.

Since the reviewboard extension only works in Mercurial 3.0 and newer,
we add some version detection for the Mercurial version. This should
have been done months ago. We now have it.

I also took the opportunity to inform |mach bootstrap| that Mercurial
2.x is no longer modern.

I also updated the messaging around mq to encourage fewer new users to
use it. You may find this controversial. People can always ignore the
message.

Finally, I also added a histedit prompt to the mix, since a lot of
people don't know about that and many find it useful.

I could have broken this into multiple patches. Meh.
2014-07-02 14:05:42 -07:00
Abdul Qadeer
0f24ebefe5 Bug 972329 - Install setuptools as part of bootstrap. r=gps 2014-06-11 11:22:00 -07:00
Jan Beich
af48d494b3 Bug 1022686: Don't pull libIDL for |mach bootstrap|, it's unused since bug 687766. r=gps 2014-06-11 09:42:19 +02:00
Jan Beich
df784e8650 Bug 1022747: Add |mach bootstrap| support for DragonFly/DPorts. r=gps 2014-06-09 22:11:06 +02:00
Jan Beich
ccbb4595a3 Bug 1022739: Unbreak |mach bootstrap| with recent FreeBSD packages. r=gps 2014-06-09 22:11:00 +02:00
Nickolay Ponomarev
7cc6374426 Bug 957186 - Only 'port select clang' after installing it with port; r=gps
DONTBUILD (NPOTB)
2014-05-10 17:11:00 -07:00
Andrew Halberstadt
93a3d696f0 No Bug - Fix python typo in mozboot, r=trivial, DONTBUILD, a=NPOTB 2014-03-04 13:04:12 -05:00
Maciek
975577f0c6 Bug 950107 - Support ALL_PROXY in bootstraper; r=gps
DONTBUILD (NPOTB)
2014-02-05 13:10:00 -08:00