Discussion:
Bug#913094: apache2 FTCBFS: multiple reasons
Helmut Grohne
2018-11-06 21:13:09 UTC
Permalink
Source: apache2
Version: 2.4.37-1
Tags: patch
User: ***@debian.org
Usertags: rebootstrap

apache2 fails to cross build from source. Let me explain the individual
subproblems.

* The build dependency on the host architecture perl conflicts with the
essential build architecture perl. It turns out, apache2 wants to run
perl during build, so it actually needs the build architecture perl.
Annotating the dependency with :any fixes that.

* ./configure fails finding .pc files, because it uses the build
architecture pkg-config. It should be using AC_PATH_TOOL (or better
PKG_PROG_PKG_CONFIG) rather than AC_PATH_PROG.

* Fixing configure.ac does not influence the build as ./configure is
not built from source. dh-autoreconf fixes that.

* Finally, the build fails running ./server/gen_test_char. It should be
built with the build architecture compiler, but the build system is
incapable of doing so. The mailing list suggests just compiling and
running that file ahead of the actual build.

After applying the attached patch, apache2 cross builds successfully.
Please consider using it.

Helmut

Loading...