logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://anongit.hacktivis.me/git/bootstrap-initrd.git/
commit: 3aea93ad70d683a62bddda6e39da69bde192d187
parent 0228db0a73c2ee2923371459de5a95ae9fdf905b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 26 Dec 2025 01:35:38 +0100

add lua-5.0.0-tests

Diffstat:

Mdistfiles.SHA512SUM1+
Mextras/lua.sh43+++++++++++++++++++++++++++++++++++++++----
Mfetch.sh1+
Mmake-root.sh1+
4 files changed, 42 insertions(+), 4 deletions(-)

diff --git a/distfiles.SHA512SUM b/distfiles.SHA512SUM @@ -12,6 +12,7 @@ ac18578c205ebadbf57f7c1d52c4df042e30108a6dd25bb3c54921500472e96f6ad0ba78efe426cc 37acd74840756ea1d1f883cbd650c7288a33d30d219b9b18cf2c1e001ed70843f2d5a2c43bdbff33dcd17d095e8c857e62be8d9610ad03452fd5cd297451a4cb distfiles/linux-headers-6.16.12-r0.apk.riscv64 864eaca0d5b1bf300d6bbcc5338f550897229eefc68c4c32a332320347c8d035ae2554098e5b34888811f4f5bb3b7c3d50a6db04cd471a15a3bc01061c7102f8 distfiles/linux-headers-6.16.12-r0.apk.x86 f1edddf911ff0b7bcf47c26dcb9a50b43cc650f4c2aeadb2d1478ca9bd187263ef12cb43a21e56675e4eae55327f3918e11719f4ead4de8132e7ab5edaf2d224 distfiles/linux-headers-6.16.12-r0.apk.x86_64 +11210607ff5be531ba838beaac9c3c8020994db46256bf4323f1cb4608e4dfdc1351c75e63e3f02c85833991a399289b8511b445d147daf2c9a48fe845e2e0b9 distfiles/lua-5.5.0-tests.tar.gz 3253d2cdc929da6438095a30d66ef16a1abdbb0ada8fee238705b3b38492f14be9553640fdca6b25661e01155ba5582032e0a2ef064e4c283e85efc0a128cabe distfiles/lua-5.5.0.tar.gz 145260cbd6a8226cef3dfef0c8baba31847beaebc7e6b65d39d02715fd4f4cab9b139b6c3772e550088d4f9ae80c6d3ed20b9a7664c693644dfb96b4cb60e67c distfiles/make-4.4.1.tar.gz 1575aa928b88fd5f17c1cdf9f46359b4dde407ec11800813eb1c9d4b4a4d201f6ee0a715d2e6f693bf6dda63073980a7207086d4195e51eda96dd27af3319078 distfiles/muon-v0.5.0.tar.gz diff --git a/extras/lua.sh b/extras/lua.sh @@ -1,11 +1,46 @@ #!/bin/sh set -ex -# TODO (need ed / sed -i): https://www.lua.org/tests/lua-5.4.6-tests.tar.gz - -cd /extras/lua-*/ +cd /extras/lua-*[0-9]/ pdpmake -C src all CC="$CC -std=gnu99" SYSCFLAGS="-DLUA_USE_LINUX" RANLIB=true pdpmake install -cd - +cd /extras/lua-*-tests/ + +# musl locales are incomplete +if grep -F 'os.setlocale("pt_BR") or os.setlocale("ptb")' literals.lua; then + ed literals.lua <<'EOF' +/if os.setlocale("pt_BR") or os.setlocale("ptb") then +c +if false then +. +w +q +EOF +fi + +# -e"_U=true" (basic tests) because otherwise 5.0.0-tests fails: +# +# ***** FILE 'main.lua'***** +# testing stand-alone interpreter +# progname: lua +# Lua 5.5.0 Copyright (C) 1994-2025 Lua.org, PUC-Rio +# (temporary program file used in these tests: /tmp/lua_PNBFje) +# lua: module 'lib2-v2' not found: +# no field package.preload['lib2-v2'] +# no file '/usr/local/share/lua/5.5/lib2-v2.lua' +# *snip* +# stack traceback: +# [C]: in function 'require' +# [C]: in ? +# lua: main.lua:67: exit +# stack traceback: +# [C]: in global 'assert' +# main.lua:67: in local 'RUN' +# main.lua:230: in main chunk +# (...tail calls...) +# all.lua:158: in main chunk +# [C]: in ? +# +lua -e"_U=true" all.lua diff --git a/fetch.sh b/fetch.sh @@ -10,6 +10,7 @@ URLS=" https://downloads.sourceforge.net/heirloom/heirloom/070715/heirloom-070715.tar.bz2 https://downloads.sourceforge.net/project/heirloom/heirloom-devtools/070527/heirloom-devtools-070527.tar.bz2 https://www.lua.org/ftp/lua-5.5.0.tar.gz + https://www.lua.org/tests/lua-5.5.0-tests.tar.gz https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-6.18.0.tar.gz https://curl.se/tiny/tiny-curl-8.4.0.tar.gz https://curl.haxx.se/ca/cacert-2024-11-26.pem diff --git a/make-root.sh b/make-root.sh @@ -28,6 +28,7 @@ local_files=" extra_tarballs=" make-4.4.1.tar.gz lua-5.5.0.tar.gz + lua-5.5.0-tests.tar.gz pkgconf-pkgconf-2.5.1.tar.gz iproute2-6.18.0.tar.gz BearSSL-3c040368f6791553610e362401db1efff4b4c5b8.tar.gz