[chromium-browser-privacy: 28/51] Update to 79.0.3945.88
by qvint
commit ab303c9a3080030708af78806358374e47b7e091
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sat Dec 21 15:09:40 2019 +0530
Update to 79.0.3945.88
chromium-freeworld.spec | 5 ++++-
sources | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 2038e52..86ad3b6 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -69,7 +69,7 @@
%global ozone 0
##############################Package Definitions######################################
Name: chromium-freeworld
-Version: 79.0.3945.79
+Version: 79.0.3945.88
Release: 1%{?dist}
Summary: Chromium-freeworld is an open-source web browser, powered by WebKit (Blink). It comes with all freeworld codecs and video acceleration enabled.
License: BSD and LGPLv2+ and ASL 2.0 and IJG and MIT and GPLv2+ and ISC and OpenSSL and (MPLv1.1 or GPLv2 or LGPLv2)
@@ -756,6 +756,9 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/swiftshader/libGLESv2.so
#########################################changelogs#################################################
%changelog
+* Sat Dec 21 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> - 79.0.3945.88-1
+- Update to 79.0.3945.88
+
* Fri Dec 13 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> - 79.0.3945.79-1
- Update to 79.0.3945.79
diff --git a/sources b/sources
index fa8bb3a..4ee367d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (chromium-79.0.3945.79.tar.xz) = 783473ea68f26656a86c6a9e726fcc6331d80860d6bb9e5ece6d71c120c3e80fc97ef867c720fe14121b3ba4599452bc40610e56900b2ffd813b9c4f415d644d
+SHA512 (chromium-79.0.3945.88.tar.xz) = 6474da7225beb9c99c01dc234b820924dd2fb3d736f53abbac02556f3bec43acd09aa02224666c4a735417500d10f57265ab130c29cce27124e5a69463cf5e0d
4 years, 7 months
[chromium-browser-privacy: 27/51] Disable system libicu for fedora 31 and below and remove extra not needed patches
by qvint
commit 257d646b6b1eb5c22d9040fed17066d0ec96402b
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sun Dec 15 10:05:12 2019 +0530
Disable system libicu for fedora 31 and below and remove extra not needed patches
chromium-freeworld.spec | 2 +-
chromium-gcc9-dns_util-ambiguous-ctor.patch | 20 -
chromium-gcc9-r688676.patch | 1471 ---------------------------
chromium-gcc9-r694853.patch | 51 -
chromium-gcc9-r696834.patch | 89 --
chromium-gcc9-r706467.patch | 48 -
chromium-v8-gcc9.patch | 32 -
7 files changed, 1 insertion(+), 1712 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 2628213..37c58ac 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -40,7 +40,7 @@
# Allow testing whether icu can be unbundled
# A patch fix building so enabled by default for Fedora 30
# Need icu version >= 64
-%bcond_without system_libicu
+%bcond_with system_libicu
%if 0%{?fedora} >= 31
# Allow testing whether libvpx can be unbundled
%bcond_with system_libvpx
4 years, 7 months
[chromium-browser-privacy: 26/51] Disable system libicu for fedora 31 and below and remove extra not needed patches
by qvint
commit e4723550315962e6eea8c736cc92e2762459cb42
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sun Dec 15 10:05:12 2019 +0530
Disable system libicu for fedora 31 and below and remove extra not needed patches
chromium-freeworld.spec | 2 +-
chromium-gcc9-dns_util-ambiguous-ctor.patch | 20 -
chromium-gcc9-r688676.patch | 1471 ---------------------------
chromium-gcc9-r694853.patch | 51 -
chromium-gcc9-r696834.patch | 89 --
chromium-gcc9-r706467.patch | 48 -
chromium-v8-gcc9.patch | 32 -
7 files changed, 1 insertion(+), 1712 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 2038e52..64b1e13 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -40,7 +40,7 @@
# Allow testing whether icu can be unbundled
# A patch fix building so enabled by default for Fedora 30
# Need icu version >= 64
-%bcond_without system_libicu
+%bcond_with system_libicu
%if 0%{?fedora} >= 31
# Allow testing whether libvpx can be unbundled
%bcond_with system_libvpx
4 years, 7 months
[chromium-browser-privacy: 25/51] Enable: System minizip in f30
by qvint
commit 356aee774a3b1d2bbc19c93d0ed6d0f4ef9f2800
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sat Dec 14 17:55:17 2019 +0530
Enable: System minizip in f30
chromium-freeworld.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 2038e52..2628213 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -54,7 +54,7 @@
%bcond_with system_ffmpeg
#Allow minizip to be unbundled
#mini-compat is going to be removed from fedora 30!
-%bcond_with system_minizip
+%bcond_without system_minizip
%endif
# Need re2 ver. 2016.07.21 for re2::LazyRE2
4 years, 7 months
[chromium-browser-privacy: 24/51] Merge branch 'master' into f30
by qvint
commit 6ac3e5853a6b369c66cf2f69213e165114eef3d2
Merge: e161321 7e4ad08
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sat Dec 14 16:42:48 2019 +0530
Merge branch 'master' into f30
chromium-79.0.3945.56-glibc-clock-nanosleep.patch | 52 +++++++++++++
chromium-fix-use_system_harfbuzz-ng.patch | 44 +++++++++++
chromium-freeworld.spec | 90 +++++++++++++++--------
chromium-system-icu.patch | 34 +++++----
fix-spammy-unique-font-matching-log.patch | 13 ++++
icu65.patch | 64 ++++++++++++++++
include-algorithm-to-use-std-lower_bound.patch | 49 ++++++++++++
launch_manager.h-uses-std-vector.patch | 36 +++++++++
sources | 2 +-
widevine.patch | 33 +++------
10 files changed, 350 insertions(+), 67 deletions(-)
---
4 years, 7 months
[chromium-browser-privacy: 23/51] Fix: Building with system harfbuzz
by qvint
commit 7e4ad0893402265ef49bc9462385636c99436f12
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Sat Dec 14 08:43:07 2019 +0530
Fix: Building with system harfbuzz
chromium-fix-use_system_harfbuzz-ng.patch | 44 +++++++++++++++++++++++++++++++
chromium-freeworld.spec | 3 ++-
2 files changed, 46 insertions(+), 1 deletion(-)
---
diff --git a/chromium-fix-use_system_harfbuzz-ng.patch b/chromium-fix-use_system_harfbuzz-ng.patch
new file mode 100644
index 0000000..383aa0a
--- /dev/null
+++ b/chromium-fix-use_system_harfbuzz-ng.patch
@@ -0,0 +1,44 @@
+From ea7a9bad96f921da314ab8d171b1e22ad19d49a7 Mon Sep 17 00:00:00 2001
+From: ckitagawa <ckitagawa(a)chromium.org>
+Date: Tue, 22 Oct 2019 14:31:41 +0000
+Subject: [PATCH] [Build] fix use_system_harfbuzz-ng
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Use <> for harfbuzz includes to support the option to build with system
+harfbuzz rather than the version in third_party.
+
+Bug: 1016158
+Change-Id: I8a85e928c010ca65e04b5ebc4909a051b4312672
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1873236
+Commit-Queue: Calder Kitagawa <ckitagawa(a)chromium.org>
+Commit-Queue: Dominik Röttsches <drott(a)chromium.org>
+Reviewed-by: Dominik Röttsches <drott(a)chromium.org>
+Cr-Commit-Position: refs/heads/master@{#708176}
+---
+ components/paint_preview/common/subset_font.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/components/paint_preview/common/subset_font.cc b/components/paint_preview/common/subset_font.cc
+index a218d6373350..287f5600ce9b 100644
+--- a/components/paint_preview/common/subset_font.cc
++++ b/components/paint_preview/common/subset_font.cc
+@@ -7,11 +7,12 @@
+ #include <memory>
+ #include <utility>
+
++#include <hb-subset.h>
++#include <hb.h>
++
+ #include "base/bind.h"
+ #include "base/callback.h"
+ #include "base/macros.h"
+-#include "third_party/harfbuzz-ng/src/src/hb-subset.h"
+-#include "third_party/harfbuzz-ng/src/src/hb.h"
+ #include "third_party/skia/include/core/SkStream.h"
+ #include "third_party/skia/include/core/SkTypeface.h"
+
+--
+2.23.0
+
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index b07294e..2038e52 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -237,6 +237,8 @@ Patch73: launch_manager.h-uses-std-vector.patch
Patch74: chromium-79.0.3945.56-glibc-clock-nanosleep.patch
# ICU ver. 65 support on Rawhide
Patch75: icu65.patch
+#Fix building with system harfbuzz
+Patch76: chromium-fix-use_system_harfbuzz-ng.patch
%description
@@ -752,7 +754,6 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%dir %{chromiumdir}/swiftshader
%{chromiumdir}/swiftshader/libEGL.so
%{chromiumdir}/swiftshader/libGLESv2.so
-%{chromiumdir}/swiftshader/libvk_swiftshader.so
#########################################changelogs#################################################
%changelog
* Fri Dec 13 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> - 79.0.3945.79-1
4 years, 7 months
[chromium-browser-privacy: 22/51] Update to 79.0.3945.79
by qvint
commit 7243aace2971539c112575c302a568a7d1991834
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Fri Dec 13 17:12:25 2019 +0530
Update to 79.0.3945.79
chromium-79.0.3945.56-glibc-clock-nanosleep.patch | 52 ++++++++++++++++++
chromium-freeworld.spec | 39 +++++++++-----
chromium-system-icu.patch | 34 +++++++-----
fix-spammy-unique-font-matching-log.patch | 13 +++++
icu65.patch | 64 +++++++++++++++++++++++
include-algorithm-to-use-std-lower_bound.patch | 49 +++++++++++++++++
launch_manager.h-uses-std-vector.patch | 36 +++++++++++++
sources | 2 +-
widevine.patch | 33 +++++-------
9 files changed, 273 insertions(+), 49 deletions(-)
---
diff --git a/chromium-79.0.3945.56-glibc-clock-nanosleep.patch b/chromium-79.0.3945.56-glibc-clock-nanosleep.patch
new file mode 100644
index 0000000..71a5876
--- /dev/null
+++ b/chromium-79.0.3945.56-glibc-clock-nanosleep.patch
@@ -0,0 +1,52 @@
+diff -up chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.glibc-clock-nanosleep chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc
+--- chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc.glibc-clock-nanosleep 2019-12-03 11:36:08.592386976 -0500
++++ chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/baseline_policy.cc 2019-12-03 11:36:34.889947958 -0500
+@@ -148,7 +148,7 @@ ResultExpr EvaluateSyscallImpl(int fs_de
+ return Allow();
+ #endif
+
+- if (sysno == __NR_clock_gettime) {
++ if (sysno == __NR_clock_gettime || sysno == __NR_clock_nanosleep) {
+ return RestrictClockID();
+ }
+
+diff -up chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.glibc-clock-nanosleep chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h
+--- chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h.glibc-clock-nanosleep 2019-12-03 11:36:56.808582039 -0500
++++ chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions.h 2019-12-03 11:37:34.944945377 -0500
+@@ -86,12 +86,13 @@ SANDBOX_EXPORT bpf_dsl::ResultExpr Restr
+ // process).
+ SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictGetrusage();
+
+-// Restrict |clk_id| for clock_getres(), clock_gettime() and clock_settime().
+-// We allow accessing only CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID,
+-// CLOCK_REALTIME, and CLOCK_THREAD_CPUTIME_ID. In particular, this disallows
+-// access to arbitrary per-{process,thread} CPU-time clock IDs (such as those
+-// returned by {clock,pthread}_getcpuclockid), which can leak information
+-// about the state of the host OS.
++// Restrict |clk_id| for clock_getres(), clock_gettime(), clock_settime(), and
++// clock_nanosleep(). We allow accessing only CLOCK_BOOTTIME,
++// CLOCK_MONOTONIC{,_RAW,_COARSE}, CLOCK_PROCESS_CPUTIME_ID,
++// CLOCK_REALTIME{,_COARSE}, and CLOCK_THREAD_CPUTIME_ID. In particular, on
++// non-Android platforms this disallows access to arbitrary per-{process,thread}
++// CPU-time clock IDs (such as those returned by {clock,pthread}_getcpuclockid),
++// which can leak information about the state of the host OS.
+ SANDBOX_EXPORT bpf_dsl::ResultExpr RestrictClockID();
+
+ // Restrict the flags argument to getrandom() to allow only no flags, or
+diff -up chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.glibc-clock-nanosleep chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc
+--- chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc.glibc-clock-nanosleep 2019-12-03 11:37:53.752639332 -0500
++++ chromium-79.0.3945.56/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc 2019-12-03 11:38:32.802051407 -0500
+@@ -35,9 +35,10 @@ bool SyscallSets::IsAllowedGettime(int s
+ return true;
+ case __NR_adjtimex: // Privileged.
+ case __NR_clock_adjtime: // Privileged.
+- case __NR_clock_getres: // Could be allowed.
+- case __NR_clock_gettime:
+- case __NR_clock_nanosleep: // Could be allowed.
++ case __NR_clock_getres: // Allowed only on Android with parameters
++ // filtered by RestrictClockID().
++ case __NR_clock_gettime: // Parameters filtered by RestrictClockID().
++ case __NR_clock_nanosleep: // Parameters filtered by RestrictClockID().
+ case __NR_clock_settime: // Privileged.
+ #if defined(__i386__) || \
+ (defined(ARCH_CPU_MIPS_FAMILY) && defined(ARCH_CPU_32_BITS))
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index ce83036..b07294e 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -40,12 +40,12 @@
# Allow testing whether icu can be unbundled
# A patch fix building so enabled by default for Fedora 30
# Need icu version >= 64
-%bcond_with system_libicu
-%if 0%{?fedora} >= 30
+%bcond_without system_libicu
+%if 0%{?fedora} >= 31
# Allow testing whether libvpx can be unbundled
%bcond_with system_libvpx
# Allow testing whether ffmpeg can be unbundled
-%bcond_with system_ffmpeg
+%bcond_without system_ffmpeg
#Allow minizip to be unbundled
#mini-compat is going to be removed from fedora 30!
%bcond_without system_minizip
@@ -69,8 +69,8 @@
%global ozone 0
##############################Package Definitions######################################
Name: chromium-freeworld
-Version: 78.0.3904.108
-Release: 2%{?dist}
+Version: 79.0.3945.79
+Release: 1%{?dist}
Summary: Chromium-freeworld is an open-source web browser, powered by WebKit (Blink). It comes with all freeworld codecs and video acceleration enabled.
License: BSD and LGPLv2+ and ASL 2.0 and IJG and MIT and GPLv2+ and ISC and OpenSSL and (MPLv1.1 or GPLv2 or LGPLv2)
URL: https://www.chromium.org/Home
@@ -229,14 +229,15 @@ Patch65: chromium-73.0.3683.75-pipewire-cstring-fix.patch
Patch68: Add-missing-header-to-fix-webrtc-build.patch
Patch69: chromium-unbundle-zlib.patch
Patch70: chromium-base-location.patch
-# GCC patches
-Patch73: chromium-gcc9-r688676.patch
-Patch74: chromium-gcc9-r694853.patch
-Patch75: chromium-gcc9-r696834.patch
-Patch76: chromium-gcc9-r706467.patch
-Patch77: chromium-v8-gcc9.patch
-Patch78: chromium-gcc9-dns_util-ambiguous-ctor.patch
-Patch79: add-missing-include-for-unique_ptr.patch
+Patch71: fix-spammy-unique-font-matching-log.patch
+# GCC
+Patch72: include-algorithm-to-use-std-lower_bound.patch
+Patch73: launch_manager.h-uses-std-vector.patch
+# Fix: STolen from Fedora
+Patch74: chromium-79.0.3945.56-glibc-clock-nanosleep.patch
+# ICU ver. 65 support on Rawhide
+Patch75: icu65.patch
+
%description
%{name} is an open-source web browser, powered by WebKit (Blink)
@@ -249,6 +250,11 @@ Patch79: add-missing-include-for-unique_ptr.patch
%if !%{freeworld}
%patch54 -p1 -R
%endif
+%if 0%{?fedora} <= 31
+# Only on Rawhide
+%patch74 -p1 -R
+%patch75 -p1 -R
+%endif
#Let's change the default shebang of python files.
@@ -442,6 +448,7 @@ find -depth -type f -writable -name "*.py" -exec sed -iE '1s=^#! */usr/bin/\(pyt
third_party/swiftshader \
third_party/swiftshader/third_party/llvm-7.0 \
third_party/swiftshader/third_party/llvm-subzero \
+ third_party/swiftshader/third_party/marl \
third_party/swiftshader/third_party/subzero \
third_party/swiftshader/third_party/SPIRV-Headers/include/spirv/unified1 \
third_party/tcmalloc \
@@ -605,6 +612,9 @@ gn_args=(
# Optimizations
gn_args+=(
enable_vr=false
+%if %{with system_libicu}
+ icu_use_data_file=false
+%endif
)
@@ -745,6 +755,9 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/swiftshader/libvk_swiftshader.so
#########################################changelogs#################################################
%changelog
+* Fri Dec 13 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> - 79.0.3945.79-1
+- Update to 79.0.3945.79
+
* Fri Dec 06 2019 Vasiliy Glazov <vascom2(a)gmail.com> - 78.0.3904.108-2
- Disable fedora's build flags to reduce binary size
diff --git a/chromium-system-icu.patch b/chromium-system-icu.patch
index f00330b..1f848d7 100644
--- a/chromium-system-icu.patch
+++ b/chromium-system-icu.patch
@@ -1,14 +1,20 @@
-Index: chromium-76.0.3800.0/third_party/blink/renderer/platform/text/character_property_data.h
-===================================================================
---- chromium-76.0.3800.0.orig/third_party/blink/renderer/platform/text/character_property_data.h
-+++ chromium-76.0.3800.0/third_party/blink/renderer/platform/text/character_property_data.h
-@@ -258,7 +258,7 @@ static const UChar32 kIsHangulRanges[] =
- 0xFFA0, 0xFFDC,
- };
-
--static const UChar32 kIsHangulArray[] = {};
-+static const UChar32 kIsHangulArray[] = {0xFFDC,};
-
- // Freezed trie tree, see character_property_data_generator.cc.
- extern const int32_t kSerializedCharacterDataSize;
-
+diff --git a/build/linux/unbundle/icu.gn b/build/linux/unbundle/icu.gn
+index 4450e40..9ca36dd 100644
+--- a/build/linux/unbundle/icu.gn
++++ b/build/linux/unbundle/icu.gn
+@@ -96,6 +96,7 @@ shim_headers("icui18n_shim") {
+ "unicode/fpositer.h",
+ "unicode/gender.h",
+ "unicode/gregocal.h",
++ "unicode/listformatter.h",
+ "unicode/measfmt.h",
+ "unicode/measunit.h",
+ "unicode/measure.h",
+@@ -178,7 +179,6 @@ shim_headers("icuuc_shim") {
+ "unicode/icudataver.h",
+ "unicode/icuplug.h",
+ "unicode/idna.h",
+- "unicode/listformatter.h",
+ "unicode/localpointer.h",
+ "unicode/locdspnm.h",
+ "unicode/locid.h",
diff --git a/fix-spammy-unique-font-matching-log.patch b/fix-spammy-unique-font-matching-log.patch
new file mode 100644
index 0000000..9321a98
--- /dev/null
+++ b/fix-spammy-unique-font-matching-log.patch
@@ -0,0 +1,13 @@
+diff --git a/content/child/child_process_sandbox_support_impl_linux.cc b/content/child/child_process_sandbox_support_impl_linux.cc
+index 0a57543eb5..fe2ee491a2 100644
+--- a/content/child/child_process_sandbox_support_impl_linux.cc
++++ b/content/child/child_process_sandbox_support_impl_linux.cc
+@@ -78,8 +78,6 @@ void WebSandboxSupportLinux::MatchFontByPostscriptNameOrFullFontName(
+ std::string family_name;
+ if (!font_loader_->MatchFontByPostscriptNameOrFullFontName(font_unique_name,
+ &font_identity)) {
+- LOG(ERROR) << "FontService unique font name matching request did not "
+- "receive a response.";
+ return;
+ }
+
diff --git a/icu65.patch b/icu65.patch
new file mode 100644
index 0000000..811d562
--- /dev/null
+++ b/icu65.patch
@@ -0,0 +1,64 @@
+From 5679c3c191ed62b62d8db22f1657a296ee9bfe8e Mon Sep 17 00:00:00 2001
+From: Frank Tang <ftang(a)chromium.org>
+Date: Wed, 30 Oct 2019 22:49:47 +0000
+Subject: [PATCH] Update ICU to 65.1 from 64 and fix broken tests
+
+ICU 65-1 release note
+http://site.icu-project.org/download/65
+
+CLDR 36 release blog
+http://blog.unicode.org/2019/10/unicode-cldr-version-36-languagelocale.html
+
+Most of the test expectation change is due to CLDR 36 update
+of Grapheme Cluster for Indic languages
+See the following for related changes in ICU 65.1 in this area:
+https://unicode-org.atlassian.net/browse/CLDR-10994
+https://unicode-org.atlassian.net/browse/ICU-13637
+https://github.com/unicode-org/cldr/blob/master/common/properties/segments/readme.txt
+
+Bug: chromium:1014272, chromium:1017047
+Change-Id: I9fc6d4620bf2a4c189940d06d8c79893502db3dd
+Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng_disabled
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1866059
+Reviewed-by: Jungshik Shin <jshin(a)chromium.org>
+Reviewed-by: Doug Turner <dougt(a)chromium.org>
+Reviewed-by: Michael Wasserman <msw(a)chromium.org>
+Reviewed-by: Kent Tamura <tkent(a)chromium.org>
+Reviewed-by: Trent Apted <tapted(a)chromium.org>
+Reviewed-by: Mason Freed <masonfreed(a)chromium.org>
+Commit-Queue: Frank Tang <ftang(a)chromium.org>
+Cr-Commit-Position: refs/heads/master@{#711027}
+---
+ third_party/blink/renderer/core/dom/document.cc | 2 +-
+ ui/gfx/render_text_harfbuzz.cc | 5 ++++-
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/third_party/blink/renderer/core/dom/document.cc b/third_party/blink/renderer/core/dom/document.cc
+index 511aac29086..f188cf548a6 100644
+--- a/third_party/blink/renderer/core/dom/document.cc
++++ b/third_party/blink/renderer/core/dom/document.cc
+@@ -6191,7 +6191,7 @@ static ParseQualifiedNameResult ParseQualifiedNameInternal(
+
+ for (unsigned i = 0; i < length;) {
+ UChar32 c;
+- U16_NEXT(characters, i, length, c)
++ U16_NEXT(characters, i, length, c);
+ if (c == ':') {
+ if (saw_colon)
+ return ParseQualifiedNameResult(kQNMultipleColons);
+diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc
+index 50e86af6b97..0339ff3ff8e 100644
+--- a/ui/gfx/render_text_harfbuzz.cc
++++ b/ui/gfx/render_text_harfbuzz.cc
+@@ -971,7 +971,10 @@ RangeF TextRunHarfBuzz::GetGraphemeBounds(RenderTextHarfBuzz* render_text,
+ ++total;
+ }
+ }
+- DCHECK_GT(total, 0);
++ // With ICU 65.1, DCHECK_GT() below fails.
++ // See https://crbug.com/1017047 for more details.
++ //
++ // DCHECK_GT(total, 0);
+
+ // It's possible for |text_index| to point to a diacritical mark, at the end
+ // of |chars|. In this case all the grapheme boundaries come before it. Just
diff --git a/include-algorithm-to-use-std-lower_bound.patch b/include-algorithm-to-use-std-lower_bound.patch
new file mode 100644
index 0000000..dc37632
--- /dev/null
+++ b/include-algorithm-to-use-std-lower_bound.patch
@@ -0,0 +1,49 @@
+From f7c177d35242311ea7a2cf49a0980c61664f27ba Mon Sep 17 00:00:00 2001
+From: Jose Dapena Paz <jose.dapena(a)lge.com>
+Date: Fri, 25 Oct 2019 15:07:09 +0000
+Subject: [PATCH] IWYU: include algorithm to use std::lower_bound in
+ ui/gfx/font.cc
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Fix GCC build because of missing include:
+../../ui/gfx/font.cc: In function ‘gfx::Font::Weight gfx::FontWeightFromInt(int)’:
+../../ui/gfx/font.cc:114:8: error: no matching function for call to ‘lower_bound(const gfx::Font::Weight*, const gfx::Font::Weight*, int&, gfx::FontWeightFromInt(int)::<lambda(const gfx::Font::Weight&, const int&)>)’
+ });
+ ^
+In file included from /usr/include/c++/8/bits/char_traits.h:39,
+ from /usr/include/c++/8/string:40,
+ from ../../ui/gfx/font.h:8,
+ from ../../ui/gfx/font.cc:5:
+/usr/include/c++/8/bits/stl_algobase.h:984:5: note: candidate: ‘template<class _ForwardIterator, class _Tp> _ForwardIterator std::lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&)’
+ lower_bound(_ForwardIterator __first, _ForwardIterator __last,
+ ^~~~~~~~~~~
+/usr/include/c++/8/bits/stl_algobase.h:984:5: note: template argument deduction/substitution failed:
+../../ui/gfx/font.cc:114:8: note: candidate expects 3 arguments, 4 provided
+ });
+ ^
+
+Bug: 819294
+Change-Id: Ic59dcf3a06bdd54d1d426c08a61624873a0ff30c
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1879909
+Commit-Queue: Alexei Svitkine <asvitkine(a)chromium.org>
+Reviewed-by: Alexei Svitkine <asvitkine(a)chromium.org>
+Cr-Commit-Position: refs/heads/master@{#709472}
+---
+ ui/gfx/font.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/ui/gfx/font.cc b/ui/gfx/font.cc
+index 21367fd7297..92b159e13d1 100644
+--- a/ui/gfx/font.cc
++++ b/ui/gfx/font.cc
+@@ -4,6 +4,8 @@
+
+ #include "ui/gfx/font.h"
+
++#include <algorithm>
++
+ #include "base/strings/utf_string_conversions.h"
+ #include "build/build_config.h"
+ #include "ui/gfx/platform_font.h"
diff --git a/launch_manager.h-uses-std-vector.patch b/launch_manager.h-uses-std-vector.patch
new file mode 100644
index 0000000..72abe9b
--- /dev/null
+++ b/launch_manager.h-uses-std-vector.patch
@@ -0,0 +1,36 @@
+From 97eb905ba262382bc3583078761c68f4452aea71 Mon Sep 17 00:00:00 2001
+From: Jose Dapena Paz <jose.dapena(a)lge.com>
+Date: Fri, 25 Oct 2019 09:27:53 +0000
+Subject: [PATCH] IWYU: launch_manager.h uses std::vector
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Add #include <vector> for using std::vector. This fixes GCC build.
+
+./../chrome/browser/apps/launch_service/launch_manager.h:46:15: error: ‘vector’ in namespace ‘std’ does not name a template type
+ static std::vector<base::FilePath> GetLaunchFilesFromCommandLine(
+ ^~~~~~
+
+Bug: 819294
+Change-Id: I02ec3a2914a8fbe3aa0041017a0228f4b0ca1ec9
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1879289
+Reviewed-by: Alexey Baskakov <loyso(a)chromium.org>
+Commit-Queue: José Dapena Paz <jose.dapena(a)lge.com>
+Cr-Commit-Position: refs/heads/master@{#709411}
+---
+ chrome/browser/apps/launch_service/launch_manager.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/chrome/browser/apps/launch_service/launch_manager.h b/chrome/browser/apps/launch_service/launch_manager.h
+index 00aeb9d9c2a..76570ead0f9 100644
+--- a/chrome/browser/apps/launch_service/launch_manager.h
++++ b/chrome/browser/apps/launch_service/launch_manager.h
+@@ -6,6 +6,7 @@
+ #define CHROME_BROWSER_APPS_LAUNCH_SERVICE_LAUNCH_MANAGER_H_
+
+ #include <string>
++#include <vector>
+
+ #include "base/macros.h"
+
diff --git a/sources b/sources
index f768e2f..fa8bb3a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (chromium-78.0.3904.108.tar.xz) = 9801634358974dbe61484963599719b7c5571d32c70d7568287ab6b72054ed82afa146a0470c53129266a9fbc4a24dc50a43d552b8f1756776907c2760f15589
+SHA512 (chromium-79.0.3945.79.tar.xz) = 783473ea68f26656a86c6a9e726fcc6331d80860d6bb9e5ece6d71c120c3e80fc97ef867c720fe14121b3ba4599452bc40610e56900b2ffd813b9c4f415d644d
diff --git a/widevine.patch b/widevine.patch
index 3ecf0e7..32f0ae2 100644
--- a/widevine.patch
+++ b/widevine.patch
@@ -1,22 +1,13 @@
-diff -upr chromium-71.0.3578.80.orig/chrome/common/chrome_content_client.cc chromium-71.0.3578.80/chrome/common/chrome_content_client.cc
---- chromium-71.0.3578.80.orig/chrome/common/chrome_content_client.cc 2018-12-21 20:16:43.000000000 +0000
-+++ chromium-71.0.3578.80/chrome/common/chrome_content_client.cc 2018-12-21 21:34:28.658206942 +0000
-@@ -99,7 +99,7 @@
- // Registers Widevine CDM if Widevine is enabled, the Widevine CDM is
- // bundled and not a component. When the Widevine CDM is a component, it is
- // registered in widevine_cdm_component_installer.cc.
--#if BUILDFLAG(BUNDLE_WIDEVINE_CDM) && !BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT)
-+#if BUILDFLAG(ENABLE_WIDEVINE) && !BUILDFLAG(ENABLE_WIDEVINE_CDM_COMPONENT)
- #define REGISTER_BUNDLED_WIDEVINE_CDM
- #include "third_party/widevine/cdm/widevine_cdm_common.h" // nogncheck
- // TODO(crbug.com/663554): Needed for WIDEVINE_CDM_VERSION_STRING. Support
-diff -upr chromium-71.0.3578.80.orig/third_party/widevine/cdm/widevine_cdm_version.h chromium-71.0.3578.80/third_party/widevine/cdm/widevine_cdm_version.h
---- chromium-71.0.3578.80.orig/third_party/widevine/cdm/widevine_cdm_version.h 2018-12-03 20:18:01.000000000 +0000
-+++ chromium-71.0.3578.80/third_party/widevine/cdm/widevine_cdm_version.h 2018-12-04 21:37:45.635374949 +0000
-@@ -12,4 +12,6 @@
- // - WIDEVINE_CDM_VERSION_STRING (with the version of the CDM that's available
- // as a string, e.g., "1.0.123.456").
+diff --git a/third_party/widevine/cdm/BUILD.gn b/third_party/widevine/cdm/BUILD.gn
+index ed0e2f5208b..5b431a030d5 100644
+--- a/third_party/widevine/cdm/BUILD.gn
++++ b/third_party/widevine/cdm/BUILD.gn
+@@ -14,7 +14,7 @@ buildflag_header("buildflags") {
-+#define WIDEVINE_CDM_VERSION_STRING "unknown"
-+
- #endif // WIDEVINE_CDM_VERSION_H_
+ flags = [
+ "ENABLE_WIDEVINE=$enable_widevine",
+- "BUNDLE_WIDEVINE_CDM=$bundle_widevine_cdm",
++ "BUNDLE_WIDEVINE_CDM=true",
+ "ENABLE_WIDEVINE_CDM_COMPONENT=$enable_widevine_cdm_component",
+ ]
+ }
4 years, 7 months
[chromium-browser-privacy: 21/51] Added building with clang back to the spec Removed hard coded extra version Added gn flag to reduce
by qvint
commit 54055702a3e71977747a1541d152c8bddd7f6fbe
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Tue Dec 10 13:16:49 2019 +0530
Added building with clang back to the spec
Removed hard coded extra version
Added gn flag to reduce blink symbol generation when debug packages are disabled
chromium-freeworld.spec | 30 +++++++++++++++++++++++++++---
1 file changed, 27 insertions(+), 3 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 8ff8da6..ce83036 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -34,6 +34,8 @@
# Require libxml2 > 2.9.4 for XML_PARSE_NOXXE
%bcond_without system_libxml2
+# Clang toggle
+%global clang 1
# Allow testing whether icu can be unbundled
# A patch fix building so enabled by default for Fedora 30
@@ -101,7 +103,11 @@ Source15: LICENSE
########################################################################################
#Compiler settings
# Make sure we don't encounter any bug
+%if %{clang}
+BuildRequires: clang, llvm, lld
+%else
BuildRequires: gcc-c++
+%endif
# Basic tools and libraries needed for building
BuildRequires: ninja-build, nodejs, bison, gperf, hwdata
BuildRequires: libgcc, glibc, libatomic
@@ -519,12 +525,20 @@ ln -s %{python2_sitelib}/ply third_party/ply
# Fix the path to nodejs binary
mkdir -p third_party/node/linux/node-linux-x64/bin
ln -s %{_bindir}/node third_party/node/linux/node-linux-x64/bin/node
-# Hard code extra version
-FILE=chrome/common/channel_info_posix.cc
-sed -i.orig -e 's/getenv("CHROME_VERSION_EXTRA")/"%{name}"/' $FILE
#####################################BUILD#############################################
%build
#export compilar variables
+
+%if %{clang}
+
+export AR=llvm-ar NM=llvm-nm AS=llvm-as
+export CC=clang CXX=clang++
+
+# Add required compiler flags here
+export CXXFLAGS="$CXXFLAGS -Wno-unknown-warning-option"
+export CFLAGS="$CFLAGS -Wno-unknown-warning-option"
+
+%else
export AR=ar NM=nm AS=as
export CC=gcc CXX=g++
@@ -545,6 +559,8 @@ export CXXFLAGS="$CXXFLAGS -g0"
%if 0%{?fedora} <= 29
export CXXFLAGS="$CXXFLAGS -fno-ipa-cp-clone"
%endif
+#end compiler part
+%endif
gn_args=(
is_debug=false
@@ -593,7 +609,14 @@ gn_args+=(
gn_args+=(
+%if %{clang}
+ is_clang=true
+ 'clang_base_path="/usr"'
+ clang_use_chrome_plugins=false
+ use_lld=true
+%else
is_clang=false
+%endif
)
#Pipewire
@@ -620,6 +643,7 @@ gn_args+=(
symbol_level=1
%else
symbol_level=0
+ blink_symbol_level=0
%endif
)
tools/gn/bootstrap/bootstrap.py --gn-gen-args "${gn_args[*]}"
4 years, 7 months
[chromium-browser-privacy: 20/51] Disabled fedora build flags to reduce binary size.
by qvint
commit d0b6e27e2738bb38306e3c87a38f995bb4c6f379
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Fri Dec 6 09:19:31 2019 +0300
Disabled fedora build flags to reduce binary size.
chromium-freeworld.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 21efa85..8ff8da6 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -68,7 +68,7 @@
##############################Package Definitions######################################
Name: chromium-freeworld
Version: 78.0.3904.108
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Chromium-freeworld is an open-source web browser, powered by WebKit (Blink). It comes with all freeworld codecs and video acceleration enabled.
License: BSD and LGPLv2+ and ASL 2.0 and IJG and MIT and GPLv2+ and ISC and OpenSSL and (MPLv1.1 or GPLv2 or LGPLv2)
URL: https://www.chromium.org/Home
@@ -721,6 +721,9 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/swiftshader/libvk_swiftshader.so
#########################################changelogs#################################################
%changelog
+* Fri Dec 06 2019 Vasiliy Glazov <vascom2(a)gmail.com> - 78.0.3904.108-2
+- Disable fedora's build flags to reduce binary size
+
* Thu Nov 21 2019 Vasiliy Glazov <vascom2(a)gmail.com> - 78.0.3904.108-1
- Update to 78.0.3904.108
4 years, 7 months
[chromium-browser-privacy: 19/51] Fix: Symbols still present even after adding -g0
by qvint
commit ecef62aa1c36d1d1b51ac20353899b4f38974460
Author: Akarshan Biswas <akarshanbiswas(a)fedoraproject.org>
Date: Tue Dec 3 12:55:21 2019 +0530
Fix: Symbols still present even after adding -g0
chromium-freeworld.spec | 17 ++---------------
1 file changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 6b22005..21efa85 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -528,21 +528,6 @@ sed -i.orig -e 's/getenv("CHROME_VERSION_EXTRA")/"%{name}"/' $FILE
export AR=ar NM=nm AS=as
export CC=gcc CXX=g++
-# Set proper cflags, cxxflags
-%if 0%{?fedora} >= 31
-export CFLAGS="$(echo '%{__global_cflags}' |sed -e 's/-fexceptions//' \
- -e 's/-Werror=format-security//' \
- -e 's/-pipe//' \
- -e 's/-g/-g1/g' \
- -e 's/-g1record-g1cc-switches//' )"
-export CXXFLAGS="$(echo '%{?__global_cxxflags}%{!?__global_cxxflags:%{__global_cflags}}' | sed -e 's/-fexceptions//' \
- -e 's/-Werror=format-security//' \
- -e 's/-pipe//' \
- -e 's/-g/-g1/g' \
- -e 's/-g1record-g1cc-switches//' )"
-
-export LDFLAGS='%{__global_ldflags}'
-%endif
# GN needs gold to bootstrap
export LDFLAGS="$LDFLAGS -fuse-ld=gold"
@@ -633,6 +618,8 @@ gn_args+=(
gn_args+=(
%if %{debug_pkg}
symbol_level=1
+%else
+ symbol_level=0
%endif
)
tools/gn/bootstrap/bootstrap.py --gn-gen-args "${gn_args[*]}"
4 years, 7 months