This repository has been archived by the owner on Mar 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/65.0.3325.181'
- Loading branch information
Showing
2 changed files
with
62 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# Contributor: Daniel J Griffiths <[email protected]> | ||
|
||
pkgname=inox | ||
pkgver=65.0.3325.162 | ||
pkgver=65.0.3325.181 | ||
pkgrel=1 | ||
_launcher_ver=5 | ||
pkgdesc="Chromium Spin-off to enhance privacy by disabling data transmission to Google" | ||
|
@@ -30,6 +30,7 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/chrom | |
chromium-$pkgver.txt::https://chromium.googlesource.com/chromium/src.git/+/$pkgver?format=TEXT | ||
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/product_logo_{16,22,24,32,48,64,128,256}.png | ||
# Patches from Arch Linux | ||
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/fix-crash-in-is_cfi-true-builds-with-unbundled-ICU.patch | ||
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/chromium-skia-harmony.patch | ||
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/chromium-widevine.patch | ||
# Patches from Gentoo | ||
|
@@ -62,9 +63,9 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/chrom | |
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/0020-launcher-branding.patch | ||
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/0021-disable-rlz.patch | ||
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/9000-disable-metrics.patch) | ||
sha256sums=('627e7bfd84795de1553fac305239130d25186acf2d3c77d39d824327cd116cce' | ||
sha256sums=('93666448c6b96ec83e6a35a64cff40db4eb92a154fe1db4e7dab4761d0e38687' | ||
'4dc3428f2c927955d9ae117f2fb24d098cc6dd67adb760ac9c82b522ec8b0587' | ||
'bed2a7ef4b1ebd53b28e2f38963a2dd761267ccc8818693c34ce8596db53dd4c' | ||
'2771c049b66c9aba3b945fe065f2610f164d55506eb5d71751a26aaf8b40d4ee' | ||
'71471fa4690894420f9e04a2e9a622af620d92ac2714a35f9a4c4e90fa3968dd' | ||
'4a533acefbbc1567b0d74a1c0903e9179b8c59c1beabe748850795815366e509' | ||
'7b88830c5e0e9819f514ad68aae885d427541a907e25607e47dee1b0f38975fd' | ||
|
@@ -73,6 +74,7 @@ sha256sums=('627e7bfd84795de1553fac305239130d25186acf2d3c77d39d824327cd116cce' | |
'53a1e8da18069eb4d6ab3af9c923c22a0f020241a4839c3140e3601052ddf6ff' | ||
'896993987d4ef9f0ac7db454f288117316c2c80ed0b6764019afd760db222dad' | ||
'3df9b3bbdc07fde63d9e400954dcc6ab6e0e5454f0ef6447570eef0549337354' | ||
'e3fb73b43bb8c69ff517e66b2cac73d6e759fd240003eb35598df9af442422fe' | ||
'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3' | ||
'd6fdcb922e5a7fbe15759d39ccc8ea4225821c44d98054ce0f23f9d1f00c9808' | ||
'4495e8b29dae242c79ffe4beefc5171eb3c7aacb7e9aebfd2d4d69b9d8c958d3' | ||
|
@@ -150,6 +152,9 @@ prepare() { | |
sed "s/@WIDEVINE_VERSION@/Pinkie Pie/" ../chromium-widevine.patch | | ||
patch -Np1 | ||
|
||
# https://crbug.com/822820 | ||
patch -Np1 -i ../fix-crash-in-is_cfi-true-builds-with-unbundled-ICU.patch | ||
|
||
# https://crbug.com/skia/6663#c10 | ||
patch -Np4 -i ../chromium-skia-harmony.patch | ||
|
||
|
@@ -158,14 +163,6 @@ prepare() { | |
patch -Np1 -i ../chromium-math.h-r0.patch | ||
patch -Np1 -i ../chromium-stdint.patch | ||
|
||
# Remove compiler flags not supported by our system clang | ||
sed -i \ | ||
-e '/"-Wno-enum-compare-switch"/d' \ | ||
-e '/"-Wno-null-pointer-arithmetic"/d' \ | ||
-e '/"-Wno-tautological-unsigned-zero-compare"/d' \ | ||
-e '/"-Wno-tautological-constant-compare"/d' \ | ||
build/config/compiler/BUILD.gn | ||
|
||
msg2 'Applying VA-API patches' | ||
patch -Np1 -i ../chromium-vaapi-init-r16.patch | ||
patch -Np1 -i ../chromium-vaapi-r16.patch | ||
|
@@ -253,6 +250,7 @@ build() { | |
'custom_toolchain="//build/toolchain/linux/unbundle:default"' | ||
'host_toolchain="//build/toolchain/linux/unbundle:default"' | ||
'clang_use_chrome_plugins=false' | ||
'is_cfi=true' | ||
'symbol_level=0' | ||
'is_debug=false' | ||
'fatal_linker_warnings=false' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
From f15e8b573ada0fcd643ae393484214b1c7c940f8 Mon Sep 17 00:00:00 2001 | ||
From: Evangelos Foutras <[email protected]> | ||
Date: Sat, 24 Mar 2018 00:04:33 +0000 | ||
Subject: [PATCH] Fix crash in is_cfi=true builds with unbundled ICU | ||
|
||
Ensure ICU symbols have public visibility and are thus excluded from CFI | ||
checks and whole-program optimization. The former caused a startup crash | ||
and the latter has the potential to break virtual calls in weird ways. | ||
|
||
BUG=822820 | ||
|
||
Change-Id: Ia809eefcb9e93b3c612f2381d394db83bbc67120 | ||
Reviewed-on: https://chromium-review.googlesource.com/978008 | ||
Reviewed-by: Peter Collingbourne <[email protected]> | ||
Reviewed-by: Thomas Anderson <[email protected]> | ||
Commit-Queue: Thomas Anderson <[email protected]> | ||
Cr-Commit-Position: refs/heads/master@{#545638} | ||
--- | ||
build/linux/unbundle/icu.gn | 18 ++++++++++++++++++ | ||
1 file changed, 18 insertions(+) | ||
|
||
diff --git a/build/linux/unbundle/icu.gn b/build/linux/unbundle/icu.gn | ||
index 5bdd91555df7..4450e409dba5 100644 | ||
--- a/build/linux/unbundle/icu.gn | ||
+++ b/build/linux/unbundle/icu.gn | ||
@@ -17,6 +17,24 @@ config("icu_config") { | ||
"USING_SYSTEM_ICU=1", | ||
"ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC", | ||
"UCHAR_TYPE=uint16_t", | ||
+ | ||
+ # U_EXPORT (defined in unicode/platform.h) is used to set public visibility | ||
+ # on classes through the U_COMMON_API and U_I18N_API macros (among others). | ||
+ # When linking against the system ICU library, we want its symbols to have | ||
+ # public LTO visibility. This disables CFI checks for the ICU classes and | ||
+ # allows whole-program optimization to be applied to the rest of Chromium. | ||
+ # | ||
+ # Both U_COMMON_API and U_I18N_API macros would be defined to U_EXPORT only | ||
+ # when U_COMBINED_IMPLEMENTATION is defined (see unicode/utypes.h). Because | ||
+ # we override the default system UCHAR_TYPE (char16_t), it is not possible | ||
+ # to use U_COMBINED_IMPLEMENTATION at this moment, meaning the U_COMMON_API | ||
+ # and U_I18N_API macros are set to U_IMPORT which is an empty definition. | ||
+ # | ||
+ # Until building with UCHAR_TYPE=char16_t is supported, one way to apply | ||
+ # public visibility (and thus public LTO visibility) to all ICU classes is | ||
+ # to define U_IMPORT to have the same value as U_EXPORT. For more details, | ||
+ # please see: https://crbug.com/822820 | ||
+ "U_IMPORT=U_EXPORT", | ||
] | ||
} | ||
|
||
-- | ||
2.16.3 | ||
|