[arch-commits] Commit in chromium/trunk (4 files)

2019-02-08 Thread Evangelos Foutras via arch-commits
Date: Friday, February 8, 2019 @ 09:33:40
  Author: foutrelis
Revision: 345633

upgpkg: chromium 72.0.3626.96-3

- Disable 10 bpc color configs; fixes VAAPI playback
- Split upstream patch out of chromium-vaapi.patch
- Add replaces for chromium-vaapi{,-bin}

Added:
  chromium/trunk/chromium-drirc-disable-10bpc-color-configs.conf
  chromium/trunk/chromium-enable-mojo-video-decoders-by-default.patch
Modified:
  chromium/trunk/PKGBUILD
  chromium/trunk/chromium-vaapi.patch

--+
 PKGBUILD |   13 +-
 chromium-drirc-disable-10bpc-color-configs.conf  |   15 ++
 chromium-enable-mojo-video-decoders-by-default.patch |  104 +
 chromium-vaapi.patch |   56 -
 4 files changed, 130 insertions(+), 58 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-02-08 02:49:03 UTC (rev 345632)
+++ PKGBUILD2019-02-08 09:33:40 UTC (rev 345633)
@@ -5,7 +5,7 @@
 
 pkgname=chromium
 pkgver=72.0.3626.96
-pkgrel=2
+pkgrel=3
 _launcher_ver=6
 pkgdesc="A web browser built for speed, simplicity, and security"
 arch=('x86_64')
@@ -20,22 +20,27 @@
 'kdialog: needed for file dialogs in KDE'
 'gnome-keyring: for storing passwords in GNOME keyring'
 'kwallet: for storing passwords in KWallet')
+replaces=('chromium-vaapi' 'chromium-vaapi-bin')
 install=chromium.install
 
source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.xz
 
chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
+chromium-drirc-disable-10bpc-color-configs.conf
 chromium-system-icu.patch
 chromium-webrtc-missing-header.patch
 chromium-vaapi.patch
 chromium-vaapi-relax-the-version-check-for-VA-API.patch
+chromium-enable-mojo-video-decoders-by-default.patch
 chromium-vaapi-fix-the-VA_CHECK_VERSION.patch
 chromium-widevine.patch
 chromium-skia-harmony.patch)
 sha256sums=('b2daf52aac4d9eba0ab9f034db6f2411ad6930dd02544c4b583e3a6e49dcaa3b'
 '04917e3cd4307d8e31bfb0027a5dce6d086edb10ff8a716024fbb8bb0c7dccf1'
+'babda4f5c1179825797496898d77334ac067149cac03d797ab27ac69671a7feb'
 'e2d284311f49c529ea45083438a768db390bde52949995534034d2a814beab89'
 '63cbed7d7af327c17878a2066c303f106ff08636372721845131f7ff13d87b44'
-'561151f381db44908ab5649f3579049e4cbce04cbed76e32d767b156bf83944d'
+'e87ede45edf39ac19e56ac1ae49c9d1f5f5130e5838bcbb4c3d4fb16e55575c0'
 '07fcf5d25114c7335582f117090b5e0bd148aca69044d4fe25c66b4c52dcd2a6'
+'669a9ad4773d182a06ee729008a60aeadddae92f1a0077b3811e11f292c8d4ff'
 '0bd750255163bfb1bedaf97c1cdb313f42bd9e6e52243c6e68494b6e0ffb84bf'
 'd081f2ef8793544685aad35dea75a7e6264a2cb987ff3541e6377f4a3650a28b'
 '5887f78b55c4ecbbcba5930f3f0bb7bc0117c2a41c2f761805fcf7f46f1ca2b3')
@@ -91,6 +96,7 @@
   # Enable VAAPI on Linux
   patch -Np1 -i ../chromium-vaapi.patch
   patch -Np1 -i ../chromium-vaapi-relax-the-version-check-for-VA-API.patch
+  patch -Np1 -i ../chromium-enable-mojo-video-decoders-by-default.patch
   patch -Np1 -i ../chromium-vaapi-fix-the-VA_CHECK_VERSION.patch
 
   # Load Widevine CDM if available
@@ -202,6 +208,9 @@
   install -Dm4755 out/Release/chrome_sandbox 
"$pkgdir/usr/lib/chromium/chrome-sandbox"
   ln -s /usr/lib/chromium/chromedriver "$pkgdir/usr/bin/chromedriver"
 
+  install -Dm644 ../chromium-drirc-disable-10bpc-color-configs.conf \
+"$pkgdir/usr/share/drirc.d/10-$pkgname.conf"
+
   install -Dm644 chrome/installer/linux/common/desktop.template \
 "$pkgdir/usr/share/applications/chromium.desktop"
   install -Dm644 chrome/app/resources/manpage.1.in \

Added: chromium-drirc-disable-10bpc-color-configs.conf
===
--- chromium-drirc-disable-10bpc-color-configs.conf 
(rev 0)
+++ chromium-drirc-disable-10bpc-color-configs.conf 2019-02-08 09:33:40 UTC 
(rev 345633)
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+

Added: chromium-enable-mojo-video-decoders-by-default.patch
===
--- chromium-enable-mojo-video-decoders-by-default.patch
(rev 0)
+++ chromium-enable-mojo-video-decoders-by-default.patch2019-02-08 
09:33:40 UTC (rev 345633)
@@ -0,0 +1,104 @@
+From 31225b9c5f3f685d65f742dc129241c30c32157c Mon Sep 17 00:00:00 2001
+From: Julien Isorce 
+Date: Sat, 15 Dec 2018 01:02:18 +
+Subject: [PATCH] Enable mojo video decoders by default on Linux desktop if
+ use_vaapi is true
+
+Already the case for ChromeOS, Mac and Win. And run the service
+in the GPU process too. 

[arch-commits] Commit in chromium/trunk (4 files)

2019-02-07 Thread Evangelos Foutras via arch-commits
Date: Thursday, February 7, 2019 @ 20:18:33
  Author: foutrelis
Revision: 345621

upgpkg: chromium 72.0.3626.96-2

Enable VAAPI (patch from Fedora).

Added:
  chromium/trunk/chromium-vaapi-fix-the-VA_CHECK_VERSION.patch
  chromium/trunk/chromium-vaapi-relax-the-version-check-for-VA-API.patch
  chromium/trunk/chromium-vaapi.patch
Modified:
  chromium/trunk/PKGBUILD

-+
 PKGBUILD|   16 +
 chromium-vaapi-fix-the-VA_CHECK_VERSION.patch   |   74 ++
 chromium-vaapi-relax-the-version-check-for-VA-API.patch |   62 +
 chromium-vaapi.patch|  172 ++
 4 files changed, 322 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2019-02-07 19:54:15 UTC (rev 345620)
+++ PKGBUILD2019-02-07 20:18:33 UTC (rev 345621)
@@ -5,7 +5,7 @@
 
 pkgname=chromium
 pkgver=72.0.3626.96
-pkgrel=1
+pkgrel=2
 _launcher_ver=6
 pkgdesc="A web browser built for speed, simplicity, and security"
 arch=('x86_64')
@@ -12,7 +12,7 @@
 url="https://www.chromium.org/Home;
 license=('BSD')
 depends=('gtk3' 'nss' 'alsa-lib' 'xdg-utils' 'libxss' 'libcups' 'libgcrypt'
- 'ttf-font' 'systemd' 'dbus' 'libpulse' 'pciutils' 'json-glib'
+ 'ttf-font' 'systemd' 'dbus' 'libpulse' 'pciutils' 'json-glib' 'libva'
  'desktop-file-utils' 'hicolor-icon-theme')
 makedepends=('python' 'python2' 'gperf' 'yasm' 'mesa' 'ninja' 'nodejs' 'git'
  'clang' 'lld' 'gn' 'java-runtime-headless')
@@ -25,6 +25,9 @@
 
chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
 chromium-system-icu.patch
 chromium-webrtc-missing-header.patch
+chromium-vaapi.patch
+chromium-vaapi-relax-the-version-check-for-VA-API.patch
+chromium-vaapi-fix-the-VA_CHECK_VERSION.patch
 chromium-widevine.patch
 chromium-skia-harmony.patch)
 sha256sums=('b2daf52aac4d9eba0ab9f034db6f2411ad6930dd02544c4b583e3a6e49dcaa3b'
@@ -31,6 +34,9 @@
 '04917e3cd4307d8e31bfb0027a5dce6d086edb10ff8a716024fbb8bb0c7dccf1'
 'e2d284311f49c529ea45083438a768db390bde52949995534034d2a814beab89'
 '63cbed7d7af327c17878a2066c303f106ff08636372721845131f7ff13d87b44'
+'561151f381db44908ab5649f3579049e4cbce04cbed76e32d767b156bf83944d'
+'07fcf5d25114c7335582f117090b5e0bd148aca69044d4fe25c66b4c52dcd2a6'
+'0bd750255163bfb1bedaf97c1cdb313f42bd9e6e52243c6e68494b6e0ffb84bf'
 'd081f2ef8793544685aad35dea75a7e6264a2cb987ff3541e6377f4a3650a28b'
 '5887f78b55c4ecbbcba5930f3f0bb7bc0117c2a41c2f761805fcf7f46f1ca2b3')
 
@@ -82,6 +88,11 @@
 third_party/blink/renderer/core/xml/parser/xml_document_parser.cc \
 third_party/libxml/chromium/libxml_utils.cc
 
+  # Enable VAAPI on Linux
+  patch -Np1 -i ../chromium-vaapi.patch
+  patch -Np1 -i ../chromium-vaapi-relax-the-version-check-for-VA-API.patch
+  patch -Np1 -i ../chromium-vaapi-fix-the-VA_CHECK_VERSION.patch
+
   # Load Widevine CDM if available
   patch -Np1 -i ../chromium-widevine.patch
 
@@ -153,6 +164,7 @@
 'use_custom_libcxx=false'
 'enable_hangout_services_extension=true'
 'enable_widevine=true'
+'use_vaapi=true'
 'enable_nacl=false'
 'enable_swiftshader=false'
 "google_api_key=\"${_google_api_key}\""

Added: chromium-vaapi-fix-the-VA_CHECK_VERSION.patch
===
--- chromium-vaapi-fix-the-VA_CHECK_VERSION.patch   
(rev 0)
+++ chromium-vaapi-fix-the-VA_CHECK_VERSION.patch   2019-02-07 20:18:33 UTC 
(rev 345621)
@@ -0,0 +1,74 @@
+From 674fb0486a1b525cb850530c4cdc79506338bd37 Mon Sep 17 00:00:00 2001
+From: Azhar Shaikh 
+Date: Fri, 11 Jan 2019 07:44:38 +
+Subject: [PATCH] media/gpu/vaapi: Fix the VA_CHECK_VERSION
+
+commit 6f1309ef8fe109 ("media/gpu/vaapi: Relax the version
+check for VA-API") added the VA_CHECK_VERSION to relax the
+VA-API version check. But it still does the same thing as
+the previous check. VA_CHECK_VERSION will return 'true', only
+when the VA-API version is greater than or equal to the
+parameters passed to it. So in this case when the major and
+minor version were passed from vaInitialize() output, it did
+the same strict check as earlier. When trying to update libva
+to a newer version, there will still be a mismatch, since
+vaInitialize() would return the updated/newer libva version
+installed on the system, but the chromium would still be built
+with older version (libva-2.1.0 as of now).
+To fix this and actually relax the check, make sure the system
+version of libva is greater than the libva version with which
+the browser is built, since libva is backward compatible. This
+will allow any future libva updates without breaking existing code.
+

[arch-commits] Commit in chromium/trunk (4 files)

2018-12-04 Thread Evangelos Foutras via arch-commits
Date: Wednesday, December 5, 2018 @ 07:44:43
  Author: foutrelis
Revision: 341015

upgpkg: chromium 71.0.3578.80-1

New upstream release.

Added:
  chromium/trunk/chromium-widevine.patch
Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/chromium-widevine-r2.patch
  chromium/trunk/include-stdint.h-in-pdfium_mem_buffer_file_write.h.patch

--+
 PKGBUILD |   20 +++---
 chromium-widevine-r2.patch   |   39 -
 chromium-widevine.patch  |   22 +++
 include-stdint.h-in-pdfium_mem_buffer_file_write.h.patch |   30 --
 4 files changed, 33 insertions(+), 78 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-12-05 00:32:59 UTC (rev 341014)
+++ PKGBUILD2018-12-05 07:44:43 UTC (rev 341015)
@@ -4,7 +4,7 @@
 # Contributor: Daniel J Griffiths 
 
 pkgname=chromium
-pkgver=70.0.3538.110
+pkgver=71.0.3578.80
 pkgrel=1
 _launcher_ver=6
 pkgdesc="A web browser built for speed, simplicity, and security"
@@ -23,17 +23,15 @@
 install=chromium.install
 
source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.xz
 
chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
-include-stdint.h-in-pdfium_mem_buffer_file_write.h.patch
 chromium-harfbuzz-r0.patch
-chromium-widevine-r2.patch
 chromium-system-icu.patch
+chromium-widevine.patch
 chromium-skia-harmony.patch)
-sha256sums=('445ef88fcf283206c1eba4faeb1c186c805e053d8b4ffeac1fcb88187bc1942f'
+sha256sums=('025b3520750d11f260acc4cbff5759137444ffb4c82361138dfd22f87b77ad0d'
 '04917e3cd4307d8e31bfb0027a5dce6d086edb10ff8a716024fbb8bb0c7dccf1'
-'cd1e87bf3618b7897c5caf7b0f4213cfa5ce917acb0613ecd2ab3f830f0cbfbb'
 '1b370d49c43e88acfe7c0b1f9517047e927f3407bd80b4a48bba32c001f80136'
-'02c69bb3954087db599def7f5b6d65cf8f7cf2ed81dfbdaa4bb7b51863b4df15'
 'c4f2d1bed9034c02b8806f00c2e8165df24de467803855904bff709ceaf11af5'
+'d081f2ef8793544685aad35dea75a7e6264a2cb987ff3541e6377f4a3650a28b'
 'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
 
 # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
@@ -84,8 +82,8 @@
 third_party/blink/renderer/core/xml/parser/xml_document_parser.cc \
 third_party/libxml/chromium/libxml_utils.cc
 
-  # https://crbug.com/879900
-  patch -Np1 -i ../include-stdint.h-in-pdfium_mem_buffer_file_write.h.patch
+  # Load Widevine CDM if available
+  patch -Np1 -i ../chromium-widevine.patch
 
   # https://crbug.com/skia/6663#c10
   patch -Np4 -i ../chromium-skia-harmony.patch
@@ -92,11 +90,15 @@
 
   # Fixes from Gentoo
   patch -Np1 -i ../chromium-harfbuzz-r0.patch
-  patch -Np1 -i ../chromium-widevine-r2.patch
 
   # https://bugs.gentoo.org/661880#c21
   patch -Np1 -i ../chromium-system-icu.patch
 
+  # Remove compiler flags not supported by our system clang
+  sed -i \
+-e '/"-Wno-defaulted-function-deleted"/d' \
+build/config/compiler/BUILD.gn
+
   # Force script incompatible with Python 3 to use /usr/bin/python2
   sed -i '1s|python$|&2|' third_party/dom_distiller_js/protoc_plugins/*.py
 

Deleted: chromium-widevine-r2.patch
===
--- chromium-widevine-r2.patch  2018-12-05 00:32:59 UTC (rev 341014)
+++ chromium-widevine-r2.patch  2018-12-05 07:44:43 UTC (rev 341015)
@@ -1,39 +0,0 @@
-Minimal patch to get chromium to compile with widevine support.
-
-Exactly the same as -r1, but we now need to patch
-ninja to pretty please not terminate our build.
-
-caveat emptor: it's in no way clear that building chromium this
-way is safer, from a security perspective, than whatever Google
-Chrome does.
-
-Upstream appears to be cooking up a code-signing trust-chain
-which may protect users against malicious cdm blobs; I doubt
-we benefit from these using this kludge.  Ideally, someone
-would look into this more carefully than I have ... tbh as
-soon as I got my "stories" back, I pretty much lost interest :)
-
--gmt
-
---
 a/third_party/widevine/cdm/stub/widevine_cdm_version.h
-+++ b/third_party/widevine/cdm/stub/widevine_cdm_version.h
-@@ -10,6 +10,7 @@
-
- #include "third_party/widevine/cdm/widevine_cdm_common.h"
-
-+#define WIDEVINE_CDM_VERSION_STRING "unknown"
- #define WIDEVINE_CDM_AVAILABLE
-
- #endif  // WIDEVINE_CDM_VERSION_H_
 a/third_party/widevine/cdm/BUILD.gn
-+++ b/third_party/widevine/cdm/BUILD.gn
-@@ -11,7 +11,7 @@ import("//third_party/widevine/cdm/widev
- # Internal Cast builds set enable_widevine=true to bring in Widevine support.
- # TODO(xhwang): Support component updated CDM on other platforms and remove 
this
- # assert.

[arch-commits] Commit in chromium/trunk (4 files)

2018-10-16 Thread Evangelos Foutras via arch-commits
Date: Wednesday, October 17, 2018 @ 04:48:35
  Author: foutrelis
Revision: 336779

upgpkg: chromium 70.0.3538.67-1

New upstream release.

Added:
  chromium/trunk/include-stdint.h-in-pdfium_mem_buffer_file_write.h.patch
Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/fix-cfi-icall-failure-with-use_system_libjpeg-true.patch
  chromium/trunk/only-disable-cfi-icall-when-use_system_libjpeg-true.patch

---+
 PKGBUILD  |   21 ++--
 fix-cfi-icall-failure-with-use_system_libjpeg-true.patch  |   52 
 include-stdint.h-in-pdfium_mem_buffer_file_write.h.patch  |   30 ++
 only-disable-cfi-icall-when-use_system_libjpeg-true.patch |   34 ---
 4 files changed, 42 insertions(+), 95 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2018-10-17 04:08:44 UTC (rev 336778)
+++ PKGBUILD2018-10-17 04:48:35 UTC (rev 336779)
@@ -4,7 +4,7 @@
 # Contributor: Daniel J Griffiths 
 
 pkgname=chromium
-pkgver=69.0.3497.100
+pkgver=70.0.3538.67
 pkgrel=1
 _launcher_ver=6
 pkgdesc="A web browser built for speed, simplicity, and security"
@@ -23,15 +23,13 @@
 install=chromium.install
 
source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.xz
 
chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
-fix-cfi-icall-failure-with-use_system_libjpeg-true.patch
-only-disable-cfi-icall-when-use_system_libjpeg-true.patch
+include-stdint.h-in-pdfium_mem_buffer_file_write.h.patch
 chromium-widevine-r2.patch
 chromium-system-icu.patch
 chromium-skia-harmony.patch)
-sha256sums=('e3391560e73e25fb4afc3f2dd5616607e2dbfc58aa88251a2c5d6b7096fe9e35'
+sha256sums=('e956c2031f634300ada8c09e0777f0c560f4798963f144edaaec8d43e1e30e37'
 '04917e3cd4307d8e31bfb0027a5dce6d086edb10ff8a716024fbb8bb0c7dccf1'
-'97b421bc60a4abdf37de2d88a51b973e9f68fb44d1eccd464adfb3d9f5d71478'
-'9cae9ded6497afd15ad72d963897425ab6c7f28941bb3c3948e7996610a0d180'
+'cd1e87bf3618b7897c5caf7b0f4213cfa5ce917acb0613ecd2ab3f830f0cbfbb'
 '02c69bb3954087db599def7f5b6d65cf8f7cf2ed81dfbdaa4bb7b51863b4df15'
 'c4f2d1bed9034c02b8806f00c2e8165df24de467803855904bff709ceaf11af5'
 'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
@@ -78,10 +76,15 @@
   sed -i 's/OFFICIAL_BUILD/GOOGLE_CHROME_BUILD/' \
 tools/generate_shim_headers/generate_shim_headers.py
 
-  # https://crbug.com/866290
-  patch -Np1 -i ../fix-cfi-icall-failure-with-use_system_libjpeg-true.patch
-  patch -Np1 -i ../only-disable-cfi-icall-when-use_system_libjpeg-true.patch
+  # https://crbug.com/893950
+  sed -i -e 's/\/malloc/' -e 's/\/free/' \
+third_party/blink/renderer/core/xml/*.cc \
+third_party/blink/renderer/core/xml/parser/xml_document_parser.cc \
+third_party/libxml/chromium/libxml_utils.cc
 
+  # https://crbug.com/879900
+  patch -Np1 -i ../include-stdint.h-in-pdfium_mem_buffer_file_write.h.patch
+
   # https://crbug.com/skia/6663#c10
   patch -Np4 -i ../chromium-skia-harmony.patch
 

Deleted: fix-cfi-icall-failure-with-use_system_libjpeg-true.patch
===
--- fix-cfi-icall-failure-with-use_system_libjpeg-true.patch2018-10-17 
04:08:44 UTC (rev 336778)
+++ fix-cfi-icall-failure-with-use_system_libjpeg-true.patch2018-10-17 
04:48:35 UTC (rev 336779)
@@ -1,52 +0,0 @@
-From db82db1b609f30d144d45477f55697818bcd363c Mon Sep 17 00:00:00 2001
-From: Vlad Tsyrklevich 
-Date: Tue, 31 Jul 2018 01:03:22 +
-Subject: [PATCH] Fix cfi-icall failure with use_system_libjpeg=true
-
-JPEGImageReader::AllocateSampleArray() can call the function pointer
-(*info_.mem->alloc_sarray) which can be set by the systems non-CFI
-enabled libjpeg DSO when chromium is built with use_system_libjpeg=true.
-Disable cfi-icall for that method.
-
-Bug: 866290
-Change-Id: I6d9bbf08c514d6d5f48ad34c3802c63419ed1223
-Reviewed-on: https://chromium-review.googlesource.com/1155927
-Reviewed-by: Kentaro Hara 
-Commit-Queue: Vlad Tsyrklevich 
-Cr-Commit-Position: refs/heads/master@{#579270}

- .../renderer/platform/image-decoders/jpeg/jpeg_image_decoder.cc | 2 +-
- third_party/blink/renderer/platform/wtf/compiler.h  | 2 ++
- 2 files changed, 3 insertions(+), 1 deletion(-)
-
-diff --git 
a/third_party/blink/renderer/platform/image-decoders/jpeg/jpeg_image_decoder.cc 
b/third_party/blink/renderer/platform/image-decoders/jpeg/jpeg_image_decoder.cc
-index a1e440f6eed5..fd4e72ba053c 100644
 
a/third_party/blink/renderer/platform/image-decoders/jpeg/jpeg_image_decoder.cc
-+++ 
b/third_party/blink/renderer/platform/image-decoders/jpeg/jpeg_image_decoder.cc
-@@ -643,7 +643,7 @@ class JPEGImageReader final {
-   

[arch-commits] Commit in chromium/trunk (4 files)

2017-01-26 Thread Evangelos Foutras
Date: Thursday, January 26, 2017 @ 19:13:58
  Author: foutrelis
Revision: 287523

upgpkg: chromium 56.0.2924.76-1

New upstream release.

Added:
  chromium/trunk/chromium-glib-2.24.patch
Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/chromium-52.0.2743.116-unset-madv_free.patch
  chromium/trunk/chromium-icu58.patch

--+
 PKGBUILD |   20 +--
 chromium-52.0.2743.116-unset-madv_free.patch |   15 --
 chromium-glib-2.24.patch |   15 ++
 chromium-icu58.patch |  136 -
 4 files changed, 22 insertions(+), 164 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2017-01-26 17:44:53 UTC (rev 287522)
+++ PKGBUILD2017-01-26 19:13:58 UTC (rev 287523)
@@ -24,7 +24,7 @@
 )
 
 pkgname=chromium
-pkgver=55.0.2883.87
+pkgver=56.0.2924.76
 pkgrel=1
 _launcher_ver=3
 pkgdesc="The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser"
@@ -35,7 +35,7 @@
  'ttf-font' 'systemd' 'dbus' 'libpulse' 'perl' 'perl-file-basedir'
  'pciutils' 'desktop-file-utils' 'hicolor-icon-theme')
 depends+=(${_system_libs[@]})
-makedepends=('python2' 'gperf' 'yasm' 'mesa' 'ninja' 'git')
+makedepends=('gtk3' 'python2' 'gperf' 'yasm' 'mesa' 'ninja' 'git')
 optdepends=('kdialog: needed for file dialogs in KDE'
 'gnome-keyring: for storing passwords in GNOME keyring'
 'kwallet: for storing passwords in KWallet')
@@ -43,16 +43,14 @@
 
source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.xz
 
chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
 chromium.desktop
-chromium-52.0.2743.116-unset-madv_free.patch
+chromium-glib-2.24.patch
 chromium-system-ffmpeg-r4.patch
-chromium-icu58.patch
 chromium-widevine.patch)
-sha256sums=('e81bd3140d9c84dfee04d9a94686dfe6a20ae79475d84f17154c5536dcb81a58'
+sha256sums=('cfb08e226b9c16ad887eb96d715a9cc4ab097d1a79e2e68c8749a7a4164b3c38'
 '8b01fb4efe58146279858a754d90b49e5a38c9a0b36a1f84cbb7d12f92b84c28'
 '028a748a5c275de9b8f776f97909f999a8583a4b77fd1cd600b4fc5c0c3e91e9'
-'3b3aa9e28f29e6f539ed1c7832e79463b13128863a02e9c6fecd16c30d61c227'
+'6953651c002efe7fca8cda3143e963037ed38a0a4bc7ccb79304637c45340047'
 'e3c474dbf3822a0be50695683bd8a2c9dfc82d41c1524a20b4581883c0c88986'
-'fad964da0295a6a7b4393778e717ebdfd37dec33fe78beb2c639abd3973deb7a'
 'd6fdcb922e5a7fbe15759d39ccc8ea4225821c44d98054ce0f23f9d1f00c9808')
 
 # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
@@ -72,14 +70,10 @@
   sed "s/@WIDEVINE_VERSION@/Pinkie Pie/" ../chromium-widevine.patch |
 patch -Np1
 
-  # Build fixes from Gentoo
+  # Fixes from Gentoo
   patch -Np1 -i ../chromium-system-ffmpeg-r4.patch
-  patch -Np1 -i ../chromium-icu58.patch
+  patch -Np1 -i ../chromium-glib-2.24.patch
 
-  # Disable MADV_FREE (if set by glibc)
-  # https://bugzilla.redhat.com/show_bug.cgi?id=1361157
-  patch -Np1 -i ../chromium-52.0.2743.116-unset-madv_free.patch
-
   # Work around bug in blink in which GCC 6 optimizes away null pointer checks
   # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833524
   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68853#c2

Deleted: chromium-52.0.2743.116-unset-madv_free.patch
===
--- chromium-52.0.2743.116-unset-madv_free.patch2017-01-26 17:44:53 UTC 
(rev 287522)
+++ chromium-52.0.2743.116-unset-madv_free.patch2017-01-26 19:13:58 UTC 
(rev 287523)
@@ -1,15 +0,0 @@
-diff -up 
chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free
 
chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
 
chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.madv_free
 2016-08-15 13:07:29.279655676 -0400
-+++ 
chromium-52.0.2743.116/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
   2016-08-15 13:08:38.447317416 -0400
-@@ -41,6 +41,11 @@
- #include 
- #include 
- 
-+#if OS(LINUX) && defined(MADV_FREE)
-+// Added in Linux 4.5, but it breaks the sandbox.
-+#undef MADV_FREE
-+#endif
-+
- #ifndef MADV_FREE
- #define MADV_FREE MADV_DONTNEED
- #endif

Added: chromium-glib-2.24.patch
===
--- chromium-glib-2.24.patch(rev 0)
+++ chromium-glib-2.24.patch2017-01-26 19:13:58 UTC (rev 287523)
@@ -0,0 +1,15 @@
+--- a/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp.orig   
2017-01-05 20:50:56.329369189 +
 b/third_party/WebKit/Source/wtf/allocator/PageAllocator.cpp
2017-01-05 

[arch-commits] Commit in chromium/trunk (4 files)

2016-12-03 Thread Evangelos Foutras
Date: Saturday, December 3, 2016 @ 16:38:59
  Author: foutrelis
Revision: 282796

upgpkg: chromium 55.0.2883.75-1

- New upstream release.
- Use system ffmpeg, icu and zlib.
- Re-enable default memory allocator (tcmalloc).

Added:
  chromium/trunk/chromium-icu58.patch
  chromium/trunk/chromium-system-ffmpeg-r4.patch
Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/chromium-53.0.2785.92-last-commit-position.patch

--+
 PKGBUILD |   25 ++-
 chromium-53.0.2785.92-last-commit-position.patch |   26 
 chromium-icu58.patch |  136 +
 chromium-system-ffmpeg-r4.patch  |   48 +++
 4 files changed, 199 insertions(+), 36 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-12-03 16:23:18 UTC (rev 282795)
+++ PKGBUILD2016-12-03 16:38:59 UTC (rev 282796)
@@ -7,8 +7,10 @@
 # Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
 # Keys are the names in the above script; values are the dependencies in Arch
 declare -rgA _system_libs=(
+  [ffmpeg]=ffmpeg
   [flac]=flac
   [harfbuzz-ng]=harfbuzz-icu
+  [icu]=icu
   [libjpeg]=libjpeg
   [libpng]=libpng
   [libvpx]=libvpx
@@ -18,11 +20,11 @@
   [re2]=re2
   [snappy]=snappy
   [yasm]=
-  #[zlib]=zlib # Error during build
+  [zlib]=minizip
 )
 
 pkgname=chromium
-pkgver=54.0.2840.100
+pkgver=55.0.2883.75
 pkgrel=1
 _launcher_ver=3
 pkgdesc="The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser"
@@ -42,13 +44,15 @@
 
chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
 chromium.desktop
 chromium-52.0.2743.116-unset-madv_free.patch
-chromium-53.0.2785.92-last-commit-position.patch
+chromium-system-ffmpeg-r4.patch
+chromium-icu58.patch
 chromium-widevine.patch)
-sha256sums=('e2e7f54a780c93ec2e933af09e1126837e6cf940b57213d39f36d58df10c89df'
+sha256sums=('5bcf7180935bebc7648f7e2577f612da681f7846127f79dac22630ded9984e55'
 '8b01fb4efe58146279858a754d90b49e5a38c9a0b36a1f84cbb7d12f92b84c28'
 '028a748a5c275de9b8f776f97909f999a8583a4b77fd1cd600b4fc5c0c3e91e9'
 '3b3aa9e28f29e6f539ed1c7832e79463b13128863a02e9c6fecd16c30d61c227'
-'d3dc397956a26ec045e76c25c57a1fac5fc0acff94306b2a670daee7ba15709e'
+'e3c474dbf3822a0be50695683bd8a2c9dfc82d41c1524a20b4581883c0c88986'
+'fad964da0295a6a7b4393778e717ebdfd37dec33fe78beb2c639abd3973deb7a'
 'd6fdcb922e5a7fbe15759d39ccc8ea4225821c44d98054ce0f23f9d1f00c9808')
 
 # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
@@ -68,13 +72,14 @@
   sed "s/@WIDEVINE_VERSION@/Pinkie Pie/" ../chromium-widevine.patch |
 patch -Np1
 
+  # Build fixes from Gentoo
+  patch -Np1 -i ../chromium-system-ffmpeg-r4.patch
+  patch -Np1 -i ../chromium-icu58.patch
+
   # Disable MADV_FREE (if set by glibc)
   # https://bugzilla.redhat.com/show_bug.cgi?id=1361157
   patch -Np1 -i ../chromium-52.0.2743.116-unset-madv_free.patch
 
-  # Disable last_commit_position as we don't build from git repository
-  patch -Np1 -i ../chromium-53.0.2785.92-last-commit-position.patch
-
   # Work around bug in blink in which GCC 6 optimizes away null pointer checks
   # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833524
   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68853#c2
@@ -96,6 +101,7 @@
 find -type f -path "*third_party/$_lib/*" \
   \! -path "*third_party/$_lib/chromium/*" \
   \! -path "*third_party/$_lib/google/*" \
+  \! -path "*base/third_party/icu/*" \
   \! -regex '.*\.\(gn\|gni\|isolate\|py\)' \
   -delete
   done
@@ -128,7 +134,6 @@
 'proprietary_codecs=true'
 'link_pulseaudio=true'
 'linux_use_bundled_binutils=false'
-'use_allocator="none"'
 'use_cups=true'
 'use_gconf=false'
 'use_gnome_keyring=false'
@@ -170,7 +175,7 @@
   install -Dm4755 out/Release/chrome_sandbox \
 "$pkgdir/usr/lib/chromium/chrome-sandbox"
 
-  cp -a 
out/Release/{*.pak,*.bin,chromedriver,libwidevinecdmadapter.so,icudtl.dat} \
+  cp -a out/Release/{*.pak,*.bin,chromedriver,libwidevinecdmadapter.so} \
 out/Release/locales \
 out/Release/gen/content/content_resources.pak \
 "$pkgdir/usr/lib/chromium/"

Deleted: chromium-53.0.2785.92-last-commit-position.patch
===
--- chromium-53.0.2785.92-last-commit-position.patch2016-12-03 16:23:18 UTC 
(rev 282795)
+++ chromium-53.0.2785.92-last-commit-position.patch2016-12-03 16:38:59 UTC 
(rev 282796)
@@ -1,26 +0,0 @@
 a/tools/gn/gn_main.cc.orig 2015-11-12 11:49:56.260549036 +
-+++ b/tools/gn/gn_main.cc  2015-11-12 11:50:14.780931485 +
-@@ -11,13 +11,7 

[arch-commits] Commit in chromium/trunk (4 files)

2016-10-18 Thread Evangelos Foutras
Date: Tuesday, October 18, 2016 @ 19:50:28
  Author: foutrelis
Revision: 278967

upgpkg: chromium 54.0.2840.59-2

Fix frequent tab crashes (FS#51387).

Modified:
  chromium/trunk/PKGBUILD
  chromium/trunk/chromium-53.0.2785.92-last-commit-position.patch
Deleted:
  chromium/trunk/PKGBUILD.53
  chromium/trunk/chromium-cups-2.2.patch

--+
 PKGBUILD |  325 +
 PKGBUILD.53  |  229 --
 chromium-53.0.2785.92-last-commit-position.patch |  121 ---
 chromium-cups-2.2.patch  |   31 --
 4 files changed, 104 insertions(+), 602 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-10-18 19:00:32 UTC (rev 278966)
+++ PKGBUILD2016-10-18 19:50:28 UTC (rev 278967)
@@ -4,25 +4,40 @@
 # Contributor: Jan "heftig" Steffens 
 # Contributor: Daniel J Griffiths 
 
+# Possible replacements are listed in build/linux/unbundle/replace_gn_files.py
+# Keys are the names in the above script; values are the dependencies in Arch
+declare -rgA _system_libs=(
+  [flac]=flac
+  [harfbuzz-ng]=harfbuzz-icu
+  #[libjpeg]=libjpeg   # Error during build
+  [libpng]=libpng
+  [libvpx]=libvpx
+  [libwebp]=libwebp
+  #[libxml]=libxml2# https://bugs.archlinux.org/task/29939
+  [libxslt]=libxslt
+  [re2]=re2
+  [snappy]=snappy
+  [yasm]=
+  #[zlib]=zlib # Error during build
+)
+
 pkgname=chromium
 pkgver=54.0.2840.59
-pkgrel=1.1
+pkgrel=2
 _launcher_ver=3
 pkgdesc="The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser"
 arch=('i686' 'x86_64')
 url="http://www.chromium.org/;
 license=('BSD')
-depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libxss' 'libexif'
- 'libgcrypt' 'ttf-font' 'systemd' 'dbus' 'flac' 'libpulse' 'harfbuzz'
- 'perl' 'perl-file-basedir' 'desktop-file-utils' 'hicolor-icon-theme'
- 'pciutils')
-makedepends=('python2' 'gperf' 'yasm' 'mesa' 'ninja' 'python2-jinja'
- 'python2-markupsafe' 'python2-ply' 'python2-beautifulsoup4'
- 'python2-html5lib')
+depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'libxss' 'libexif' 'libgcrypt'
+ 'ttf-font' 'systemd' 'dbus' 'libpulse' 'perl' 'perl-file-basedir'
+ 'pciutils' 'desktop-file-utils' 'hicolor-icon-theme')
+depends+=(${_system_libs[@]})
+makedepends=('python2' 'gperf' 'yasm' 'mesa' 'ninja')
 optdepends=('kdebase-kdialog: needed for file dialogs in KDE'
 'gnome-keyring: for storing passwords in GNOME keyring'
 'kwallet: for storing passwords in KWallet')
-options=('!strip' debug)
+options=('!strip')
 install=chromium.install
 
source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.xz
 
chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
@@ -34,7 +49,7 @@
 '8b01fb4efe58146279858a754d90b49e5a38c9a0b36a1f84cbb7d12f92b84c28'
 '028a748a5c275de9b8f776f97909f999a8583a4b77fd1cd600b4fc5c0c3e91e9'
 '3b3aa9e28f29e6f539ed1c7832e79463b13128863a02e9c6fecd16c30d61c227'
-'9502a4d7e825a21ae63cced5715e5f06d983033b623cd41d94d1e38a70f29310'
+'d3dc397956a26ec045e76c25c57a1fac5fc0acff94306b2a670daee7ba15709e'
 'd6fdcb922e5a7fbe15759d39ccc8ea4225821c44d98054ce0f23f9d1f00c9808')
 
 # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
@@ -49,163 +64,12 @@
 # instructions on how to build the toolchain from source don't work that well
 # (at least not from within the Chromium 39 source tree).
 # 
https://sites.google.com/a/chromium.org/dev/nativeclient/pnacl/building-pnacl-components-for-distribution-packagers
-_build_nacl=0
-_nacl="false"
+_build_nacl=false
 if [[ $CARCH == i686 ]]; then
-  _build_nacl=0
-  _nacl="false"
+  _build_nacl=false
 fi
 
 prepare() {
-  # These are few system libraries that can be safely used
-  local _system_libs=(
-'bzip2'
-'flac'
-'harfbuzz'
-'icu'
-'libjpeg'
-'libpng'
-'libwebp'
-'libxml'
-'libxslt'
-'re2'
-'yasm'
-'zlib'
-  )
-
-  # List of required bundled libraries
-  local _keeplibs=(
-'base/third_party/dmg_fp'
-'base/third_party/dynamic_annotations'
-'base/third_party/icu'
-'base/third_party/libevent'
-'base/third_party/nspr'
-'base/third_party/superfasthash'
-'base/third_party/symbolize'
-'base/third_party/valgrind'
-'base/third_party/xdg_mime'
-'base/third_party/xdg_user_dirs'
-'breakpad/src/third_party/curl'
-'buildtools/third_party/libc++'
-'buildtools/third_party/libc++abi'
-'chrome/third_party/mozilla_security_manager'
-'courgette/third_party'
-'native_client/src/third_party/dlmalloc'
-

[arch-commits] Commit in chromium/trunk (4 files)

2014-10-08 Thread Evangelos Foutras
Date: Wednesday, October 8, 2014 @ 23:10:49
  Author: foutrelis
Revision: 224125

upgpkg: chromium 38.0.2125.101-1

- New upstream release.
- Build with system ICU once again.

Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/chromium-nacl-bootstrap-cflags.patch
  chromium/trunk/chromium-sanitize-referrer-in-context-menus.patch
  chromium/trunk/chromium-use-correct-referrer-policy.patch

---+
 PKGBUILD  |   54 --
 chromium-nacl-bootstrap-cflags.patch  |   10 
 chromium-sanitize-referrer-in-context-menus.patch |  388 
 chromium-use-correct-referrer-policy.patch|   32 -
 4 files changed, 17 insertions(+), 467 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-10-08 20:14:26 UTC (rev 224124)
+++ PKGBUILD2014-10-08 21:10:49 UTC (rev 224125)
@@ -5,13 +5,13 @@
 # Contributor: Daniel J Griffiths ghost1...@archlinux.us
 
 pkgname=chromium
-pkgver=37.0.2062.120
-pkgrel=2
+pkgver=38.0.2125.101
+pkgrel=1
 pkgdesc=The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser
 arch=('i686' 'x86_64')
 url=http://www.chromium.org/;
 license=('BSD')
-depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libevent' 'libxss'
+depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libevent' 'libxss' 'icu'
  'libexif' 'libgcrypt' 'ttf-font' 'systemd' 'dbus' 'flac' 'snappy'
  'speech-dispatcher' 'pciutils' 'libpulse' 'harfbuzz'
  'desktop-file-utils' 'hicolor-icon-theme')
@@ -28,16 +28,10 @@
 
source=(https://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.xz
 chromium.desktop
 chromium.default
-chromium-nacl-bootstrap-cflags.patch
-chromium-sanitize-referrer-in-context-menus.patch
-chromium-use-correct-referrer-policy.patch
 chromium.sh)
-sha256sums=('b3073758b6caf384d30de20ba7514ee52cce5c1460bc768cd28d15f53f0c6efb'
+sha256sums=('d3303519ab471a3bc831e9b366e64dc2fe651894e52ae5d1e74de60ee2a1198a'
 '09bfac44104f4ccda4c228053f689c947b3e97da9a4ab6fa34ce061ee83d0322'
 '478340d5760a9bd6c549e19b1b5d1c5b4933ebf5f8cfb2b3e2d70d07443fe232'
-'d82bafd8d4d6517c2d420b2987fdbe1dfcc32d5fed74a6c0011bcb2f868225c3'
-'c5d793dbaaaee8455ffc5cf008239b0b0bb8fe32e2e7b2b44d181cebb432f28e'
-'9f5b73070b1d360c1d7915115c6829e11361d243e424c24179ca39b28ae03f85'
 '4999fded897af692f4974f0a3e3bbb215193519918a1fa9b31ed51e74a2dccb9')
 
 # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
@@ -51,18 +45,11 @@
 prepare() {
   cd $srcdir/$pkgname-$pkgver
 
-  # Filter out -fstack-protector-strong for nacl_helper_bootstrap
-  # https://code.google.com/p/chromium/issues/detail?id=104569
-  patch -Np0 ../chromium-nacl-bootstrap-cflags.patch
+  # Remove bundled ICU; its header files appear to get picked up instead of
+  # the system ones, leading to errors during the final link stage
+  # 
https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/BNGvJc08B6Q
+  find third_party/icu -type f \! -regex '.*\.\(gyp\|gypi\|isolate\)' -delete
 
-  # URL request check fails for save-as command (FS#41033)
-  # https://code.google.com/p/chromium/issues/detail?id=357473
-  patch -Np1 ../chromium-sanitize-referrer-in-context-menus.patch
-
-  # Make sure to use the correct referrer policy in the FrameFetchContext
-  # https://code.google.com/p/chromium/issues/detail?id=407510
-  patch -d third_party/WebKit -Np1 
../chromium-use-correct-referrer-policy.patch
-
   # Use Python 2
   find . -type f -exec sed -i -r \
 -e 's|/usr/bin/python$|2|g' \
@@ -75,16 +62,6 @@
   # Download NaCL toolchains
   python2 build/download_nacl_toolchains.py \
 --packages nacl_x86_newlib,pnacl_newlib,pnacl_translator
-
-  # Build with clang as a temporary solution to startup crash with GCC 4.9
-  mkdir -p third_party/llvm-build/Release+Asserts/bin
-  ln -s /usr/bin/clang third_party/llvm-build/Release+Asserts/bin/
-  ln -s /usr/bin/clang++ third_party/llvm-build/Release+Asserts/bin/
-  ln -s /usr/bin/llvm-symbolizer third_party/llvm-build/Release+Asserts/bin/
-  # clang 3.4 doesn't support this option
-  sed -i '/-Wno-absolute-value/d' \
-build/common.gypi \
-third_party/ffmpeg/ffmpeg.gyp
 }
 
 build() {
@@ -95,6 +72,11 @@
   # CFLAGS are passed through release_extra_cflags below
   export -n CFLAGS CXXFLAGS
 
+  # Build with clang as a temporary solution to startup crash with GCC 4.9
+  # https://code.google.com/p/chromium/issues/detail?id=412967
+  export CC=clang
+  export CXX=clang++
+
   local _chromium_conf=(
 -Dgoogle_api_key=$_google_api_key
 -Dgoogle_default_client_id=$_google_default_client_id
@@ -111,6 +93,7 @@
 -Dlinux_use_bundled_binutils=0
 -Dlinux_use_bundled_gold=0
 

[arch-commits] Commit in chromium/trunk (4 files)

2014-05-20 Thread Evangelos Foutras
Date: Wednesday, May 21, 2014 @ 02:26:49
  Author: foutrelis
Revision: 213352

upgpkg: chromium 35.0.1916.114-1

New upstream release.

Added:
  chromium/trunk/chromium-nacl-bootstrap-cflags.patch
Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/chromium-depot-tools-r0.patch
  chromium/trunk/chromium-gn-r1.patch

--+
 PKGBUILD |   47 +++--
 chromium-depot-tools-r0.patch|   11 ---
 chromium-gn-r1.patch |   11 ---
 chromium-nacl-bootstrap-cflags.patch |   10 +++
 4 files changed, 32 insertions(+), 47 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-05-21 00:21:12 UTC (rev 213351)
+++ PKGBUILD2014-05-21 00:26:49 UTC (rev 213352)
@@ -5,8 +5,8 @@
 # Contributor: Daniel J Griffiths ghost1...@archlinux.us
 
 pkgname=chromium
-pkgver=34.0.1847.137
-_toolchains_rev=12773
+pkgver=35.0.1916.114
+_toolchains_rev=12935
 pkgrel=1
 pkgdesc=The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser
 arch=('i686' 'x86_64')
@@ -13,11 +13,11 @@
 url=http://www.chromium.org/;
 license=('BSD')
 depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libevent' 'libxss'
- 'libgcrypt' 'ttf-font' 'systemd' 'dbus' 'flac' 'opus' 'snappy'
- 'speech-dispatcher' 'pciutils' 'libpulse' 'harfbuzz' 'harfbuzz-icu'
+ 'libgcrypt' 'ttf-font' 'systemd' 'dbus' 'flac' 'snappy'
+ 'speech-dispatcher' 'pciutils' 'libpulse' 'harfbuzz'
  'desktop-file-utils' 'hicolor-icon-theme')
 makedepends=('python2' 'perl' 'gperf' 'yasm' 'mesa' 'libgnome-keyring'
- 'elfutils' 'subversion' 'clang')
+ 'elfutils' 'subversion' 'ninja' 'clang')
 [[ $CARCH = x86_64 ]]  makedepends+=('lib32-gcc-libs' 'lib32-zlib')
 optdepends=('kdebase-kdialog: needed for file dialogs in KDE'
 'gnome-keyring: for storing passwords in GNOME keyring'
@@ -33,21 +33,19 @@
 
naclsdk_pnacl_translator-$_toolchains_rev.tgz.sha1hash::https://commondatastorage.googleapis.com/nativeclient-archive2/toolchain/$_toolchains_rev/naclsdk_pnacl_translator.tgz.sha1hash
 chromium.desktop
 chromium.default
-chromium-gn-r1.patch
-chromium-depot-tools-r0.patch
+chromium-nacl-bootstrap-cflags.patch
 chromium.sh)
 noextract=(naclsdk_nacl_linux_x86-$_toolchains_rev.tgz
naclsdk_pnacl_linux_x86-$_toolchains_rev.tgz
naclsdk_pnacl_translator-$_toolchains_rev.tgz)
-sha256sums=('938bf0e673101bb1aeec4c3e2e75df372cebe3d2ee93e9f4669d64ce92656027'
-'4c2adc718e53f36e38202aabf6518ceaa0244e281567433489b0a4e6dab1dc2f'
-'13cf0e23176787fcaa039c0bd230745e5cf5699877a51e77694c97392dc0973d'
-'3a087d34cf2890d85d1e2fad0d63e9db82d47c400994dfe6f0e2ee8bcedb4195'
-'581fb67410dad60fbe484294e4da2fed0de2487caabe33d595fa7abdf72e0f59'
+sha256sums=('566fcdc05d53c551d142ac9742ef69ba7c6d5a450d8ec41c0efd4fc8249f77af'
+'2d72245cf0fc5aec95dcf315d88d787aaeff85e2fae28b8521d60a3dd95e28d4'
+'6baee05d11e353aac83a94125722d1f85c1aaa5fae0bfea55f996bd1d9c2a6eb'
+'142108d8ce184c3e2b18126a01bed14e286f953d90897a6d1c97f2bf7802cc0a'
+'67005b390ba80b736b48fb1511bdf3fccd8fc808f4928e7fcca69f5677148b83'
 '09bfac44104f4ccda4c228053f689c947b3e97da9a4ab6fa34ce061ee83d0322'
 '478340d5760a9bd6c549e19b1b5d1c5b4933ebf5f8cfb2b3e2d70d07443fe232'
-'b1ca3f17959be4fb6c031563b1ee587b7e990166c41b9d5b9dce2f91bf01fe1c'
-'14d86770eaaead42e244007ebe5a94d188f8668c2598fa6042ada87a90cae671'
+'d82bafd8d4d6517c2d420b2987fdbe1dfcc32d5fed74a6c0011bcb2f868225c3'
 '4999fded897af692f4974f0a3e3bbb215193519918a1fa9b31ed51e74a2dccb9')
 
 # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
@@ -61,9 +59,9 @@
 prepare() {
   cd $srcdir/$pkgname-$pkgver
 
-  # Build fixes (patches from Gentoo)
-  patch -Np0 -i $srcdir/chromium-gn-r1.patch
-  patch -Np0 -i $srcdir/chromium-depot-tools-r0.patch
+  # Filter out -fstack-protector-strong for nacl_helper_bootstrap
+  # https://code.google.com/p/chromium/issues/detail?id=104569
+  patch -Np0 -i ../chromium-nacl-bootstrap-cflags.patch
 
   # Use Python 2
   find . -type f -exec sed -i -r \
@@ -90,6 +88,8 @@
   ln -s /usr/bin/clang third_party/llvm-build/Release+Asserts/bin/
   ln -s /usr/bin/clang++ third_party/llvm-build/Release+Asserts/bin/
   ln -s /usr/bin/llvm-symbolizer third_party/llvm-build/Release+Asserts/bin/
+  # clang 3.4 doesn't support this option
+  sed -i '/-Wno-absolute-value/d' build/common.gypi
 }
 
 build() {
@@ -100,9 +100,6 @@
   # CFLAGS are passed through release_extra_cflags below
   export -n CFLAGS CXXFLAGS
 
-  # Silence typedef 'x' locally defined but not used warnings
-  #CFLAGS+=' -Wno-unused-local-typedefs'
-
   local 

[arch-commits] Commit in chromium/trunk (4 files)

2014-04-10 Thread Evangelos Foutras
Date: Thursday, April 10, 2014 @ 11:12:57
  Author: foutrelis
Revision: 210140

upgpkg: chromium 34.0.1847.116-1

New upstream release.

Added:
  chromium/trunk/chromium-depot-tools-r0.patch
  chromium/trunk/chromium-gn-r1.patch
Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/chromium-gn-r0.patch

---+
 PKGBUILD  |   37 ++---
 chromium-depot-tools-r0.patch |   11 +++
 chromium-gn-r0.patch  |   12 
 chromium-gn-r1.patch  |   11 +++
 4 files changed, 44 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-04-10 09:12:21 UTC (rev 210139)
+++ PKGBUILD2014-04-10 09:12:57 UTC (rev 210140)
@@ -5,14 +5,14 @@
 # Contributor: Daniel J Griffiths ghost1...@archlinux.us
 
 pkgname=chromium
-pkgver=33.0.1750.152
-_toolchains_rev=12526
-pkgrel=2
+pkgver=34.0.1847.116
+_toolchains_rev=12773
+pkgrel=1
 pkgdesc=The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser
 arch=('i686' 'x86_64')
 url=http://www.chromium.org/;
 license=('BSD')
-depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libevent' 'libxss' 'icu'
+depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libevent' 'libxss'
  'libgcrypt' 'ttf-font' 'systemd' 'dbus' 'flac' 'opus' 'snappy'
  'speech-dispatcher' 'pciutils' 'libpulse' 'harfbuzz' 'harfbuzz-icu'
  'desktop-file-utils' 'hicolor-icon-theme')
@@ -33,19 +33,21 @@
 
naclsdk_pnacl_translator-$_toolchains_rev.tgz.sha1hash::https://commondatastorage.googleapis.com/nativeclient-archive2/toolchain/$_toolchains_rev/naclsdk_pnacl_translator.tgz.sha1hash
 chromium.desktop
 chromium.default
-chromium-gn-r0.patch
+chromium-gn-r1.patch
+chromium-depot-tools-r0.patch
 chromium.sh)
 noextract=(naclsdk_nacl_linux_x86-$_toolchains_rev.tgz
naclsdk_pnacl_linux_x86-$_toolchains_rev.tgz
naclsdk_pnacl_translator-$_toolchains_rev.tgz)
-sha256sums=('9fd462840bee3ae205b0548e8a483f7589beecdb7c6309d4d65425cbf710cc2f'
-'4bc956815bd45a82ed7c3b623d0ffb55fcc6c6af55828a0bf1560733def68e8d'
-'3ae77302adf775f2d513e7d9cb730cbe3e42d515002c4388d25fa3ec11b7b12f'
-'ce89d9c53b32a83f477e9ac2c2269d573477e23908462fccbf945c3303a9fb1f'
-'4408c8d4cb6d072929ba6e7f3edac170bfea8f54eb009ee7ceaa131a0c1fa92e'
+sha256sums=('dd6579c170eecd8d1f366461575e9754e44200e0b9fefde20941e15cb6729711'
+'4c2adc718e53f36e38202aabf6518ceaa0244e281567433489b0a4e6dab1dc2f'
+'13cf0e23176787fcaa039c0bd230745e5cf5699877a51e77694c97392dc0973d'
+'3a087d34cf2890d85d1e2fad0d63e9db82d47c400994dfe6f0e2ee8bcedb4195'
+'581fb67410dad60fbe484294e4da2fed0de2487caabe33d595fa7abdf72e0f59'
 '09bfac44104f4ccda4c228053f689c947b3e97da9a4ab6fa34ce061ee83d0322'
 '478340d5760a9bd6c549e19b1b5d1c5b4933ebf5f8cfb2b3e2d70d07443fe232'
-'a1145e83d775101b28dcdceb3ca076fc7e9a4b9f69a1a2236d0c97ad39afb3d3'
+'b1ca3f17959be4fb6c031563b1ee587b7e990166c41b9d5b9dce2f91bf01fe1c'
+'14d86770eaaead42e244007ebe5a94d188f8668c2598fa6042ada87a90cae671'
 '4999fded897af692f4974f0a3e3bbb215193519918a1fa9b31ed51e74a2dccb9')
 
 # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
@@ -59,7 +61,9 @@
 prepare() {
   cd $srcdir/$pkgname-$pkgver
 
-  patch -Np0 -i $srcdir/chromium-gn-r0.patch
+  # Build fixes (patches from Gentoo)
+  patch -Np0 -i $srcdir/chromium-gn-r1.patch
+  patch -Np0 -i $srcdir/chromium-depot-tools-r0.patch
 
   # Use Python 2
   find . -type f -exec sed -i -r \
@@ -115,7 +119,6 @@
 -Duse_system_flac=1
 -Duse_system_ffmpeg=0
 -Duse_system_harfbuzz=1
--Duse_system_icu=1
 -Duse_system_libevent=1
 -Duse_system_libjpeg=1
 -Duse_system_libpng=1
@@ -133,7 +136,7 @@
   build/linux/unbundle/replace_gyp_files.py ${_chromium_conf[@]}
   build/gyp_chromium -f make --depth=. ${_chromium_conf[@]}
 
-  make chrome chrome_sandbox BUILDTYPE=Release
+  make BUILDTYPE=Release chrome chrome_sandbox chromedriver
 }
 
 package() {
@@ -144,6 +147,8 @@
   install -Dm4755 -o root -g root out/Release/chrome_sandbox \
 $pkgdir/usr/lib/chromium/chrome-sandbox
 
+  install -D out/Release/chromedriver $pkgdir/usr/lib/chromium/chromedriver
+
   cp out/Release/{*.pak,libffmpegsumo.so,nacl_helper{,_bootstrap}} \
 out/Release/{libppGoogleNaClPluginChrome.so,nacl_irt_*.nexe} \
 $pkgdir/usr/lib/chromium/
@@ -150,6 +155,7 @@
 
   # Manually strip binaries so that 'nacl_irt_*.nexe' is left intact
   strip $STRIP_BINARIES $pkgdir/usr/lib/chromium/{chromium,chrome-sandbox} \
+$pkgdir/usr/lib/chromium/chromedriver \
 $pkgdir/usr/lib/chromium/nacl_helper{,_bootstrap}
   strip $STRIP_SHARED 

[arch-commits] Commit in chromium/trunk (4 files)

2012-08-01 Thread Evangelos Foutras
Date: Wednesday, August 1, 2012 @ 06:00:53
  Author: foutrelis
Revision: 164503

upgpkg: chromium 21.0.1180.57-1

New upstream release.

Added:
  chromium/trunk/chromium-ppapi-r0.patch
Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/chromium-gcc47.patch
  chromium/trunk/sqlite-3.7.6.3-fix-out-of-scope-memory-reference.patch

+
 PKGBUILD   |   51 +++---
 chromium-gcc47.patch   |   53 ---
 chromium-ppapi-r0.patch|   11 +++
 sqlite-3.7.6.3-fix-out-of-scope-memory-reference.patch |   26 ---
 4 files changed, 37 insertions(+), 104 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-08-01 09:59:07 UTC (rev 164502)
+++ PKGBUILD2012-08-01 10:00:53 UTC (rev 164503)
@@ -9,8 +9,9 @@
 # build time.
 
 pkgname=chromium
-pkgver=20.0.1132.57
-pkgrel=2
+pkgver=21.0.1180.57
+_nacl_sdk=20.0.1132.47
+pkgrel=1
 pkgdesc=The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser
 arch=('i686' 'x86_64')
 url=http://www.chromium.org/;
@@ -28,30 +29,25 @@
 backup=('etc/chromium/default')
 install=chromium.install
 
source=(http://commondatastorage.googleapis.com/chromium-browser-official/$pkgname-$pkgver.tar.bz2
-
naclsdk_linux-$pkgver.tar.bz2::http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/$pkgver/naclsdk_linux.bz2
+
naclsdk_linux-$_nacl_sdk.tar.bz2::http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/$_nacl_sdk/naclsdk_linux.bz2
 chromium.desktop
 chromium.default
 chromium.sh
-chromium-gcc47.patch
+chromium-20.0.1132.57-glib-2.16-use-siginfo_t.patch
 chromium-20.0.1132.57-bison-2.6-fix.patch
-chromium-20.0.1132.57-glib-2.16-use-siginfo_t.patch
-sqlite-3.7.6.3-fix-out-of-scope-memory-reference.patch)
-sha256sums=('1225c6b6306e89c8892bc0d18e94567d6081d777dee9b8c90efd0da9f6f2641b'
-'0137e738cad095aeb03da0e4eb92df4ab8f4693c81d462eb5a413de6ecd875d1'
+chromium-ppapi-r0.patch)
+sha256sums=('311ba95249ea994747355596885c9ad583e55bcbe7220a47ea096898e7aeb145'
+'ac371e9e8312f01856e892b29c788acfa03cbb79aaabe0b5a3ae0cd2f8399a91'
 '09bfac44104f4ccda4c228053f689c947b3e97da9a4ab6fa34ce061ee83d0322'
 '478340d5760a9bd6c549e19b1b5d1c5b4933ebf5f8cfb2b3e2d70d07443fe232'
 '4999fded897af692f4974f0a3e3bbb215193519918a1fa9b31ed51e74a2dccb9'
-'f607347ba8477d3c8e60eb3803d26f3c9869f77fd49986c60887c59a6aa7d30d'
+'c1baf14121502efbc2a31b64029dcafa0e28ca5b71ad0e28a3c6342d18198615'
 'd7aecc17e1eb582fe791c3e5fb2ca3f0efcb9bf5379309c1c27be35be4363bba'
-'c1baf14121502efbc2a31b64029dcafa0e28ca5b71ad0e28a3c6342d18198615'
-'a700aa054800d1b21d84eaba27c38a703dfa023e9226d11a942690c2a0630aff')
+'1f4b57670d317959bc2dc60e5d2a44aa8fc6028f7ed540cdb502fa0aa99c81bd')
 
 build() {
   cd $srcdir/chromium-$pkgver
 
-  # Fix build with gcc 4.7 (patch from openSUSE)
-  patch -Np2 -i $srcdir/chromium-gcc47.patch
-
   # Fix build with glibc 2.16
   patch -Np1 -i $srcdir/chromium-20.0.1132.57-glib-2.16-use-siginfo_t.patch
 
@@ -60,15 +56,12 @@
   patch -d third_party/WebKit -Np1 -i \
 $srcdir/chromium-20.0.1132.57-bison-2.6-fix.patch
 
+  # Fix build without NaCl glibc toolchain (patch from Gentoo)
+  patch -Np0 -i $srcdir/chromium-ppapi-r0.patch
+
   # http://code.google.com/p/chromium/issues/detail?id=109527
   sed -i 's|glib/gutils.h|glib.h|' ui/base/l10n/l10n_util.cc
 
-  # SQLite: Fix a problem in fts3_write.c causing stack memory to be referenced
-  # after it is out of scope (http://www.sqlite.org/src/info/f9c4a7c8f4)
-  # (http://code.google.com/p/chromium/issues/detail?id=122525)
-  patch -i $srcdir/sqlite-3.7.6.3-fix-out-of-scope-memory-reference.patch \
-third_party/sqlite/amalgamation/sqlite3.c
-
   # Use Python 2
   find . -type f -exec sed -i -r \
 -e 's|/usr/bin/python$|2|g' \
@@ -79,7 +72,7 @@
   ln -s /usr/bin/python2 $srcdir/python2-path/python
   export PATH=$srcdir/python2-path:$PATH
 
-  ln -s $srcdir/pepper_${pkgver%%.*}/toolchain/linux_x86_newlib \
+  ln -s $srcdir/pepper_${_nacl_sdk%%.*}/toolchain/linux_x86_newlib \
 native_client/toolchain/linux_x86_newlib
 
   # CFLAGS are passed through release_extra_cflags below
@@ -107,6 +100,7 @@
 -Duse_system_yasm=1 \
 -Duse_system_zlib=1 \
 -Duse_gconf=0 \
+-Ddisable_glibc=1 \
 -Ddisable_sse2=1
 
   make chrome chrome_sandbox BUILDTYPE=Release
@@ -124,23 +118,30 @@
 out/Release/{libppGoogleNaClPluginChrome.so,nacl_irt_*.nexe} \
 $pkgdir/usr/lib/chromium/
 
+  if [[ $CARCH == i686 ]]; then
+rm $pkgdir/usr/lib/chromium/nacl_irt_x86_64.nexe
+  fi
+
   # Allow users to override 

[arch-commits] Commit in chromium/trunk (4 files)

2012-04-06 Thread Evangelos Foutras
Date: Friday, April 6, 2012 @ 02:32:37
  Author: foutrelis
Revision: 155755

upgpkg: chromium 18.0.1025.151-1

New upstream release.

Added:
  chromium/trunk/chromium-gcc46.patch
(from rev 154559, chromium/trunk/gcc-4.6.patch)
  chromium/trunk/chromium-gcc47.patch
Modified:
  chromium/trunk/PKGBUILD
Deleted:
  chromium/trunk/gcc-4.6.patch

--+
 PKGBUILD |   17 +++--
 chromium-gcc46.patch |   88 +
 chromium-gcc47.patch |   53 +
 gcc-4.6.patch|   88 -
 4 files changed, 154 insertions(+), 92 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-04-06 00:24:13 UTC (rev 155754)
+++ PKGBUILD2012-04-06 06:32:37 UTC (rev 155755)
@@ -9,7 +9,7 @@
 # build time.
 
 pkgname=chromium
-pkgver=18.0.1025.142
+pkgver=18.0.1025.151
 pkgrel=1
 pkgdesc=The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser
 arch=('i686' 'x86_64')
@@ -30,14 +30,16 @@
 
http://commondatastorage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/nacl_sdk.zip
 chromium.desktop
 chromium.sh
-gcc-4.6.patch
+chromium-gcc46.patch
+chromium-gcc47.patch
 chromium-media-no-sse-r0.patch
 chromium-revert-jpeg-swizzle-r2.patch)
-sha256sums=('911a4ee2e30ed617c4148c84dcddfd1affa4b2fc02dc5e95ac4a4afeeda24b1d'
+sha256sums=('d920a0e70eaae9496e6f6499fcf0f8e5d8bdae8ce4a6f38a969946355fb73387'
 '8cf762587e547588b9461686f7d2655d5a23d09e1260b5f97137fa7d41c767a9'
 '09bfac44104f4ccda4c228053f689c947b3e97da9a4ab6fa34ce061ee83d0322'
 'c53bfc4db9dde684fbaed6a4bbecb207e3e7a0a2703233426fe076a6d3c557f3'
 '50268dafd436813f846ea174d19c447c64d198c3937bd56910d87c5206306977'
+'f607347ba8477d3c8e60eb3803d26f3c9869f77fd49986c60887c59a6aa7d30d'
 '71751bf5913da1eec3c88c433044224c869b0abd5a29172cf239bddbb4eff761'
 'd99162aa6bae562f116a42347254bbec3752464f0a3e4d8675e2b287b2a838a2')
 
@@ -46,8 +48,15 @@
 
   # Fix build with gcc 4.6
   # http://code.google.com/p/chromium/issues/detail?id=80071
-  patch -Np0 -i $srcdir/gcc-4.6.patch
+  patch -Np0 -i $srcdir/chromium-gcc46.patch
 
+  # Fix build with gcc 4.7 (patch from openSUSE)
+  patch -Np2 -i $srcdir/chromium-gcc47.patch
+  # Add missing include that defines OS_POSIX
+  sed -i '1 i\
+#include build/build_config.h' \
+chrome/browser/diagnostics/diagnostics_main.cc
+
   # Remove unconditional use of SSE3 (patch from Gentoo)
   patch -Np0 -i $srcdir/chromium-media-no-sse-r0.patch
 

Copied: chromium/trunk/chromium-gcc46.patch (from rev 154559, 
chromium/trunk/gcc-4.6.patch)
===
--- chromium-gcc46.patch(rev 0)
+++ chromium-gcc46.patch2012-04-06 06:32:37 UTC (rev 155755)
@@ -0,0 +1,88 @@
+diff -u -r chrome/browser/search_engines/template_url_prepopulate_data.h 
chrome/browser/search_engines/template_url_prepopulate_data.h
+--- chrome/browser/search_engines/template_url_prepopulate_data.h  
2011-04-13 13:23:41.0 +0400
 chrome/browser/search_engines/template_url_prepopulate_data.h  
2011-04-20 19:32:58.0 +0400
+@@ -7,6 +7,7 @@
+ #pragma once
+ 
+ #include vector
++#include cstddef
+ 
+ class GURL;
+ class PrefService;
+diff -u -r gpu/command_buffer/common/types.h gpu/command_buffer/common/types.h
+--- gpu/command_buffer/common/types.h  2011-04-13 13:22:57.0 +0400
 gpu/command_buffer/common/types.h  2011-04-20 19:32:58.0 +0400
+@@ -11,6 +11,7 @@
+ #include stdint.h
+ #endif
+ #include string
++#include cstddef
+ 
+ typedef signed char schar;
+ typedef signed char int8;
+diff -u -r third_party/ots/src/os2.cc third_party/ots/src/os2.cc
+--- third_party/ots/src/os2.cc 2011-04-13 13:24:06.0 +0400
 third_party/ots/src/os2.cc 2011-04-20 19:45:44.0 +0400
+@@ -5,6 +5,7 @@
+ #include os2.h
+ 
+ #include head.h
++#include cstddef
+ 
+ // OS/2 - OS/2 and Windows Metrics
+ // http://www.microsoft.com/opentype/otspec/os2.htm
+diff -u -r third_party/tcmalloc/chromium/src/base/stl_allocator.h 
third_party/tcmalloc/chromium/src/base/stl_allocator.h
+--- third_party/tcmalloc/chromium/src/base/stl_allocator.h 2011-04-13 
13:23:04.0 +0400
 third_party/tcmalloc/chromium/src/base/stl_allocator.h 2011-04-20 
19:32:58.0 +0400
+@@ -38,6 +38,7 @@
+ #include config.h
+ 
+ #include limits
++#include cstddef
+ 
+ #include base/basictypes.h
+ #include base/logging.h
+diff -u -r third_party/tcmalloc/chromium/src/base/vdso_support.h 
third_party/tcmalloc/chromium/src/base/vdso_support.h
+--- third_party/tcmalloc/chromium/src/base/vdso_support.h  2011-04-13 
13:23:04.0 +0400
 

[arch-commits] Commit in chromium/trunk (4 files)

2012-03-28 Thread Evangelos Foutras
Date: Wednesday, March 28, 2012 @ 20:30:21
  Author: foutrelis
Revision: 154476

upgpkg: chromium 18.0.1025.142-1

New upstream release.

Added:
  chromium/trunk/chromium-revert-jpeg-swizzle-r2.patch
Modified:
  chromium/trunk/PKGBUILD
  chromium/trunk/gcc-4.6.patch
Deleted:
  chromium/trunk/nacl-cflags-remove-fstack-protector.patch

---+
 PKGBUILD  |   30 ++---
 chromium-revert-jpeg-swizzle-r2.patch |   61 
 gcc-4.6.patch |   11 -
 nacl-cflags-remove-fstack-protector.patch |   17 ---
 4 files changed, 75 insertions(+), 44 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-03-28 23:30:51 UTC (rev 154475)
+++ PKGBUILD2012-03-29 00:30:21 UTC (rev 154476)
@@ -9,7 +9,7 @@
 # build time.
 
 pkgname=chromium
-pkgver=17.0.963.83
+pkgver=18.0.1025.142
 pkgrel=1
 pkgdesc=The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser
 arch=('i686' 'x86_64')
@@ -31,15 +31,15 @@
 chromium.desktop
 chromium.sh
 gcc-4.6.patch
-nacl-cflags-remove-fstack-protector.patch
-chromium-media-no-sse-r0.patch)
-sha256sums=('fa1f684c3605b70243e337a98c4bf6e227da268cb0b8e2ebd42b6fccb798d93f'
-'964fe3a5ec56f2505649aba00f900abe4205674b7fdaa16772647d347173bb01'
+chromium-media-no-sse-r0.patch
+chromium-revert-jpeg-swizzle-r2.patch)
+sha256sums=('911a4ee2e30ed617c4148c84dcddfd1affa4b2fc02dc5e95ac4a4afeeda24b1d'
+'8cf762587e547588b9461686f7d2655d5a23d09e1260b5f97137fa7d41c767a9'
 '09bfac44104f4ccda4c228053f689c947b3e97da9a4ab6fa34ce061ee83d0322'
 'c53bfc4db9dde684fbaed6a4bbecb207e3e7a0a2703233426fe076a6d3c557f3'
-'9c5e0803904d1a0e71ab7444c92a7046a34a9518eeba7a70f2eec7abecb8bf4e'
-'59e732880314333d6e9acf6ac99de467c98e8a92aa5c5292ae808a805e0f8d76'
-'71751bf5913da1eec3c88c433044224c869b0abd5a29172cf239bddbb4eff761')
+'50268dafd436813f846ea174d19c447c64d198c3937bd56910d87c5206306977'
+'71751bf5913da1eec3c88c433044224c869b0abd5a29172cf239bddbb4eff761'
+'d99162aa6bae562f116a42347254bbec3752464f0a3e4d8675e2b287b2a838a2')
 
 build() {
   cd $srcdir/chromium-$pkgver
@@ -48,14 +48,12 @@
   # http://code.google.com/p/chromium/issues/detail?id=80071
   patch -Np0 -i $srcdir/gcc-4.6.patch
 
-  # Filter -fstack-protector out of cflags for nacl_helper_bootstrap
-  # http://code.google.com/p/chromium/issues/detail?id=104569
-  patch -d native_client -Np1 -i \
-$srcdir/nacl-cflags-remove-fstack-protector.patch
-
   # Remove unconditional use of SSE3 (patch from Gentoo)
   patch -Np0 -i $srcdir/chromium-media-no-sse-r0.patch
 
+  # Fix JPEG image rendering problem (patch from Gentoo bug #393471)
+  patch -Np0 -i $srcdir/chromium-revert-jpeg-swizzle-r2.patch
+
   # Use Python 2
   find . -type f -exec sed -i -r \
 -e 's|/usr/bin/python$|2|g' \
@@ -67,10 +65,10 @@
   export PATH=$srcdir/python2-path:$PATH
 
   pushd $srcdir/nacl_sdk
-  ./naclsdk update pepper_16
+  ./naclsdk update pepper_18
   popd
 
-  ln -s $srcdir/nacl_sdk/pepper_16/toolchain/linux_x86_newlib \
+  ln -s $srcdir/nacl_sdk/pepper_18/toolchain/linux_x86_newlib \
 native_client/toolchain/linux_x86_newlib
 
   # We need to disable system_ssl until next protocol negotiation support is
@@ -91,7 +89,7 @@
 -Duse_system_bzip2=1 \
 -Duse_system_ffmpeg=0 \
 -Duse_system_libevent=1 \
--Duse_system_libjpeg=0 \
+-Duse_system_libjpeg=1 \
 -Duse_system_libpng=1 \
 -Duse_system_libxml=0 \
 -Duse_system_ssl=0 \

Added: chromium-revert-jpeg-swizzle-r2.patch
===
--- chromium-revert-jpeg-swizzle-r2.patch   (rev 0)
+++ chromium-revert-jpeg-swizzle-r2.patch   2012-03-29 00:30:21 UTC (rev 
154476)
@@ -0,0 +1,61 @@
+This reverts http://trac.webkit.org/changeset/101286
+to fix Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=393471
+
+Index: 
third_party/WebKit/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
+===
+--- 
third_party/WebKit/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
(revision 96970)
 
third_party/WebKit/Source/WebCore/platform/image-decoders/jpeg/JPEGImageDecoder.cpp
(revision 101286)
+@@ -67,24 +67,6 @@
+ 
+ #include setjmp.h
+ 
+-#if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN)
+-#define ASSUME_LITTLE_ENDIAN 0
+-#else
+-#define ASSUME_LITTLE_ENDIAN 1
+-#endif
+-
+-#if defined(JCS_ALPHA_EXTENSIONS)  ASSUME_LITTLE_ENDIAN
+-#define TURBO_JPEG_RGB_SWIZZLE
+-#if USE(SKIA)  (!SK_R32_SHIFT  SK_G32_SHIFT == 8  SK_B32_SHIFT == 16)
+-inline J_COLOR_SPACE rgbOutputColorSpace() { return JCS_EXT_RGBA; }
+-#else

[arch-commits] Commit in chromium/trunk (4 files)

2012-02-08 Thread Evangelos Foutras
Date: Wednesday, February 8, 2012 @ 16:17:24
  Author: foutrelis
Revision: 149632

upgpkg: chromium 17.0.963.46-1

New upstream release.

Added:
  chromium/trunk/chromium-media-no-sse-r0.patch
Modified:
  chromium/trunk/PKGBUILD
  chromium/trunk/nacl-cflags-remove-fstack-protector.patch
Deleted:
  chromium/trunk/fix-downloads-on-ntfs.patch

---+
 PKGBUILD  |   34 
 chromium-media-no-sse-r0.patch|   17 ++
 fix-downloads-on-ntfs.patch   |   26 -
 nacl-cflags-remove-fstack-protector.patch |   28 ++-
 4 files changed, 49 insertions(+), 56 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2012-02-08 20:57:56 UTC (rev 149631)
+++ PKGBUILD2012-02-08 21:17:24 UTC (rev 149632)
@@ -9,8 +9,8 @@
 # build time.
 
 pkgname=chromium
-pkgver=16.0.912.77
-pkgrel=2
+pkgver=17.0.963.46
+pkgrel=1
 pkgdesc=The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser
 arch=('i686' 'x86_64')
 url=http://www.chromium.org/;
@@ -31,15 +31,15 @@
 chromium.desktop
 chromium.sh
 gcc-4.6.patch
-fix-downloads-on-ntfs.patch
-nacl-cflags-remove-fstack-protector.patch)
-sha256sums=('fc84e9a96d00a95c44beb6539b9ffe7224dc3ca51afef6486e0e7ad705445a32'
+nacl-cflags-remove-fstack-protector.patch
+chromium-media-no-sse-r0.patch)
+sha256sums=('9f9a3799dee3f998b8e629edeb686976567fc145d659e5bb744af8a425d26879'
 '964fe3a5ec56f2505649aba00f900abe4205674b7fdaa16772647d347173bb01'
 '09bfac44104f4ccda4c228053f689c947b3e97da9a4ab6fa34ce061ee83d0322'
 'c53bfc4db9dde684fbaed6a4bbecb207e3e7a0a2703233426fe076a6d3c557f3'
 '9c5e0803904d1a0e71ab7444c92a7046a34a9518eeba7a70f2eec7abecb8bf4e'
-'6364c464d1885b2ec21076f01f993725925ccc066805f1ecbbeaf6f79b93c209'
-'406f06a1a18fad4ba9e5d4e142509f1ac1512d176cc36c1744a7abf949991e2e')
+'59e732880314333d6e9acf6ac99de467c98e8a92aa5c5292ae808a805e0f8d76'
+'71751bf5913da1eec3c88c433044224c869b0abd5a29172cf239bddbb4eff761')
 
 build() {
   cd $srcdir/chromium-$pkgver
@@ -48,18 +48,14 @@
   # http://code.google.com/p/chromium/issues/detail?id=80071
   patch -Np0 -i $srcdir/gcc-4.6.patch
 
-  # Fix build with CUPS 1.5
-  sed -i '/#include cups\/cups.h/ a #include cups/ppd.h' \
-chrome/browser/ui/webui/print_preview_handler.cc
-
-  # Fix downloading on NTFS partitions
-  # http://code.google.com/p/chromium/issues/detail?id=102200
-  patch -Np2 -i $srcdir/fix-downloads-on-ntfs.patch
-
   # Filter -fstack-protector out of cflags for nacl_helper_bootstrap
   # http://code.google.com/p/chromium/issues/detail?id=104569
-  patch -Np2 -i $srcdir/nacl-cflags-remove-fstack-protector.patch
+  patch -d native_client -Np1 -i \
+$srcdir/nacl-cflags-remove-fstack-protector.patch
 
+  # Remove unconditional use of SSE3 (patch from Gentoo)
+  patch -Np0 -i $srcdir/chromium-media-no-sse-r0.patch
+
   # Use Python 2
   find . -type f -exec sed -i -r \
 -e 's|/usr/bin/python$|2|g' \
@@ -71,10 +67,10 @@
   export PATH=$srcdir/python2-path:$PATH
 
   pushd $srcdir/nacl_sdk
-  ./naclsdk update pepper_15
+  ./naclsdk update pepper_16
   popd
 
-  ln -s $srcdir/nacl_sdk/pepper_15/toolchain/linux_x86_newlib \
+  ln -s $srcdir/nacl_sdk/pepper_16/toolchain/linux_x86_newlib \
 native_client/toolchain/linux_x86_newlib
 
   # We need to disable system_ssl until next protocol negotiation support is
@@ -95,7 +91,7 @@
 -Duse_system_bzip2=1 \
 -Duse_system_ffmpeg=0 \
 -Duse_system_libevent=1 \
--Duse_system_libjpeg=1 \
+-Duse_system_libjpeg=0 \
 -Duse_system_libpng=1 \
 -Duse_system_libxml=0 \
 -Duse_system_ssl=0 \

Added: chromium-media-no-sse-r0.patch
===
--- chromium-media-no-sse-r0.patch  (rev 0)
+++ chromium-media-no-sse-r0.patch  2012-02-08 21:17:24 UTC (rev 149632)
@@ -0,0 +1,17 @@
+--- media/media.gyp.orig   2012-02-02 10:03:41.0 +0100
 media/media.gyp2012-02-02 10:04:09.0 +0100
+@@ -467,14 +467,6 @@
+ [ 'os_posix == 1 and OS != mac and OS != android', {
+   'cflags': [
+ '-msse2',
+-'-msse3',
+-'-mssse3',
+-  ],
+-}],
+-[ 'OS == openbsd', {
+-  # OpenBSD's gcc (4.2.1) does not support -mssse3
+-  'cflags!': [
+-'-mssse3',
+   ],
+ }],
+ [ 'OS == mac', {

Deleted: fix-downloads-on-ntfs.patch
===
--- fix-downloads-on-ntfs.patch 2012-02-08 20:57:56 UTC (rev 149631)
+++ fix-downloads-on-ntfs.patch 2012-02-08 21:17:24 UTC (rev 149632)
@@ -1,26 +0,0 @@
 

[arch-commits] Commit in chromium/trunk (4 files)

2010-05-30 Thread Pierre Schmitz
Date: Sunday, May 30, 2010 @ 13:07:40
  Author: pierre
Revision: 81457

prepare chromium stable release

Modified:
  chromium/trunk/PKGBUILD
  chromium/trunk/drop_sse2.patch
  chromium/trunk/ffmpeg_branding_mime.patch
Deleted:
  chromium/trunk/createSource

+
 PKGBUILD   |   28 +
 createSource   |   55 ---
 drop_sse2.patch|6 
 ffmpeg_branding_mime.patch |   10 +++
 4 files changed, 28 insertions(+), 71 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2010-05-30 17:04:38 UTC (rev 81456)
+++ PKGBUILD2010-05-30 17:07:40 UTC (rev 81457)
@@ -4,7 +4,7 @@
 # Maintainer: Daniel J Griffiths ghost1...@archlinux.us
 
 pkgname=chromium
-pkgver=5.0.396.0
+pkgver=5.0.375.55
 pkgrel=1
 pkgdesc='The open-source project behind Google Chrome, an attempt at creating 
a safer, faster, and more stable browser.'
 arch=('i686' 'x86_64')
@@ -14,20 +14,26 @@
 makedepends=('python' 'perl' 'gperf' 'yasm' 'mesa')
 provides=('chromium-browser')
 conflicts=('chromium-browser')
+options=('force')
 install='chromium.install'
 
source=(http://build.chromium.org/buildbot/official/chromium-${pkgver}.tar.bz2;
-'chromium.desktop' 'chromium.sh' 'ffmpeg_branding_mime.patch')
-md5sums=('1ca0f15f3bbf39bc298228d9abfcbe1b'
+'chromium.desktop' 'chromium.sh'
+'ffmpeg_branding_mime.patch' 'drop_sse2.patch' 'libpng-1.4.patch')
+md5sums=('a5ee0492b518bdbb29a51d3d17b818a7'
  '897de25e9c25a01f8b1b67abe554a6b7'
  '096a46ef386817988250d2d7bddd1b34'
- 'ae9e26e6c2d164e6af0e513dae2273a3')
+ 'ae1b32473c74b39e3f64b32d71574170'
+ '4fc27c2df43d5df342b26290928b009d'
+ 'bb75bfdfe85db26639abbea9054b85f9')
 
 build() {
   cd ${srcdir}/chromium-${pkgver}
 
 ### Patch
-
+  export CFLAGS=${CFLAGS/-O2/-O3} -fno-ipa-cp
   patch -p1 -i ${srcdir}/ffmpeg_branding_mime.patch || return 1
+  patch -p1 -i ${srcdir}/drop_sse2.patch || return 1
+  patch -p1 -i ${srcdir}/libpng-1.4.patch || return 1
 
 ### Configure
 
@@ -36,7 +42,7 @@
   # see https://bugzilla.mozilla.org/show_bug.cgi?id=547312
 
   build/gyp_chromium -f make build/all.gyp --depth=. \
--Dgcc_version=45 \
+-Dgcc_version=44 \
 -Dno_strict_aliasing=1 \
 -Dwerror= \
 -Dlinux_sandbox_path=/usr/lib/chromium/chromium-sandbox \
@@ -52,8 +58,7 @@
 -Duse_system_ffmpeg=0 \
 -Duse_system_yasm=1 \
 -Duse_system_libevent=1 \
--Duse_system_ssl=0 
-#-Ddisable_sse2=1
+-Duse_system_ssl=0
 
 ### Build
 
@@ -74,9 +79,10 @@
   install -m 0755 -D out/Release/libffmpegsumo.so \
 ${pkgdir}/usr/lib/chromium/libffmpegsumo.so
 
-  ln -s /usr/lib/libavcodec.so.52 ${pkgdir}/usr/lib/chromium/
-  ln -s /usr/lib/libavformat.so.52 ${pkgdir}/usr/lib/chromium/
-  ln -s /usr/lib/libavutil.so.50 ${pkgdir}/usr/lib/chromium/
+# these links are only needed when building with system ffmpeg
+#  ln -s /usr/lib/libavcodec.so.52 ${pkgdir}/usr/lib/chromium/
+#  ln -s /usr/lib/libavformat.so.52 ${pkgdir}/usr/lib/chromium/
+#  ln -s /usr/lib/libavutil.so.50 ${pkgdir}/usr/lib/chromium/
 
   cp -a out/Release/locales out/Release/resources \
 ${pkgdir}/usr/lib/chromium/

Deleted: createSource
===
--- createSource2010-05-30 17:04:38 UTC (rev 81456)
+++ createSource2010-05-30 17:07:40 UTC (rev 81457)
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-. PKGBUILD
-
-# see 
http://src.chromium.org/svn/trunk/src/tools/export_tarball/export_tarball.py
-nonessential_dirs=(
-   'src/chrome/test/data'
-   'src/chrome/tools/test/reference_build'
-   'src/gears/binaries'
-   'src/net/data/cache_tests'
-   'src/o3d/documentation'
-   'src/o3d/samples'
-   'src/third_party/lighttpd'
-   'src/third_party/WebKit/LayoutTests'
-   'src/webkit/data/layout_tests'
-   'src/webkit/tools/test/reference_build'
-)
-
-current=$(pwd)
-tmp=$(mktemp -d)
-mkdir -p $tmp/chromium-$pkgver
-cd $tmp/chromium-$pkgver
-
-# this should be updated to a more recent revision on major updates
-svn co -r43113 -q http://src.chromium.org/svn/trunk/tools/depot_tools/ 
depot_tools
-
-export PATH=./depot_tools/:$PATH
-chmod +x ./depot_tools/gclient.py
-gclient.py config http://src.chromium.org/svn/releases/$pkgver
-sed -e '15i\  src/third_party/WebKit/LayoutTests: None,' \
--e '15i\  src/chrome/tools/test/reference_build: None,' \
--e '15i\  src/third_party/ffmpeg/binaries/chromium/linux/ia32: 
None,' \
--e '15i\  src/third_party/ffmpeg/binaries/chromium/linux/ia32_dbg: 
None,' \
--e '15i\  src/third_party/ffmpeg/binaries/chromium/linux/x64: None,' 
\
--e '15i\  src/third_party/ffmpeg/binaries/chromium/linux/x64_dbg: 
None,' \
--i .gclient
-gclient.py sync --force --nohooks
-
-svnversion src  src/build/LASTCHANGE.in
-
-for i in