From 9ac76d0824fa60634b07dc7ca264c2c150b53ce4 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 12 Sep 2017 16:05:20 +0200 Subject: extra/colord: dirty hack to circumvent differing float precision --- extra/colord/PKGBUILD | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 extra/colord/PKGBUILD (limited to 'extra/colord') 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 \ + ' +)" -- cgit v1.2.3-70-g09d2