package/apache: fix build with per-package directory support
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 17 Feb 2020 23:46:39 +0000 (00:46 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 18 Feb 2020 22:16:15 +0000 (23:16 +0100)
commitb747c29c4e8eb89b7b99658dfd34f4a6b6b0744d
treed1c6b2e6f1d85519ba71e2abd6bef6baf40162b9
parent84b4c19e551288911a230c2b73e96bc6e2ed12f9
package/apache: fix build with per-package directory support

When APR_INCLUDEDIR and APU_INCLUDEDIR point to the same directory,
Apache builds properly. However, with per-package directory support,
they point to different directories, and APU_INCLUDEDIR contains both
the APR headers and the APU headers.

Due to this, the Apache Makefile logic to generate its exports.c file
leads to duplicate definitions, because the APR headers are considered
twice: once from APR_INCLUDEDIR, once from APU_INCLUDEDIR.

We fix this by introducing a patch to the Apache build system.

In addition, apr provides a special libtool script that gets used by
apr-util and apache. apr-util already had a fixup for this, but apache
did not, which was causing the gcc from apr-util per-package
directories be used during the apache build, causing build failures.

To fix this, we adjust this libtool script to point to the correct
tools in apache's per-package directories.

There are no autobuilder failures for this, because Apache needs
apr-util, and apr-util currently fails to build when
BR2_PER_PACKAGE_DIRECTORIES=y.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/apache/0003-server-Makefile.in-handle-separate-APR_INCLUDE_DIR-A.patch [new file with mode: 0644]
package/apache/apache.mk