[packages/firefox] try to fix build on i686
atler
atler at pld-linux.org
Tue Oct 18 20:47:06 CEST 2022
commit bec2238982539b4c7172272cf49c9ccca618df2f
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Oct 18 20:40:44 2022 +0200
try to fix build on i686
aec3 in libwebrtc tries to use sse on all x86 but does not appear to
enforce compiler flag for x86
firefox.spec | 2 ++
x86-flags.patch | 13 +++++++++++++
2 files changed, 15 insertions(+)
---
diff --git a/firefox.spec b/firefox.spec
index 0673cba..e397826 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -256,6 +256,7 @@ Source196: https://releases.mozilla.org/pub/firefox/releases/%{version}/linux-i6
# Source196-md5: d293727af26a20c1a883667ee06dcd3f
Source197: https://releases.mozilla.org/pub/firefox/releases/%{version}/linux-i686/xpi/zh-TW.xpi
# Source197-md5: de11ece098f9cbca048bbec6b3654c6f
+Patch0: x86-flags.patch
Patch4: %{name}-prefs.patch
Patch5: %{name}-pld-bookmarks.patch
Patch6: %{name}-no-subshell.patch
@@ -2118,6 +2119,7 @@ unpack() {
%define __unzip unpack
%setup -q %(seq -f '-a %g' 100 197 | xargs)
+%patch0 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p2
diff --git a/x86-flags.patch b/x86-flags.patch
new file mode 100644
index 0000000..3cce7a6
--- /dev/null
+++ b/x86-flags.patch
@@ -0,0 +1,13 @@
+--- firefox-106.0/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build.orig 2022-10-10 18:05:26.000000000 +0200
++++ firefox-106.0/third_party/libwebrtc/modules/audio_processing/aec3/aec3_gn/moz.build 2022-10-18 20:28:44.724270714 +0200
+@@ -258,6 +258,10 @@
+
+ if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
+
++ CXXFLAGS += [
++ "-msse2"
++ ]
++
+ DEFINES["WEBRTC_ENABLE_AVX2"] = True
+ DEFINES["_GNU_SOURCE"] = True
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/firefox.git/commitdiff/bec2238982539b4c7172272cf49c9ccca618df2f
More information about the pld-cvs-commit
mailing list