Closed
Bug 1036645
Opened 11 years ago
Closed 11 years ago
The config.cache for subconfigures is blown away every time configure runs
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla33
People
(Reporter: ehsan.akhgari, Assigned: glandium)
References
Details
Attachments
(3 files, 2 obsolete files)
8.19 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
5.22 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
7.22 KB,
patch
|
gps
:
review+
|
Details | Diff | Splinter Review |
glandium tells me that the heuristic in bug 906403 is broken...
Assignee | ||
Comment 1•11 years ago
|
||
There are several issues in the script that checks config.cache:
- it doesn't unquote values, so it compares e.g. "'foo'" with "foo", seens the mismatch, and throws away the cache.
- it doesn't consider the combination of ac_cv_env_*_set and ac_cv_env_*_value vs. os.environ entirely properly
- it tries to match the *_alias variables with the environment, when what config.cache stores comes from the configure command line arguments.
Summary: The config.cache for subconfigures is blown away every time we touch configure without clobber → The config.cache for subconfigures is blown away every time configure runs
Assignee | ||
Comment 2•11 years ago
|
||
As ICU needs an objdir different from its source directory, add support for
that in AC_OUTPUT_SUBDIRS.
Attachment #8453551 -
Flags: review?(gps)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•11 years ago
|
||
I had forgotten to remove ICU_SRCDIR, which is now useless. Note it's safe to remove because AC_OUTPUT_SUBDIRS does the right thing already.
Attachment #8453552 -
Flags: review?(gps)
Assignee | ||
Updated•11 years ago
|
Attachment #8453551 -
Attachment is obsolete: true
Attachment #8453551 -
Flags: review?(gps)
Assignee | ||
Comment 4•11 years ago
|
||
All subconfigures are essentially doing it already, so just inverse the process. That would also limit problems with additional subconfigures (all the recent ones had to come with their own config.cache)
Attachment #8453555 -
Flags: review?(gps)
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #8453557 -
Flags: review?(gps)
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 7•11 years ago
|
||
Note that by not using AC_OUTPUT_SUBDIRS, ICU's configure was *not* using a config.cache, so this patch set changes that as well.
Assignee | ||
Comment 8•11 years ago
|
||
Turns out the freetype subconfigure was relying on using the main config.cache.
Attachment #8453560 -
Flags: review?(gps)
Assignee | ||
Updated•11 years ago
|
Attachment #8453555 -
Attachment is obsolete: true
Attachment #8453555 -
Flags: review?(gps)
Assignee | ||
Comment 9•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=a1c98df7cb24 With the new part 2, only for android.
Updated•11 years ago
|
Attachment #8453552 -
Flags: review?(gps) → review+
Updated•11 years ago
|
Attachment #8453560 -
Flags: review?(gps) → review+
Comment 10•11 years ago
|
||
Comment on attachment 8453557 [details] [diff] [review]
part 3 - Fix the subconfigure wrapper heuristics to decide when to kill config.cache
Review of attachment 8453557 [details] [diff] [review]:
-----------------------------------------------------------------
::: build/subconfigure.py
@@ +65,5 @@
> + parser = argparse.ArgumentParser()
> + parser.add_argument('--target', type=str)
> + parser.add_argument('--host', type=str)
> + parser.add_argument('--build', type=str)
> + args, others = parser.parse_known_args(args)
Wait, there is a parse_known_args()?! We could be using this for so many mach commands. Dammit.
Attachment #8453557 -
Flags: review?(gps) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c4a56f872991
https://hg.mozilla.org/mozilla-central/rev/93f1af4bb4b2
https://hg.mozilla.org/mozilla-central/rev/a0ab7fa5dd58
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
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
•