diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index 44b5cc5..66817f0 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -1,3 +1,4 @@ +534e99b61b81e79327b6d08f1a3edb0755ac246e1249009b0e1bf5887b60d7a9 autoconf-2.52.tar.gz ba03d412998cc54bd0b0f2d6c32100967d3137098affdc2d32e6e7c11b163fe4 bash-2.05b.tar.gz 7007fc89c216fbfaff5525359b02a7e5b612694df5168c74673f67055f015095 bison-3.4.1.tar.gz ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269 bzip2-1.0.8.tar.gz diff --git a/parts.rst b/parts.rst index 6fcd015..b8d1d38 100644 --- a/parts.rst +++ b/parts.rst @@ -352,3 +352,12 @@ perl 5.6.2 ========== Even more perl. 5.6.2 is the last version buildable with 5.004. + +autoconf 2.52 +============== + +GNU Autoconf is a tool for producing ``configure`` scripts for building, installing and +packaging software on computer systems where a Bourne shell is available. + +At this stage we still do not have a working autotools system, so we manually install +``autoconf`` script and replace a few placeholder variables with ``sed``. diff --git a/rootfs.sh b/rootfs.sh index cd929e4..9cdc78e 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -201,6 +201,9 @@ get_file https://www.cpan.org/src/5.0/perl5.005_03.tar.gz # perl 5.6.2 get_file https://www.cpan.org/src/5.0/perl-5.6.2.tar.gz +# autoconf 2.52 +get_file https://ftp.gnu.org/gnu/autoconf/autoconf-2.52.tar.gz + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/autoconf-2.52/autoconf-2.52.sh b/sysa/autoconf-2.52/autoconf-2.52.sh new file mode 100755 index 0000000..0708858 --- /dev/null +++ b/sysa/autoconf-2.52/autoconf-2.52.sh @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +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 + chmod +x autoconf + + m4 autoconf.m4 --freeze-state=autoconf.m4f +} + +src_install() { + install autoconf ${PREFIX}/bin/autoconf-2.52 + mkdir -p ${PREFIX}/share/autoconf-2.52 + cp -r *.m4* ${PREFIX}/share/autoconf-2.52/ +} diff --git a/sysa/autoconf-2.52/checksums b/sysa/autoconf-2.52/checksums new file mode 100644 index 0000000..e69de29 diff --git a/sysa/run.sh b/sysa/run.sh index ea0e495..ff71f13 100755 --- a/sysa/run.sh +++ b/sysa/run.sh @@ -68,4 +68,6 @@ build perl-5.6.2 populate_device_nodes +build autoconf-2.52 + echo "Bootstrapping completed."