Closed
Bug 770426
Opened 13 years ago
Closed 12 years ago
make::rules.mk - replace double colon rules with dependency chains for Preprocessing rules
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla17
People
(Reporter: glandium, Assigned: glandium)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 2 obsolete files)
4.34 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
15.05 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•13 years ago
|
||
This only covers the cases where we preprocess $file to some other location. The cases where we preprocess $srcdir/$file.in to $file are not covered.
Attachment #638619 -
Flags: review?(khuey)
Comment 2•13 years ago
|
||
Drive-by review: while you are here, do you want to move functionality into its own .mk file?
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Gregory Szorc [:gps] from comment #2)
> Drive-by review: while you are here, do you want to move functionality into
> its own .mk file?
I'd rather leave that to someone who'd have the time to do that and write tests.
Attachment #638619 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 4•13 years ago
|
||
Target Milestone: --- → mozilla17
Assignee | ||
Comment 5•13 years ago
|
||
When landing, we got failures on clobber builds:
Traceback (most recent call last):
File "e:/builds/moz2_slave/m-in-w32-pgo/build/config/buildlist.py", line 40, in <module>
addEntriesToListFile(sys.argv[1], sys.argv[2:])
File "e:/builds/moz2_slave/m-in-w32-pgo/build/config/buildlist.py", line 19, in addEntriesToListFile
lock = lockFile(listFile + ".lck")
File "e:\builds\moz2_slave\m-in-w32-pgo\build\config\utils.py", line 44, in lockFile
fd = os.open(lockfile, os.O_EXCL | os.O_RDWR | os.O_CREAT)
OSError: [Errno 2] No such file or directory: '../dist/bin/webapprt/chrome.manifest.lck'
The reason is subtle: the patch from this bug effectively reorders some rules, unhiding a latent bug in the chome.manifest rules, which the definitions in webapprt/Makefile.in made it work by chance: before, the rule to copy the pref file were appearing before the chrome.manifest rule, so $(FINAL_TARGET) was already created. With the patch from this bug, the rule to copy the pref file is appearing after the chrome.manifest rule, so $(FINAL_TARGET) is not created before running the chrome.manifest rule.
This adds proper dependencies.
Attachment #644913 -
Flags: review?(khuey)
Attachment #644913 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Comment 7•13 years ago
|
||
Push backed out for Windows mochitest crashes:
https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=eecd3aa199e6
https://hg.mozilla.org/integration/mozilla-inbound/rev/1abfd50c8be6
Assignee | ||
Comment 8•13 years ago
|
||
This fixes the issue we had on Windows when landing (it turns out the "target" variable was set in the environment, thus overriding whatever was in rules.mk), and makes the rule more similar to those of bug 773202 (btw, if you want to review that one too... ;) ).
Attachment #646106 -
Flags: review?(khuey)
Assignee | ||
Updated•13 years ago
|
Attachment #638619 -
Attachment is obsolete: true
Assignee | ||
Comment 9•13 years ago
|
||
Comment on attachment 646106 [details] [diff] [review]
Replace double colon rules with dependency chains for preprocessing rules.
Still breaks win debug, apparently :(
Attachment #646106 -
Flags: review?(khuey)
Assignee | ||
Updated•13 years ago
|
Attachment #646106 -
Attachment is obsolete: true
Comment on attachment 647216 [details] [diff] [review]
Replace double colon rules with dependency chains for preprocessing rules.
Review of attachment 647216 [details] [diff] [review]:
-----------------------------------------------------------------
mmm eval
Attachment #647216 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 12•12 years ago
|
||
Comment 13•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 15•11 years ago
|
||
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
•