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"
}

View file

@ -8,11 +8,13 @@ src_prepare() {
rm doc/amhello-1.0.tar.gz
# Building doc often causes race conditions, skip it
sed -i '/doc\/Makefile.inc/d' Makefile.am
sed -i '/t\/Makefile.inc/d' Makefile.am
AUTOCONF=autoconf-2.69 AUTOM4TE=autom4te-2.69 ./bootstrap
rm doc/automake-history.info doc/automake.info*
cp "${PREFIX}/bin/help2man" doc/
}
src_configure() {
@ -26,5 +28,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"
}