Closed
Bug 848385
Opened 11 years ago
Closed 11 years ago
Running make package twice in a row with MOZ_ENABLE_SZIP is broken
Categories
(Core :: mozglue, defect)
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(2 files, 2 obsolete files)
1.44 KB,
patch
|
khuey
:
review+
|
Details | Diff | Splinter Review |
5.81 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
The second time, we're trying to re-szip an already szipped file.
Assignee | ||
Comment 1•11 years ago
|
||
There are other problems, too, like running file_id on szipped files.
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #732418 -
Flags: review?(nfroyd)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mh+mozilla
Updated•11 years ago
|
Attachment #732418 -
Flags: review?(nfroyd) → review+
Assignee | ||
Updated•11 years ago
|
Component: Build Config → mozglue
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #735038 -
Flags: review?(nfroyd)
Assignee | ||
Updated•11 years ago
|
Attachment #732418 -
Attachment is obsolete: true
Assignee | ||
Comment 4•11 years ago
|
||
For whoever comes here first. The other patch in this bug changes the szip executable such that it takes only one argument and does in-place compression, which removes the need for the mv.
Attachment #735041 -
Flags: review?(ted)
Attachment #735041 -
Flags: review?(khuey)
Assignee | ||
Comment 5•11 years ago
|
||
And don't error out when trying to decompress something that is not compressed. Makes things easier for other scripts.
Attachment #735115 -
Flags: review?(nfroyd)
Assignee | ||
Updated•11 years ago
|
Attachment #735038 -
Attachment is obsolete: true
Attachment #735038 -
Flags: review?(nfroyd)
Attachment #735041 -
Flags: review?(khuey) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #735041 -
Flags: review?(ted)
Comment 6•11 years ago
|
||
Comment on attachment 735115 [details] [diff] [review] Avoid recompressing a szip, and (de)compress in-place (but still with a temporary file) Review of attachment 735115 [details] [diff] [review]: ----------------------------------------------------------------- ::: mozglue/linker/szip.cpp @@ +535,5 @@ > } > > + std::stringstream tmpOutStream; > + tmpOutStream << firstArg[0] << ".sz." << getpid(); > + std::string tmpOut(tmpOutStream.str()); Using mkstemp might be a little nicer, though you'd have to change FileBuffer to accept an existing fd as an argument.
Attachment #735115 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 7•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/10f03c8cf438
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/10f03c8cf438
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in
before you can comment on or make changes to this bug.
Description
•