Closed
Bug 1021713
Opened 10 years ago
Closed 10 years ago
Update in-tree libpng to version 1.6.13
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
VERIFIED
FIXED
mozilla34
People
(Reporter: glennrp+bmo, Assigned: glennrp+bmo)
References
()
Details
Attachments
(1 file, 4 obsolete files)
206.00 KB,
patch
|
jrmuizel
:
review+
RyanVM
:
feedback+
|
Details | Diff | Splinter Review |
libpng-1.6.11 has been released and an APNG patch is available at apng.sf.net.
Assignee | ||
Comment 1•10 years ago
|
||
There is a misplaced statement (ahead of declarations) in png.c. This is fixed in libpng-1.6.12rc01;
libpng-1.6.12 will be released in a few days, so we need to skip updating mozilla to libpng-1.6.11 and do 1.6.12 instead.
Summary: Update in-tree libpng to version 1.6.11 → Update in-tree libpng to version 1.6.12
Assignee | ||
Comment 2•10 years ago
|
||
Libpng-1.6.12 is out now, and an APNG patch is available.
Comment 3•10 years ago
|
||
Ugh, looks like the in-tree import has local changes without a diff included for the next upstream update. That's sadmaking.
Comment 4•10 years ago
|
||
Glenn, given comment 3, I'd really appreciate if you could take a quick look at this for sanity too.
Assignee: glennrp+bmo → ryanvm
Status: NEW → ASSIGNED
Attachment #8440682 -
Flags: review?(jmuizelaar)
Attachment #8440682 -
Flags: feedback?(glennrp+bmo)
Comment 5•10 years ago
|
||
Comment on attachment 8440682 [details] [diff] [review]
Update libpng to version 1.6.12
This is busted on Try.
https://tbpl.mozilla.org/php/getParsedLog.php?id=41793715&tree=Try
Attachment #8440682 -
Flags: review?(jmuizelaar)
Attachment #8440682 -
Flags: feedback?(glennrp+bmo)
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #4)
> Created attachment 8440682 [details] [diff] [review]
> Update libpng to version 1.6.12
>
> Glenn, given comment 3, I'd really appreciate if you could take a quick look
> at this for sanity too.
Yes there are a few differences between the in-tree libpng and the
apng-patched system libpng. I'll see what I can do about that. The differences
are mainly from back when the size of libpng mattered, but those are mostly
in mozlibpng.h not in libpng proper.
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Glenn Randers-Pehrson from comment #6)
> The
> differences
> are mainly from back when the size of libpng mattered, but those are mostly
> in mozlibpng.h not in libpng proper.
Others, including the three reported in the tryserver log about "options", etc.,
have to do with the fact that we are using mozlibpng.h instead of the "libpng"
configure system to build the in-tree libpng.
Assignee | ||
Comment 8•10 years ago
|
||
It should be sufficient to add "#define PNG_SET_OPTIONS_SUPPORTED" to media/libpng/mozpngconf.h.
Testing that now locally.
Comment 9•10 years ago
|
||
Still busted:
https://tbpl.mozilla.org/php/getParsedLog.php?id=41815121&tree=Try
Attached is the patch I pushed. Do we need to do something with PNG_sRGB_PROFILE_CHECKS ?
Attachment #8440682 -
Attachment is obsolete: true
Assignee | ||
Comment 10•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #9)
> Still busted:
Yes there is a bit more to it than what I suggested in comment #8. I'll
continue to work on this as time permits. Fortunately there's nothing urgently needed in
libpng-1.6.12 in-tree (the PROFILE_CHECKS stuff would be helpful to
reduce some warnings when using the system libpng though).
Comment 11•10 years ago
|
||
http://sourceforge.net/projects/libpng/files/libpng16/1.6.13/
Libpng 1.6.13 is out.
Assignee | ||
Comment 12•10 years ago
|
||
Yes. We'll skip libpng-1.6.11 and 1.6.12. The update to libpng-1.6.13 is not urgent; it's just a minor code cleanup version and there aren't any security issues or new features.
Summary: Update in-tree libpng to version 1.6.12 → Update in-tree libpng to version 1.6.13
Assignee | ||
Comment 13•10 years ago
|
||
I'm renaming media/libpng/mozpngconf.h to media/libpng/pnglibconf.h to be more consistent with libpng. This should help avoid the bustage reported in comment #5 and comment #9.
Assignee | ||
Comment 14•10 years ago
|
||
Attachment #8440945 -
Attachment is obsolete: true
Assignee | ||
Comment 15•10 years ago
|
||
Changed new exported function png_set_option to MOZ_PNG_set_option.
Set PNG_sRGB_PROFILE_CHECKS to -1, to skip unnecessary checking/warning.
Attachment #8477041 -
Attachment is obsolete: true
Assignee | ||
Comment 16•10 years ago
|
||
Also modified image/decoders/nsPNGDecoder.cpp to skip sRGB profile checking when using the "system libpng".
Attachment #8477164 -
Attachment is obsolete: true
Assignee | ||
Comment 17•10 years ago
|
||
v02 needs a tryserver run. My local build on Ubuntu 14.04 is working well.
Flags: needinfo?(ryanvm)
Assignee | ||
Comment 18•10 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #3)
> Ugh, looks like the in-tree import has local changes without a diff included
> for the next upstream update. That's sadmaking.
Renaming mozpngconf.h to pnglibconf.h took care of that. Now we are using the
same patch (apng.patch) for both the system library and the in-tree library.
Comment 19•10 years ago
|
||
Flags: needinfo?(ryanvm)
Updated•10 years ago
|
Assignee: ryanvm → glennrp+bmo
Assignee | ||
Comment 20•10 years ago
|
||
Comment on attachment 8477401 [details] [diff] [review]
v02 Update intree libpng to version 1.6.13
Try was all green except for two reftest failures which appear to be unrelated to the patch.
Attachment #8477401 -
Flags: review?(jmuizelaar)
Comment 21•10 years ago
|
||
Comment on attachment 8477401 [details] [diff] [review]
v02 Update intree libpng to version 1.6.13
Indeed, LGTM :)
Attachment #8477401 -
Flags: feedback+
Updated•10 years ago
|
Attachment #8477401 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 22•10 years ago
|
||
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Assignee | ||
Updated•10 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•