Closed
Bug 1419055
Opened 7 years ago
Closed 7 years ago
Fix FasterMake backend handling of FINAL_TARGET_FILES with wildcards in filename
Categories
(Firefox Build System :: General, enhancement)
Firefox Build System
General
Tracking
(firefox59 fixed)
RESOLVED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: ted, Assigned: ted)
References
Details
Attachments
(1 file)
The patch in bug 1407374 adds `LOCALIZED_FILES` entries with wildcards in the name, which are handled by FasterMake the same way as `FINAL_TARGET_FILES`. It turns out that FasterMake's handling of wildcards in filenames is broken.
I guess this isn't a construct we actually use in-tree currently. It's broken with entries like:
```
FINAL_TARGET_FILES += ['*.xyz']
```
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → ted
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8930124 [details]
bug 1419055 - Fix FasterMake backend handling of FINAL_TARGET_FILES with wildcards in filename.
https://reviewboard.mozilla.org/r/201292/#review206450
lgtm. Just a case that wasn't consider, I guess.
Attachment #8930124 -
Flags: review+
![]() |
||
Comment 3•7 years ago
|
||
Do we want to make the emitter smarter about these kinds of cases, so it's more difficult to botch things in the backend? Surely the FasterMake backend will not be the only one to run into problems like this.
Assignee | ||
Comment 4•7 years ago
|
||
I am not opposed to that, I just don't know what it'd look like precisely. I guess having some sort of `Pattern` class would be useful.
Updated•7 years ago
|
Attachment #8930124 -
Flags: review?(core-build-config-reviews)
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8930124 [details]
bug 1419055 - Fix FasterMake backend handling of FINAL_TARGET_FILES with wildcards in filename.
https://reviewboard.mozilla.org/r/201292/#review206820
::: python/mozbuild/mozbuild/backend/fastermake.py:82
(Diff revision 1)
>
> + if '*' in f.target_basename:
> + target = path
> + else:
> + target = mozpath.join(path, f.target_basename)
> + mozpath.join(path, f.target_basename)
Dead code
Assignee | ||
Comment 6•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/bca7bf9ad9bf54e1c0e96c2dd8be27f61c50cfbd
bug 1419055 - Fix FasterMake backend handling of FINAL_TARGET_FILES with wildcards in filename. r=nalexander
Assignee | ||
Comment 7•7 years ago
|
||
(In reply to :froydnj (on leave until 2018, ni? or email if necessary) from comment #3)
> Do we want to make the emitter smarter about these kinds of cases, so it's
> more difficult to botch things in the backend? Surely the FasterMake
> backend will not be the only one to run into problems like this.
I filed bug 1419489 to discuss this.
Comment 8•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
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
•