blob: 35e2cce25380b308623ed3a625c59bd895c8c0ff (
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
|
# no Vala on i486
makedepends=(${makedepends[@]//vala/})
makedepends_i686+=(vala)
makedepends_pentium4=("${makedepends_i686[@]}")
if [ "$CARCH" = 'i486' ]; then
eval "$(
declare -f build | \
sed '
s@ -D vapi=true@ -D vapi=false@
'
)"
fi
# This is a dirty hack to prevent differing float precisions.
# See https://bugs.freedesktop.org/show_bug.cgi?id=102676
eval "$(
declare -f prepare | \
sed '
/^\s*}/i\
sed -i '\'' \
s/\\(g_assert_cmpfloat\\s*\\)(\\([^,]\\+\\),\\s*==\\s*,\\([^,()]\\+\\))/\\1(fabs((\\2)-(\\3)),<=,1e-15)/ \
'\'' lib/colord/cd-test-private.c \
'
)"
# no polkit, no js78, no rust, no potatoes on i486
if [ "$CARCH" = 'i486' ]; then
depends=(${depends[@]//polkit/})
eval "$(
declare -f build | \
sed '
s/arch-meson/arch-meson -D daemon=false/
'
)"
eval "$(
declare -f package_colord | \
sed '
/libcolord_sensor_sane.so/d
'
)"
# tests don't work on i486 (most likely because we disabled the daemon)
unset check
fi
|