mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-11 13:55:24 +01:00
Move bash 5.2 to sysc and rebuild 2.05b in sysa
This unblocks Fiwix.
This commit is contained in:
parent
da9a32205a
commit
16cd5be626
10 changed files with 238 additions and 138 deletions
49
sysa/bash-2.05b/bash-2.05b.sh
Executable file
49
sysa/bash-2.05b/bash-2.05b.sh
Executable file
|
|
@ -0,0 +1,49 @@
|
|||
# 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_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"
|
||||
}
|
||||
24
sysa/bash-2.05b/patches/size.patch
Normal file
24
sysa/bash-2.05b/patches/size.patch
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
SPDX-FileCopyrightText: © 2023 fosslinux <fosslinux@aussies.space>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
We don't yet have the size command.
|
||||
|
||||
--- Makefile.in 2023-03-11 15:41:13.297307977 +1100
|
||||
+++ Makefile.in 2023-03-11 15:43:51.677298993 +1100
|
||||
@@ -471,7 +471,6 @@
|
||||
$(RM) $@
|
||||
$(PURIFY) $(CC) $(BUILTINS_LDFLAGS) $(LIBRARY_LDFLAGS) $(LDFLAGS) -o $(Program) $(OBJECTS) $(LIBS)
|
||||
ls -l $(Program)
|
||||
- size $(Program)
|
||||
|
||||
.build: $(SOURCES) config.h Makefile version.h $(VERSPROG)
|
||||
@echo
|
||||
@@ -493,7 +492,6 @@
|
||||
strip: $(Program) .made
|
||||
strip $(Program)
|
||||
ls -l $(Program)
|
||||
- size $(Program)
|
||||
|
||||
lint:
|
||||
${MAKE} ${MFLAGS} CFLAGS='${GCC_LINT_FLAGS}' .made
|
||||
Loading…
Add table
Add a link
Reference in a new issue