fix build with system libpng

This commit is contained in:
Tigro 2016-05-27 12:01:29 +03:00
parent d67a292965
commit a6ee4430b4
2 changed files with 15 additions and 0 deletions

11
PNGImageDecoder.patch Normal file
View file

@ -0,0 +1,11 @@
--- a/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cppg 2016-05-01 15:22:46.103607522 +0800
+++ b/third_party/WebKit/Source/platform/image-decoders/png/PNGImageDecoder.cpp 2016-05-01 15:25:14.459753876 +0800
@@ -234,7 +234,7 @@
#endif
png_uint_32 profileLength = 0;
if (png_get_iCCP(png, info, &profileName, &compressionType, &profile, &profileLength)) {
- setColorProfileAndTransform(profile, profileLength, imageHasAlpha, false /* useSRGB */);
+ setColorProfileAndTransform((const char*)profile, profileLength, imageHasAlpha, false /* useSRGB */);
}
}
#endif // PNG_iCCP_SUPPORTED

View file

@ -66,6 +66,9 @@ Patch506: chromium-50-system-ffmpeg-3.patch
# vaInitialize failed VA error: unknown libva error
Patch507: issue1688073002_40001.diff
Patch600: unbundle-libvpx_new-fix.patch
# https://aur.archlinux.org/cgit/aur.git/plain/PNGImageDecoder.patch?h=chromium-gtk3
# fix build with system libpng
Patch601: PNGImageDecoder.patch
Provides: %{crname} = %{EVRD}
Conflicts: chromium-browser-unstable
@ -309,6 +312,7 @@ find third_party/icu -type f \! -regex '.*\.\(gyp\|gypi\|isolate\)' -delete
%patch506 -p1
%endif
#patch600 -p1
%patch601 -p1
### build with widevine support