logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: fac3f948122a46202658f430fd4856a6b8a8056c
parent 17cae40bc3c5f88967761e9e2ee83c0aea5aa538
Author: Samuel Tyler <fosslinux@aussies.space>
Date:   Sat,  8 Feb 2025 20:16:24 +1100

Merge pull request #502 from fosslinux/bash-2.05b-cleanup

Bash 2.05b cleanup

Diffstat:

Msteps/bash-2.05b/pass1.kaem2+-
Dsteps/bash-2.05b/pass2.sh53-----------------------------------------------------
2 files changed, 1 insertion(+), 54 deletions(-)

diff --git a/steps/bash-2.05b/pass1.kaem b/steps/bash-2.05b/pass1.kaem @@ -29,7 +29,7 @@ cp ../../mk/common.mk common.mk touch config.h touch include/version.h touch include/pipesize.h -rm y.tab.c y.tab.h +rm y.tab.c y.tab.h parser-built # Patch patch -Np1 -i ../../patches/mes-libc.patch diff --git a/steps/bash-2.05b/pass2.sh b/steps/bash-2.05b/pass2.sh @@ -1,53 +0,0 @@ -# SPDX-FileCopyrightText: © 2023 fosslinux <fosslinux@aussies.space> -# -# SPDX-License-Identifier: GPL-3.0-or-later - -src_prepare() { - default - - # Remove bison generated files - rm y.tab.c y.tab.h - - # Skip documentation - mv doc/Makefile.in Makefile.in.doc - rm doc/* - mv Makefile.in.doc doc/Makefile.in - - # Rebuild configure script - rm configure - autoconf-2.69 - - # avoid non-deterministic build: - printf '%s\n%s\n' \ - '#!/bin/sh' \ - 'echo "#define PIPESIZE 65536"' >builtins/psize.sh -} - -src_configure() { - # --build argument needed for reproducibility - # bash_cv_dev_stdin and bash_cv_dev_fd are also used to - # improve reproducibility because they make configure - # skip checking for /dev/{fd,stdin,stdout,stderr} (build - # output is affected by their availability otherwise). - # size is part of binutils and is not yet available. - CC=tcc LD=tcc AR="tcc -ar" SIZE=true ./configure --prefix="${PREFIX}" \ - --without-bash-malloc \ - --disable-nls \ - --build=i386-linux-gnu \ - --enable-static-link \ - bash_cv_dev_stdin=absent \ - bash_cv_dev_fd=whacky -} - -src_compile() { - make -j1 -} - -src_install() { - install -D bash "${DESTDIR}${PREFIX}/bin/bash" - # Work around weird symlink bug - install bash "${DESTDIR}${PREFIX}/bin/sh" - - # Needs special handling b/c is currently running - tar doesn't like this - rm -f "${PREFIX}/bin/bash" "${PREFIX}/bin/sh" -}