Do not build doc directory of automake 2.11 and 2.15.

There is a race condition there that often causes builds to fail.
Fixes: #184
This commit is contained in:
Andrius Štikonas 2023-01-24 22:18:11 +00:00
parent 20173fbee1
commit f2e542ef0c
3 changed files with 10 additions and 6 deletions

View file

@ -8,6 +8,10 @@ src_prepare() {
rm -f doc/amhello-1.0.tar.gz doc/automake.info* doc/aclocal-1.11.1 doc/automake-1.11.1
# Building doc often causes race conditions, skip it
awk '/SUBDIRS/{sub("doc ", "", $0)} {print}' Makefile.am > Makefile.am.tmp
mv Makefile.am{.tmp,}
AUTOCONF=autoconf-2.64 AUTOM4TE=autom4te-2.64 ./bootstrap
}
@ -22,5 +26,4 @@ src_compile() {
src_install() {
make install MAKEINFO=true DESTDIR="${DESTDIR}"
rm "${DESTDIR}/usr/bin/automake" "${DESTDIR}/usr/bin/aclocal"
rm "${DESTDIR}${PREFIX}/share/doc/automake/amhello-1.0.tar.gz"
}