diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-07 13:30:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-07 13:31:54 +0000 |
commit | 80ca1c093bcb7982de9424af9331edd0f49a110e (patch) | |
tree | a627df4438dd22882ce2d01ba45d677055cb5185 | |
parent | f812cc3cdc7b190f179239fa0dd9f7c3ba96a735 (diff) | |
download | aports-80ca1c093bcb7982de9424af9331edd0f49a110e.tar.bz2 aports-80ca1c093bcb7982de9424af9331edd0f49a110e.tar.xz |
community/goffice: workaround for testsuite on i386
Testsuite is broken on x86.
upstream: https://bugzilla.gnome.org/show_bug.cgi?id=794115
We do an ugly workaround for now.
-rw-r--r-- | community/goffice/APKBUILD | 7 | ||||
-rw-r--r-- | community/goffice/testsuite-workaround.patch | 28 |
2 files changed, 33 insertions, 2 deletions
diff --git a/community/goffice/APKBUILD b/community/goffice/APKBUILD index 8e2cbf44df..09a7805b99 100644 --- a/community/goffice/APKBUILD +++ b/community/goffice/APKBUILD @@ -13,7 +13,9 @@ makedepends="librsvg-dev intltool gtk+-dev autoconf automake libtool gtk-doc libxslt-dev gobject-introspection-dev glib-dev libgsf-dev cairo-dev libxml2-dev gtk+3.0-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" -source="https://download.gnome.org/sources/$pkgname/$_maj.$_min/$pkgname-$pkgver.tar.xz" +source="https://download.gnome.org/sources/$pkgname/$_maj.$_min/$pkgname-$pkgver.tar.xz + testsuite-workaround.patch + " prepare() { default_prepare @@ -44,4 +46,5 @@ package() { make DESTDIR="$pkgdir" install } -sha512sums="0d4a3465fc37ba46e04b12af8f8163348a03b144883765dce252f80502a771d066ce2d2c4d67425b0e8ad1caa3dd04fe49acdb7b2ec76edd4d3eabdb7da36254 goffice-0.10.37.tar.xz" +sha512sums="0d4a3465fc37ba46e04b12af8f8163348a03b144883765dce252f80502a771d066ce2d2c4d67425b0e8ad1caa3dd04fe49acdb7b2ec76edd4d3eabdb7da36254 goffice-0.10.37.tar.xz +1addcc0e3f1c4d908fbe4caf2a31a3ac8957f03ccce55f8a81f059ad8d40a79cb51a72ba33a57b027fce85f29b335c126f567cb0a8cef2f25d5cff79287655d4 testsuite-workaround.patch" diff --git a/community/goffice/testsuite-workaround.patch b/community/goffice/testsuite-workaround.patch new file mode 100644 index 0000000000..247e9427e8 --- /dev/null +++ b/community/goffice/testsuite-workaround.patch @@ -0,0 +1,28 @@ +ugly workaround for i386 +https://bugzilla.gnome.org/show_bug.cgi?id=794115 + +diff --git a/tests/test-quad.c b/tests/test-quad.c +index c33d416..3d45b4c 100644 +--- a/tests/test-quad.c ++++ b/tests/test-quad.c +@@ -300,6 +300,11 @@ static void + trig_tests (void) + { + double d; ++#if defined(i386) || defined(__i386__) || defined(__i386) ++#define MAX_TRIG_TEST 1 ++#else ++#define MAX_TRIG_TEST 10 ++#endif + + TEST1 (0); + TEST1 (0.25); +@@ -311,7 +316,7 @@ trig_tests (void) + TEST1 (-0.75); + TEST1 (-1); + +- for (d = 0; d < 10; d += 0.125) { ++ for (d = 0; d < MAX_TRIG_TEST; d += 0.125) { + TEST2(d); + TEST2(-d); + } |