Closed
Bug 735638
Opened 13 years ago
Closed 13 years ago
makeutil library func: checkIfEmpty
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: joey, Assigned: joey)
References
Details
Attachments
(1 file, 2 obsolete files)
6.46 KB,
patch
|
Details | Diff | Splinter Review |
Add a checkIfEmpty makefile library function that will accept a list of variable names and report "Variable ${var} does not contain a value" if undef, empty or contains spaces.
Default behavior should invoke $(error) and force failure.
An optional parameter can be passed to alter this behavior by calling $(warning).
This function will mainly be used for testing values after asynchronous shell commands have been run and failed to propagate failure { in the absence of SHELL += -e }.
A unit test will also be needed, both positive and negative, to validate behavior of the function.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → joey
Assignee | ||
Comment 1•13 years ago
|
||
Let's make this easy by defining three macros, two for named access:
warnIfEmpty
errorIfEmpty
and a 3rd that will accept values and a callback function $(error|warning) as $(lastword)
checkIfEmpty,@vars [warn|empty])
Assignee | ||
Comment 2•13 years ago
|
||
makeutil library functions for warning about or failing on make macros w/o a value.
A unit test has been setup to verify functionality but is currently wrappered with a 'MANUAL_TEST' conditional until syntax can be found able to test errorIfEmpty w/o aborting the make run.
Attachment #605769 -
Flags: review?(khuey)
Assignee | ||
Comment 3•13 years ago
|
||
Same patch as last time but copied config/makefiles/makeutils.mk into js/src/config/makefiles/makeutils.mk to keep the check-sync-dirs.py test at bay.
Attachment #605786 -
Flags: review?(khuey)
Assignee | ||
Updated•13 years ago
|
Attachment #605769 -
Flags: review?(khuey)
Assignee | ||
Comment 4•13 years ago
|
||
code review ping
Comment on attachment 605786 [details] [diff] [review]
toolkit/xre/Makefile.in - reduce shell command use
Review of attachment 605786 [details] [diff] [review]:
-----------------------------------------------------------------
r=me provided manual.sh is still not getting checked in.
Attachment #605786 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 6•13 years ago
|
||
r=kyle carried forward. Only change was to remove manual.sh from the patch. 735638 and 734121 should have been the only patches that included the script.
Attachment #605769 -
Attachment is obsolete: true
Attachment #605786 -
Attachment is obsolete: true
Assignee | ||
Comment 7•13 years ago
|
||
these makefile edits should simmer in b-s for a while.
Comment 8•13 years ago
|
||
Comment on attachment 608329 [details] [diff] [review]
add utility function checkIfEmpty
https://hg.mozilla.org/projects/build-system/rev/329bd787a846
Assignee | ||
Comment 9•13 years ago
|
||
Patch landed on mozilla-central yesterday by Coop & Philor:
https://hg.mozilla.org/mozilla-central/rev/c598b7b202e7
Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
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
•