Commit Graph

16 Commits

Author SHA1 Message Date
Gary Kwong
7ce1446707 Bug 838384 - mozboot bootstrap.py does not recognize newer Xcode's clang. r=gps 2013-02-05 16:59:01 -08:00
Gregory Szorc
399732ddbe Bug 822103 - Support 'LinuxMint' distro in mozboot; r=edmorley
DONTBUILD (NPOTB)
2012-12-31 10:12:15 -08:00
Jorge Luis Mendez
e2ecc82c18 Bug 820285 - Use distutils.version.StrictVersion in OSX version tests; r=gps
DONTBUILD (NPOTB)
2012-12-12 19:56:48 -05:00
Jorge Luis Mendez
13efe6f3dc Bug 820117 - Remove XQuartz from OS X prerequisites; r=gps
DONTBUILD (NPOTB)
2012-12-11 14:02:27 -08:00
Gregory Szorc
262077ed01 Bug 808336 - Part 1: Refactor mach command handler management; r=jhammel
Previously we were tighly coupled with MozbuildObject. This was not in
the spirit of mach being a generic tool. Now, instead of passing multiple
arguments to __init__ of the class providing the mach command we either
pass 0 or 1. The number of arguments is detected when processing the
@CommandProvider decorator. The optional argument is a named tuple
containing mach run-time state.

Capturing of mach command provider information is now captured in a
class (as opposed to an anoymous tuple). We also capture these in a rich
data structure which is passed as part of the run-time data to the
command provider class. This allows mach commands to inspect the mach
environment.

Mach decorators have been moved to mach.decorators. mach.base is
reserved for generic mach data/container classes.

Existing mach command classes derived from MozbuildObject have been
replaced with either object or mozbuild.base.MachCommandBase. This
latter class translates the mach context instance passed to __init__
into the constructor arguments for MozbuildObject.__init__.

Support for registering function handlers with mach has been removed.
All handlers must be inside classes.

--HG--
rename : python/mach/mach/base.py => python/mach/mach/decorators.py
2012-11-06 16:57:41 -08:00
Freddie F. Haddad
b857e39ff6 Bug 803990 - Add Gentoo to mozboot; r=gps
DONTBUILD (NPOTB)

--HG--
extra : rebase_source : f5c73f1942b71bd0f47a43241c13ef7d7a4fd8d4
2012-11-01 17:06:00 -07:00
Gregory Szorc
eb32b8572e Bug 795769 - Add "bootstrap" command to mach; r=ted
The command is currently just a proxy into mozboot.

DONTBUILD (NPOTB)
2012-10-10 17:17:00 -07:00
Gregory Szorc
1194436ba8 Bug 774109 - Fix typos in OS X mozboot backend; r=me DONTBUILD
Typos were trivial and weren't worth finding a reviewer for.

--HG--
extra : rebase_source : 40f039121aa5efd710449cff726ac5521f92b7fe
2012-09-18 16:55:20 -07:00
Gregory Szorc
d2ae2988b7 Bug 792202 - Make mozboot work with Python 2.6.1; r=jhammel DONTBUILD
Python 2.6.1 is what ships on OS X 10.6 and we want to support mozboot
there.

We include 3 fixes:

1) optparse doesn't like unicode as its initial argument
2) __init__(**kwargs) doesn't like unicode keys
3) subprocess does not have check_output

We took the easy solution of removing unicode_literals. This should have
no significant consequences.
2012-09-18 14:45:21 -07:00
Gregory Szorc
8dfad419ea Bug 790995 - Part 2: Tie stdin to executed processes; r=me DONTBUILD 2012-09-13 17:51:01 -07:00
Landry Breuil
cc09789768 Bug 790750 - Add OpenBSD backend to mozboot; r=gps DONTBUILD 2012-09-13 17:22:13 -07:00
Gregory Szorc
1a8267d453 Bug 790995 - Change how root commands are executed; r=jhammel
os.system has been replaced with subprocess.check_call. We also check
the effective UID to determine whether to run via sudo.
2012-09-13 17:21:49 -07:00
Gregory Szorc
a737815069 Bug 774109 - Bootstrap support for OS X; r=rnewman DONTBUILD
This implements the OS X backend for the bootstrapper. It ensures that
the system is in the proper state to build Firefox by installing
required packages.

This was tested with a fresh install of OS X 10.8. Basic support for OS
X 10.6 and 10.7 is implemented, but not thorougly tested.
2012-09-12 21:29:20 -07:00
Gregory Szorc
0c82fd22e5 Bug 774112 - Part 2b: Add missing files to download manifest; r=me 2012-09-11 16:43:13 -07:00
kmm
47cef56b88 Bug 774112 - Part 2: Implement bootstrap support for popular Linux distros; r=gps 2012-09-11 16:27:26 -07:00
Gregory Szorc
29579e5a7c Bug 774112 - Part 1: Skeleton for one-line system bootstrapping; r=jhammel 2012-09-11 16:27:20 -07:00