Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/firefox/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-10-24 20:55:48 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-10-24 20:55:48 +0200
commit27e0f91bae59415b7f35ad9a88cd90bb421838c5 (patch)
tree131967568ae9ae7be04d4d1814984c999cb66e0e /extra/firefox/PKGBUILD
parent26eba053340134c0395de8a3f7afcd076e2c18bb (diff)
extra/firefox: AVX2 patch, using gcc 12, bfd linker and fdlibm float_t patching
Diffstat (limited to 'extra/firefox/PKGBUILD')
-rw-r--r--extra/firefox/PKGBUILD31
1 files changed, 20 insertions, 11 deletions
diff --git a/extra/firefox/PKGBUILD b/extra/firefox/PKGBUILD
index 62882c10..5d98c763 100644
--- a/extra/firefox/PKGBUILD
+++ b/extra/firefox/PKGBUILD
@@ -4,7 +4,7 @@
# set correct compiler and toochain tools
if [ "${CARCH}" = "pentium4" ]; then
source+=('mozconfig-pentium4.patch')
- sha256sums+=('e0d62cbed819264cb000a73260201c357a72ce0abcf9eaede3588f270a566f9a')
+ sha256sums+=('c8b5376c4ee3f7dec4c9fe2b81434df4e2f5dd7caa99c8bf4371aec3c32233af')
eval "$(
declare -f prepare | \
sed '
@@ -14,7 +14,7 @@ eval "$(
fi
if [ "${CARCH}" = "i686" ]; then
source+=('mozconfig-i686.patch')
- sha256sums+=('9cdfa0d20ffaf1102b16e4cf97add8819939647316e4c7d65d642e2a7cea1ad0')
+ sha256sums+=('268dce3de0396e6a9529b9105c2c00f06fbe9e8b666f886893d22f569735820a')
eval "$(
declare -f prepare | \
sed '
@@ -28,7 +28,7 @@ eval "$(
declare -f build | \
sed '
2 a export RUSTFLAGS+=" -Cdebuginfo=0 -Clto=off"
- 2 a export LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
+ 2 a export LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads -Wl,--max-cache-size=16384000 "
'
declare -f prepare | \
sed '
@@ -209,12 +209,16 @@ eval "$(
# 214:49.30 /build/firefox/src/firefox-99.0.1/modules/fdlibm/src/math_private.h:34:21: error: conflicting
# declaration ?typedef __double_t double_t?
-source+=('firefox-99.0.1-fdlibm-double.patch')
-sha256sums+=('62695e56daf8c0b8bb921980d475b3fd169b9134188ad9ffaeb9cd660589c23d')
+# and
+# typedef __float_t float_t;
+# /usr/include/math.h:169:21: note: previous declaration as ?typedef long double float_t?
+# typedef long double float_t;
+source+=('firefox-106.0.1-fdlibm.patch')
+sha256sums+=('ddc0945f2414828668dd922b6b8203f7fb54d7b1f0aac3e18299bccb5c2facab')
eval "$(
declare -f prepare | \
sed '
- $ i patch -p1 -i "$srcdir/firefox-99.0.1-fdlibm-double.patch"
+ $ i patch -p1 -i "$srcdir/firefox-106.0.1-fdlibm.patch"
'
)"
@@ -229,8 +233,13 @@ eval "$(
'
)"
-# 105.0.x has issues with AVX2 creeping everywhere, let's build 104 for now (and hope they fix it)
-sed -i '
- s/^pkgver=105.0.1$/pkgver=104.0.2/
-' PKGBUILD
-sha256sums[0]='72bba06f04e7745f6b02951906413eb1c15a7e253e06e373302162c6219f286a'
+# disable AVX2 the brutal way
+source+=('simd_avx2.patch')
+sha256sums+=('e68f8a9858f14a75813df608510e1f8143fd6eb1fcf233df8239d16d935e80f8')
+eval "$(
+ declare -f prepare | \
+ sed '
+ $ i patch -p1 -i "$srcdir/simd_avx2.patch"
+ '
+)"
+