apache: fixup apxs
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 24 Oct 2021 13:36:22 +0000 (15:36 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Thu, 13 Jan 2022 09:10:49 +0000 (10:10 +0100)
commitb5443ccdf006355beca30fe845b690c226b75b7d
tree089418091c76491c7c447f093f697f33f0a01b50
parent19451ec86405ce357d3bc3a73b5d860e0eda709a
apache: fixup apxs

apxs is used to get information about the apache installation when
building external modules. Currently there are issues:

1.

./staging_dir/target-mips_24kc_musl/usr/bin/apxs -q TARGET
apache2
apxs:Error: ./staging_dir/target-mips_24kc_musl/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/bin/apr-1-config not found!.

This error is fixed by sed script #2.

2.

./staging_dir/target-mips_24kc_musl/usr/bin/apxs -q TARGET
cannot open ./staging_dir/target-mips_24kc_musl/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/share/apache2/build/config_vars.mk: No such file or directory at ./staging_dir/target-mips_24kc_musl/usr/bin/apxs line 213.

This error is fixed by sed scipt #1.

Both sed scripts taken from buildroot (see [1]).

[1] https://github.com/buildroot/buildroot/blob/master/package/apache/apache.mk

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
(cherry picked from commit 83d1cdaf3f1392a67aaa9d10f544680805229019)
net/apache/Makefile