Closed
Bug 901644
Opened 11 years ago
Closed 11 years ago
Allow mach build paths to be specified relative to $srcdir
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla26
People
(Reporter: dcamp, Assigned: dcamp)
Details
(Whiteboard: [mach])
Attachments
(1 file, 1 obsolete file)
2.78 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
I'd like to be able to build what I'm working on from anywhere. Maybe mach build /browser could be relative to srcdir?
Comment 1•11 years ago
|
||
That's a fair request. Code for resolving a mach build argument/target into a make target lives at https://hg.mozilla.org/mozilla-central/file/default/python/mozbuild/mozbuild/util.py#l156.
Summary: Allow paths to be specified relative to $srcdir → Allow mach build paths to be specified relative to $srcdir
Comment 2•11 years ago
|
||
I feel like we discussed this but I can't find a record of it. Having "mach build /browser" build $topsrcdir/browser seems totally sane.
Comment 4•11 years ago
|
||
Comment on attachment 787135 [details] [diff] [review] mach-absolute.diff Review of attachment 787135 [details] [diff] [review]: ----------------------------------------------------------------- https://hg.mozilla.org/integration/mozilla-inbound/rev/a82f3a08ff3a (with nits I fixed for you to make up for the review lag) ::: python/mozbuild/mozbuild/util.py @@ +178,5 @@ > > target = target.replace(os.sep, '/') > > + if target[0] == '/': > + target = target[1:] target = target.lstrip('/')
Attachment #787135 -
Flags: review?(gps) → review+
Updated•11 years ago
|
Component: mach → Build Config
Whiteboard: [mach]
Comment 5•11 years ago
|
||
Backed out in http://hg.mozilla.org/integration/mozilla-inbound/rev/a727146d85e2 since it turns out to have a test, which that failed.
Comment 6•11 years ago
|
||
Tests can be executed by running: mach python-test python/mozbuild/mozbuild/test/
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #795151 -
Flags: review?(gps)
Assignee | ||
Updated•11 years ago
|
Attachment #787135 -
Attachment is obsolete: true
Comment 8•11 years ago
|
||
Comment on attachment 795151 [details] [diff] [review] v2 Review of attachment 795151 [details] [diff] [review]: ----------------------------------------------------------------- ::: python/mozbuild/mozbuild/test/test_util.py @@ +123,5 @@ > > + def test_root_path(self): > + self.assertResolve('/test-dir', ('test-dir', None)) > + self.assertResolve('/test-dir/with', ('test-dir/with', None)) > + self.assertResolve('/test-dir/with', ('test-dir/with', None)) Why the duplicate test?
Attachment #795151 -
Flags: review?(gps) → review+
Assignee | ||
Comment 9•11 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/05fe61b1a309
Assignee: nobody → dcamp
Whiteboard: [mach] → [mach][fixed-in-fx-team]
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/05fe61b1a309
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [mach][fixed-in-fx-team] → [mach]
Target Milestone: --- → mozilla26
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•