mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 10:25:25 +01:00
Environment variables "pollute" the build environment of packages and can affect their output. This change results in the removal of some files from packages that were not meant to be packaged. It also removes the need for a workaround in automake 1.10.3 to manually remove such files. Variables are now saved in an .env file for each system and included in scripts that need them using the dot operation.
73 lines
1.6 KiB
Bash
Executable file
73 lines
1.6 KiB
Bash
Executable file
#!/usr/bin/bash
|
|
|
|
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
|
|
# SPDX-FileCopyrightText: 2021-22 fosslinux <fosslinux@aussies.space>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
set -e
|
|
|
|
PREFIX=/usr
|
|
SOURCES="${PREFIX}/src"
|
|
DESTDIR=/tmp/destdir
|
|
DISTFILES=/distfiles
|
|
SRCDIR="${SOURCES}"
|
|
|
|
export PATH="${PREFIX}/bin:${PREFIX}/sbin"
|
|
export HOME=/tmp
|
|
export SOURCE_DATE_EPOCH=0
|
|
|
|
# shellcheck source=sysa/helpers.sh
|
|
. "${SOURCES}/helpers.sh"
|
|
|
|
echo
|
|
echo "Installing packages into sysc"
|
|
|
|
install_tar() {
|
|
echo "${1}: installing package"
|
|
src_apply "$@"
|
|
}
|
|
|
|
# Install packages.
|
|
# First two packages must be coreutils and sed
|
|
|
|
install_tar coreutils-5.0 0
|
|
install_tar sed-4.0.9 0
|
|
|
|
install_tar autoconf-2.64 0
|
|
install_tar automake-1.10.3 0
|
|
install_tar binutils-2.14 0
|
|
install_tar bzip2-1.0.8 0
|
|
install_tar bison-3.4.1 2
|
|
install_tar coreutils-6.10 0
|
|
install_tar curl-7.83.0 0
|
|
install_tar dhcpcd-9.4.1 0
|
|
install_tar diffutils-2.7 0
|
|
install_tar findutils-4.2.33 0
|
|
install_tar flex-2.6.4 0
|
|
install_tar gawk-3.0.4 0
|
|
install_tar gcc-4.0.4 1
|
|
install_tar grep-2.4 0
|
|
install_tar help2man-1.36.4 0
|
|
install_tar libtool-2.2.4 0
|
|
install_tar linux-headers-5.10.41 0
|
|
install_tar m4-1.4.7 0
|
|
install_tar make-3.82 0
|
|
install_tar musl-1.2.3 0
|
|
install_tar perl-5.6.2 0
|
|
install_tar util-linux-2.19.1 0
|
|
|
|
# Fix invocation of bash from perl
|
|
ln -s /usr/bin/bash /usr/bin/sh
|
|
|
|
# Begin sysc bootstrapping process
|
|
cd "${SOURCES}"
|
|
|
|
# shellcheck disable=SC2129
|
|
echo "PREFIX=${PREFIX}" >> .env
|
|
echo "SOURCES=${SOURCES}" >> .env
|
|
echo "DESTDIR=${DESTDIR}" >> .env
|
|
echo "DISTFILES=${DISTFILES}" >> .env
|
|
echo "SRCDIR=${SRCDIR}" >> .env
|
|
|
|
exec ./run.sh
|