commit 174820af31a80e5231c338531659b4c521d20128
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Wed Feb 24 20:49:12 2021 +0000
Add rawhide fix and add ability to manually apply patches for ifdef patches
chromium-freeworld.spec | 24 +++++++++++++++++-------
chromium-rawhide-gcc-std-max-fix.patch | 24 ++++++++++++++++++++++++
2 files changed, 41 insertions(+), 7 deletions(-)
---
diff --git a/chromium-freeworld.spec b/chromium-freeworld.spec
index 88dc157..21bea00 100644
--- a/chromium-freeworld.spec
+++ b/chromium-freeworld.spec
@@ -145,6 +145,10 @@ ExclusiveArch: x86_64
# Fedora patches:
Patch300: chromium-py2-bootstrap.patch
+Patch301: chromium-fstatfix.patch
+Patch302: chromium-gcc11.patch
+# Manually applied patches:
+Patch701: chromium-rawhide-gcc-std-max-fix.patch
# RPM Fusion patches [free/chromium-freeworld]:
Patch400: chromium-hw-accel-mjpeg.patch
@@ -153,11 +157,8 @@ Patch402: chromium-enable-widevine.patch
Patch403: chromium-manpage.patch
Patch404: chromium-md5-based-build-id.patch
Patch405: chromium-names.patch
-Patch406: chromium-fstatfix.patch
-Patch407: chromium-gcc11.patch
-%if %{freeworld}
-Patch420: chromium-rpm-fusion-brand.patch
-%endif
+# Manually applied patches:
+Patch700: chromium-rpm-fusion-brand.patch
%description
%{name} is an open-source web browser, powered by WebKit (Blink)
@@ -185,8 +186,17 @@ Patch420: chromium-rpm-fusion-brand.patch
%patchset_apply chromium-88-ityp-include.patch
%patchset_apply chromium-88-vaapi-attribute.patch
-# Apply patches from this spec.
-%autopatch -p1
+# Apply patches up to #600 from this spec.
+%autopatch -M600 -p1
+
+# Manually apply patches that need an ifdef
+%if %{freeworld}
+%patch700 -p1
+%endif
+
+%if 0%{?fedora} >= 35
+%patch701 -p1
+%endif
#Let's change the default shebang of python files.
find -depth -type f -writable -name "*.py" -exec sed -iE '1s=^#!
*/usr/bin/\(python\|env python\)[23]\?=#!%{__python2}=' {} +
diff --git a/chromium-rawhide-gcc-std-max-fix.patch
b/chromium-rawhide-gcc-std-max-fix.patch
new file mode 100644
index 0000000..d63c00a
--- /dev/null
+++ b/chromium-rawhide-gcc-std-max-fix.patch
@@ -0,0 +1,24 @@
+diff -up
chromium-88.0.4324.182/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc.stdmaxfix
chromium-88.0.4324.182/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc
+---
chromium-88.0.4324.182/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc.stdmaxfix 2021-02-17
13:16:27.120283969 -0500
++++
chromium-88.0.4324.182/third_party/abseil-cpp/absl/debugging/failure_signal_handler.cc 2021-02-17
13:17:37.951617295 -0500
+@@ -135,7 +135,7 @@ static bool SetupAlternateStackOnce() {
+ #else
+ const size_t page_mask = sysconf(_SC_PAGESIZE) - 1;
+ #endif
+- size_t stack_size = (std::max(SIGSTKSZ, 65536) + page_mask) & ~page_mask;
++ size_t stack_size = (std::max(SIGSTKSZ, static_cast<long>(65536)) + page_mask)
& ~page_mask;
+ #if defined(ABSL_HAVE_ADDRESS_SANITIZER) || \
+ defined(ABSL_HAVE_MEMORY_SANITIZER) || defined(ABSL_HAVE_THREAD_SANITIZER)
+ // Account for sanitizer instrumentation requiring additional stack space.
+diff -up
chromium-88.0.4324.182/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc.stdmaxfix
chromium-88.0.4324.182/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
+---
chromium-88.0.4324.182/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc.stdmaxfix 2021-02-17
14:39:04.556382532 -0500
++++
chromium-88.0.4324.182/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc 2021-02-17
14:39:34.002519173 -0500
+@@ -138,7 +138,7 @@ void InstallAlternateStackLocked() {
+ // SIGSTKSZ may be too small to prevent the signal handlers from overrunning
+ // the alternative stack. Ensure that the size of the alternative stack is
+ // large enough.
+- static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
++ static const unsigned kSigStackSize = std::max(static_cast<long>(16384),
SIGSTKSZ);
+
+ // Only set an alternative stack if there isn't already one, or if the current
+ // one is too small.
Show replies by date