Bootstrap aclocal.

This commit is contained in:
Andrius Štikonas 2021-03-17 00:24:37 +00:00
parent bb4d24509e
commit 52cdbad405
11 changed files with 86 additions and 96 deletions

View file

@ -4,12 +4,9 @@
src_compile() {
cp autoconf.in autoconf
sed -i "s# @SHELL@#/bin/sh#" autoconf
sed -i 's/@M4@/m4/' autoconf
sed -i 's/@AWK@/awk/' autoconf
sed -i 's/@PACKAGE_NAME@/Autoconf/' autoconf
sed -i 's/@VERSION@/2.52/' autoconf
sed -i "s#@datadir@#${PREFIX}/share/autoconf-2.52#" autoconf
sed -i -e "s# @SHELL@#/bin/sh#" -e 's/@M4@/m4/' -e 's/@AWK@/awk/' \
-e 's/@PACKAGE_NAME@/Autoconf/' -e 's/@VERSION@/2.52/' \
-e "s#@datadir@#${PREFIX}/share/autoconf-2.52#" autoconf
chmod +x autoconf
m4 autoconf.m4 --freeze-state=autoconf.m4f

View file

@ -10,7 +10,7 @@ src_prepare() {
# Install autoconf data files into versioned directory
for file in */Makefile.in Makefile.in; do
sed -i '/^pkgdatadir/s:$:-@VERSION@:' $file
sed -i '/^pkgdatadir/s:$:-@VERSION@:' $file
done
}

View file

@ -0,0 +1,17 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
rm configure Makefile.in */Makefile.in aclocal.m4
aclocal-1.6
autoconf-2.52
# When building with newer automake we get the following error
# Makefile.am:59: ETAGS_ARGS multiply defined in condition TRUE
sed -i '/ETAGS_ARGS/,+1d' Makefile.am
automake-1.6
}
src_configure() {
./configure --prefix=/after
}

View file

@ -1,30 +0,0 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
sed -i 's#m4/Makefile tests/Makefile##; s/Makefile //' configure.in
rm configure Makefile.in */Makefile.in
autoconf-2.52
}
src_configure() {
./configure --prefix=/after
}
src_compile() {
cp m4/amversion.in m4/amversion.m4
sed -i 's/@VERSION@/1.4-p6/' m4/amversion.m4
sed -i 's/@APIVERSION@/1.4/' m4/amversion.m4
}
src_install() {
install automake "${PREFIX}"/bin/automake-1.4
mkdir -p "${PREFIX}"/share/automake-1.4
cp -r *.am "${PREFIX}"/share/automake-1.4/
install aclocal "${PREFIX}"/bin/aclocal-1.4
mkdir -p "${PREFIX}"/share/aclocal-1.4
cp -r m4/*.m4 "${PREFIX}"/share/aclocal-1.4/
}

View file

@ -3,27 +3,22 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
sed -i '/Makefile/d' configure.in
rm configure Makefile.in */Makefile.in */*/Makefile.in aclocal.m4
autoconf-2.52
}
src_configure() {
./configure --prefix=/after
cp aclocal.in aclocal
cp m4/amversion.in m4/amversion.m4
}
src_compile() {
cp m4/amversion.in m4/amversion.m4
sed -i 's/@VERSION@/1.6.3/' m4/amversion.m4
sed -i 's/@APIVERSION@/1.6/' m4/amversion.m4
sed -i -e 's/@VERSION@/1.6.3/' -e 's/@APIVERSION@/1.6/' m4/amversion.m4
sed -i -e 's#@PERL@#/after/bin/perl#' -e 's/@PACKAGE@/automake/' \
-e 's/@APIVERSION@/1.6/' -e 's/@VERSION@/1.6.3/' \
-e 's#@prefix@#/after#' -e 's#@datadir@#/after/share#' aclocal
}
src_install() {
install automake "${PREFIX}"/bin/automake-1.6
mkdir -p "${PREFIX}"/share/automake-1.6/{Automake,am}
mkdir -p "${PREFIX}"/share/automake-1.6/Automake
cp lib/Automake/*.pm "${PREFIX}"/share/automake-1.6/Automake/
cp -r lib/am/*.am "${PREFIX}"/share/automake-1.6/am/
install aclocal "${PREFIX}"/bin/aclocal-1.6
mkdir -p "${PREFIX}"/share/aclocal-1.6

View file

@ -3,22 +3,29 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
sed -i '/Makefile/d' configure.in
rm configure Makefile.in */Makefile.in */*/Makefile.in aclocal.m4
aclocal-1.6
autoconf-2.52
automake-1.6
}
src_configure() {
./configure --prefix=/after
}
src_install() {
# cleanup old manual install
rm "${PREFIX}"/bin/automake-1.6
rm "${PREFIX}"/bin/aclocal-1.6
rm -rf "${PREFIX}"/share/automake-1.6
rm -rf "${PREFIX}"/share/aclocal-1.6
default_src_install
src_compile() {
cp m4/amversion.in m4/amversion.m4
sed -i 's/@VERSION@/1.6.3/' m4/amversion.m4
sed -i 's/@APIVERSION@/1.6/' m4/amversion.m4
}
src_install() {
install automake "${PREFIX}"/bin/automake-1.6
mkdir -p "${PREFIX}"/share/automake-1.6/am
cp lib/Automake/*.pm "${PREFIX}"/share/automake-1.6/Automake/
cp -r lib/am/*.am "${PREFIX}"/share/automake-1.6/am/
install aclocal "${PREFIX}"/bin/aclocal-1.6
cp -r m4/*.m4 "${PREFIX}"/share/aclocal-1.6/
}

View file

@ -3,10 +3,10 @@
# SPDX-License-Identifier: GPL-3.0-or-later
src_prepare() {
rm configure Makefile.in */Makefile.in
rm configure Makefile.in */Makefile.in */*/Makefile.in aclocal.m4
aclocal-1.6
autoconf-2.52
aclocal-1.4
automake-1.4
automake-1.6
}
src_configure() {
@ -15,9 +15,10 @@ src_configure() {
src_install() {
# cleanup old manual install
rm "${PREFIX}"/bin/automake-1.4
rm -rf "${PREFIX}"/share/automake-1.4
rm -rf "${PREFIX}"/share/aclocal-1.4
rm "${PREFIX}"/bin/automake-1.6
rm "${PREFIX}"/bin/aclocal-1.6
rm -rf "${PREFIX}"/share/automake-1.6
rm -rf "${PREFIX}"/share/aclocal-1.6
default_src_install
}

View file

@ -76,8 +76,11 @@ populate_device_nodes
build autoconf-2.52 stage1.sh
build automake-1.4-p6 stage1.sh
build automake-1.4-p6 stage2.sh
build automake-1.6.3 stage1.sh
build automake-1.6.3 stage2.sh
build automake-1.6.3 stage3.sh
build automake-1.4-p6
build autoconf-2.52 stage2.sh

View file

@ -9,9 +9,6 @@
set -e
. helpers.sh
build automake-1.6.3 stage1.sh
build automake-1.6.3 stage2.sh
echo "Bootstrapping completed."
exec env - PATH=/after/bin PS1="\w # " bash -i