Closed
Bug 799648
Opened 12 years ago
Closed 12 years ago
Move MozbuildObject functionality into mach mixins
Categories
(Firefox Build System :: Mach Core, enhancement)
Firefox Build System
Mach Core
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla19
People
(Reporter: gps, Assigned: gps)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
15.36 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
10.19 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
3.13 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
4.21 KB,
patch
|
k0scist
:
review+
|
Details | Diff | Splinter Review |
A consequence of mach's birth as an alternative front-end to mozilla-central's build system has left it tightly coupled with mozbuild, the Python package containing mozilla-central's build system Python code. This coupling isn't desired and is constraining the usefulness of mach to other projects, like B2G. I'll be dropping a bunch of patches that reshape mach into a standalone piece of software. Most of these patches are simply lifting code from one package to another. So, the review burden shouldn't be too high.
Assignee | ||
Comment 1•12 years ago
|
||
This patch moves logging and process execution functionality from mozbuild into mach. In the new world, useful mach features are exposed as mixin classes. These are classes which simply provide useful methods but aren't important for class hierarchy. If someone is interested in e.g. launching a process, they inherit from the ProcessExecutionMixin. This patch breaks some random mach commands in the tree which rely on _run_command(), which has been renamed to run_process(). These will all be updated in a subsequent patch which mass fixes all the breakage as part of the porting.
Attachment #669704 -
Flags: review?(jhammel)
Comment 2•12 years ago
|
||
Comment on attachment 669704 [details] [diff] [review] Part 1: Move logging and process execution into mixin classes, v1 This is fine for now. I would like to get a lot of this to mozlog and then use that
Attachment #669704 -
Flags: review?(jhammel) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Move the core log management code into mach. This file can eventually be uplifted to mozlog with little effort. Let's wait until mach stabilizes first, however.
Attachment #669743 -
Flags: review?(jhammel)
Assignee | ||
Comment 4•12 years ago
|
||
Moving the config module into mach. Pretty straightforward. This actually breaks gettext integration. I have a solution for that in the next patch...
Attachment #669748 -
Flags: review?(jhammel)
Assignee | ||
Comment 5•12 years ago
|
||
This is a temporary patch to disable config file integration with mach. The main reason for this is config files currently don't do anything. The only setting is the number of threads to pass to make. And, since no make targets that any mach commands currently execute need this, it is worthless and just leads to confusion. The secondary (and arguably as important) reason is that settings integration is not very well thought out. It needs some core improvements to integrate better with command providers and with a yet-to-be-refactored MozbuildObject. Stay tuned.
Attachment #669754 -
Flags: review?(jhammel)
Updated•12 years ago
|
Attachment #669743 -
Flags: review?(jhammel) → review+
Updated•12 years ago
|
Attachment #669748 -
Flags: review?(jhammel) → review+
Updated•12 years ago
|
Attachment #669754 -
Flags: review?(jhammel) → review+
Assignee | ||
Comment 6•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/dda561124c61 https://hg.mozilla.org/mozilla-central/rev/66d59a4d5a1b https://hg.mozilla.org/mozilla-central/rev/0ccb7a8a8e5b https://hg.mozilla.org/mozilla-central/rev/c0977caba1d6
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment 7•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/07919b62b9cf
Updated•6 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•