logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: 7bea775e5acfc416176ddcf8810cb39cd6ea4c2b
parent cd05642cfadab04b38ddc5dd8f52f94da9cff6c4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  8 May 2024 05:47:00 +0200

bootstrap-gettext-tiny.sh: Add

Diffstat:

MREADME.md1+
Abootstrap-gettext-tiny.sh13+++++++++++++
Mdistfiles.SHA512SUM1+
Mfetch.sh2++
Mmake-root.sh2++
5 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -131,6 +131,7 @@ Meanwhile: - bearssl: small TLS library - tiny-curl: Still pretty big but hopefully close enough to the usual one - cacert (from curl.haxx.se): Maybe could be reduced to a handful of CAs (like maybe even just Let's Encrypt) +- gettext-tiny: Much smaller replacement to GNU gettext, for git ## Launching in QEMU ``` diff --git a/bootstrap-gettext-tiny.sh b/bootstrap-gettext-tiny.sh @@ -0,0 +1,13 @@ +#!/bin/sh +set -ex + +tar xof /gettext-tiny-*.tar.gz +cd gettext-tiny-*/ + +export RANLIB=true + +make +make install INSTALL=./install.sh LIBINTL=MUSL libdir=/usr/lib/ + +cd .. +rm -fr gettext-tiny-*/ diff --git a/distfiles.SHA512SUM b/distfiles.SHA512SUM @@ -3,6 +3,7 @@ f9ed25683cfc6c4abe7f1203a2b82ed101ee4c9e0f9ab60755b6a09c8d1e8e4f64d413624e7bb9c4 50622aee8024b3e0385974a8f446a4b5df0ba494b6133ab91ebbe63c408154b112f62c9df8521f4f1beaf28cdd6e7da178c3334337f6b14c8bced532029d8ba5 distfiles/bmake-20230909.tar.gz 083f5e675d73f3233c7930ebe20425a533feedeaaa9d8cc86831312a6581cefbe6ed0d08d2fa89be81082f2a5abdabca8b3c080bf97218a1bd59dc118a30b9f3 distfiles/bzip2-1.0.8.tar.gz 31f03cc19566d007c4cffdad2ada71d99b4734ad7b13bc4f30d73d321f40cbe13b87a801aa61d9788207a851cc1f95a8af8ac732a372d45edb932f204bce3744 distfiles/cacert-2024-03-11.pem +0ed85599c8dc4114764b8eeed1e35cde97f11185c3f689e377d020758cc010ba4402febb84dba4cdc78e94fa2cd65614dafade8708ea078db5b2921925c36e78 distfiles/gettext-tiny-0.3.2.tar.gz 0b30b0f4c4c92a10ee2da263ea44666f445d96bac86ca4afb7bbb50d8278986e4145a7bcdf3ed9f75611bb956e93e16fc0e19874498ce3ae1a00e6fbb4f910c9 distfiles/heirloom-070715.tar.bz2 1f1f10a7b49402053172cc028bbd939a46fcf933994cb867fa40e8c5bbd7b1291575b3bac254cd79dc4fce3e3a2c88fe0f890449888fda16169c8e6a2540f055 distfiles/heirloom-devtools-070527.tar.bz2 8afbce28e3db544226987ae1979cf148515ba6a7e4a5c6beb1e58c05f3c6d01bbe81410b81ef32bea9a45788c86c7094130f56cb3f95c732906c02c05de1a370 distfiles/iproute2-6.6.0.tar.gz diff --git a/fetch.sh b/fetch.sh @@ -59,6 +59,8 @@ test -e nawk-20240422.tar.gz || curl ${CURL_OPTS} -o nawk-20240422.tar.gz https: test -e loksh-7.3.tar.gz || curl ${CURL_OPTS} -o loksh-7.3.tar.gz https://github.com/dimkr/loksh/archive/refs/tags/7.3.tar.gz test -e lolibc-f6e9da7.tar.gz || curl ${CURL_OPTS} -o lolibc-f6e9da7.tar.gz https://github.com/dimkr/lolibc/archive/f6e9da7.tar.gz +test -e gettext-tiny-0.3.2.tar.gz || curl ${CURL_OPTS} -o gettext-tiny-0.3.2.tar.gz https://github.com/sabotage-linux/gettext-tiny/archive/refs/tags/v0.3.2.tar.gz + # suckless.org doesn't provides snapshots of sbase (yet?) test -e sbase-b30fb568.tar.gz || curl ${CURL_OPTS} -o sbase-b30fb568.tar.gz https://git.sr.ht/~mcf/sbase/archive/b30fb56804bfed69b45ef0e944d2e029e4d26258.tar.gz diff --git a/make-root.sh b/make-root.sh @@ -30,6 +30,7 @@ distfiles=" bearssl-0.6.tar.gz tiny-curl-8.4.0.tar.gz cacert-2024-03-11.pem + gettext-tiny-0.3.2.tar.gz " local_files=" init.sh @@ -47,6 +48,7 @@ local_files=" bootstrap-mdevd.sh bootstrap-bearssl.sh bootstrap-tiny-curl.sh + bootstrap-gettext-tiny.sh " WORKDIR="$(dirname "$0")" WORKDIR="$(realpath "$WORKDIR")"