Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/colord/PKGBUILD12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/colord/PKGBUILD b/extra/colord/PKGBUILD
new file mode 100644
index 00000000..e8e298bb
--- /dev/null
+++ b/extra/colord/PKGBUILD
@@ -0,0 +1,12 @@
+# 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 \
+ '
+)"