Closed
Bug 1046533
Opened 11 years ago
Closed 11 years ago
Completely wrap subconfigures
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla34
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file, 2 obsolete files)
15.17 KB,
patch
|
mshal
:
review+
|
Details | Diff | Splinter Review |
In bug 903369, I originally wanted to do that, but the msys mangling made that hard to do. However, to implement bug 1043268, and possible future improvements, it's actually better to do the effort to overcome the mangling.
Assignee | ||
Comment 1•11 years ago
|
||
While bug 903369 added some kind of wrapping, msys mangling on Windows made
it hard to make the python wrapper invoke subconfigures itself. This change
overcomes this, allowing to run subconfigures entirely independently of
the main configure if necessary, or to do more fancy checks without having
to resort to m4 and shell.
Attachment #8465197 -
Flags: review?(mshal)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
There was a missing "return".
Attachment #8465205 -
Flags: review?(mshal)
Assignee | ||
Updated•11 years ago
|
Attachment #8465197 -
Attachment is obsolete: true
Attachment #8465197 -
Flags: review?(mshal)
Assignee | ||
Comment 3•11 years ago
|
||
Duh, forgot to remove a debugging thing.
Attachment #8465226 -
Flags: review?(mshal)
Assignee | ||
Updated•11 years ago
|
Attachment #8465205 -
Attachment is obsolete: true
Attachment #8465205 -
Flags: review?(mshal)
Comment 4•11 years ago
|
||
Comment on attachment 8465226 [details] [diff] [review]
Completely wrap subconfigures
>+ dnl Yes, this is horrible. But since msys doesn't preserve environment
>+ dnl variables and command line arguments as they are when transitioning
>+ dnl from msys (this script) to python (below), we have to resort to hacks,
>+ dnl storing the environment and command line arguments from a msys process
>+ dnl (perl), and reading it from python.
What guarantee do we have that perl is always msys? Is it just because that's how we have it in MozillaBuild?
>+ print 'configuring in %s' % os.path.relpath(objdir, os.getcwd())
>+ print 'running %s' % ' '.join(command)
>+ sys.stdout.flush()
Did you mean to leave these print statements as well? Not sure if they were just for debugging, or if they're actually useful.
I won't pretend to understand all of the changes, because this is some serious autoconf+perl+python voodoo, but it seems to work as far as I can tell.
Attachment #8465226 -
Flags: review?(mshal) → review+
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Michael Shal [:mshal] from comment #4)
> Comment on attachment 8465226 [details] [diff] [review]
> Completely wrap subconfigures
>
> >+ dnl Yes, this is horrible. But since msys doesn't preserve environment
> >+ dnl variables and command line arguments as they are when transitioning
> >+ dnl from msys (this script) to python (below), we have to resort to hacks,
> >+ dnl storing the environment and command line arguments from a msys process
> >+ dnl (perl), and reading it from python.
>
> What guarantee do we have that perl is always msys? Is it just because
> that's how we have it in MozillaBuild?
Yes. And we pretty much don't support building with anything else on windows.
Assignee | ||
Comment 6•11 years ago
|
||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/112cf093670b
https://hg.mozilla.org/mozilla-central/rev/759010d95f79
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Updated•10 years ago
|
QA Whiteboard: [qa-]
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•