Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-09-12 16:05:20 +0200
committerErich Eckner <git@eckner.net>2017-09-12 16:05:20 +0200
commit9ac76d0824fa60634b07dc7ca264c2c150b53ce4 (patch)
treec290410d9666c245d8b03efcf21853ad17b69dbd
parentda41ec5ec702c8ee7fe0909cd25547cc46b1d8ab (diff)
extra/colord: dirty hack to circumvent differing float precision
-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 \
+ '
+)"