[chromium-browser-privacy: 37/103] Add wildcard for gitignore
by qvint
commit 16c42b63ff3a12c942de65b4dbea08e48125a8c4
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sat Apr 6 00:53:26 2019 +0200
Add wildcard for gitignore
.gitignore | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index d91289e..e912076 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,12 +1 @@
-/chromium-69.0.3497.100.tar.xz
-/chromium-70.0.3538.67.tar.xz
-/chromium-70.0.3538.77.tar.xz
-/chromium-70.0.3538.102.tar.xz
-/chromium-70.0.3538.110.tar.xz
-/chromium-71.0.3578.80.tar.xz
-/chromium-71.0.3578.98.tar.xz
-/chromium-72.0.3626.81.tar.xz
-/chromium-72.0.3626.109.tar.xz
-/chromium-72.0.3626.121.tar.xz
-/chromium-73.0.3683.75.tar.xz
-/chromium-73.0.3683.103.tar.xz
+chromium-*.tar.xz
5 years, 1 month
[chromium-browser-privacy: 36/103] Update to 73.0.3683.103.
by qvint
commit 5e4b736a150a5ead5bfc014654968125d927f064
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Fri Apr 5 10:58:38 2019 +0300
Update to 73.0.3683.103.
chromium-vaapi.spec | 7 +++++--
sources | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/chromium-vaapi.spec b/chromium-vaapi.spec
index 70226a0..bab2823 100644
--- a/chromium-vaapi.spec
+++ b/chromium-vaapi.spec
@@ -67,8 +67,8 @@
%global ozone 0
##############################Package Definitions######################################
Name: chromium-vaapi
-Version: 73.0.3683.86
-Release: 2%{?dist}
+Version: 73.0.3683.103
+Release: 1%{?dist}
Summary: A Chromium web browser with video decoding acceleration
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
@@ -691,6 +691,9 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/locales/*.pak
#########################################changelogs#################################################
%changelog
+* Fri Apr 05 2019 Vasiliy N. Glazov <vascom2(a)gmail.com> - 73.0.3683.103-1
+- Update to 73.0.3683.103
+
* Tue Mar 26 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> - 73.0.3683.86-2
- Switched to GNU ar and nm to work around a bug in the current llvm in f30 #rhbz 1685029
- Pipewire flag added to enable it by default on Fedora
diff --git a/sources b/sources
index 50c63e7..784a21d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-eac0227103881604469a52ff76c251a6 chromium-73.0.3683.86.tar.xz
+6614c55c213b9348ce7f4d072fe0a848 chromium-73.0.3683.103.tar.xz
5 years, 1 month
[chromium-browser-privacy: 35/103] Update to 73.0.3683.103.
by qvint
commit 8bf777fd96f79d67cf87c97a100be989a613bbd8
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Fri Apr 5 09:51:12 2019 +0300
Update to 73.0.3683.103.
.gitignore | 1 +
chromium-vaapi.spec | 7 +++++--
sources | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 5e5feff..d91289e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/chromium-72.0.3626.109.tar.xz
/chromium-72.0.3626.121.tar.xz
/chromium-73.0.3683.75.tar.xz
+/chromium-73.0.3683.103.tar.xz
diff --git a/chromium-vaapi.spec b/chromium-vaapi.spec
index bf884c3..bfa0498 100644
--- a/chromium-vaapi.spec
+++ b/chromium-vaapi.spec
@@ -67,8 +67,8 @@
%global ozone 0
##############################Package Definitions######################################
Name: chromium-vaapi
-Version: 73.0.3683.86
-Release: 3%{?dist}
+Version: 73.0.3683.103
+Release: 1%{?dist}
Summary: A Chromium web browser with video decoding acceleration
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
@@ -687,6 +687,9 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/locales/*.pak
#########################################changelogs#################################################
%changelog
+* Fri Apr 05 2019 Vasiliy N. Glazov <vascom2(a)gmail.com> - 73.0.3683.103-1
+- Update to 73.0.3683.103
+
* Tue Apr 02 2019 Vasiliy N. Glazov <vascom2(a)gmail.com> - 73.0.3683.86-3
- Revert switching to GNU ar and nm
diff --git a/sources b/sources
index 50c63e7..784a21d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-eac0227103881604469a52ff76c251a6 chromium-73.0.3683.86.tar.xz
+6614c55c213b9348ce7f4d072fe0a848 chromium-73.0.3683.103.tar.xz
5 years, 1 month
[chromium-browser-privacy: 34/103] Revert switching to GNU ar and nm.
by qvint
commit 45601a91ac41ee7c7941d68ef77e43d797c28b1d
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Tue Apr 2 10:12:42 2019 +0300
Revert switching to GNU ar and nm.
chromium-vaapi.spec | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/chromium-vaapi.spec b/chromium-vaapi.spec
index 70226a0..bf884c3 100644
--- a/chromium-vaapi.spec
+++ b/chromium-vaapi.spec
@@ -68,7 +68,7 @@
##############################Package Definitions######################################
Name: chromium-vaapi
Version: 73.0.3683.86
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A Chromium web browser with video decoding acceleration
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
@@ -489,11 +489,7 @@ sed -i.orig -e 's/getenv("CHROME_VERSION_EXTRA")/"%{name}"/' $FILE
#####################################BUILD#############################################
%build
#export compilar variables
-%if 0%{?fedora} > 29
-export AR=ar NM=nm
-%else
export AR=llvm-ar NM=llvm-nm AS=llvm-as
-%endif
export CC=clang CXX=clang++
%if %{fedora_compilation_flags}
#Build flags to make hardened binaries
@@ -691,6 +687,9 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/locales/*.pak
#########################################changelogs#################################################
%changelog
+* Tue Apr 02 2019 Vasiliy N. Glazov <vascom2(a)gmail.com> - 73.0.3683.86-3
+- Revert switching to GNU ar and nm
+
* Tue Mar 26 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> - 73.0.3683.86-2
- Switched to GNU ar and nm to work around a bug in the current llvm in f30 #rhbz 1685029
- Pipewire flag added to enable it by default on Fedora
5 years, 1 month
[chromium-browser-privacy: 33/103] Fix date in changelog.
by qvint
commit e95373046d12c8ab7097a9b96ac7ed643fd78ca4
Author: vmuser <vmuser(a)vmfedora.biswasab.org>
Date: Tue Mar 26 18:36:57 2019 +0530
Fix date in changelog.
chromium-vaapi.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/chromium-vaapi.spec b/chromium-vaapi.spec
index f4f286f..70226a0 100644
--- a/chromium-vaapi.spec
+++ b/chromium-vaapi.spec
@@ -691,7 +691,7 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/locales/*.pak
#########################################changelogs#################################################
%changelog
-* Fri Mar 26 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> - 73.0.3683.86-2
+* Tue Mar 26 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> - 73.0.3683.86-2
- Switched to GNU ar and nm to work around a bug in the current llvm in f30 #rhbz 1685029
- Pipewire flag added to enable it by default on Fedora
5 years, 1 month
[chromium-browser-privacy: 32/103] Switched to GNU ar and nm to work around a bug in the current llvm in f30 #rhbz 1685029 Pipewire fla
by qvint
commit 27d814154739af17034354b1052b5af9c184ca42
Author: vmuser <vmuser(a)vmfedora.biswasab.org>
Date: Tue Mar 26 18:12:20 2019 +0530
Switched to GNU ar and nm to work around a bug in the current llvm in f30 #rhbz 1685029
Pipewire flag added to enable it by default on Fedora
chromium-vaapi.sh | 1 +
chromium-vaapi.spec | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/chromium-vaapi.sh b/chromium-vaapi.sh
index eb017a5..12770d7 100644
--- a/chromium-vaapi.sh
+++ b/chromium-vaapi.sh
@@ -56,6 +56,7 @@ exec 2> >(exec cat >&2)
CHROMIUM_DISTRO_FLAGS+=" --enable-plugins \
--enable-extensions \
--enable-user-scripts \
+ --enable-features=WebRTCPipeWireCapturer \
--enable-printing \
--enable-gpu-rasterization \
--enable-sync"
diff --git a/chromium-vaapi.spec b/chromium-vaapi.spec
index 9e37c54..f4f286f 100644
--- a/chromium-vaapi.spec
+++ b/chromium-vaapi.spec
@@ -68,7 +68,7 @@
##############################Package Definitions######################################
Name: chromium-vaapi
Version: 73.0.3683.86
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A Chromium web browser with video decoding acceleration
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
@@ -489,7 +489,11 @@ sed -i.orig -e 's/getenv("CHROME_VERSION_EXTRA")/"%{name}"/' $FILE
#####################################BUILD#############################################
%build
#export compilar variables
+%if 0%{?fedora} > 29
+export AR=ar NM=nm
+%else
export AR=llvm-ar NM=llvm-nm AS=llvm-as
+%endif
export CC=clang CXX=clang++
%if %{fedora_compilation_flags}
#Build flags to make hardened binaries
@@ -687,6 +691,10 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/locales/*.pak
#########################################changelogs#################################################
%changelog
+* Fri Mar 26 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> - 73.0.3683.86-2
+- Switched to GNU ar and nm to work around a bug in the current llvm in f30 #rhbz 1685029
+- Pipewire flag added to enable it by default on Fedora
+
* Fri Mar 22 2019 Vasiliy N. Glazov <vascom2(a)gmail.com> - 73.0.3683.86-1
- Update to 73.0.3683.86
5 years, 1 month
[chromium-browser-privacy: 31/103] Update source file.
by qvint
commit 4d4d9b4c5539d20ddbc7222a0bd0b9fe3f2797b5
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Fri Mar 22 12:08:01 2019 +0300
Update source file.
sources | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sources b/sources
index c6e000d..50c63e7 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-5acadb18a18526beaa8f49982be57c5d chromium-73.0.3683.75.tar.xz
+eac0227103881604469a52ff76c251a6 chromium-73.0.3683.86.tar.xz
5 years, 1 month
[chromium-browser-privacy: 30/103] Update to 73.0.3683.86. Disable debug logs.
by qvint
commit f149ea0a80a456f726e922fc4531cc113db93fad
Author: Vasiliy Glazov <vascom2(a)gmail.com>
Date: Fri Mar 22 11:59:27 2019 +0300
Update to 73.0.3683.86. Disable debug logs.
chromium-vaapi.spec | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/chromium-vaapi.spec b/chromium-vaapi.spec
index 176e346..9e37c54 100644
--- a/chromium-vaapi.spec
+++ b/chromium-vaapi.spec
@@ -52,7 +52,7 @@
%bcond_with system_re2
#Turn on verbose mode
-%global debug_logs 1
+%global debug_logs 0
#Allow jumbo builds
# Enabled by default
%global jumbo 1
@@ -67,8 +67,8 @@
%global ozone 0
##############################Package Definitions######################################
Name: chromium-vaapi
-Version: 73.0.3683.75
-Release: 2%{?dist}
+Version: 73.0.3683.86
+Release: 1%{?dist}
Summary: A Chromium web browser with video decoding acceleration
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
@@ -687,6 +687,9 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/locales/*.pak
#########################################changelogs#################################################
%changelog
+* Fri Mar 22 2019 Vasiliy N. Glazov <vascom2(a)gmail.com> - 73.0.3683.86-1
+- Update to 73.0.3683.86
+
* Fri Mar 15 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> 73.0.3683.75-2
- Enable pipewire support
- Added a patch from fedora to fix building with pipewire support
5 years, 1 month
[chromium-browser-privacy: 29/103] Switched to clang compiler which is supported by upstream
by qvint
commit 8b7b9e00e0c3531074fc2a2df3784aa227c98855
Author: Akarshan Biswas <akarshan.biswas(a)gmail.com>
Date: Sun Mar 17 09:41:03 2019 +0530
Switched to clang compiler which is supported by upstream
...atch => chromium-color_utils-use-std-sqrt.patch | 5 +-
chromium-gcc8-r630084.patch | 108 ---------------------
chromium-gcc8-r630249.patch | 69 -------------
chromium-gcc8-r630355.patch | 99 -------------------
chromium-gcc8-r631472.patch | 59 -----------
chromium-gcc8-r631962.patch | 65 -------------
chromium-gcc8-r632385.patch | 100 -------------------
chromium-media-fix-build-with-libstdc++.patch | 48 +++++++++
chromium-vaapi.spec | 54 +++++------
gn-gold.patch | 24 -----
silencegcc.patch | 31 ------
11 files changed, 73 insertions(+), 589 deletions(-)
---
diff --git a/chromium-gcc8-r630140.patch b/chromium-color_utils-use-std-sqrt.patch
similarity index 97%
rename from chromium-gcc8-r630140.patch
rename to chromium-color_utils-use-std-sqrt.patch
index 9d1f05a..0f3dbf6 100644
--- a/chromium-gcc8-r630140.patch
+++ b/chromium-color_utils-use-std-sqrt.patch
@@ -34,7 +34,7 @@ Cr-Commit-Position: refs/heads/master@{#630140}
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/gfx/color_utils.cc b/ui/gfx/color_utils.cc
-index c868cd54bac3..92ba1407d594 100644
+index c868cd54bac3f..92ba1407d594f 100644
--- a/ui/gfx/color_utils.cc
+++ b/ui/gfx/color_utils.cc
@@ -431,7 +431,7 @@ SkColor SetDarkestColorForTesting(SkColor color) {
@@ -46,6 +46,3 @@ index c868cd54bac3..92ba1407d594 100644
return previous_darkest_color;
}
---
-2.20.1
-
diff --git a/chromium-media-fix-build-with-libstdc++.patch b/chromium-media-fix-build-with-libstdc++.patch
new file mode 100644
index 0000000..e6ea91c
--- /dev/null
+++ b/chromium-media-fix-build-with-libstdc++.patch
@@ -0,0 +1,48 @@
+From d4824fb46a07f3dbecf6358020f0f0da2c586475 Mon Sep 17 00:00:00 2001
+From: Tom Anderson <thomasanderson(a)chromium.org>
+Date: Sat, 16 Feb 2019 05:35:55 +0000
+Subject: [PATCH] Fix build with libstdc++
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+When building with libstdc++ (use_custom_libcxx=false), we get (different) build
+erros when building with clang and gcc.
+
+clang:
+ base/optional.h:348:61: error: no member named 'value' in
+ 'std::is_constructible<media::learning::Value, const
+ base::Optional<media::learning::Value> &>'
+
+gcc:
+ base/optional.h:347:57: error: incomplete type
+ ‘std::is_constructible<media::learning::Value,
+ base::Optional<media::learning::Value>&>’ used in nested name specifier
+
+BUG=931373
+
+Change-Id: I133ff4f30398202b5726c605fafee8aa916179d3
+Reviewed-on: https://chromium-review.googlesource.com/c/1475936
+Auto-Submit: Thomas Anderson <thomasanderson(a)chromium.org>
+Commit-Queue: Frank Liberato <liberato(a)chromium.org>
+Reviewed-by: Frank Liberato <liberato(a)chromium.org>
+Cr-Original-Commit-Position: refs/heads/master@{#632921}
+Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
+Cr-Mirrored-Commit: 08b9fbc728043c89f21af46796bacd7324b7ce06
+---
+ media/learning/common/value.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/media/learning/common/value.h b/learning/common/value.h
+index 62f4953f6..ef37eebd4 100644
+--- a/media/learning/common/value.h
++++ b/media/learning/common/value.h
+@@ -27,7 +27,7 @@ class COMPONENT_EXPORT(LEARNING_COMMON) Value {
+ public:
+ Value();
+ template <typename T>
+- explicit Value(T x) : value_(x) {
++ explicit Value(const T& x) : value_(x) {
+ // We want to rule out mostly pointers, since they wouldn't make much sense.
+ // Note that the implicit cast would likely fail anyway.
+ static_assert(std::is_arithmetic<T>::value || std::is_enum<T>::value,
diff --git a/chromium-vaapi.spec b/chromium-vaapi.spec
index 171a17b..176e346 100644
--- a/chromium-vaapi.spec
+++ b/chromium-vaapi.spec
@@ -58,7 +58,7 @@
%global jumbo 1
#------------------------------------------------------
#Build debug packages for debugging
-%global debug_pkg 1
+%global debug_pkg 0
#Allow building with Fedora compilation flags
%global fedora_compilation_flags 0
# Gold switch
@@ -101,8 +101,8 @@ Source15: LICENSE
########################################################################################
#Compiler settings
# Make sure we don't encounter any bug
-BuildRequires: gcc
-BuildRequires: gcc-c++
+BuildRequires: clang, llvm
+BuildRequires: lld
# Basic tools and libraries needed for building
BuildRequires: ninja-build, nodejs, bison, gperf, hwdata
BuildRequires: libgcc, glibc, libatomic
@@ -194,19 +194,6 @@ ExclusiveArch: x86_64
Patch1: enable-vaapi.patch
# Enable support for widevine
Patch2: widevine.patch
-#Gcc patches area.
-#Gcc produces way too many warnings. Try to silence some of it.
-Patch8: silencegcc.patch
-# More patches to fix chromium build here
-#Gentoo patches
-Patch9: chromium-gcc8-r630084.patch
-Patch10: chromium-gcc8-r630140.patch
-Patch11: chromium-gcc8-r630249.patch
-Patch12: chromium-gcc8-r630355.patch
-Patch13: chromium-gcc8-r631472.patch
-Patch14: chromium-gcc8-r631962.patch
-Patch15: chromium-gcc8-r632385.patch
-# remove dependency on unrar. That's a nasty code.
Patch50: nounrar.patch
# Bootstrap still uses python command
Patch51: py2-bootstrap.patch
@@ -214,13 +201,14 @@ Patch51: py2-bootstrap.patch
Patch52: chromium-system-icu.patch
# Let's brand chromium!
Patch54: brand.patch
-#Use gold in gn bootstrap
-Patch64: gn-gold.patch
#Stolen from Fedora to fix building with pipewire
# https://src.fedoraproject.org/rpms/chromium/blob/master/f/chromium-73.0.3...
Patch65: chromium-73.0.3683.75-pipewire-cstring-fix.patch
# Stop Vsync error spam when chromium runs on Wayland (Reviewed upstream)
Patch66: stopVsyncspam.patch
+#Fix chromium color
+Patch67: chromium-color_utils-use-std-sqrt.patch
+Patch68: chromium-media-fix-build-with-libstdc++.patch
%description
chromium-vaapi is an open-source web browser, powered by WebKit (Blink)
############################################PREP###########################################################
@@ -229,14 +217,6 @@ chromium-vaapi is an open-source web browser, powered by WebKit (Blink)
## Apply patches here ##
%patch1 -p1 -b .vaapi
%patch2 -p1 -b .widevine
-%patch8 -p1 -b .silencegcc
-%patch9 -p1 -b .gcc81
-%patch10 -p1 -b .gcc82
-%patch11 -p1 -b .gcc83
-%patch12 -p1 -b .gcc84
-%patch13 -p1 -b gcc85
-%patch14 -p1 -b .gcc86
-%patch15 -p1 -b .gcc87
%patch50 -p1 -b .nounrar
%patch51 -p1 -b .py2boot
%if %{with system_libicu}
@@ -245,11 +225,13 @@ chromium-vaapi is an open-source web browser, powered by WebKit (Blink)
%if %{freeworld}
%patch54 -p1 -b .brand
%endif
-%patch64 -p1 -b .gn
+#%patch64 -p1 -b .gn
%if 0%{?fedora} >= 29
%patch65 -p1 -b .pipewire
%endif
%patch66 -p1 -b .vsync
+%patch67 -p1 -b .color
+%patch68 -p1 -b .media
#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}=' {} +
./build/linux/unbundle/remove_bundled_libraries.py --do-remove \
@@ -485,6 +467,12 @@ sed -i 's|//third_party/usb_ids|/usr/share/hwdata|g' device/usb/BUILD.gn
# Don't use static libstdc++
sed -i '/-static-libstdc++/d' tools/gn/build/gen.py
+# Remove compiler flags not supported by our system clang
+ sed -i \
+ -e '/"-Wno-ignored-pragma-optimize"/d' \
+ build/config/compiler/BUILD.gn
+
+
rmdir third_party/markupsafe
ln -s %{python2_sitearch}/markupsafe third_party/markupsafe
@@ -501,8 +489,8 @@ sed -i.orig -e 's/getenv("CHROME_VERSION_EXTRA")/"%{name}"/' $FILE
#####################################BUILD#############################################
%build
#export compilar variables
-export AR=ar NM=nm
-export CC=gcc CXX=g++
+export AR=llvm-ar NM=llvm-nm AS=llvm-as
+export CC=clang CXX=clang++
%if %{fedora_compilation_flags}
#Build flags to make hardened binaries
#Remove some flags which are incompatible with chromium code.
@@ -566,11 +554,17 @@ gn_args=(
# Gold is faulty on rawhide so disabled it.
gn_args+=(
is_clang=false
- use_lld=false
+ use_lld=true
%if %{stopgold}
use_gold=false
%endif
)
+#compiler settings
+gn_args+=(
+ is_clang=true
+ 'clang_base_path = "/usr"'
+ clang_use_chrome_plugins=false
+)
#Jumbo stuff
gn_args+=(
%if %{jumbo}
5 years, 1 month
[chromium-browser-privacy: 27/103] Enable pipewire support Added a patch from fedora to fix building with pipewire support
by qvint
commit eba61dc9fbd93342770437ee95ae6de53ce7f233
Author: Akarshan Biswas <akarshan.biswas(a)gmail.com>
Date: Fri Mar 15 19:45:06 2019 +0530
Enable pipewire support
Added a patch from fedora to fix building with pipewire support
chromium-73.0.3683.75-pipewire-cstring-fix.patch | 11 ++++++++++
chromium-vaapi.spec | 26 ++++++++++++++++++++++--
2 files changed, 35 insertions(+), 2 deletions(-)
---
diff --git a/chromium-73.0.3683.75-pipewire-cstring-fix.patch b/chromium-73.0.3683.75-pipewire-cstring-fix.patch
new file mode 100644
index 0000000..ce8b70b
--- /dev/null
+++ b/chromium-73.0.3683.75-pipewire-cstring-fix.patch
@@ -0,0 +1,11 @@
+diff -up chromium-73.0.3683.75/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc.cstringfix chromium-73.0.3683.75/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc
+--- chromium-73.0.3683.75/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc.cstringfix 2019-03-13 13:04:25.290842447 -0400
++++ chromium-73.0.3683.75/third_party/webrtc/modules/desktop_capture/linux/base_capturer_pipewire.cc 2019-03-13 13:05:13.234897441 -0400
+@@ -18,6 +18,7 @@
+ #include <spa/param/video/raw-utils.h>
+ #include <spa/support/type-map.h>
+
++#include <cstring>
+ #include <memory>
+ #include <utility>
+
diff --git a/chromium-vaapi.spec b/chromium-vaapi.spec
index 4d884a3..9e4217f 100644
--- a/chromium-vaapi.spec
+++ b/chromium-vaapi.spec
@@ -52,7 +52,7 @@
%bcond_with system_re2
#Turn on verbose mode
-%global debug_logs 0
+%global debug_logs 1
#Allow jumbo builds
# Enabled by default
%global jumbo 1
@@ -68,7 +68,7 @@
##############################Package Definitions######################################
Name: chromium-vaapi
Version: 73.0.3683.75
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A Chromium web browser with video decoding acceleration
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
@@ -111,6 +111,10 @@ BuildRequires: mesa-libGL-devel, mesa-libEGL-devel
%if %{with system_minizip}
BuildRequires: minizip-devel
%endif
+# Pipewire need this.
+%if 0%{?fedora} >= 29
+BuildRequires: pkgconfig(libpipewire-0.2)
+%endif
BuildRequires: pkgconfig(gtk+-2.0), pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libexif), pkgconfig(nss)
BuildRequires: pkgconfig(xtst), pkgconfig(xscrnsaver)
@@ -212,6 +216,9 @@ Patch52: chromium-system-icu.patch
Patch54: brand.patch
#Use gold in gn bootstrap
Patch64: gn-gold.patch
+#Stolen from Fedora to fix building with pipewire
+# https://src.fedoraproject.org/rpms/chromium/blob/master/f/chromium-73.0.3...
+Patch65: chromium-73.0.3683.75-pipewire-cstring-fix.patch
%description
chromium-vaapi is an open-source web browser, powered by WebKit (Blink)
############################################PREP###########################################################
@@ -237,6 +244,9 @@ chromium-vaapi is an open-source web browser, powered by WebKit (Blink)
%patch54 -p1 -b .brand
%endif
%patch64 -p1 -b .gn
+%if 0%{?fedora} >= 29
+%patch65 -p1 -b .pipewire
+%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}=' {} +
./build/linux/unbundle/remove_bundled_libraries.py --do-remove \
@@ -567,6 +577,13 @@ gn_args+=(
%endif
)
+#Pipewire
+gn_args+=(
+%if 0%{?fedora} >= 29
+ rtc_use_pipewire=true
+ rtc_link_pipewire=true
+%endif
+)
# Ozone stuff
# Tracking bug : https://github.com/Igalia/chromium/issues/512
@@ -673,10 +690,15 @@ appstream-util validate-relax --nonet "%{buildroot}%{_metainfodir}/%{name}.appda
%{chromiumdir}/locales/*.pak
#########################################changelogs#################################################
%changelog
+* Fri Mar 15 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> 73.0.3683.75-2
+- Enable pipewire support
+- Added a patch from fedora to fix building with pipewire support
+
* Fri Mar 15 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> 73.0.3683.75-1
- Update to 73.0.3683.75
- Update BuildRequires for ozone, libva; used pkgconfig instead
+
* Sun Mar 03 2019 Akarshan Biswas <akarshanbiswas(a)fedoraproject.org> 72.0.3626.121-1
- Updated to 72.0.3626.121
- spec cleanup
5 years, 1 month