blob: 9e2f792cbca00d650610f3136f4f8da6ac837638 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# target adaption (no clue how this ever worked before!?)
eval "$(
declare -f build | \
sed '
s/x86_64-unknown-linux-gnu/i686-unknown-linux-gnu/g
'
)"
# 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?
# 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-102.9.0-fdlibm.patch')
sha256sums+=('6fc1e1b2d95a9334fc132e47f66fc6832eefd8750d600480f92cccfff2c0e936')
eval "$(
declare -f prepare | \
sed '
$ i patch -p1 -i "$srcdir/firefox-102.9.0-fdlibm.patch"
'
)"
# see FS32#138, ignoring failing test for now
unset check
# no simd optimization on non-pentium4
if [ "$CARCH" = 'i486' -o "$CARCH" = 'i686' ]; then
eval "$(
declare -f build | \
sed '
s/--enable-rust-simd/--disable-rust-simd/g
'
)"
fi
# no rust on i486
if [ "$CARCH" = 'i486' ]; then
makedepends=(${makedepends[@]//rust/})
fi
# hard pinning rust version (as it fails with rust 1.50)
# this rust version now needs llvm11
#makedepends=(${makedepends[@]//rust/})
#makedepends_i686+=(rust148 llvm11)
#makedepends_pentium4+=(rust148 llvm11)
# rust is linked against old versions of LLVM and Openssl
# and cannot be rebuilt currently
if [ "$CARCH" = 'pentium4' -o "$CARCH" = 'i686' ]; then
makedepends+=(llvm14-libs)
makedepends+=(openssl-1.1)
fi
if [ "$CARCH" = 'i486' ]; then
makedepends+=(openssl-1.1)
fi
|