commit: c88e4c1ab7179b3bdfb4b6ccbf02f50dc4da5a66
parent d7794f8f1513babc1671a484f13cb339645e56b5
Author: Andrius Štikonas <andrius@stikonas.eu>
Date: Sun, 21 Feb 2021 21:09:47 +0000
Install autoconf 2.52.
Diffstat:
6 files changed, 37 insertions(+), 0 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -0,0 +1,22 @@
+# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
+#
+# 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
diff --git 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."