Package: liblouisutdml Version: 2.7.0-6 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
liblouisutdml fails to cross build from source. The first reason for failing is that it uses the wrong pkg-config. Its configure.ac uses AC_PATH_PROG to detect the wrong pkg-config and a later call to PKG_CHECK_MODULES picks up the wrong value. PKG_CHECK_MODULES knows how to correctly detect pkg-config, so simply removing that line fixes this part. The next reason is that it checks for java headers using AC_CHECK_FILE. That's due to using a broken, outdated, embedded copy of ax_jni_include_dir.m4. The version in autoconf-archive in unstable is fixed meanwhile. Please remove this copy or update and register[1] it. Finally, it calls help2man. There is no silver bullet for fixing help2man issues, so let's skip that issue for now. Please close this bug when fixing the other two issues. Helmut [1] https://wiki.debian.org/EmbeddedCodeCopies
--- liblouisutdml-2.7.0.orig/configure.ac +++ liblouisutdml-2.7.0/configure.ac @@ -48,8 +48,6 @@ AC_CHECK_PROG([HELP2MAN], [help2man], [help2man]) AM_CONDITIONAL([HAVE_HELP2MAN], [test x$HELP2MAN = xhelp2man]) -AC_PATH_PROG(PKG_CONFIG, pkg-config) - PKG_CHECK_MODULES(BASE_DEPENDENCIES, [liblouis >= 3.0.0, libxml-2.0]) # Checks for libraries.