gnutls: don't run aclocal --install
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Mon, 25 Oct 2021 21:10:01 +0000 (18:10 -0300)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 7 Dec 2021 21:58:38 +0000 (22:58 +0100)
commit149c3014f7710355e3b2ea9ac0b5fce71ee35ea6
treeab15eeb2378b8f8abdfc7c8a32108902b72c02df
parent4ee031906338ef640ad8f119229e05875c6ca4cb
gnutls: don't run aclocal --install

Remove the --install parameter when running aclocal.  The --install
argument is used to copy third-party files to the first -I directory.
gnutls has -I m4 first, which would copy files to its local build
directory.  However, openwrt prepends the staging dir m4 directory,
causing aclocal --install to copy an old definition of
ax_code_coverage.m4 into the staging dir.

If strace is built after gnutls, compilation will fail:

    Makefile:9303: *** missing separator.  Stop.

The version of ax_code_coverage.m4 that gets installed does not define
@CODE_COVERAGE_RULES@.

Removing the --install parameter in gnutls solves the issue.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 206eaae16520f5e89af5219cf574fa649e64d7e1)
libs/gnutls/Makefile
libs/gnutls/patches/020-dont-install-m4-files.patch [new file with mode: 0644]