Package: poppler
Version: 0.24.5-4
Severity: normal
Tags: patch
User: [email protected]
Usertags: ppc64el
User: [email protected]
Usertags: autoreconf
Currently poppler FTBFS when compiled in new architectures (as ppc64el) that is
not supported on the outdated package autotools files, with the following
error:
/usr/bin/ld: /«PKGBUILDDIR»/poppler/.libs/libpoppler.a(GfxState.o):
undefined reference to symbol 'hypot@@GLIBC_2.17'
//lib/powerpc64le-linux-gnu/libm.so.6: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
linking of temporary binary failed: Command '['/bin/bash',
'../libtool', '--mode=link', '--tag=CC', 'gcc', '-o',
'/«PKGBUILDDIR»/glib/tmp-introspect_4dmE3/Poppler-0.18', '-export-dynamic',
'-Wall', '-g', '-O2', '-fPIE', '-fstack-protector',
'--param=ssp-buffer-size=4', '-Wformat', '-Werror=format-security', '-fPIE',
'-pie', '-Wl,-z,relro', '-Wl,-z,now', '-Wl,--as-needed',
'/«PKGBUILDDIR»/glib/tmp-introspect_4dmE3/Poppler-0.18.o', '-L.',
'libpoppler-glib.la', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic',
'-lgmodule-2.0', '-pthread', '-lglib-2.0']' returned non-zero exit status 1
make[5]: *** [Poppler-0.18.gir] Error 1
make[5]: Leaving directory `/«PKGBUILDDIR»/glib'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/«PKGBUILDDIR»/glib'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/«PKGBUILDDIR»/glib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/«PKGBUILDDIR»'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/«PKGBUILDDIR»'
dh_auto_build: make -j1 returned exit code 2
The full log could be found at
http://ftp.unicamp.br/pub/ppc64el/debian/buildd-upstream/build_logs/logs/poppler_0.24.5-4_ppc64el.build
I created this patch that call autoreconf to updates the autotool files during
the build, as suggest by the following wiki:
https://wiki.debian.org/qa.debian.org/FTBFS#A2014-01-21_using_dh-autoreconf_during_the_build
I tested it on ppc64el and it worked.
Thank you,
Breno
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)
Kernel: Linux 3.13-1-powerpc64le (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: poppler-0.24.5/debian/control
===================================================================
--- poppler-0.24.5.orig/debian/control 2014-05-24 12:32:41.000000000 +0000
+++ poppler-0.24.5/debian/control 2014-06-30 18:08:42.000000000 +0000
@@ -8,7 +8,7 @@
Pino Toscano <[email protected]>
Build-Depends: debhelper (>= 9),
dpkg (>= 1.16.1),
- autotools-dev,
+ dh-autoreconf,
libglib2.0-dev (>= 2.18),
libgtk2.0-dev (>= 2.12),
libfontconfig1-dev,
Index: poppler-0.24.5/debian/rules
===================================================================
--- poppler-0.24.5.orig/debian/rules 2014-05-24 12:43:40.000000000 +0000
+++ poppler-0.24.5/debian/rules 2014-06-30 18:08:29.000000000 +0000
@@ -40,7 +40,7 @@
--disable-gtk-test
%:
- dh $@ --parallel --with gir,autotools_dev
+ dh $@ --parallel --with gir,autoreconf
override_dh_auto_clean:
dh_auto_clean