update package versions

This commit is contained in:
2026-03-20 11:41:05 +01:00
parent 6b2c4981ce
commit 3cbe1e1f74
12 changed files with 90 additions and 46 deletions

View File

@@ -4,7 +4,7 @@
# ============================================================================
# Purpose: Cross-compile the ncurses library (terminal handling). Required
# by bash, many TUI programs, and the installer.
# Inputs: ${LFS}/sources/ncurses-6.5.tar.gz
# Inputs: ${LFS}/sources/ncurses.tar.gz (unversioned tarball from mirror)
# Outputs: ncurses libraries and tic utility in ${LFS}/usr/
# Assumes: Cross-toolchain (Ch.5) complete
# Ref: LFS 13.0 §6.3
@@ -14,14 +14,23 @@ set -euo pipefail
source "${LFS}/sources/darkforge-env.sh"
PACKAGE="ncurses"
VERSION="6.5"
SRCDIR="${LFS}/sources"
echo "=== Building ${PACKAGE}-${VERSION} (Temporary Tool) ==="
echo "=== Building ${PACKAGE} (Temporary Tool) ==="
cd "${SRCDIR}"
tar -xf "${PACKAGE}-${VERSION}.tar.gz"
cd "${PACKAGE}-${VERSION}"
# The mirror provides ncurses.tar.gz (unversioned). Auto-detect the
# directory name inside the tarball.
tar -xf ncurses.tar.gz
NCDIR=$(find . -maxdepth 1 -type d -name 'ncurses-*' | head -1)
if [ -z "${NCDIR}" ]; then
echo "ERROR: Could not find ncurses-* directory after extraction"
exit 1
fi
VERSION="${NCDIR#./ncurses-}"
echo " Detected version: ${VERSION}"
cd "${NCDIR}"
# First, build the tic program that runs on the host
# This is needed to create the terminal database during install
@@ -57,5 +66,5 @@ ln -sv libncursesw.so "${LFS}/usr/lib/libncurses.so"
sed -e 's/^#if.*XOPEN.*$/#if 1/' -i "${LFS}/usr/include/curses.h"
cd "${SRCDIR}"
rm -rf "${PACKAGE}-${VERSION}"
rm -rf "${NCDIR}"
echo "=== ${PACKAGE}-${VERSION} complete ==="