File: disable-some-unix-test.patch

package info (click to toggle)
abiword 3.0.7~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64,684 kB
  • sloc: cpp: 477,933; ansic: 16,754; makefile: 5,833; xml: 3,993; yacc: 1,818; lex: 1,104; perl: 812; python: 413; php: 183; sh: 160
file content (38 lines) | stat: -rw-r--r-- 1,022 bytes parent folder | download | duplicates (2)
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
From: Eric Long <i@hack3r.moe>
Date: Tue, 30 Aug 2022 16:14:28 +0800
Subject: Disable test src/wp/test/unix on several platforms

This test times out on armel, mipsel, hppa, ppc64, riscv64, sparc64 and x32.
Disabling it allows abiword package to be built on those platforms.

https://bugs.debian.org/1018753
---
 configure.ac            | 2 ++
 src/wp/test/Makefile.am | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

--- a/configure.ac
+++ b/configure.ac
@@ -1187,6 +1187,8 @@
 
 AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
 
+AM_CONDITIONAL([DISABLE_WP_UNIX_TEST], test $DEB_BUILD_ARCH && echo "armel mipsel hppa ppc64 riscv64 sparc64 x32 " | grep -o "$DEB_BUILD_ARCH ")
+
 AC_OUTPUT(
   libabiword.pc
   Makefile
--- a/src/wp/test/Makefile.am
+++ b/src/wp/test/Makefile.am
@@ -18,5 +18,10 @@
 
 #include $(top_srcdir)/includes.mk
 
-SUBDIRS= xp @PLATFORM@
+if DISABLE_WP_UNIX_TEST
+SUBDIRS = xp
+DIST_SUBDIRS = xp
+else
+SUBDIRS = xp @PLATFORM@
 DIST_SUBDIRS = unix xp
+endif