From 28779bc9ba829b7c01b84a9a08a53cfe51f1eb0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 25 Mar 2021 17:52:31 +0000 Subject: [PATCH 01/14] GNU findutils 4.2.33 --- SHA256SUMS.sources | 1 + parts.rst | 6 ++++++ rootfs.sh | 3 +++ sysa/findutils-4.2.33/checksums | 7 +++++++ sysa/findutils-4.2.33/findutils-4.2.33.sh | 12 ++++++++++++ sysa/run.sh | 2 ++ 6 files changed, 31 insertions(+) create mode 100644 sysa/findutils-4.2.33/checksums create mode 100755 sysa/findutils-4.2.33/findutils-4.2.33.sh diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index e6b45bc8..fe89c9b0 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -21,6 +21,7 @@ ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269 bzip2-1.0.8.ta c25b36b8af6e0ad2a875daf4d6196bd0df28a62be7dd252e5f99a4d5d7288d95 coreutils-5.0.tar.bz2 1d013547889f20576460249c4210632d5314531c8477378a2e046b13a8ebeb7e coreutils-6.10.tar.gz d5f2489c4056a31528e3ada4adacc23d498532b0af1a980f2f76158162b139d6 diffutils-2.7.tar.gz +813cd9405aceec5cfecbe96400d01e90ddad7b512d3034487176ce5258ab0f78 findutils-4.2.33.tar.gz bc79b890f35ca38d66ff89a6e3758226131e51ccbd10ef78d5ff150b7bd73689 flex-2.5.11.tar.gz e87aae032bf07c26f85ac0ed3250998c37621d95f8bd748b31f15b33c45ee995 flex-2.6.4.tar.gz 5cc35def1ff4375a8b9a98c2ff79e95e80987d24f0d42fdbb7b7039b3ddb3fb0 gawk-3.0.4.tar.gz diff --git a/parts.rst b/parts.rst index 0dacd323..369a8027 100644 --- a/parts.rst +++ b/parts.rst @@ -509,6 +509,12 @@ automake 1.9.6 Latest GNU Automake from 1.9 series. Slightly annoyingly depends itself but it is easy to patch to make it buildable with 1.8.5. Then we rebuild ``automake-1.9`` with itself. +findutils 4.2.33 +================ + +GNU Find Utilities can be used to search for files. We are mainly interested +in ``find`` and ``xargs`` that are often used in scripts. + gcc 4.0.4 ========= diff --git a/rootfs.sh b/rootfs.sh index 2ff861af..ed98b3d4 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -267,6 +267,9 @@ get_file https://musl.libc.org/releases/musl-1.2.2.tar.gz # bash 5.1 get_file https://ftp.gnu.org/gnu/bash/bash-5.1.tar.gz +# findutils 4.2.33 +get_file https://ftp.gnu.org/gnu/findutils/findutils-4.2.33.tar.gz + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/findutils-4.2.33/checksums b/sysa/findutils-4.2.33/checksums new file mode 100644 index 00000000..dfdf58e0 --- /dev/null +++ b/sysa/findutils-4.2.33/checksums @@ -0,0 +1,7 @@ +924989f313c37f19d4b2474472e136509ea5a60a4dc71e5a6ff8c164ae10fc2e /after/bin/find +4490fa824400fc7b6fc2f3654bae804dc8e39ad5fb337164582b66a0d995b66e /after/bin/locate +166aa2887502c997f2cd7ea7eeebea3800e79011bc9985ab31a34f74caefa8cb /after/bin/updatedb +a8d6f39cd9a1529b45ab1d9c7b0ba89ccf9ac62d843930c4a0ac7a9be0b98979 /after/bin/xargs +4425d7195722f3d023e00fc1cc2e215f0eac361e83e6aabb97ad6b091b04be06 /after/libexec/bigram +10cf4b0bb69151e715f3f0e107d5345fb55c8b65bb177c88f605a79240b373fb /after/libexec/code +2403193f202677d90ac3cc4da32fe367bd73ba748b46afaf2cad1f3f1ae665db /after/libexec/frcode diff --git a/sysa/findutils-4.2.33/findutils-4.2.33.sh b/sysa/findutils-4.2.33/findutils-4.2.33.sh new file mode 100755 index 00000000..4e180a36 --- /dev/null +++ b/sysa/findutils-4.2.33/findutils-4.2.33.sh @@ -0,0 +1,12 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + autoreconf-2.61 -f +} + +src_configure() { + # Musl is not recognized, pretend to be uClibc + CC=tcc ./configure --prefix="${PREFIX}" CPPFLAGS="-D__UCLIBC__" +} diff --git a/sysa/run.sh b/sysa/run.sh index 81276045..9be27af9 100755 --- a/sysa/run.sh +++ b/sysa/run.sh @@ -128,6 +128,8 @@ build autoconf-2.61 stage2.sh build automake-1.9.6 stage1.sh build automake-1.9.6 stage2.sh +build findutils-4.2.33 + build gcc-4.0.4 pass1.sh checksums/pass1 build musl-1.2.2 From a63a01c56be27bc234b120242d0876fbcf018044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 25 Mar 2021 19:14:34 +0000 Subject: [PATCH 02/14] GNU Libtool 2.2.4 --- SHA256SUMS.sources | 1 + parts.rst | 10 ++++---- rootfs.sh | 3 +++ sysa/bash-5.1/checksums | 2 +- sysa/gcc-4.0.4/checksums/pass1 | 10 ++++---- sysa/gcc-4.0.4/checksums/pass2 | 24 +++++++++--------- sysa/gcc-4.0.4/pass1.sh | 3 +++ sysa/gcc-4.0.4/pass2.sh | 1 + .../{checksums/pass1 => checksums} | 0 sysa/libtool-1.4/checksums/pass2 | 2 -- sysa/libtool-1.4/{pass1.sh => libtool-1.4.sh} | 12 ++++----- sysa/libtool-1.4/pass2.sh | 19 -------------- sysa/libtool-2.2.4/checksums | 2 ++ sysa/libtool-2.2.4/libtool-2.2.4.sh | 25 +++++++++++++++++++ sysa/run.sh | 6 ++--- 15 files changed, 67 insertions(+), 53 deletions(-) rename sysa/libtool-1.4/{checksums/pass1 => checksums} (100%) delete mode 100644 sysa/libtool-1.4/checksums/pass2 rename sysa/libtool-1.4/{pass1.sh => libtool-1.4.sh} (65%) delete mode 100755 sysa/libtool-1.4/pass2.sh create mode 100644 sysa/libtool-2.2.4/checksums create mode 100755 sysa/libtool-2.2.4/libtool-2.2.4.sh diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index fe89c9b0..a9a4bc22 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -31,6 +31,7 @@ a32032bab36208509466654df12f507600dfe0313feebbcd218c32a70bf72a16 grep-2.4.tar.g 9f233d8b78e4351fe9dd2d50d83958a0e5af36f54e9818521458a08e058691ba heirloom-devtools-070527.tar.bz2 a4adadf76b496a6bc50795702253ecfcb6f0d159b68038f31a5362009340bca2 help2man-1.36.4.tar.gz 8e8ce6175d435e7df8c9bbb0e5fd5357691cdc28c1a2d00fdd9b47b7643bec3a libtool-1.4.tar.gz +c4e63399b12f5858d11c44cea8e92f21cd564f8548e488dadc84046b424c80fc libtool-2.2.4.tar.bz2 093c993767f563a11e41c1cf887f4e9065247129679d4c1e213d0544d16d8303 m4-1.4.7.tar.gz 64b30b41fde2ebf669e6af489883fb1df6a06ac30555a96cfa3c39ecce7267dd make-3.80.tar.gz 1370c9a812b2cf2a7d92802510cca0058cc37e66a7bedd70051f0a34015022a3 musl-1.1.24.tar.gz diff --git a/parts.rst b/parts.rst index 369a8027..ee510c0d 100644 --- a/parts.rst +++ b/parts.rst @@ -423,11 +423,6 @@ In particular we can now use full featured ``ar`` instead of ``tcc -ar``, the GNU linker ``ld``, which allows us building shared libraries, and the GNU assembler ``as``. -libtool 1.4 -=========== - -Rebuild libtool, so that it uses GNU binutils when creating shared libraries. - musl 1.1.24 (v3) ================ @@ -515,6 +510,11 @@ findutils 4.2.33 GNU Find Utilities can be used to search for files. We are mainly interested in ``find`` and ``xargs`` that are often used in scripts. +libtool 2.2.4 +============= + +Newer version of libtool which is more compatible with modern Autotools. + gcc 4.0.4 ========= diff --git a/rootfs.sh b/rootfs.sh index ed98b3d4..647a35db 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -270,6 +270,9 @@ get_file https://ftp.gnu.org/gnu/bash/bash-5.1.tar.gz # findutils 4.2.33 get_file https://ftp.gnu.org/gnu/findutils/findutils-4.2.33.tar.gz +# libtool 2.2.4 +get_file https://ftp.gnu.org/gnu/libtool/libtool-2.2.4.tar.bz2 + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/bash-5.1/checksums b/sysa/bash-5.1/checksums index 89e966cf..5b2109c5 100644 --- a/sysa/bash-5.1/checksums +++ b/sysa/bash-5.1/checksums @@ -1 +1 @@ -bf782a82ac8ce393d2a028cec337a4f9428f8ab93d2ae11b026dcc8a027b80a7 /after/bin/bash +42d8035dd5e893be2dabcaee3064e13b9d993efae5383bedececa9a7ef172ff0 /after/bin/bash diff --git a/sysa/gcc-4.0.4/checksums/pass1 b/sysa/gcc-4.0.4/checksums/pass1 index 54f8aded..7c6b1e15 100644 --- a/sysa/gcc-4.0.4/checksums/pass1 +++ b/sysa/gcc-4.0.4/checksums/pass1 @@ -5,10 +5,10 @@ 903b1dae32b217048b1a35a934836496027e6947b77f5711cb8714cd5241dda0 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/cc1 711689a618e34a0cff2c6061e554f9a2f9d447a7623bd46ba11c2eb816932883 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/collect2 a3fbed284b1efaf6fccfc81eddd9bad8c4cf07673b16e8885ad6f31a1569c9b4 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/install-tools/fixincl -de4566c661258fa626ea7076e6c57af95c01d0786bcdadb12af23852cc421a2a /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbegin.o -c7eea5e845fe2ee5538704d59c6e777d4f72b7100e78d5f86f8d95d96ab2ec20 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginS.o -de4566c661258fa626ea7076e6c57af95c01d0786bcdadb12af23852cc421a2a /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginT.o +f2c7e7bf5377e10927c5d243eaa9eb3ae9bed7aab393621831673b368ebae00f /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbegin.o +c76e19409c9344a10213e0abb18481aae6416342db4971fb99a116a91fb164da /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginS.o +f2c7e7bf5377e10927c5d243eaa9eb3ae9bed7aab393621831673b368ebae00f /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginT.o 342276a6ad25e3d064bba9c5d50fbeaae15d0aefdc5c72b1e796366189af1b1b /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtend.o 2bf001e0be96ea7c53adf35b1bf0a677eee02008e3aee6c30166d100b720687c /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtendS.o -7b416e87b8e5998c042b64b4b87499720895c17deeffc0bc1b79f6fac502d51b /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcc.a -efc9783c7386519ef7d5bfe7fadf16d4b6b717deb18dd04e09d810354f015942 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcov.a +e3c2b3754058829d79b42a4968f3a3dda6e289b51b4b3580f4ccbc64ff473a26 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcc.a +fc093c2bcf6473237c1187fc93b60e5d353bf710958d7151283c96074af0a899 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcov.a diff --git a/sysa/gcc-4.0.4/checksums/pass2 b/sysa/gcc-4.0.4/checksums/pass2 index 437b4bb2..8495d4ad 100644 --- a/sysa/gcc-4.0.4/checksums/pass2 +++ b/sysa/gcc-4.0.4/checksums/pass2 @@ -1,14 +1,14 @@ -22234bd8a949cfab257e10e97a3e990ebb79a75afc5f50e875586bb9367910a7 /after/bin/cpp -a47e2b29f19aa69b4a40757accd73307f6b51bc9ebcc101aa628906d7c2d3b67 /after/bin/gcc -a47e2b29f19aa69b4a40757accd73307f6b51bc9ebcc101aa628906d7c2d3b67 /after/bin/i386-unknown-linux-gnu-gcc -a47e2b29f19aa69b4a40757accd73307f6b51bc9ebcc101aa628906d7c2d3b67 /after/bin/i386-unknown-linux-gnu-gcc-4.0.4 -9d4c0a3b340c1c22b81dd450ef894b02323e059c56cd3ceff423ee316f0ac0a2 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/cc1 -ada38c050d3b2e6e96da2db86dbabebbd2c4cc4bdc2ba258358af9c64e882bed /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/collect2 -7c335c92800b34be9a3add28d529657812f62ec066b4c2a2dcba28c65f6d4e34 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/install-tools/fixincl -a07db1648128987f10debb1730b4456c0423aab5bd93d68e4f2b47447a11c5d9 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbegin.o -20a3bbbd5cd59b91660628d416d489437463b651fa15b5ea5f026b45c9e35b65 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginS.o -a07db1648128987f10debb1730b4456c0423aab5bd93d68e4f2b47447a11c5d9 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginT.o +88dbe31603504b89ced21ceb5d7205f20c9473a6df814bb80f2b28ddebc977c5 /after/bin/cpp +2b909307bd6b0bf7fed4363122948561da6518acfd74b809c3ab7ede2da8fcfb /after/bin/gcc +2b909307bd6b0bf7fed4363122948561da6518acfd74b809c3ab7ede2da8fcfb /after/bin/i386-unknown-linux-gnu-gcc +2b909307bd6b0bf7fed4363122948561da6518acfd74b809c3ab7ede2da8fcfb /after/bin/i386-unknown-linux-gnu-gcc-4.0.4 +7fda283cdddc9ecb96aa64eee6ba70a95b5547e47537934ec3a98a7f9846b563 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/cc1 +289a9da62408356b8d21472497fd26b9021e27b9bc7834b969d11791eba4fd58 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/collect2 +8c8c0c1781c361a5e585811c3712ae8d052c6d2bb1d18328c50329b74e712144 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/install-tools/fixincl +282f0f0d79a9f1559f700db14f8a360194e1e8ab522ecad91aa29d10ea1bfb1a /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbegin.o +693e3dc5d35724960692e3e81280bad9e21de68f3884e52b86e874d20baf8151 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginS.o +282f0f0d79a9f1559f700db14f8a360194e1e8ab522ecad91aa29d10ea1bfb1a /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginT.o 342276a6ad25e3d064bba9c5d50fbeaae15d0aefdc5c72b1e796366189af1b1b /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtend.o 2bf001e0be96ea7c53adf35b1bf0a677eee02008e3aee6c30166d100b720687c /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtendS.o -5d3c8a9b80e4e34dfb70a56d6e23a05e01d2ecdbf60232a1b053462d4a98e99e /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcc.a -f8c3b07e0f98b7f34ac0960d98f3b59ee0f47c42e72c529d10d66dccdc9b5d46 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcov.a +e1789e68464c8c04e77180f8a5dc5855aa6b488a8b11526c77f70d89453122e4 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcc.a +3332fba4918963e196c701e00cc68ea28c5b00b4da0bd01ace911f0441c4932c /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcov.a diff --git a/sysa/gcc-4.0.4/pass1.sh b/sysa/gcc-4.0.4/pass1.sh index b18b04e8..c2bcbfdf 100755 --- a/sysa/gcc-4.0.4/pass1.sh +++ b/sysa/gcc-4.0.4/pass1.sh @@ -42,6 +42,7 @@ src_prepare() { # Rebuild libtool files rm config.guess config.sub ltmain.sh libtoolize + cp "${PREFIX}/"/share/automake-1.9/config.sub . # Rebuild bison files # Workaround for bison being too new @@ -77,6 +78,8 @@ src_configure() { src_compile() { mkdir -p /usr/ ln -sf "${PREFIX}"/include /usr/include + ln -sf /usr/include/limits.h /usr/include/sys/limits.h + make -C build LIBGCC2_INCLUDES=-I"${PREFIX}/include/musl" } diff --git a/sysa/gcc-4.0.4/pass2.sh b/sysa/gcc-4.0.4/pass2.sh index 6924919a..6a8ade5d 100755 --- a/sysa/gcc-4.0.4/pass2.sh +++ b/sysa/gcc-4.0.4/pass2.sh @@ -41,6 +41,7 @@ src_prepare() { # Rebuild libtool files rm config.guess config.sub ltmain.sh libtoolize + cp "${PREFIX}/"/share/automake-1.9/config.sub . # Rebuild bison files # Workaround for bison being too new diff --git a/sysa/libtool-1.4/checksums/pass1 b/sysa/libtool-1.4/checksums similarity index 100% rename from sysa/libtool-1.4/checksums/pass1 rename to sysa/libtool-1.4/checksums diff --git a/sysa/libtool-1.4/checksums/pass2 b/sysa/libtool-1.4/checksums/pass2 deleted file mode 100644 index 92ab87ca..00000000 --- a/sysa/libtool-1.4/checksums/pass2 +++ /dev/null @@ -1,2 +0,0 @@ -23a6e91bff3d5bac9b0317b60bd1c999f94846f62085bf4d227dfa8499120d22 /after/lib/musl/libltdl.a -c247c7c1516ed35414c8b038535969a67ce4bbfd2abdfed85a89941bca09d55d /after/lib/musl/libltdl.la diff --git a/sysa/libtool-1.4/pass1.sh b/sysa/libtool-1.4/libtool-1.4.sh similarity index 65% rename from sysa/libtool-1.4/pass1.sh rename to sysa/libtool-1.4/libtool-1.4.sh index eeec759b..fbc1f95b 100755 --- a/sysa/libtool-1.4/pass1.sh +++ b/sysa/libtool-1.4/libtool-1.4.sh @@ -10,12 +10,12 @@ src_prepare() { src_configure() { CC=tcc LD=true AR="tcc -ar" ./configure \ - --prefix="${PREFIX}" \ - --libdir="${PREFIX}/lib/musl" \ - --disable-shared \ - --host=i386-unknown-linux \ - --target=i386-unknown-linux \ - --build=i386-unknown-linux + --prefix="${PREFIX}" \ + --libdir="${PREFIX}/lib/musl" \ + --disable-shared \ + --host=i386-unknown-linux \ + --target=i386-unknown-linux \ + --build=i386-unknown-linux } src_compile() { diff --git a/sysa/libtool-1.4/pass2.sh b/sysa/libtool-1.4/pass2.sh deleted file mode 100755 index d7ed6803..00000000 --- a/sysa/libtool-1.4/pass2.sh +++ /dev/null @@ -1,19 +0,0 @@ -# SPDX-FileCopyrightText: 2021 Andrius Štikonas -# -# SPDX-License-Identifier: GPL-3.0-or-later - -src_prepare() { - default_src_prepare - - AUTOCONF=autoconf-2.13 AUTOHEADER=autoheader-2.13 ACLOCAL=aclocal-1.4 AUTOMAKE=automake-1.4 ./bootstrap -} - -src_configure() { - CC=tcc ./configure \ - --prefix="${PREFIX}" \ - --libdir="${PREFIX}/lib/musl" \ - --disable-shared \ - --host=i386-unknown-linux \ - --target=i386-unknown-linux \ - --build=i386-unknown-linux -} diff --git a/sysa/libtool-2.2.4/checksums b/sysa/libtool-2.2.4/checksums new file mode 100644 index 00000000..9d48a117 --- /dev/null +++ b/sysa/libtool-2.2.4/checksums @@ -0,0 +1,2 @@ +456e988e4dce69afc7a00507aa29c89ee69fcfba1bbc6c29bc0aeba244c24539 /after/lib/musl/libltdl.a +7fabfde77fef225b0f42c8f7d6888c94d88c3a23747076f375862e1bab6e2b3f /after/lib/musl/libltdl.la diff --git a/sysa/libtool-2.2.4/libtool-2.2.4.sh b/sysa/libtool-2.2.4/libtool-2.2.4.sh new file mode 100755 index 00000000..9e67419f --- /dev/null +++ b/sysa/libtool-2.2.4/libtool-2.2.4.sh @@ -0,0 +1,25 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + ./bootstrap +} + +src_configure() { + CC=tcc ./configure \ + --prefix="${PREFIX}" \ + --libdir="${PREFIX}/lib/musl" \ + --disable-shared \ + --host=i386-unknown-linux \ + --target=i386-unknown-linux \ + --build=i386-unknown-linux +} + +src_compile() { + make MAKEINFO=true +} + +src_install() { + make install MAKEINFO=true +} diff --git a/sysa/run.sh b/sysa/run.sh index 9be27af9..90d37711 100755 --- a/sysa/run.sh +++ b/sysa/run.sh @@ -87,12 +87,10 @@ build autoconf-2.13 build autoconf-2.12 -build libtool-1.4 pass1.sh checksums/pass1 +build libtool-1.4 build binutils-2.14 -build libtool-1.4 pass2.sh checksums/pass2 - # Build musl with fewer patches build musl-1.1.24 binutils-rebuild.sh checksums/pass3 patches-pass3 populate_device_nodes @@ -130,6 +128,8 @@ build automake-1.9.6 stage2.sh build findutils-4.2.33 +build libtool-2.2.4 + build gcc-4.0.4 pass1.sh checksums/pass1 build musl-1.2.2 From 20a4d3af9e6b8725083ccd5105fc42a14787dae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 25 Mar 2021 20:39:08 +0000 Subject: [PATCH 03/14] GNU Automake 1.10.3 --- SHA256SUMS.sources | 1 + parts.rst | 19 +++++++++++++++++ rootfs.sh | 3 +++ sysa/automake-1.10.3/automake-1.10.3.sh | 21 +++++++++++++++++++ .../patches/aclocal_glob.patch | 16 ++++++++++++++ sysa/run.sh | 2 ++ sysa/run2.sh | 4 ++++ 7 files changed, 66 insertions(+) create mode 100755 sysa/automake-1.10.3/automake-1.10.3.sh create mode 100644 sysa/automake-1.10.3/patches/aclocal_glob.patch diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index a9a4bc22..d5459be4 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -7,6 +7,7 @@ f757158a04889b265203eecd8ca92568e2a67c3b9062fa6bff7a0a6efd2244ac autoconf-2.55. e1035aa2c21fae2a934d1ab56c774ce9d22717881dab8a1a5b16d294fb793489 autoconf-2.57.tar.bz2 f0cde70a8f135098a6a3e85869f2e1cc3f141beea766fa3d6636e086cd8b90a7 autoconf-2.59.tar.bz2 93a2ceab963618b021db153f0c881a2de82455c1dc7422be436fcd5c554085a1 autoconf-2.61.tar.bz2 +e98ab43bb839c31696a4202e5b6ff388b391659ef2387cf9365019fad17e1adc automake-1.10.3.tar.bz2 503cdc2b0992a4309545d17f462cb15f99bb57b7161dfc4082b2e7188f2bcc0f automake-1.4-p6.tar.gz 0dbafacaf21e135cab35d357a14bdcd981d2f2d00e1387801be8091a31b7bb81 automake-1.6.3.tar.bz2 2dddc3b51506e702647ccc6757e15c05323fa67245d2d53e81ed36a832f9be42 automake-1.7.8.tar.bz2 diff --git a/parts.rst b/parts.rst index ee510c0d..5122a56f 100644 --- a/parts.rst +++ b/parts.rst @@ -515,6 +515,12 @@ libtool 2.2.4 Newer version of libtool which is more compatible with modern Autotools. +automake 1.10.3 +=============== + +GNU Automake from 1.10 series. ``aclocal`` is slightly patched to work +with our ``perl``. + gcc 4.0.4 ========= @@ -544,3 +550,16 @@ interactively. This new version of ``bash`` compiles without any patches, provides new features, and is built with GNU readline support so it can be used as an interactive shell. ``autoconf-2.61`` is used to regenerate the configure script and ``bison`` is used to recreate some included generated files. + +autoconf 2.65 +============= + +Slightly newer version of GNU Autoconf. At this stage Autoconf is mostly +backwards compatible but newer versions need newer ``automake``. + +xz 5.0.5 +======== + +XZ Utils is a set of free software command-line lossless data compressors, +including lzma and xz. In most cases, xz achieves higher compression rates +than alternatives like gzip and bzip2. diff --git a/rootfs.sh b/rootfs.sh index 647a35db..a7988f02 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -273,6 +273,9 @@ get_file https://ftp.gnu.org/gnu/findutils/findutils-4.2.33.tar.gz # libtool 2.2.4 get_file https://ftp.gnu.org/gnu/libtool/libtool-2.2.4.tar.bz2 +# automake 1.10.3 +get_file https://ftp.gnu.org/gnu/automake/automake-1.10.3.tar.bz2 + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/automake-1.10.3/automake-1.10.3.sh b/sysa/automake-1.10.3/automake-1.10.3.sh new file mode 100755 index 00000000..2954a508 --- /dev/null +++ b/sysa/automake-1.10.3/automake-1.10.3.sh @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + default_src_prepare + + autoreconf-2.61 -f +} + +src_configure() { + ./configure CC=tcc --prefix=/after +} + +src_compile() { + make MAKEINFO=true +} + +src_install() { + make install MAKEINFO=true +} diff --git a/sysa/automake-1.10.3/patches/aclocal_glob.patch b/sysa/automake-1.10.3/patches/aclocal_glob.patch new file mode 100644 index 00000000..1e0bd5fa --- /dev/null +++ b/sysa/automake-1.10.3/patches/aclocal_glob.patch @@ -0,0 +1,16 @@ +SPDX-FileCopyrightText: 2021 Andrius Štikonas + +SPDX-License-Identifier: GPL-2.0-or-later + +Fixes aclocal-1.10 to work with our Perl + +--- aclocal.in 2021-03-25 19:18:10.489134059 +0000 ++++ aclocal.in 2021-03-25 19:18:20.159389339 +0000 +@@ -45,6 +45,7 @@ + use Automake::FileUtils; + use File::Basename; + use File::stat; ++use File::Glob; + use Cwd; + + # Some globals. diff --git a/sysa/run.sh b/sysa/run.sh index 90d37711..8ae4f574 100755 --- a/sysa/run.sh +++ b/sysa/run.sh @@ -130,6 +130,8 @@ build findutils-4.2.33 build libtool-2.2.4 +build automake-1.10.3 + build gcc-4.0.4 pass1.sh checksums/pass1 build musl-1.2.2 diff --git a/sysa/run2.sh b/sysa/run2.sh index b63c38a1..cb2a32a0 100755 --- a/sysa/run2.sh +++ b/sysa/run2.sh @@ -10,6 +10,10 @@ set -e . helpers.sh +build autoconf-2.65 + +build xz-5.0.5 + echo "Bootstrapping completed." exec env - PATH=/after/bin PS1="\w # " bash -i From 246cc10ab5a8378e7c50b86d2ae726bd02bf8385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 25 Mar 2021 21:35:43 +0000 Subject: [PATCH 04/14] GNU Autoconf 2.65 --- SHA256SUMS.sources | 1 + parts.rst | 19 ++++++------------- rootfs.sh | 3 +++ sysa/autoconf-2.61/stage2.sh | 1 - sysa/autoconf-2.65/autoconf-2.65.sh | 29 +++++++++++++++++++++++++++++ sysa/gcc-4.0.4/pass1.sh | 2 +- sysa/gcc-4.0.4/pass2.sh | 2 +- sysa/run.sh | 2 ++ sysa/run2.sh | 4 ---- 9 files changed, 43 insertions(+), 20 deletions(-) create mode 100755 sysa/autoconf-2.65/autoconf-2.65.sh diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index d5459be4..317d9f0f 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -7,6 +7,7 @@ f757158a04889b265203eecd8ca92568e2a67c3b9062fa6bff7a0a6efd2244ac autoconf-2.55. e1035aa2c21fae2a934d1ab56c774ce9d22717881dab8a1a5b16d294fb793489 autoconf-2.57.tar.bz2 f0cde70a8f135098a6a3e85869f2e1cc3f141beea766fa3d6636e086cd8b90a7 autoconf-2.59.tar.bz2 93a2ceab963618b021db153f0c881a2de82455c1dc7422be436fcd5c554085a1 autoconf-2.61.tar.bz2 +db11944057f3faf229ff5d6ce3fcd819f565455c152b72cec17ebc1cbb80136b autoconf-2.65.tar.bz2 e98ab43bb839c31696a4202e5b6ff388b391659ef2387cf9365019fad17e1adc automake-1.10.3.tar.bz2 503cdc2b0992a4309545d17f462cb15f99bb57b7161dfc4082b2e7188f2bcc0f automake-1.4-p6.tar.gz 0dbafacaf21e135cab35d357a14bdcd981d2f2d00e1387801be8091a31b7bb81 automake-1.6.3.tar.bz2 diff --git a/parts.rst b/parts.rst index 5122a56f..c1f9224a 100644 --- a/parts.rst +++ b/parts.rst @@ -521,6 +521,12 @@ automake 1.10.3 GNU Automake from 1.10 series. ``aclocal`` is slightly patched to work with our ``perl``. +autoconf 2.65 +============= + +Slightly newer version of GNU Autoconf. At this stage Autoconf is mostly +backwards compatible but newer versions need newer ``automake``. + gcc 4.0.4 ========= @@ -550,16 +556,3 @@ interactively. This new version of ``bash`` compiles without any patches, provides new features, and is built with GNU readline support so it can be used as an interactive shell. ``autoconf-2.61`` is used to regenerate the configure script and ``bison`` is used to recreate some included generated files. - -autoconf 2.65 -============= - -Slightly newer version of GNU Autoconf. At this stage Autoconf is mostly -backwards compatible but newer versions need newer ``automake``. - -xz 5.0.5 -======== - -XZ Utils is a set of free software command-line lossless data compressors, -including lzma and xz. In most cases, xz achieves higher compression rates -than alternatives like gzip and bzip2. diff --git a/rootfs.sh b/rootfs.sh index a7988f02..2acbc0f1 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -276,6 +276,9 @@ get_file https://ftp.gnu.org/gnu/libtool/libtool-2.2.4.tar.bz2 # automake 1.10.3 get_file https://ftp.gnu.org/gnu/automake/automake-1.10.3.tar.bz2 +# autoconf 2.65 +get_file https://ftp.gnu.org/gnu/autoconf/autoconf-2.65.tar.bz2 + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/autoconf-2.61/stage2.sh b/sysa/autoconf-2.61/stage2.sh index eeceab1c..0ad6d4fe 100755 --- a/sysa/autoconf-2.61/stage2.sh +++ b/sysa/autoconf-2.61/stage2.sh @@ -3,7 +3,6 @@ # SPDX-License-Identifier: GPL-3.0-or-later src_prepare() { - sed -i -e '/AC_PROG_GREP/d' -e '/AC_PROG_SED/d' configure.ac autoreconf-2.61 -f # Install autoconf data files into versioned directory diff --git a/sysa/autoconf-2.65/autoconf-2.65.sh b/sysa/autoconf-2.65/autoconf-2.65.sh new file mode 100755 index 00000000..9f84dd83 --- /dev/null +++ b/sysa/autoconf-2.65/autoconf-2.65.sh @@ -0,0 +1,29 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + autoreconf-2.61 -f + + # Install autoconf data files into versioned directory + for file in */*/Makefile.in */Makefile.in Makefile.in; do + sed -i '/^pkgdatadir/s:$:-@VERSION@:' $file + done +} + +src_configure() { + ./configure --prefix="${PREFIX}" --program-suffix=-2.65 +} + +src_compile() { + make MAKEINFO=true +} + +src_install() { + make install MAKEINFO=true + + ln -sf "${PREFIX}/bin/autoconf-2.65" "${PREFIX}/bin/autoconf" + ln -sf "${PREFIX}/bin/autoheader-2.65" "${PREFIX}/bin/autoheader" + ln -sf "${PREFIX}/bin/autom4te-2.65" "${PREFIX}/bin/autom4te" + ln -sf "${PREFIX}/bin/autoreconf-2.65" "${PREFIX}/bin/autoreconf" +} diff --git a/sysa/gcc-4.0.4/pass1.sh b/sysa/gcc-4.0.4/pass1.sh index c2bcbfdf..f365cb52 100755 --- a/sysa/gcc-4.0.4/pass1.sh +++ b/sysa/gcc-4.0.4/pass1.sh @@ -29,7 +29,7 @@ src_prepare() { cd .. done cd libmudflap - autoreconf-2.61 -f + AUTOM4TE=autom4te-2.61 autoreconf-2.61 -f cd .. for dir in fixincludes intl libmudflap; do diff --git a/sysa/gcc-4.0.4/pass2.sh b/sysa/gcc-4.0.4/pass2.sh index 6a8ade5d..75879753 100755 --- a/sysa/gcc-4.0.4/pass2.sh +++ b/sysa/gcc-4.0.4/pass2.sh @@ -28,7 +28,7 @@ src_prepare() { cd .. done cd libmudflap - autoreconf-2.61 -f + AUTOM4TE=autom4te-2.61 autoreconf-2.61 -f cd .. for dir in fixincludes intl libmudflap; do diff --git a/sysa/run.sh b/sysa/run.sh index 8ae4f574..5c837aff 100755 --- a/sysa/run.sh +++ b/sysa/run.sh @@ -132,6 +132,8 @@ build libtool-2.2.4 build automake-1.10.3 +build autoconf-2.65 + build gcc-4.0.4 pass1.sh checksums/pass1 build musl-1.2.2 diff --git a/sysa/run2.sh b/sysa/run2.sh index cb2a32a0..b63c38a1 100755 --- a/sysa/run2.sh +++ b/sysa/run2.sh @@ -10,10 +10,6 @@ set -e . helpers.sh -build autoconf-2.65 - -build xz-5.0.5 - echo "Bootstrapping completed." exec env - PATH=/after/bin PS1="\w # " bash -i From aa31fbc95b76afe356fa96882061138c1c1c9f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 28 Mar 2021 00:18:30 +0000 Subject: [PATCH 05/14] Patch tcc to ignore static inside array. --- .../patches-pass3/tcc_static.patch | 1 - sysa/musl-1.1.24/patches/tcc_static.patch | 112 ------------------ sysa/tcc-0.9.27/checksums/tcc-musl-pass1 | 2 +- sysa/tcc-0.9.27/checksums/tcc-musl-pass2 | 2 +- sysa/tcc-0.9.27/checksums/tcc-musl-pass3 | 2 +- sysa/tcc-0.9.27/checksums/tcc-patched | 2 +- .../patches/ignore-static-inside-array.patch | 59 +++++++++ sysa/tcc-0.9.27/tcc-musl-pass1.sh | 2 + sysa/tcc-0.9.27/tcc-musl-pass2.sh | 3 + sysa/tcc-0.9.27/tcc-musl-pass3.sh | 3 + sysa/tcc-0.9.27/tcc-patched.kaem | 1 + 11 files changed, 72 insertions(+), 117 deletions(-) delete mode 120000 sysa/musl-1.1.24/patches-pass3/tcc_static.patch delete mode 100644 sysa/musl-1.1.24/patches/tcc_static.patch create mode 100644 sysa/tcc-0.9.27/patches/ignore-static-inside-array.patch diff --git a/sysa/musl-1.1.24/patches-pass3/tcc_static.patch b/sysa/musl-1.1.24/patches-pass3/tcc_static.patch deleted file mode 120000 index be8c7acb..00000000 --- a/sysa/musl-1.1.24/patches-pass3/tcc_static.patch +++ /dev/null @@ -1 +0,0 @@ -../patches/tcc_static.patch \ No newline at end of file diff --git a/sysa/musl-1.1.24/patches/tcc_static.patch b/sysa/musl-1.1.24/patches/tcc_static.patch deleted file mode 100644 index fba6d7a0..00000000 --- a/sysa/musl-1.1.24/patches/tcc_static.patch +++ /dev/null @@ -1,112 +0,0 @@ -SPDX-FileCopyrightText: 2021 Andrius Štikonas -SPDX-FileCopyrightText: 2021 fosslinux - -SPDX-License-Identifier: MIT - -tinycc-0.9.27 does not support the use of the static keyword within an array length or index. -diff -U3 -r src/internal/syscall.h src/internal/syscall.h ---- src/internal/syscall.h 2019-10-13 22:58:27.000000000 +0100 -+++ src/internal/syscall.h 2021-02-01 00:24:02.099200492 +0000 -@@ -331,7 +331,7 @@ - #define __sys_open_cp(...) __SYSCALL_DISP(__sys_open_cp,,__VA_ARGS__) - #define sys_open_cp(...) __syscall_ret(__sys_open_cp(__VA_ARGS__)) - --hidden void __procfdname(char __buf[static 15+3*sizeof(int)], unsigned); -+hidden void __procfdname(char __buf[15+3*sizeof(int)], unsigned); - - hidden void *__vdsosym(const char *, const char *); - -diff -U3 -r src/network/lookup.h src/network/lookup.h ---- src/network/lookup.h 2019-10-13 22:58:27.000000000 +0100 -+++ src/network/lookup.h 2021-02-01 00:27:42.695155110 +0000 -@@ -43,9 +43,9 @@ - #define MAXADDRS 48 - #define MAXSERVS 2 - --hidden int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags); --hidden int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags); --hidden int __lookup_ipliteral(struct address buf[static 1], const char *name, int family); -+hidden int __lookup_serv(struct service buf[MAXSERVS], const char *name, int proto, int socktype, int flags); -+hidden int __lookup_name(struct address buf[MAXADDRS], char canon[256], const char *name, int family, int flags); -+hidden int __lookup_ipliteral(struct address buf[1], const char *name, int family); - - hidden int __get_resolv_conf(struct resolvconf *, char *, size_t); - hidden int __res_msend_rc(int, const unsigned char *const *, const int *, unsigned char *const *, int *, int, const struct resolvconf *); -diff -U3 -r src/network/lookup_ipliteral.c src/network/lookup_ipliteral.c ---- src/network/lookup_ipliteral.c 2019-10-13 22:58:27.000000000 +0100 -+++ src/network/lookup_ipliteral.c 2021-02-01 00:27:59.955620933 +0000 -@@ -9,7 +9,7 @@ - #include - #include "lookup.h" - --int __lookup_ipliteral(struct address buf[static 1], const char *name, int family) -+int __lookup_ipliteral(struct address buf[1], const char *name, int family) - { - struct in_addr a4; - struct in6_addr a6; -diff -U3 -r src/network/lookup_name.c src/network/lookup_name.c ---- src/network/lookup_name.c 2019-10-13 22:58:27.000000000 +0100 -+++ src/network/lookup_name.c 2021-02-01 00:28:56.117136509 +0000 -@@ -23,7 +23,7 @@ - return !*s; - } - --static int name_from_null(struct address buf[static 2], const char *name, int family, int flags) -+static int name_from_null(struct address buf[2], const char *name, int family, int flags) - { - int cnt = 0; - if (name) return 0; -@@ -41,12 +41,12 @@ - return cnt; - } - --static int name_from_numeric(struct address buf[static 1], const char *name, int family) -+static int name_from_numeric(struct address buf[1], const char *name, int family) - { - return __lookup_ipliteral(buf, name, family); - } - --static int name_from_hosts(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family) -+static int name_from_hosts(struct address buf[MAXADDRS], char canon[256], const char *name, int family) - { - char line[512]; - size_t l = strlen(name); -@@ -130,7 +130,7 @@ - return 0; - } - --static int name_from_dns(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, const struct resolvconf *conf) -+static int name_from_dns(struct address buf[MAXADDRS], char canon[256], const char *name, int family, const struct resolvconf *conf) - { - unsigned char qbuf[2][280], abuf[2][512]; - const unsigned char *qp[2] = { qbuf[0], qbuf[1] }; -@@ -166,7 +166,7 @@ - return EAI_FAIL; - } - --static int name_from_dns_search(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family) -+static int name_from_dns_search(struct address buf[MAXADDRS], char canon[256], const char *name, int family) - { - char search[256]; - struct resolvconf conf; -@@ -284,7 +284,7 @@ - return b->sortkey - a->sortkey; - } - --int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags) -+int __lookup_name(struct address buf[MAXADDRS], char canon[256], const char *name, int family, int flags) - { - int cnt = 0, i, j; - -diff -U3 -r src/network/lookup_serv.c src/network/lookup_serv.c ---- src/network/lookup_serv.c 2019-10-13 22:58:27.000000000 +0100 -+++ src/network/lookup_serv.c 2021-02-01 00:29:10.357520778 +0000 -@@ -9,7 +9,7 @@ - #include "lookup.h" - #include "stdio_impl.h" - --int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags) -+int __lookup_serv(struct service buf[MAXSERVS], const char *name, int proto, int socktype, int flags) - { - char line[128]; - int cnt = 0; diff --git a/sysa/tcc-0.9.27/checksums/tcc-musl-pass1 b/sysa/tcc-0.9.27/checksums/tcc-musl-pass1 index 1c102fdf..cf8d3bc0 100644 --- a/sysa/tcc-0.9.27/checksums/tcc-musl-pass1 +++ b/sysa/tcc-0.9.27/checksums/tcc-musl-pass1 @@ -1,2 +1,2 @@ -9819c29a2c8259883b4a97d6b57f2fdac87b9807ba9594f7c063601a7fe84af9 /after/bin/tcc-musl +6a14de323f7c1e7ae473107a607231f89cf60064c09e83a02362369917a1f483 /after/bin/tcc-musl dd2f569a10a5bce7a8d264a9a04a86be9c3c1293df64c907370a8d5088c21e65 /after/lib/musl/tcc/libtcc1.a diff --git a/sysa/tcc-0.9.27/checksums/tcc-musl-pass2 b/sysa/tcc-0.9.27/checksums/tcc-musl-pass2 index 4d618f15..792ceb00 100644 --- a/sysa/tcc-0.9.27/checksums/tcc-musl-pass2 +++ b/sysa/tcc-0.9.27/checksums/tcc-musl-pass2 @@ -1,2 +1,2 @@ -0075b156a9dc64b63150b3cc020692f2242e1b4fffebccc743651e0bda4b5ca4 /after/bin/tcc-musl +c65633cb875609df7aab2225a24334b5853a0b3e097bdb3ba8a0ae80c1bf5bf0 /after/bin/tcc-musl a650b13efc65073fb851e9db89728089d8845c401f85faaa09801874ab058089 /after/lib/tcc/libtcc1.a diff --git a/sysa/tcc-0.9.27/checksums/tcc-musl-pass3 b/sysa/tcc-0.9.27/checksums/tcc-musl-pass3 index 32c6acd5..0ab43d96 100644 --- a/sysa/tcc-0.9.27/checksums/tcc-musl-pass3 +++ b/sysa/tcc-0.9.27/checksums/tcc-musl-pass3 @@ -1,2 +1,2 @@ -fd8fdc967f227f3a8ef4f51226ac8a45b6be78eb0b127d2cdf0a9df0e19451b0 /after/bin/tcc-musl +068384be93b6654d6ad555881eaf24d221cc3edf229465f050fec30c30648047 /after/bin/tcc-musl a650b13efc65073fb851e9db89728089d8845c401f85faaa09801874ab058089 /after/lib/tcc/libtcc1.a diff --git a/sysa/tcc-0.9.27/checksums/tcc-patched b/sysa/tcc-0.9.27/checksums/tcc-patched index 7016705b..f2ea2fe5 100644 --- a/sysa/tcc-0.9.27/checksums/tcc-patched +++ b/sysa/tcc-0.9.27/checksums/tcc-patched @@ -1 +1 @@ -d9dd8e605c8dfd584216e94df4759b1aeb894bdd3d99937bf0eba28cf875e25a /after/bin/tcc +0bd8c89f8eee4b8e185b404308a79b3cd315a2143f864d7c250a8f088ae1149d /after/bin/tcc diff --git a/sysa/tcc-0.9.27/patches/ignore-static-inside-array.patch b/sysa/tcc-0.9.27/patches/ignore-static-inside-array.patch new file mode 100644 index 00000000..e3972f2f --- /dev/null +++ b/sysa/tcc-0.9.27/patches/ignore-static-inside-array.patch @@ -0,0 +1,59 @@ +SPDX-FileCopyrightText: 2018 Petr Skocik + +SPDX-License-Identifier: LGPL-2.0-or-later + +From ef668aae1ee2b8bc904c50a13bf58df613b2f0b0 Mon Sep 17 00:00:00 2001 +From: Petr Skocik +Date: Fri, 23 Mar 2018 13:19:58 +0100 +Subject: [PATCH 1/1] Don't fail on const/restrict/static/* inside [] + +This patch makes tcc ignore them. + +Normally (as per the C standard), They should +be only applicable inside parameter arrays +and affect (const/restrict) the pointer the +array gets converted to. + +[matz: fix formatting, add volatile handling, add testcase, +add comment about above deficiency] +--- + tccgen.c | 19 +++++++++++++++++-- + tests/tests2/100_c99array-decls.c | 34 ++++++++++++++++++++++++++++++++++ + tests/tests2/100_c99array-decls.expect | 0 + 3 files changed, 51 insertions(+), 2 deletions(-) + create mode 100644 tests/tests2/100_c99array-decls.c + create mode 100644 tests/tests2/100_c99array-decls.expect + +diff --git tccgen.c tccgen.c +index 7ed89ac..6ef40e4 100644 +--- tccgen.c ++++ tccgen.c +@@ -4335,8 +4335,23 @@ static int post_type(CType *type, AttributeDef *ad, int storage, int td) + int saved_nocode_wanted = nocode_wanted; + /* array definition */ + next(); +- if (tok == TOK_RESTRICT1) +- next(); ++ while (1) { ++ /* XXX The optional type-quals and static should only be accepted ++ in parameter decls. The '*' as well, and then even only ++ in prototypes (not function defs). */ ++ switch (tok) { ++ case TOK_RESTRICT1: case TOK_RESTRICT2: case TOK_RESTRICT3: ++ case TOK_CONST1: ++ case TOK_VOLATILE1: ++ case TOK_STATIC: ++ case '*': ++ next(); ++ continue; ++ default: ++ break; ++ } ++ break; ++ } + n = -1; + t1 = 0; + if (tok != ']') { +-- +2.11.4.GIT + diff --git a/sysa/tcc-0.9.27/tcc-musl-pass1.sh b/sysa/tcc-0.9.27/tcc-musl-pass1.sh index 891e9275..84cf46c6 100755 --- a/sysa/tcc-0.9.27/tcc-musl-pass1.sh +++ b/sysa/tcc-0.9.27/tcc-musl-pass1.sh @@ -7,6 +7,8 @@ src_unpack() { } src_prepare() { + # Note that tcc includes static-link and ignore-static-inside-array patches + # since we do not build from clean checkout. patch -Np0 -i ../../patches/ignore-duplicate-symbols.patch } diff --git a/sysa/tcc-0.9.27/tcc-musl-pass2.sh b/sysa/tcc-0.9.27/tcc-musl-pass2.sh index 5e31dcea..d6fe4e14 100755 --- a/sysa/tcc-0.9.27/tcc-musl-pass2.sh +++ b/sysa/tcc-0.9.27/tcc-musl-pass2.sh @@ -8,6 +8,9 @@ src_unpack() { } src_prepare() { + # Note that tcc includes static-link and ignore-static-inside-array patches + # since we do not build from clean checkout. + patch -Np0 -i ../../patches/ignore-duplicate-symbols.patch } diff --git a/sysa/tcc-0.9.27/tcc-musl-pass3.sh b/sysa/tcc-0.9.27/tcc-musl-pass3.sh index 540d1ad2..f53aadba 100755 --- a/sysa/tcc-0.9.27/tcc-musl-pass3.sh +++ b/sysa/tcc-0.9.27/tcc-musl-pass3.sh @@ -8,6 +8,9 @@ src_unpack() { } src_prepare() { + # Note that tcc includes static-link and ignore-static-inside-array patches + # since we do not build from clean checkout. + : } diff --git a/sysa/tcc-0.9.27/tcc-patched.kaem b/sysa/tcc-0.9.27/tcc-patched.kaem index bdff83fd..7ed72859 100755 --- a/sysa/tcc-0.9.27/tcc-patched.kaem +++ b/sysa/tcc-0.9.27/tcc-patched.kaem @@ -11,6 +11,7 @@ cd src/tcc-0.9.27 # Patch patch -Np0 -i ../../patches/static-link.patch +patch -Np0 -i ../../patches/ignore-static-inside-array.patch # Compile ## We have to use 0.9.26 to recompile 0.9.27, 0.9.27 is not self-hosting for From 1df73da7fa2eac53cf1f1b546b2e24aeaf415a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sat, 27 Mar 2021 20:38:51 +0000 Subject: [PATCH 06/14] coreutils-6.10: catm->touch --- sysa/coreutils-6.10/coreutils-6.10.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysa/coreutils-6.10/coreutils-6.10.sh b/sysa/coreutils-6.10/coreutils-6.10.sh index a06d65b6..64e33284 100755 --- a/sysa/coreutils-6.10/coreutils-6.10.sh +++ b/sysa/coreutils-6.10/coreutils-6.10.sh @@ -14,8 +14,8 @@ src_prepare() { mv getdate.tab.c getdate.c cd .. - catm config.h - catm lib/configmake.h + touch config.h + touch lib/configmake.h } src_compile() { From a185b83f80a2e07969900ac3430bfc57de867030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 28 Mar 2021 15:11:13 +0100 Subject: [PATCH 07/14] Try to fix intermittent error while building automake 1.10. --- sysa/automake-1.10.3/automake-1.10.3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysa/automake-1.10.3/automake-1.10.3.sh b/sysa/automake-1.10.3/automake-1.10.3.sh index 2954a508..761e62ca 100755 --- a/sysa/automake-1.10.3/automake-1.10.3.sh +++ b/sysa/automake-1.10.3/automake-1.10.3.sh @@ -13,7 +13,7 @@ src_configure() { } src_compile() { - make MAKEINFO=true + make MAKEINFO=true CC=tcc } src_install() { From f59909142de586636a22e1913ad9ddda89c917aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 30 Mar 2021 20:59:42 +0100 Subject: [PATCH 08/14] Fix gcc not to use pregen files. Fixes #78 --- parts.rst | 4 ++++ sysa/bash-5.1/checksums | 2 +- sysa/gcc-4.0.4/checksums/pass1 | 23 ++++++++++--------- sysa/gcc-4.0.4/checksums/pass2 | 23 ++++++++++--------- sysa/gcc-4.0.4/pass1.sh | 40 ++++++++++++++++++++-------------- sysa/gcc-4.0.4/pass2.sh | 37 +++++++++++++++++++------------ 6 files changed, 74 insertions(+), 55 deletions(-) diff --git a/parts.rst b/parts.rst index c1f9224a..9cf26ae3 100644 --- a/parts.rst +++ b/parts.rst @@ -536,6 +536,10 @@ compiler for most projects related to GNU and the Linux kernel. Only the C frontend is built at this stage. +At this stage we are not yet able to regenerate top-level ``Makefile.in`` +which needs GNU Autogen and hence Guile. Luckily, building GCC without +top-level ``Makefile`` is fairly easy. + musl 1.2.2 ========== diff --git a/sysa/bash-5.1/checksums b/sysa/bash-5.1/checksums index 5b2109c5..89e966cf 100644 --- a/sysa/bash-5.1/checksums +++ b/sysa/bash-5.1/checksums @@ -1 +1 @@ -42d8035dd5e893be2dabcaee3064e13b9d993efae5383bedececa9a7ef172ff0 /after/bin/bash +bf782a82ac8ce393d2a028cec337a4f9428f8ab93d2ae11b026dcc8a027b80a7 /after/bin/bash diff --git a/sysa/gcc-4.0.4/checksums/pass1 b/sysa/gcc-4.0.4/checksums/pass1 index 7c6b1e15..378d59fd 100644 --- a/sysa/gcc-4.0.4/checksums/pass1 +++ b/sysa/gcc-4.0.4/checksums/pass1 @@ -1,14 +1,13 @@ -6ca1ff5a1dd835e2378a8d827c5ec8a68121c7b5c719ab56f71f9d717b8e007e /after/bin/cpp -236bb12f3c0b6fb28dee325dfcfcf1cd87dc057aaac307e76a7124c4d071c349 /after/bin/gcc -236bb12f3c0b6fb28dee325dfcfcf1cd87dc057aaac307e76a7124c4d071c349 /after/bin/i386-unknown-linux-gnu-gcc -236bb12f3c0b6fb28dee325dfcfcf1cd87dc057aaac307e76a7124c4d071c349 /after/bin/i386-unknown-linux-gnu-gcc-4.0.4 -903b1dae32b217048b1a35a934836496027e6947b77f5711cb8714cd5241dda0 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/cc1 -711689a618e34a0cff2c6061e554f9a2f9d447a7623bd46ba11c2eb816932883 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/collect2 -a3fbed284b1efaf6fccfc81eddd9bad8c4cf07673b16e8885ad6f31a1569c9b4 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/install-tools/fixincl -f2c7e7bf5377e10927c5d243eaa9eb3ae9bed7aab393621831673b368ebae00f /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbegin.o -c76e19409c9344a10213e0abb18481aae6416342db4971fb99a116a91fb164da /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginS.o -f2c7e7bf5377e10927c5d243eaa9eb3ae9bed7aab393621831673b368ebae00f /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginT.o +dab0ba7d7f68cc03646b367619c3be4ebf16c39fb217a105019d5162df42947f /after/bin/cpp +773e7a59b9b0c6e7695ac77ebf566c547959d3991743f09bd0c6467e64e4a7c7 /after/bin/gcc +773e7a59b9b0c6e7695ac77ebf566c547959d3991743f09bd0c6467e64e4a7c7 /after/bin/i386-unknown-linux-gnu-gcc +773e7a59b9b0c6e7695ac77ebf566c547959d3991743f09bd0c6467e64e4a7c7 /after/bin/i386-unknown-linux-gnu-gcc-4.0.4 +df9f52d38e64514296964c5fbcd8ce2aba011d6ff47f15b6fd9158aed193dbcf /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/cc1 +9b8dc5d577de150dcb61150086481d2205aed982344cf059d51c8dc88c5ba9a4 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/collect2 +de4566c661258fa626ea7076e6c57af95c01d0786bcdadb12af23852cc421a2a /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbegin.o +c7eea5e845fe2ee5538704d59c6e777d4f72b7100e78d5f86f8d95d96ab2ec20 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginS.o +de4566c661258fa626ea7076e6c57af95c01d0786bcdadb12af23852cc421a2a /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginT.o 342276a6ad25e3d064bba9c5d50fbeaae15d0aefdc5c72b1e796366189af1b1b /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtend.o 2bf001e0be96ea7c53adf35b1bf0a677eee02008e3aee6c30166d100b720687c /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtendS.o -e3c2b3754058829d79b42a4968f3a3dda6e289b51b4b3580f4ccbc64ff473a26 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcc.a -fc093c2bcf6473237c1187fc93b60e5d353bf710958d7151283c96074af0a899 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcov.a +7b416e87b8e5998c042b64b4b87499720895c17deeffc0bc1b79f6fac502d51b /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcc.a +efc9783c7386519ef7d5bfe7fadf16d4b6b717deb18dd04e09d810354f015942 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcov.a diff --git a/sysa/gcc-4.0.4/checksums/pass2 b/sysa/gcc-4.0.4/checksums/pass2 index 8495d4ad..9942227c 100644 --- a/sysa/gcc-4.0.4/checksums/pass2 +++ b/sysa/gcc-4.0.4/checksums/pass2 @@ -1,14 +1,13 @@ -88dbe31603504b89ced21ceb5d7205f20c9473a6df814bb80f2b28ddebc977c5 /after/bin/cpp -2b909307bd6b0bf7fed4363122948561da6518acfd74b809c3ab7ede2da8fcfb /after/bin/gcc -2b909307bd6b0bf7fed4363122948561da6518acfd74b809c3ab7ede2da8fcfb /after/bin/i386-unknown-linux-gnu-gcc -2b909307bd6b0bf7fed4363122948561da6518acfd74b809c3ab7ede2da8fcfb /after/bin/i386-unknown-linux-gnu-gcc-4.0.4 -7fda283cdddc9ecb96aa64eee6ba70a95b5547e47537934ec3a98a7f9846b563 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/cc1 -289a9da62408356b8d21472497fd26b9021e27b9bc7834b969d11791eba4fd58 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/collect2 -8c8c0c1781c361a5e585811c3712ae8d052c6d2bb1d18328c50329b74e712144 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/install-tools/fixincl -282f0f0d79a9f1559f700db14f8a360194e1e8ab522ecad91aa29d10ea1bfb1a /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbegin.o -693e3dc5d35724960692e3e81280bad9e21de68f3884e52b86e874d20baf8151 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginS.o -282f0f0d79a9f1559f700db14f8a360194e1e8ab522ecad91aa29d10ea1bfb1a /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginT.o +49099736ba74bd065e8767ed1ae5e9eaff93993ada8a9106ea38fb1d46fb9c65 /after/bin/cpp +87f9d3a527ebcd88f23a3fbdc32ed383c76dc234a128cf8ff31ebc7b75e7a4b3 /after/bin/gcc +87f9d3a527ebcd88f23a3fbdc32ed383c76dc234a128cf8ff31ebc7b75e7a4b3 /after/bin/i386-unknown-linux-gnu-gcc +87f9d3a527ebcd88f23a3fbdc32ed383c76dc234a128cf8ff31ebc7b75e7a4b3 /after/bin/i386-unknown-linux-gnu-gcc-4.0.4 +f853f77a4f040eee8cda44d5b96e751e58874ac814118848994785df2e9f7490 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/cc1 +29c521d36c748731b4fa2afca2a9d94565da795312d51cf5f1032f3397537514 /after/libexec/gcc/i386-unknown-linux-gnu/4.0.4/collect2 +a07db1648128987f10debb1730b4456c0423aab5bd93d68e4f2b47447a11c5d9 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbegin.o +20a3bbbd5cd59b91660628d416d489437463b651fa15b5ea5f026b45c9e35b65 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginS.o +a07db1648128987f10debb1730b4456c0423aab5bd93d68e4f2b47447a11c5d9 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtbeginT.o 342276a6ad25e3d064bba9c5d50fbeaae15d0aefdc5c72b1e796366189af1b1b /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtend.o 2bf001e0be96ea7c53adf35b1bf0a677eee02008e3aee6c30166d100b720687c /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/crtendS.o -e1789e68464c8c04e77180f8a5dc5855aa6b488a8b11526c77f70d89453122e4 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcc.a -3332fba4918963e196c701e00cc68ea28c5b00b4da0bd01ace911f0441c4932c /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcov.a +5d3c8a9b80e4e34dfb70a56d6e23a05e01d2ecdbf60232a1b053462d4a98e99e /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcc.a +f8c3b07e0f98b7f34ac0960d98f3b59ee0f47c42e72c529d10d66dccdc9b5d46 /after/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/libgcov.a diff --git a/sysa/gcc-4.0.4/pass1.sh b/sysa/gcc-4.0.4/pass1.sh index f365cb52..d107a7cf 100755 --- a/sysa/gcc-4.0.4/pass1.sh +++ b/sysa/gcc-4.0.4/pass1.sh @@ -14,8 +14,10 @@ src_prepare() { # Needed for musl sed -i 's/struct siginfo/siginfo_t/' gcc/config/i386/linux-unwind.h - rm configure - autoconf-2.13 + # Regenerating top level Makefile requires GNU Autogen and hence Guile, + # but it is not essential for building gcc. + rm configure Makefile.in fixincludes/fixincl.x + for dir in intl libcpp; do cd $dir rm aclocal.m4 @@ -61,14 +63,20 @@ src_prepare() { src_configure() { mkdir build cd build - CC=tcc CFLAGS="-D HAVE_ALLOCA_H" ../configure \ - --prefix="${PREFIX}" \ - --libdir="${PREFIX}"/lib/musl \ - --build=i386-unknown-linux-gnu \ - --host=i386-unknown-linux-gnu \ - --disable-shared \ - --disable-nls \ - --disable-libmudflap + + for dir in libiberty libcpp gcc; do + mkdir $dir + cd $dir + CC=tcc CFLAGS="-D HAVE_ALLOCA_H" ../../$dir/configure \ + --prefix="${PREFIX}" \ + --libdir="${PREFIX}"/lib/musl \ + --build=i386-unknown-linux-gnu \ + --target=i386-unknown-linux-gnu \ + --host=i386-unknown-linux-gnu \ + --disable-shared \ + --program-transform-name= + cd .. + done cd .. sed -i 's/C_alloca/alloca/g' libiberty/alloca.c @@ -76,13 +84,13 @@ src_configure() { } src_compile() { - mkdir -p /usr/ - ln -sf "${PREFIX}"/include /usr/include - ln -sf /usr/include/limits.h /usr/include/sys/limits.h - - make -C build LIBGCC2_INCLUDES=-I"${PREFIX}/include/musl" + ln -s . build/build-i386-unknown-linux-gnu + for dir in libiberty libcpp gcc; do + make -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include/musl" STMP_FIXINC= + done } src_install() { - make -C build install + mkdir -p "${PREFIX}/lib/musl/gcc/i386-unknown-linux-gnu/4.0.4/install-tools/include" + make -C build/gcc install STMP_FIXINC= } diff --git a/sysa/gcc-4.0.4/pass2.sh b/sysa/gcc-4.0.4/pass2.sh index 75879753..9414cb39 100755 --- a/sysa/gcc-4.0.4/pass2.sh +++ b/sysa/gcc-4.0.4/pass2.sh @@ -13,8 +13,10 @@ src_prepare() { # Needed for musl sed -i 's/struct siginfo/siginfo_t/' gcc/config/i386/linux-unwind.h - rm configure - autoconf-2.13 + # Regenerating top level Makefile requires GNU Autogen and hence Guile, + # but it is not essential for building gcc. + rm configure Makefile.in fixincludes/fixincl.x + for dir in intl libcpp; do cd $dir rm aclocal.m4 @@ -60,23 +62,30 @@ src_prepare() { src_configure() { mkdir build cd build - ../configure \ - --prefix="${PREFIX}" \ - --libdir="${PREFIX}"/lib/musl \ - --build=i386-unknown-linux-gnu \ - --host=i386-unknown-linux-gnu \ - --disable-shared \ - --disable-nls \ - --disable-libmudflap + + for dir in libiberty libcpp gcc; do + mkdir $dir + cd $dir + ../../$dir/configure \ + --prefix="${PREFIX}" \ + --libdir="${PREFIX}"/lib/musl \ + --build=i386-unknown-linux-gnu \ + --target=i386-unknown-linux-gnu \ + --host=i386-unknown-linux-gnu \ + --disable-shared \ + --program-transform-name= + cd .. + done cd .. } src_compile() { - mkdir -p /usr/ - ln -sf "${PREFIX}"/include /usr/include - make -C build LIBGCC2_INCLUDES=-I"${PREFIX}/include/musl" + ln -s . build/build-i386-unknown-linux-gnu + for dir in libiberty libcpp gcc; do + make -C build/$dir LIBGCC2_INCLUDES=-I"${PREFIX}/include/musl" STMP_FIXINC= + done } src_install() { - make -C build install + make -C build/gcc install STMP_FIXINC= } From c345001ee81dac96e17f7ab9dcf41ec2ea3644bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 25 Mar 2021 21:47:57 +0000 Subject: [PATCH 09/14] XZ Utils 5.0.5 --- SHA256SUMS.sources | 1 + parts.rst | 7 +++++++ rootfs.sh | 21 ++++++++++++--------- sysa/run2.sh | 2 ++ sysa/xz-5.0.5/checksums | 10 ++++++++++ sysa/xz-5.0.5/patches/xz_automake.patch | 19 +++++++++++++++++++ sysa/xz-5.0.5/xz-5.0.5.sh | 18 ++++++++++++++++++ 7 files changed, 69 insertions(+), 9 deletions(-) create mode 100644 sysa/xz-5.0.5/checksums create mode 100644 sysa/xz-5.0.5/patches/xz_automake.patch create mode 100755 sysa/xz-5.0.5/xz-5.0.5.sh diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index 317d9f0f..9f9c1a6d 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -47,3 +47,4 @@ a5e66f6ebf701b0567f569f57cae82abf5ce57af70a2b45ae71323b61f49134e perl-5.6.2.tar c365874794187f8444e5d22998cd5888ffa47f36def4b77517a808dec27c0600 sed-4.0.9.tar.gz 404a8d72427a559c074e581bf8f7d5a73283faf249cd3faf6dc1c6faf97d07c7 sha-2-61555d.tar.gz c6c37e888b136ccefab903c51149f4b7bd659d69d4aea21245f61053a57aa60a tar-1.12.tar.gz +166c48d2842519bc4f96333bff9e265f8cdda44d38e40594ef3f9bbb52890490 xz-5.0.5.tar.bz2 diff --git a/parts.rst b/parts.rst index 9cf26ae3..d59eae82 100644 --- a/parts.rst +++ b/parts.rst @@ -560,3 +560,10 @@ interactively. This new version of ``bash`` compiles without any patches, provides new features, and is built with GNU readline support so it can be used as an interactive shell. ``autoconf-2.61`` is used to regenerate the configure script and ``bison`` is used to recreate some included generated files. + +xz 5.0.5 +======== + +XZ Utils is a set of free software command-line lossless data compressors, +including lzma and xz. In most cases, xz achieves higher compression rates +than alternatives like gzip and bzip2. diff --git a/rootfs.sh b/rootfs.sh index 2acbc0f1..9046bc09 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -258,15 +258,6 @@ get_file https://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.bz2 # automake 1.9.6 get_file https://ftp.gnu.org/gnu/automake/automake-1.9.6.tar.bz2 -# gcc 4.0.4 -get_file https://ftp.gnu.org/gnu/gcc/gcc-4.0.4/gcc-core-4.0.4.tar.bz2 0 gcc-4.0.4.tar.bz2 - -# musl 1.2.2 -get_file https://musl.libc.org/releases/musl-1.2.2.tar.gz - -# bash 5.1 -get_file https://ftp.gnu.org/gnu/bash/bash-5.1.tar.gz - # findutils 4.2.33 get_file https://ftp.gnu.org/gnu/findutils/findutils-4.2.33.tar.gz @@ -279,6 +270,18 @@ get_file https://ftp.gnu.org/gnu/automake/automake-1.10.3.tar.bz2 # autoconf 2.65 get_file https://ftp.gnu.org/gnu/autoconf/autoconf-2.65.tar.bz2 +# gcc 4.0.4 +get_file https://ftp.gnu.org/gnu/gcc/gcc-4.0.4/gcc-core-4.0.4.tar.bz2 0 gcc-4.0.4.tar.bz2 + +# musl 1.2.2 +get_file https://musl.libc.org/releases/musl-1.2.2.tar.gz + +# bash 5.1 +get_file https://ftp.gnu.org/gnu/bash/bash-5.1.tar.gz + +# xz 5.0.5 +get_file https://tukaani.org/xz/xz-5.0.5.tar.bz2 + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/run2.sh b/sysa/run2.sh index b63c38a1..e2efec21 100755 --- a/sysa/run2.sh +++ b/sysa/run2.sh @@ -10,6 +10,8 @@ set -e . helpers.sh +build xz-5.0.5 + echo "Bootstrapping completed." exec env - PATH=/after/bin PS1="\w # " bash -i diff --git a/sysa/xz-5.0.5/checksums b/sysa/xz-5.0.5/checksums new file mode 100644 index 00000000..e2cd02a6 --- /dev/null +++ b/sysa/xz-5.0.5/checksums @@ -0,0 +1,10 @@ +4059df79a032a49e91f93a74a69695b63fdbf8bca07a3db694a11e55306f68cb /after/bin/lzmadec +5d659d1117c86e8e4c3a9008c6864fb2b9fe1957e88744212bf18881117cb650 /after/bin/lzmainfo +324136feea5a7c5b4d618ad098c3cd80233aa45077d6a1de54608683b5ee2268 /after/bin/xz +79eedbc8cce14e5a9baf71a9b81c7ab3c0fa24e28ff32067b2ee0bd72492583b /after/bin/xzdec +104548a69cb9ced78dd4fd08f5e8a1b6b07230ada5e6554a07368ed84191da86 /after/bin/xzdiff +34db9e45f4ca4bc96b8280ac438ac6c4fab95e44e812e20cf86a2248bf2f7579 /after/bin/xzgrep +2ce262d47007d17dc668e9a9a3263f7fe3f145d61971f189c21f59b25498a4e3 /after/bin/xzless +a050699ff5484e063154d11bf05a9a4eb6c2d38bac09a975a96b42c8b45a72ef /after/bin/xzmore +6a75c21815666ea72ee0cace326edddf04840096425da2a8936bccc026233292 /after/lib/liblzma.a +7691b11f60a825f9556bc213997a011400ae06a812d02f67b39438b8bdba8212 /after/lib/liblzma.la diff --git a/sysa/xz-5.0.5/patches/xz_automake.patch b/sysa/xz-5.0.5/patches/xz_automake.patch new file mode 100644 index 00000000..5db0e506 --- /dev/null +++ b/sysa/xz-5.0.5/patches/xz_automake.patch @@ -0,0 +1,19 @@ +SPDX-FileCopyrightText: 2021 Andrius Štikonas + +SPDX-License-Identifier: Unlicense + +Build with Automake 1.10 + +--- configure.ac 2021-03-25 21:25:45.309736487 +0000 ++++ configure.ac 2021-03-25 21:28:06.683426486 +0000 +@@ -417,8 +417,8 @@ + echo "Initializing Automake:" + + # Automake 1.10 should still be enough but you need to omit serial-tests. +-dnl AM_INIT_AUTOMAKE([1.10 foreign tar-v7 filename-length-max=99]) +-AM_INIT_AUTOMAKE([1.12 foreign tar-v7 filename-length-max=99 serial-tests]) ++AM_INIT_AUTOMAKE([1.10 foreign tar-v7 filename-length-max=99]) ++dnl AM_INIT_AUTOMAKE([1.12 foreign tar-v7 filename-length-max=99 serial-tests]) + AC_PROG_LN_S + + AC_PROG_CC_C99 diff --git a/sysa/xz-5.0.5/xz-5.0.5.sh b/sysa/xz-5.0.5/xz-5.0.5.sh new file mode 100755 index 00000000..1efabb69 --- /dev/null +++ b/sysa/xz-5.0.5/xz-5.0.5.sh @@ -0,0 +1,18 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + default_src_prepare + + autoreconf-2.65 -f +} + +src_configure() { + ./configure \ + --prefix="${PREFIX}" \ + --disable-shared \ + --target=i386-unknown-linux-gnu \ + --host=i386-unknown-linux-gnu \ + --build=i386-unknown-linux-gnu +} From 838a1bfb904561f01a94cdfe5150c3daef9c28ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 28 Mar 2021 23:18:33 +0100 Subject: [PATCH 10/14] GNU Automake 1.11.2. --- SHA256SUMS.sources | 1 + parts.rst | 6 ++++++ rootfs.sh | 3 +++ sysa/automake-1.11.2/automake-1.11.2.sh | 21 +++++++++++++++++++ .../patches/aclocal_glob.patch | 16 ++++++++++++++ sysa/gcc-4.0.4/pass1.sh | 2 +- sysa/gcc-4.0.4/pass2.sh | 2 +- sysa/run2.sh | 2 ++ 8 files changed, 51 insertions(+), 2 deletions(-) create mode 100755 sysa/automake-1.11.2/automake-1.11.2.sh create mode 100644 sysa/automake-1.11.2/patches/aclocal_glob.patch diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index 9f9c1a6d..6c93a3d6 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -9,6 +9,7 @@ f0cde70a8f135098a6a3e85869f2e1cc3f141beea766fa3d6636e086cd8b90a7 autoconf-2.59. 93a2ceab963618b021db153f0c881a2de82455c1dc7422be436fcd5c554085a1 autoconf-2.61.tar.bz2 db11944057f3faf229ff5d6ce3fcd819f565455c152b72cec17ebc1cbb80136b autoconf-2.65.tar.bz2 e98ab43bb839c31696a4202e5b6ff388b391659ef2387cf9365019fad17e1adc automake-1.10.3.tar.bz2 +4f46d1f9380c8a3506280750f630e9fc915cb1a435b724be56b499d016368718 automake-1.11.2.tar.bz2 503cdc2b0992a4309545d17f462cb15f99bb57b7161dfc4082b2e7188f2bcc0f automake-1.4-p6.tar.gz 0dbafacaf21e135cab35d357a14bdcd981d2f2d00e1387801be8091a31b7bb81 automake-1.6.3.tar.bz2 2dddc3b51506e702647ccc6757e15c05323fa67245d2d53e81ed36a832f9be42 automake-1.7.8.tar.bz2 diff --git a/parts.rst b/parts.rst index d59eae82..ce1757f3 100644 --- a/parts.rst +++ b/parts.rst @@ -567,3 +567,9 @@ xz 5.0.5 XZ Utils is a set of free software command-line lossless data compressors, including lzma and xz. In most cases, xz achieves higher compression rates than alternatives like gzip and bzip2. + +automake 1.11.2 +=============== + +GNU Automake from 1.11 series. This is not the latest point release as newer ones +need Autoconf 2.68. diff --git a/rootfs.sh b/rootfs.sh index 9046bc09..a56e827c 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -282,6 +282,9 @@ get_file https://ftp.gnu.org/gnu/bash/bash-5.1.tar.gz # xz 5.0.5 get_file https://tukaani.org/xz/xz-5.0.5.tar.bz2 +# automake 1.11.2 +get_file https://ftp.gnu.org/gnu/automake/automake-1.11.2.tar.bz2 + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/automake-1.11.2/automake-1.11.2.sh b/sysa/automake-1.11.2/automake-1.11.2.sh new file mode 100755 index 00000000..94cac796 --- /dev/null +++ b/sysa/automake-1.11.2/automake-1.11.2.sh @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + default_src_prepare + + ./bootstrap +} + +src_configure() { + ./configure --prefix=/after +} + +src_compile() { + make MAKEINFO=true +} + +src_install() { + make install MAKEINFO=true +} diff --git a/sysa/automake-1.11.2/patches/aclocal_glob.patch b/sysa/automake-1.11.2/patches/aclocal_glob.patch new file mode 100644 index 00000000..1e0bd5fa --- /dev/null +++ b/sysa/automake-1.11.2/patches/aclocal_glob.patch @@ -0,0 +1,16 @@ +SPDX-FileCopyrightText: 2021 Andrius Štikonas + +SPDX-License-Identifier: GPL-2.0-or-later + +Fixes aclocal-1.10 to work with our Perl + +--- aclocal.in 2021-03-25 19:18:10.489134059 +0000 ++++ aclocal.in 2021-03-25 19:18:20.159389339 +0000 +@@ -45,6 +45,7 @@ + use Automake::FileUtils; + use File::Basename; + use File::stat; ++use File::Glob; + use Cwd; + + # Some globals. diff --git a/sysa/gcc-4.0.4/pass1.sh b/sysa/gcc-4.0.4/pass1.sh index d107a7cf..4a67e469 100755 --- a/sysa/gcc-4.0.4/pass1.sh +++ b/sysa/gcc-4.0.4/pass1.sh @@ -31,7 +31,7 @@ src_prepare() { cd .. done cd libmudflap - AUTOM4TE=autom4te-2.61 autoreconf-2.61 -f + AUTOMAKE=automake-1.10 ACLOCAL=aclocal-1.10 AUTOM4TE=autom4te-2.61 autoreconf-2.61 -f cd .. for dir in fixincludes intl libmudflap; do diff --git a/sysa/gcc-4.0.4/pass2.sh b/sysa/gcc-4.0.4/pass2.sh index 9414cb39..f2d65b96 100755 --- a/sysa/gcc-4.0.4/pass2.sh +++ b/sysa/gcc-4.0.4/pass2.sh @@ -30,7 +30,7 @@ src_prepare() { cd .. done cd libmudflap - AUTOM4TE=autom4te-2.61 autoreconf-2.61 -f + AUTOMAKE=automake-1.10 ACLOCAL=aclocal-1.10 AUTOM4TE=autom4te-2.61 autoreconf-2.61 -f cd .. for dir in fixincludes intl libmudflap; do diff --git a/sysa/run2.sh b/sysa/run2.sh index e2efec21..398759d0 100755 --- a/sysa/run2.sh +++ b/sysa/run2.sh @@ -12,6 +12,8 @@ set -e build xz-5.0.5 +build automake-1.11.2 + echo "Bootstrapping completed." exec env - PATH=/after/bin PS1="\w # " bash -i From e2af1a44f5037986acee378d02d379477fc5cb96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 28 Mar 2021 23:36:27 +0100 Subject: [PATCH 11/14] GNU Autoconf 2.69 --- SHA256SUMS.sources | 1 + parts.rst | 6 ++++++ rootfs.sh | 3 +++ sysa/autoconf-2.69/autoconf-2.69.sh | 29 +++++++++++++++++++++++++++++ sysa/run2.sh | 2 ++ sysa/xz-5.0.5/checksums | 10 +++++----- 6 files changed, 46 insertions(+), 5 deletions(-) create mode 100755 sysa/autoconf-2.69/autoconf-2.69.sh diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index 6c93a3d6..a7f6b093 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -8,6 +8,7 @@ e1035aa2c21fae2a934d1ab56c774ce9d22717881dab8a1a5b16d294fb793489 autoconf-2.57. f0cde70a8f135098a6a3e85869f2e1cc3f141beea766fa3d6636e086cd8b90a7 autoconf-2.59.tar.bz2 93a2ceab963618b021db153f0c881a2de82455c1dc7422be436fcd5c554085a1 autoconf-2.61.tar.bz2 db11944057f3faf229ff5d6ce3fcd819f565455c152b72cec17ebc1cbb80136b autoconf-2.65.tar.bz2 +64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684 autoconf-2.69.tar.xz e98ab43bb839c31696a4202e5b6ff388b391659ef2387cf9365019fad17e1adc automake-1.10.3.tar.bz2 4f46d1f9380c8a3506280750f630e9fc915cb1a435b724be56b499d016368718 automake-1.11.2.tar.bz2 503cdc2b0992a4309545d17f462cb15f99bb57b7161dfc4082b2e7188f2bcc0f automake-1.4-p6.tar.gz diff --git a/parts.rst b/parts.rst index ce1757f3..ede7e6b0 100644 --- a/parts.rst +++ b/parts.rst @@ -573,3 +573,9 @@ automake 1.11.2 GNU Automake from 1.11 series. This is not the latest point release as newer ones need Autoconf 2.68. + +autoconf 2.69 +============= + +This the final version of GNU Autoconf that we will require. There are some newer +versions but we won't need them. diff --git a/rootfs.sh b/rootfs.sh index a56e827c..dca1aeb0 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -285,6 +285,9 @@ get_file https://tukaani.org/xz/xz-5.0.5.tar.bz2 # automake 1.11.2 get_file https://ftp.gnu.org/gnu/automake/automake-1.11.2.tar.bz2 +# autoconf 2.69 +get_file https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/autoconf-2.69/autoconf-2.69.sh b/sysa/autoconf-2.69/autoconf-2.69.sh new file mode 100755 index 00000000..f6e80efb --- /dev/null +++ b/sysa/autoconf-2.69/autoconf-2.69.sh @@ -0,0 +1,29 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + autoreconf-2.65 -f + + # Install autoconf data files into versioned directory + for file in */*/Makefile.in */Makefile.in Makefile.in; do + sed -i '/^pkgdatadir/s:$:-@VERSION@:' $file + done +} + +src_configure() { + ./configure --prefix="${PREFIX}" --program-suffix=-2.69 +} + +src_compile() { + make MAKEINFO=true +} + +src_install() { + make install MAKEINFO=true + + ln -sf "${PREFIX}/bin/autoconf-2.69" "${PREFIX}/bin/autoconf" + ln -sf "${PREFIX}/bin/autoheader-2.69" "${PREFIX}/bin/autoheader" + ln -sf "${PREFIX}/bin/autom4te-2.69" "${PREFIX}/bin/autom4te" + ln -sf "${PREFIX}/bin/autoreconf-2.69" "${PREFIX}/bin/autoreconf" +} diff --git a/sysa/run2.sh b/sysa/run2.sh index 398759d0..522f6c82 100755 --- a/sysa/run2.sh +++ b/sysa/run2.sh @@ -14,6 +14,8 @@ build xz-5.0.5 build automake-1.11.2 +build autoconf-2.69 + echo "Bootstrapping completed." exec env - PATH=/after/bin PS1="\w # " bash -i diff --git a/sysa/xz-5.0.5/checksums b/sysa/xz-5.0.5/checksums index e2cd02a6..90910bdc 100644 --- a/sysa/xz-5.0.5/checksums +++ b/sysa/xz-5.0.5/checksums @@ -1,10 +1,10 @@ -4059df79a032a49e91f93a74a69695b63fdbf8bca07a3db694a11e55306f68cb /after/bin/lzmadec -5d659d1117c86e8e4c3a9008c6864fb2b9fe1957e88744212bf18881117cb650 /after/bin/lzmainfo -324136feea5a7c5b4d618ad098c3cd80233aa45077d6a1de54608683b5ee2268 /after/bin/xz -79eedbc8cce14e5a9baf71a9b81c7ab3c0fa24e28ff32067b2ee0bd72492583b /after/bin/xzdec +31f473893f7b8edaa074de22405742fe4e2d263b57279459e27d6287e9872be1 /after/bin/lzmadec +48f48260090d70b627a63961e63f3f55e2808f2081b295e2c1da5b37d5a9ea77 /after/bin/lzmainfo +924e7aec8451799049ae7e60550c09d160949dfb4a29a5e26bfb2a574d2cad0d /after/bin/xz +cd6a6721d6a434d93f28e170391057abd88f772e01094b8f2addf1eaa599f7b7 /after/bin/xzdec 104548a69cb9ced78dd4fd08f5e8a1b6b07230ada5e6554a07368ed84191da86 /after/bin/xzdiff 34db9e45f4ca4bc96b8280ac438ac6c4fab95e44e812e20cf86a2248bf2f7579 /after/bin/xzgrep 2ce262d47007d17dc668e9a9a3263f7fe3f145d61971f189c21f59b25498a4e3 /after/bin/xzless a050699ff5484e063154d11bf05a9a4eb6c2d38bac09a975a96b42c8b45a72ef /after/bin/xzmore -6a75c21815666ea72ee0cace326edddf04840096425da2a8936bccc026233292 /after/lib/liblzma.a +b2cc6cd3a4b497ec0d6e443ba99a5507aa335755e4327e3831f52dfccd4dfd53 /after/lib/liblzma.a 7691b11f60a825f9556bc213997a011400ae06a812d02f67b39438b8bdba8212 /after/lib/liblzma.la From 56920329968214748cd78f0621830ab1be100fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 31 Mar 2021 18:21:07 +0100 Subject: [PATCH 12/14] GNU Automake 1.12.6 --- SHA256SUMS.sources | 1 + parts.rst | 5 +++++ rootfs.sh | 3 +++ sysa/automake-1.12.6/automake-1.12.6.sh | 21 +++++++++++++++++++ .../patches/aclocal_glob.patch | 16 ++++++++++++++ sysa/run2.sh | 2 ++ 6 files changed, 48 insertions(+) create mode 100755 sysa/automake-1.12.6/automake-1.12.6.sh create mode 100644 sysa/automake-1.12.6/patches/aclocal_glob.patch diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index a7f6b093..9075fcba 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -11,6 +11,7 @@ db11944057f3faf229ff5d6ce3fcd819f565455c152b72cec17ebc1cbb80136b autoconf-2.65. 64ebcec9f8ac5b2487125a86a7760d2591ac9e1d3dbd59489633f9de62a57684 autoconf-2.69.tar.xz e98ab43bb839c31696a4202e5b6ff388b391659ef2387cf9365019fad17e1adc automake-1.10.3.tar.bz2 4f46d1f9380c8a3506280750f630e9fc915cb1a435b724be56b499d016368718 automake-1.11.2.tar.bz2 +f834ab2145b1ee24bd85387950044f5cb418dd0af2b84c52e60c2bf29162dbfa automake-1.12.6.tar.xz 503cdc2b0992a4309545d17f462cb15f99bb57b7161dfc4082b2e7188f2bcc0f automake-1.4-p6.tar.gz 0dbafacaf21e135cab35d357a14bdcd981d2f2d00e1387801be8091a31b7bb81 automake-1.6.3.tar.bz2 2dddc3b51506e702647ccc6757e15c05323fa67245d2d53e81ed36a832f9be42 automake-1.7.8.tar.bz2 diff --git a/parts.rst b/parts.rst index ede7e6b0..a078a05d 100644 --- a/parts.rst +++ b/parts.rst @@ -579,3 +579,8 @@ autoconf 2.69 This the final version of GNU Autoconf that we will require. There are some newer versions but we won't need them. + +automake 1.12.6 +=============== + +GNU Automake from 1.12 series. diff --git a/rootfs.sh b/rootfs.sh index dca1aeb0..a1b3060d 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -288,6 +288,9 @@ get_file https://ftp.gnu.org/gnu/automake/automake-1.11.2.tar.bz2 # autoconf 2.69 get_file https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz +# automake 1.12.6 +get_file https://ftp.gnu.org/gnu/automake/automake-1.12.6.tar.xz + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/automake-1.12.6/automake-1.12.6.sh b/sysa/automake-1.12.6/automake-1.12.6.sh new file mode 100755 index 00000000..1175c727 --- /dev/null +++ b/sysa/automake-1.12.6/automake-1.12.6.sh @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + default_src_prepare + + autoreconf-2.69 -f +} + +src_configure() { + ./configure --prefix=/after +} + +src_compile() { + make MAKEINFO=true CC=tcc +} + +src_install() { + make install MAKEINFO=true +} diff --git a/sysa/automake-1.12.6/patches/aclocal_glob.patch b/sysa/automake-1.12.6/patches/aclocal_glob.patch new file mode 100644 index 00000000..4d348c31 --- /dev/null +++ b/sysa/automake-1.12.6/patches/aclocal_glob.patch @@ -0,0 +1,16 @@ +SPDX-FileCopyrightText: 2021 Andrius Štikonas + +SPDX-License-Identifier: GPL-2.0-or-later + +Fixes aclocal to work with our Perl + +--- aclocal.in 2021-03-31 18:19:50.665806225 +0100 ++++ aclocal.in 2021-03-31 18:20:02.836132739 +0100 +@@ -42,6 +42,7 @@ + use Automake::XFile; + use Automake::FileUtils; + use File::Basename; ++use File::Glob; + use File::Path (); + + # Some globals. diff --git a/sysa/run2.sh b/sysa/run2.sh index 522f6c82..f3f957b3 100755 --- a/sysa/run2.sh +++ b/sysa/run2.sh @@ -16,6 +16,8 @@ build automake-1.11.2 build autoconf-2.69 +build automake-1.12.6 + echo "Bootstrapping completed." exec env - PATH=/after/bin PS1="\w # " bash -i From 9de12bf4b7ee6fdb83fe2a3eb150b6b3644c778b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 31 Mar 2021 19:10:50 +0100 Subject: [PATCH 13/14] GNU Automake 1.13.4 --- SHA256SUMS.sources | 1 + parts.rst | 5 +++++ rootfs.sh | 3 +++ sysa/automake-1.13.4/automake-1.13.4.sh | 21 +++++++++++++++++++ .../patches/aclocal_glob.patch | 16 ++++++++++++++ sysa/run2.sh | 2 ++ 6 files changed, 48 insertions(+) create mode 100755 sysa/automake-1.13.4/automake-1.13.4.sh create mode 100644 sysa/automake-1.13.4/patches/aclocal_glob.patch diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index 9075fcba..8f9b0e14 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -12,6 +12,7 @@ db11944057f3faf229ff5d6ce3fcd819f565455c152b72cec17ebc1cbb80136b autoconf-2.65. e98ab43bb839c31696a4202e5b6ff388b391659ef2387cf9365019fad17e1adc automake-1.10.3.tar.bz2 4f46d1f9380c8a3506280750f630e9fc915cb1a435b724be56b499d016368718 automake-1.11.2.tar.bz2 f834ab2145b1ee24bd85387950044f5cb418dd0af2b84c52e60c2bf29162dbfa automake-1.12.6.tar.xz +89ce4933f59b8f0c20115c39cfe450a595cca74ede27b6881e88ec27720d1d66 automake-1.13.4.tar.xz 503cdc2b0992a4309545d17f462cb15f99bb57b7161dfc4082b2e7188f2bcc0f automake-1.4-p6.tar.gz 0dbafacaf21e135cab35d357a14bdcd981d2f2d00e1387801be8091a31b7bb81 automake-1.6.3.tar.bz2 2dddc3b51506e702647ccc6757e15c05323fa67245d2d53e81ed36a832f9be42 automake-1.7.8.tar.bz2 diff --git a/parts.rst b/parts.rst index a078a05d..5a556d72 100644 --- a/parts.rst +++ b/parts.rst @@ -584,3 +584,8 @@ automake 1.12.6 =============== GNU Automake from 1.12 series. + +automake 1.13.4 +=============== + +GNU Automake from 1.13 series. diff --git a/rootfs.sh b/rootfs.sh index a1b3060d..4136e5bf 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -291,6 +291,9 @@ get_file https://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz # automake 1.12.6 get_file https://ftp.gnu.org/gnu/automake/automake-1.12.6.tar.xz +# automake 1.13.4 +get_file https://ftp.gnu.org/gnu/automake/automake-1.13.4.tar.xz + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/automake-1.13.4/automake-1.13.4.sh b/sysa/automake-1.13.4/automake-1.13.4.sh new file mode 100755 index 00000000..1175c727 --- /dev/null +++ b/sysa/automake-1.13.4/automake-1.13.4.sh @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + default_src_prepare + + autoreconf-2.69 -f +} + +src_configure() { + ./configure --prefix=/after +} + +src_compile() { + make MAKEINFO=true CC=tcc +} + +src_install() { + make install MAKEINFO=true +} diff --git a/sysa/automake-1.13.4/patches/aclocal_glob.patch b/sysa/automake-1.13.4/patches/aclocal_glob.patch new file mode 100644 index 00000000..4d348c31 --- /dev/null +++ b/sysa/automake-1.13.4/patches/aclocal_glob.patch @@ -0,0 +1,16 @@ +SPDX-FileCopyrightText: 2021 Andrius Štikonas + +SPDX-License-Identifier: GPL-2.0-or-later + +Fixes aclocal to work with our Perl + +--- aclocal.in 2021-03-31 18:19:50.665806225 +0100 ++++ aclocal.in 2021-03-31 18:20:02.836132739 +0100 +@@ -42,6 +42,7 @@ + use Automake::XFile; + use Automake::FileUtils; + use File::Basename; ++use File::Glob; + use File::Path (); + + # Some globals. diff --git a/sysa/run2.sh b/sysa/run2.sh index f3f957b3..82648619 100755 --- a/sysa/run2.sh +++ b/sysa/run2.sh @@ -18,6 +18,8 @@ build autoconf-2.69 build automake-1.12.6 +build automake-1.13.4 + echo "Bootstrapping completed." exec env - PATH=/after/bin PS1="\w # " bash -i From dd77379dbd129b99796d0089296fccef811e332d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Thu, 1 Apr 2021 00:28:30 +0100 Subject: [PATCH 14/14] GNU Automake 1.15.1 --- SHA256SUMS.sources | 1 + parts.rst | 5 +++++ rootfs.sh | 3 +++ sysa/automake-1.15.1/automake-1.15.1.sh | 21 +++++++++++++++++++ .../patches/aclocal_glob.patch | 16 ++++++++++++++ sysa/automake-1.15.1/patches/bootstrap.patch | 17 +++++++++++++++ sysa/run2.sh | 2 ++ 7 files changed, 65 insertions(+) create mode 100755 sysa/automake-1.15.1/automake-1.15.1.sh create mode 100644 sysa/automake-1.15.1/patches/aclocal_glob.patch create mode 100644 sysa/automake-1.15.1/patches/bootstrap.patch diff --git a/SHA256SUMS.sources b/SHA256SUMS.sources index 8f9b0e14..56ab69fa 100644 --- a/SHA256SUMS.sources +++ b/SHA256SUMS.sources @@ -13,6 +13,7 @@ e98ab43bb839c31696a4202e5b6ff388b391659ef2387cf9365019fad17e1adc automake-1.10. 4f46d1f9380c8a3506280750f630e9fc915cb1a435b724be56b499d016368718 automake-1.11.2.tar.bz2 f834ab2145b1ee24bd85387950044f5cb418dd0af2b84c52e60c2bf29162dbfa automake-1.12.6.tar.xz 89ce4933f59b8f0c20115c39cfe450a595cca74ede27b6881e88ec27720d1d66 automake-1.13.4.tar.xz +af6ba39142220687c500f79b4aa2f181d9b24e4f8d8ec497cea4ba26c64bedaf automake-1.15.1.tar.xz 503cdc2b0992a4309545d17f462cb15f99bb57b7161dfc4082b2e7188f2bcc0f automake-1.4-p6.tar.gz 0dbafacaf21e135cab35d357a14bdcd981d2f2d00e1387801be8091a31b7bb81 automake-1.6.3.tar.bz2 2dddc3b51506e702647ccc6757e15c05323fa67245d2d53e81ed36a832f9be42 automake-1.7.8.tar.bz2 diff --git a/parts.rst b/parts.rst index 5a556d72..0c0d513b 100644 --- a/parts.rst +++ b/parts.rst @@ -589,3 +589,8 @@ automake 1.13.4 =============== GNU Automake from 1.13 series. + +automake 1.15.1 +=============== + +GNU Automake from 1.15 series. This is the last version that runs on Perl 5.6. diff --git a/rootfs.sh b/rootfs.sh index 4136e5bf..a5f070ea 100755 --- a/rootfs.sh +++ b/rootfs.sh @@ -294,6 +294,9 @@ get_file https://ftp.gnu.org/gnu/automake/automake-1.12.6.tar.xz # automake 1.13.4 get_file https://ftp.gnu.org/gnu/automake/automake-1.13.4.tar.xz +# automake 1.15.1 +get_file https://ftp.gnu.org/gnu/automake/automake-1.15.1.tar.xz + # General cleanup find tmp -name .git -exec rm -rf \; diff --git a/sysa/automake-1.15.1/automake-1.15.1.sh b/sysa/automake-1.15.1/automake-1.15.1.sh new file mode 100755 index 00000000..2793cf2c --- /dev/null +++ b/sysa/automake-1.15.1/automake-1.15.1.sh @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: 2021 Andrius Štikonas +# +# SPDX-License-Identifier: GPL-3.0-or-later + +src_prepare() { + default_src_prepare + + ./bootstrap +} + +src_configure() { + ./configure --prefix=/after +} + +src_compile() { + make MAKEINFO=true CC=tcc +} + +src_install() { + make install MAKEINFO=true +} diff --git a/sysa/automake-1.15.1/patches/aclocal_glob.patch b/sysa/automake-1.15.1/patches/aclocal_glob.patch new file mode 100644 index 00000000..d88394fd --- /dev/null +++ b/sysa/automake-1.15.1/patches/aclocal_glob.patch @@ -0,0 +1,16 @@ +SPDX-FileCopyrightText: 2021 Andrius Štikonas + +SPDX-License-Identifier: GPL-2.0-or-later + +Fixes aclocal to work with our Perl + +--- bin/aclocal.in 2021-03-31 18:19:50.665806225 +0100 ++++ bin/aclocal.in 2021-03-31 18:20:02.836132739 +0100 +@@ -42,6 +42,7 @@ + use Automake::XFile; + use Automake::FileUtils; + use File::Basename; ++use File::Glob; + use File::Path (); + + # Some globals. diff --git a/sysa/automake-1.15.1/patches/bootstrap.patch b/sysa/automake-1.15.1/patches/bootstrap.patch new file mode 100644 index 00000000..57070766 --- /dev/null +++ b/sysa/automake-1.15.1/patches/bootstrap.patch @@ -0,0 +1,17 @@ +SPDX-FileCopyrightText: 2021 Andrius Štikonas + +SPDX-License-Identifier: GPL-2.0-or-later + +Fixes dependency of bootstrapping script + +--- gen-testsuite-part 2017-06-16 21:46:16.000000000 +0100 ++++ gen-testsuite-part 2021-04-01 00:02:46.801098617 +0100 +@@ -64,8 +64,6 @@ + $func->($fh); + close $fh + or die "$me: closing '$tmpfile': $!\n"; +- chmod ($perms & ~umask, $tmpfile) +- or die "$me: cannot change perms for '$tmpfile': $!\n"; + rename ($tmpfile, $outfile) + or die "$me: renaming '$tmpfile' -> '$outfile: $!\n'"; + } diff --git a/sysa/run2.sh b/sysa/run2.sh index 82648619..90eed78a 100755 --- a/sysa/run2.sh +++ b/sysa/run2.sh @@ -20,6 +20,8 @@ build automake-1.12.6 build automake-1.13.4 +build automake-1.15.1 + echo "Bootstrapping completed." exec env - PATH=/after/bin PS1="\w # " bash -i