Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release/63.0.3239.132'
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarq committed Jan 11, 2018
2 parents 6984e0a + 8419d90 commit b6cc31a
Show file tree
Hide file tree
Showing 5 changed files with 557 additions and 138 deletions.
12 changes: 6 additions & 6 deletions 0001-fix-building-without-safebrowsing.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

private:
@@ -1682,7 +1681,7 @@ void ChromeContentBrowserClient::AppendE
@@ -1704,7 +1703,7 @@ void ChromeContentBrowserClient::AppendE
// Disable client-side phishing detection in the renderer if it is
// disabled in the Profile preferences or the browser process.
if (!prefs->GetBoolean(prefs::kSafeBrowsingEnabled) ||
Expand All @@ -17,7 +17,7 @@
command_line->AppendSwitch(
switches::kDisableClientSidePhishingDetection);
}
@@ -2259,15 +2258,9 @@ void ChromeContentBrowserClient::AllowCe
@@ -2281,15 +2280,9 @@ void ChromeContentBrowserClient::AllowCe
// Otherwise, display an SSL blocking page. The interstitial page takes
// ownership of ssl_blocking_page.

Expand All @@ -34,7 +34,7 @@
}

void ChromeContentBrowserClient::SelectClientCertificate(
@@ -2456,8 +2449,6 @@ bool ChromeContentBrowserClient::CanCrea
@@ -2478,8 +2471,6 @@ bool ChromeContentBrowserClient::CanCrea
void ChromeContentBrowserClient::ResourceDispatcherHostCreated() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);

Expand All @@ -43,7 +43,7 @@
for (size_t i = 0; i < extra_parts_.size(); ++i)
extra_parts_[i]->ResourceDispatcherHostCreated();

@@ -2974,17 +2965,6 @@ void ChromeContentBrowserClient::ExposeI
@@ -2996,17 +2987,6 @@ void ChromeContentBrowserClient::ExposeI
base::RetainedRef(context)));
}

Expand All @@ -61,7 +61,7 @@
#if defined(OS_WIN)
if (base::FeatureList::IsEnabled(features::kModuleDatabase)) {
// Add the ModuleEventSink interface. This is the interface used by renderer
@@ -3563,12 +3543,6 @@ ChromeContentBrowserClient::CreateURLLoa
@@ -3585,12 +3565,6 @@ ChromeContentBrowserClient::CreateURLLoa

std::vector<std::unique_ptr<content::URLLoaderThrottle>> result;

Expand All @@ -74,7 +74,7 @@
return result;
}

@@ -3624,18 +3598,3 @@ void ChromeContentBrowserClient::SetDefa
@@ -3646,18 +3620,3 @@ void ChromeContentBrowserClient::SetDefa
const storage::QuotaSettings* settings) {
g_default_quota_settings = settings;
}
Expand Down
57 changes: 37 additions & 20 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Contributor: Daniel J Griffiths <[email protected]>

pkgname=inox
pkgver=63.0.3239.84
pkgver=63.0.3239.132
pkgrel=1
_launcher_ver=5
pkgdesc="Chromium Spin-off to enhance privacy by disabling data transmission to Google"
Expand All @@ -27,11 +27,12 @@ optdepends=('pepper-flash: support for Flash content'
install=inox.install
source=(https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$pkgver.tar.xz
chromium-launcher-$_launcher_ver.tar.gz::https://github.com/foutrelis/chromium-launcher/archive/v$_launcher_ver.tar.gz
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/inox.desktop
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/chromium-exclude_unwind_tables.patch
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/chromium-omnibox-unescape-fragment.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
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/chromium-clang-r1.patch
Expand Down Expand Up @@ -63,10 +64,9 @@ source=(https://commondatastorage.googleapis.com/chromium-browser-official/chrom
https://raw.githubusercontent.com/gcarq/inox-patchset/$pkgver/9000-disable-metrics.patch)


sha256sums=('6de2754dfc333675ae6a67ae13c95666009b35c84f847b058edbf312e42fa3af'
sha256sums=('84c46c2c42faaa102abe0647ee1213615a2522627124924c2741ddc2161b3d8d'
'4dc3428f2c927955d9ae117f2fb24d098cc6dd67adb760ac9c82b522ec8b0587'
'ff3f939a8757f482c1c5ba35c2c0f01ee80e2a2273c16238370081564350b148'
'782a512b8bcf4aa6e58036cc3454d037d0eea69f27d5b673902d494c3fb5b20d'
'ab330f30c14ea3b5e77976d674304b91cfb02251fe8771cecb0bb4092c7f6b74'
'71471fa4690894420f9e04a2e9a622af620d92ac2714a35f9a4c4e90fa3968dd'
'4a533acefbbc1567b0d74a1c0903e9179b8c59c1beabe748850795815366e509'
'7b88830c5e0e9819f514ad68aae885d427541a907e25607e47dee1b0f38975fd'
Expand All @@ -76,12 +76,14 @@ sha256sums=('6de2754dfc333675ae6a67ae13c95666009b35c84f847b058edbf312e42fa3af'
'896993987d4ef9f0ac7db454f288117316c2c80ed0b6764019afd760db222dad'
'3df9b3bbdc07fde63d9e400954dcc6ab6e0e5454f0ef6447570eef0549337354'
'e53dc6f259acd39df13874f8a0f440528fae764b859dd71447991a5b1fac7c9c'
'814eb2cecb10cb697e24036b08aac41e88d0e38971741f9e946200764e2401ae'
'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3'
'd6fdcb922e5a7fbe15759d39ccc8ea4225821c44d98054ce0f23f9d1f00c9808'
'ab5368a3e3a67fa63b33fefc6788ad5b4a79089ef4db1011a14c3bee9fdf70c6'
'bcb2f4588cf5dcf75cde855c7431e94fdcc34bdd68b876a90f65ab9938594562'
'73275413f078b1217a11e5a099777c1ace11a667144d5106975d1ff650540321'
'a15b2ca40b5ca17d4763e41e226fb5faca22277027e8321675c87038dd9879d5'
'30d77bcb9088118d72b3b2b85156a2747772c6d04de3c51944ec482ad12983b9'
'22726f4f16c7ac9d0c1afc47d6aa40bc02f6de42cfa86a9153781e1d50b58181'
'605cca8be9828a29cc96d473847eef9452d572fe6a56dacd96426a202310ba58'
'fb91a7e30e2615e4eb0626b0fdcf97b92d4a727a52023730f408b02fee436c8d'
'94d20bc91ce6f4c9405293b4480670af9e7c3a79f2b87268e663dc2f063cb6e4'
Expand All @@ -105,16 +107,16 @@ sha256sums=('6de2754dfc333675ae6a67ae13c95666009b35c84f847b058edbf312e42fa3af'

# 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 # https://crbug.com/731766
readonly -A _system_libs=(
#[ffmpeg]=ffmpeg # https://crbug.com/731766
[flac]=flac
#[freetype]=freetype2 # https://crbug.com/pdfium/733
#[harfbuzz-ng]=harfbuzz-icu # https://crbug.com/768938
#[icu]=icu # https://crbug.com/772655
#[freetype]=freetype2 # Using 'use_system_freetype=true' until M65
#[harfbuzz-ng]=harfbuzz # Using 'use_system_harfbuzz=true' until M65
#[icu]=icu # https://crbug.com/772655 + need M64 for ICU 60
[libdrm]=
[libjpeg]=libjpeg
#[libpng]=libpng # https://crbug.com/752403#c10
#[libvpx]=libvpx # https://bugs.gentoo.org/611394
#[libpng]=libpng # https://crbug.com/752403#c10
#[libvpx]=libvpx # https://bugs.gentoo.org/611394
[libwebp]=libwebp
[libxml]=libxml2
[libxslt]=libxslt
Expand All @@ -124,7 +126,13 @@ declare -rgA _system_libs=(
[yasm]=
[zlib]=minizip
)
depends+=(${_system_libs[@]})
readonly _unwanted_bundled_libs=(
${!_system_libs[@]}
${_system_libs[libjpeg]+libjpeg_turbo}
freetype
harfbuzz-ng
)
depends+=(${_system_libs[@]} freetype2 harfbuzz)

prepare() {
cd "$srcdir/chromium-$pkgver"
Expand All @@ -134,7 +142,7 @@ prepare() {
local _chrome_build_hash=$(base64 -d ../chromium-$pkgver.txt |
grep -Po '^parent \K[0-9a-f]{40}$')
if [[ -z $_chrome_build_hash ]]; then
error "Unable to fetch Chrome build hash."
error "Unable to find Chrome build hash."
return 1
fi
echo "LASTCHANGE=$_chrome_build_hash-" >build/util/LASTCHANGE
Expand All @@ -148,6 +156,12 @@ prepare() {
# https://chromium-review.googlesource.com/c/chromium/src/+/712575
patch -Np1 -i ../chromium-exclude_unwind_tables.patch

# https://crbug.com/789163
patch -Np1 -i ../chromium-omnibox-unescape-fragment.patch

# https://crbug.com/skia/6663#c10
patch -Np4 -i ../chromium-skia-harmony.patch

# Fixes from Gentoo
patch -Np1 -i ../chromium-clang-r1.patch
patch -Np1 -i ../chromium-webrtc-r0.patch
Expand Down Expand Up @@ -204,12 +218,14 @@ prepare() {
# *should* do what the remove_bundled_libraries.py script does, with the
# added benefit of not having to list all the remaining libraries
local _lib
for _lib in ${!_system_libs[@]} ${_system_libs[libjpeg]+libjpeg_turbo}; do
for _lib in ${_unwanted_bundled_libs[@]}; do
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\)' \
\! -path './base/third_party/icu/*' \
\! -path './third_party/freetype/src/src/psnames/pstables.h' \
\! -path './third_party/yasm/run_yasm.py' \
\! -regex '.*\.\(gn\|gni\|isolate\)' \
-delete
done

Expand Down Expand Up @@ -256,6 +272,8 @@ build() {
'ffmpeg_branding="Chrome"'
'proprietary_codecs=true'
'link_pulseaudio=true'
'use_system_freetype=true'
'use_system_harfbuzz=true'
'use_gconf=false'
'use_gnome_keyring=false'
'use_gold=false'
Expand All @@ -273,7 +291,6 @@ build() {
'enable_google_now=false'
'safe_browsing_mode=0'
'enable_hotwording=false'
'use_system_harfbuzz=true'
)

if check_option strip y; then
Expand Down Expand Up @@ -314,7 +331,7 @@ package() {
"$pkgdir/usr/share/applications/$pkgname.desktop" \
"$pkgdir/usr/share/man/man1/$pkgname.1"

cp -a \
cp \
out/Release/{chrome_{100,200}_percent,resources}.pak \
out/Release/{*.bin,libwidevinecdmadapter.so} \
"$pkgdir/usr/lib/$pkgname/"
Expand Down
Loading

0 comments on commit b6cc31a

Please sign in to comment.