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

@@ -3,7 +3,7 @@
# DarkForge Linux — Phase 0, Chapter 6: Tar
# ============================================================================
# Purpose: Cross-compile GNU tar (archive utility).
# Inputs: ${LFS}/sources/tar-1.35.tar.xz
# Inputs: ${LFS}/sources/tar-latest.tar.xz (unversioned tarball from mirror)
# Outputs: tar in ${LFS}/usr/bin/
# Ref: LFS 13.0 §6.15
# ============================================================================
@@ -12,14 +12,23 @@ set -euo pipefail
source "${LFS}/sources/darkforge-env.sh"
PACKAGE="tar"
VERSION="1.35"
SRCDIR="${LFS}/sources"
echo "=== Building ${PACKAGE}-${VERSION} (Temporary Tool) ==="
echo "=== Building ${PACKAGE} (Temporary Tool) ==="
cd "${SRCDIR}"
tar -xf "${PACKAGE}-${VERSION}.tar.xz"
cd "${PACKAGE}-${VERSION}"
# The mirror provides tar-latest.tar.xz (unversioned). Auto-detect the
# directory name inside the tarball.
tar -xf tar-latest.tar.xz
TARDIR=$(find . -maxdepth 1 -type d -name 'tar-[0-9]*' | head -1)
if [ -z "${TARDIR}" ]; then
echo "ERROR: Could not find tar-* directory after extraction"
exit 1
fi
VERSION="${TARDIR#./tar-}"
echo " Detected version: ${VERSION}"
cd "${TARDIR}"
./configure \
--prefix=/usr \
@@ -30,5 +39,5 @@ make
make DESTDIR="${LFS}" install
cd "${SRCDIR}"
rm -rf "${PACKAGE}-${VERSION}"
rm -rf "${TARDIR}"
echo "=== ${PACKAGE}-${VERSION} complete ==="