From a5988425a1c39565614e546b752b9e95cb9d7926 Mon Sep 17 00:00:00 2001 From: heitbaum Date: Fri, 6 Aug 2021 21:56:51 +1000 Subject: [PATCH] toolchain: autoconf: add workaround for >autoconf-2.69 Since >autoconf-2.69, autoreconf will check for GTK_DOC_CHECK macro and will call gtkdocize automatically [Link 1] when invoked with "--install" parameter. Because we do not care about docs in libreelec packages, we can stick to our poor man's implementation of autoreconf and replace calls to gtkdocize with true. Link 1: https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commit;h=dd880a0a6de5602cdd40b770ed6b083b34aa0768 source of patch: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=235fcd4e9c1f57af368ca9bbe9dd25effc0dc900 --- config/functions | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/functions b/config/functions index a909cb6d67..40a353e242 100644 --- a/config/functions +++ b/config/functions @@ -829,6 +829,15 @@ do_autoreconf() { export LIBTOOL=$TOOLCHAIN/bin/libtool fi + # >autoconf-2.69 will call gtkdocize when used in macros + # when called with --install parameter. + # use "true" unkess gtkdocsize is in the toolchain. + if [ -e "$TOOLCHAIN/bin/gtkdocize" ]; then + export GTKDOCIZE=$TOOLCHAIN/bin/gtkdocize + else + export GTKDOCIZE=true + fi + if [ -e "$TOOLCHAIN/bin/autoreconf" -a -e "$INTLTOOLIZE" ]; then mkdir -p $ACLOCAL_DIR if [ -e "$LIBTOOLIZE" ]; then