#981264 buici-clock FTCBFS: multiple issues

Package:
src:buici-clock
Source:
buici-clock
Submitter:
Helmut Grohne
Date:
2021-01-28 13:45:27 UTC
Severity:
normal
Tags:
#981264#5
Date:
2021-01-28 12:44:56 UTC
From:
To:
buici-clock fails to cross build from source. The immediate failure goes
like this: The packaging configures via dh_auto_configure, which passes
--host to the toplevel configure. That configure calls xo/configure
without --host and configures for the build architecture there. When
building, it misses out dependencies that are only present for the host
architecture.

The solution here is to pass down the --host flag to the nested
configure. The ideal solution would be to use AC_CONFIG_SUBDIRS, but I
couldn't make that work here. Instead, I propose explicitly passing
--build and --host down.

Nextup, Makefile.in hard codes the build architecture pkg-config. That's
bad. Detecting cairo should be done at configure time. The recommended
way for doing so is using PKG_CHECK_MODULES.

I'm attaching a patch that fixes both issues. Since the build does not
regenerate configure, you must do so manually after applying the patch.

Helmut