Closed
Bug 1139173
Opened 10 years ago
Closed 10 years ago
build with musl libc fails in ipc/chromium/src/base/file_util.h: fts.h: no such file or directory
Categories
(Core :: IPC, defect)
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: felix.janda, Assigned: felix.janda)
Details
Attachments
(4 files, 1 obsolete file)
1.31 KB,
text/plain
|
Details | |
769 bytes,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
3.79 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
12.57 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
Build fails on linux systems with musl libc (http://musl-libc.org) in ipc/chromium/src/base/file_util.h because musl lacks fts.h.
Assignee | ||
Comment 1•10 years ago
|
||
Bugs 1113463 and 1114753 have indicated to me that a lot of the code is actually unused. Grepping the full tree for ScopedTempDir turned up nothing. With ScopedTempDir removed, file_utils doesn't need to be able to do recursive delete any more.
Assignee | ||
Comment 2•10 years ago
|
||
It looks like that even more of file_util could be removed.
Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8572209 [details] [diff] [review]
Remove ScopedTempDir and recursive file_util functions
Sorry for the large patch. I could split it into one patch removing ScopedTempDir and a patch for the rest.
Does the approach make sense?
The patch also changes the non-standard (and on musl non-existing) <sys/errno.h> to <errno.h>. Should this be split off?
Since I don't have access to the try server, I could only test on my system.
Attachment #8572209 -
Flags: feedback?(nfroyd)
![]() |
||
Comment 4•10 years ago
|
||
Comment on attachment 8572209 [details] [diff] [review]
Remove ScopedTempDir and recursive file_util functions
Review of attachment 8572209 [details] [diff] [review]:
-----------------------------------------------------------------
This all looks reasonable from a quick skim. I would prefer the patch to be split up into three patches:
1. Switch to <errno.h>.
2. Remove ScopedTempDir.
3. Cleanup.
Thanks for doing this!
Attachment #8572209 -
Flags: feedback?(nfroyd) → feedback+
Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8594299 -
Flags: review?(nfroyd)
Assignee | ||
Comment 6•10 years ago
|
||
Attachment #8594300 -
Flags: review?(nfroyd)
Assignee | ||
Comment 7•10 years ago
|
||
This is the most non-trivial patch.
As can be seen from the changes to file_util.h, the changes are the following:
* Remove the unused CopyDirectory() functions
* Remove the unused recursive argument of Delete()
Attachment #8572209 -
Attachment is obsolete: true
Attachment #8594301 -
Flags: review?(nfroyd)
![]() |
||
Updated•10 years ago
|
Attachment #8594299 -
Flags: review?(nfroyd) → review+
![]() |
||
Updated•10 years ago
|
Attachment #8594300 -
Flags: review?(nfroyd) → review+
![]() |
||
Updated•10 years ago
|
Attachment #8594301 -
Flags: review?(nfroyd) → review+
![]() |
||
Comment 8•10 years ago
|
||
Thanks for splitting those patches up!
Assignee | ||
Comment 9•10 years ago
|
||
Thanks for the review!
Could you do a try run for me? I don't have access to the try server.
Comment 10•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 11•10 years ago
|
||
Comment 12•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/62325b792c42
https://hg.mozilla.org/mozilla-central/rev/1e75c69141ca
https://hg.mozilla.org/mozilla-central/rev/9b6b694dd82e
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•