Source: abiword
Version: 3.0.5~dfsg-1
Severity: serious
Tags: ftbfs patch
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: i...@hack3r.moe

Dear maintainer,

abiword failed to build on armel, mipsel, hppa, ppc64, riscv64, sparc64 and x32
due to timeout of test located at `src/wp/test/unix`:

```
Making check in unix
make[6]: Entering directory '/<<PKGBUILDDIR>>/src/wp/test/unix'
make  AbiWord-test testwrap.sh-stamp testwrap.sh
make[7]: Entering directory '/<<PKGBUILDDIR>>/src/wp/test/unix'
g++ -std=c++11 -DHAVE_CONFIG_H -I. -I../../../..  -I/usr/include/libpng16 
-pthread -I/usr/include/wv -I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/enchant-2 -I/usr/include/libgsf-1 -I/usr/include/rasqal 
-I/usr/include/raptor2 -I/usr/include/evolution-data-server 
-I/usr/include/libsecret-1 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 
-I/usr/include/cairo -I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0 
-I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 
-I/usr/include/dbus-1.0 -I/usr/lib/riscv64-linux-gnu/dbus-1.0/include 
-I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cairo 
-I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 
-I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 
-I/usr/include/cairo -I/usr/include/librsvg-2.0 -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/riscv64-linux-gnu -I/usr/include/libmount -I/usr/include/blkid 
-I/usr/include/cairo -I/usr/include/glib-2.0 
-I/usr/lib/riscv64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 
-I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 
-I/usr/include/libgoffice-0.10 -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_0 
-I/usr/include -I../../../..  -I../../../../src/af/ev/gtk 
-I../../../../src/af/ev/xp -I../../../../src/af/gr/gtk 
-I../../../../src/af/gr/xp -I../../../../src/af/util/unix 
-I../../../../src/af/util/xp -I../../../../src/af/xap/gtk 
-I../../../../src/af/xap/xp -I../../../../src/text/fmt/gtk 
-I../../../../src/text/fmt/xp -I../../../../src/text/ptbl/xp 
-I../../../../src/wp/impexp/gtk -I../../../../src/wp/impexp/xp 
-I../../../../src/wp/ap/gtk -I../../../../src/wp/ap/xp 
-I../../../../src/plugins -DABIWORD_DATADIR="\"/usr/share/abiword-3.0\"" 
-I../../../../src/af/tf/xp/ -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra 
-Wsign-compare -Wpointer-arith -Wchar-subscripts -Wwrite-strings 
-Wmissing-noreturn -Wformat-overflow=2 -Wunused -Wpointer-arith -Wshadow  -g 
-O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wno-overloaded-virtual -MT AbiWord_test-test_main.o 
-MD -MP -MF .deps/AbiWord_test-test_main.Tpo -c -o AbiWord_test-test_main.o 
`test -f 'test_main.cpp' || echo './'`test_main.cpp
chmod a+x testwrap.sh
make[7]: 'testwrap.sh' is up to date.
touch testwrap.sh-stamp
In file included from test_main.cpp:21:
../xp/main.cpp:49:46: warning: macro "__TIME__" might prevent reproducible 
builds [-Wdate-time]
   49 | const char* XAP_App::s_szBuild_CompileTime = __TIME__;
      |                                              ^~~~~~~~
../xp/main.cpp:50:46: warning: macro "__DATE__" might prevent reproducible 
builds [-Wdate-time]
   50 | const char* XAP_App::s_szBuild_CompileDate = __DATE__;
      |                                              ^~~~~~~~
In file included from ../xp/all_test.h:29,
                 from ../xp/main.cpp:24:
../../../../src/text/ptbl/xp/t/pp_PropertyMap.t.cpp: In function ‘void 
_tftest_main_12()’:
../../../../src/text/ptbl/xp/t/pp_PropertyMap.t.cpp:34:24: warning: unused 
variable ‘map’ [-Wunused-variable]
   34 |         PP_PropertyMap map;
      |                        ^~~
mv -f .deps/AbiWord_test-test_main.Tpo .deps/AbiWord_test-test_main.Po
/bin/bash ../../../../libtool  --tag=CXX   --mode=link g++ -std=c++11  -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wno-overloaded-virtual -L../../../../src -labiword-3.0 
-L../../../../src/af/tf/xp -lxp -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o 
AbiWord-test AbiWord_test-test_main.o -lpng16 -lz -ljpeg -lfribidi 
-lgthread-2.0 -pthread -lwv -lz -lpng -lwmf -lwmflite -lfreetype -lX11 -lexpat 
-ljpeg -lpng -lz -lm -lgsf-1 -lxslt -lenchant-2 -lgoffice-0.10 -lrdf -lrasqal 
-lraptor2 -lebook-1.2 -ledata-book-1.2 -lebackend-1.2 -lebook-contacts-1.2 
-ledataserver-1.2 -lsecret-1 -lxml2 -lsoup-2.4 -Wl,--export-dynamic 
-lgmodule-2.0 -pthread -lical -licalss -licalvcal -lz -lgtk-3 -lgdk-3 
-lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lrsvg-2 -lm 
-lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lglib-2.0 -lcairo -lfontconfig 
-lfreetype -lX11 -ljpeg 
libtool: link: g++ -std=c++11 -g -O2 "-ffile-prefix-map=/<<PKGBUILDDIR>>=." 
-fstack-protector-strong -Wformat -Werror=format-security 
-Wno-overloaded-virtual -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/AbiWord-test 
AbiWord_test-test_main.o -Wl,--export-dynamic  -L../../../../src 
/<<PKGBUILDDIR>>/src/.libs/libabiword-3.0.so -L../../../../src/af/tf/xp 
/<<PKGBUILDDIR>>/src/af/tf/xp/.libs/libxp.a -Wl,--as-needed -lpng16 -lfribidi 
-lgthread-2.0 -lwv -lwmf -lwmflite -lexpat -lpng -lgsf-1 -lxslt -lenchant-2 
-lgoffice-0.10 /usr/lib/riscv64-linux-gnu/librdf.so -lrasqal -lraptor2 
-lebook-1.2 -ledata-book-1.2 -lebackend-1.2 -lebook-contacts-1.2 
-ledataserver-1.2 -lsecret-1 -lxml2 -lsoup-2.4 -lgmodule-2.0 -lical -licalss 
-licalvcal -lz -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz 
-latk-1.0 -lcairo-gobject -lrsvg-2 -lm -lgio-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 
-lglib-2.0 -lcairo -lfontconfig -lfreetype -lX11 -ljpeg -pthread
make[7]: Leaving directory '/<<PKGBUILDDIR>>/src/wp/test/unix'
make  check-TESTS
make[7]: Entering directory '/<<PKGBUILDDIR>>/src/wp/test/unix'
make[8]: Entering directory '/<<PKGBUILDDIR>>/src/wp/test/unix'
E: Build killed with signal TERM after 300 minutes of inactivity
--------------------------------------------------------------------
```

Full buildd log: https://buildd.debian.org/status/logs.php?pkg=abiword

Attached is a patch that disables the test and fixes FTBFS on those platforms.
Please let me know if I missed anything.

Cheers,
Eric

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-4-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Description: 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.
Author: Eric Long <i...@hack3r.moe>
Last-Update: 2022-08-30
--- 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

Reply via email to