From 7e684d1663abfc4374339d607a4c0c186da2b7b1 Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sat, 28 May 2016 14:18:55 +0800 Subject: chromium: Chromium 50.0.2661.102 -> 51.0.2704.63 --- chromium/chromium/chromium-PNGImageDecoder.patch | 11 +++++++++++ chromium/chromium/chromium.spec | 12 ++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 chromium/chromium/chromium-PNGImageDecoder.patch diff --git a/chromium/chromium/chromium-PNGImageDecoder.patch b/chromium/chromium/chromium-PNGImageDecoder.patch new file mode 100644 index 0000000..986e662 --- /dev/null +++ b/chromium/chromium/chromium-PNGImageDecoder.patch @@ -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 diff --git a/chromium/chromium/chromium.spec b/chromium/chromium/chromium.spec index 0e87c8a..6229976 100644 --- a/chromium/chromium/chromium.spec +++ b/chromium/chromium/chromium.spec @@ -29,7 +29,7 @@ %endif Name: chromium -Version: 50.0.2661.102 +Version: 51.0.2704.63 Release: 1%{?dist} Summary: An open-source project that aims to build a safer, faster, and more stable browser @@ -43,6 +43,10 @@ Source0: https://commondatastorage.googleapis.com/chromium-browser-official/c Source1: chromium-browser.sh Source2: chromium-browser.desktop +# Add a patch from Arch Linux to fix libpng problem +# https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/chromium&id=14bce0f +Patch0: chromium-PNGImageDecoder.patch + # I don't have time to test whether it work on other architectures ExclusiveArch: x86_64 @@ -105,9 +109,6 @@ Requires: hicolor-icon-theme %prep %autosetup -p1 touch chrome/test/data/webui/i18n_process_css_test.html -# https://code.google.com/p/chromium/issues/detail?id=541273 -# https://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/chromium&id=37c3842 -sed -i "/'target_name': 'libvpx'/s/libvpx/&_new/" build/linux/unbundle/libvpx.gyp %build ./build/linux/unbundle/replace_gyp_files.py \ @@ -295,6 +296,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Thu May 26 2016 - Ting-Wei Lan - 51.0.2704.63-1 +- Update to 51.0.2704.63 + * Thu May 12 2016 - Ting-Wei Lan - 50.0.2661.102-1 - Update to 50.0.2661.102 -- cgit v1.2.3