Downloading files and patches II

Issue with expat

Issue with expat-2.6.4.tar.xz – missing from wget-list – retrieved from 12.3 directory – “use 2.7.1 instead” Instruction is in an online forum I have lost. I had to ask Google AI Mode to find it.

errata is at: linuxfromscratch.org/lfs/errata/stable

The file is not at any of the file mirrors.

sourceforge.net/projects/expat redirected from prdownloads.sourceforge.net/expat

I asked Google AI Mode whether to download expat from github or sourceforge. It strongly recommended sourceforge.

But how to download when the sourceforge file ends in “/download”? Including, –directory-prefix did not work, it downloaded to the home folder.

wget --output-document=$LFS/sources/expat-2.7.1.tar.xz https://sourceforge.net/projects/expat/files/expat/2.7.1/expat-2.7.1.tar.xz/download

pushd $LFS/sources && md5sum expat-2.7.1.tar.xz && popd

popd still didn’t work but md5sum matched the md5sum in the “i” popup at sourceforge.

Compared file lists

Compared contents of $LFS/sources with the files listed in the manual

ls -l $LFS/sources

Compared to the md5sums file

less $LFS/sources/md5sums

Remove duplicates

Remove duplicates and unwanted files from $LFS/sources.
It will have the form rm -i $LFS/sources/[file]. i means interactive

rm -i $LFS/sources/expat-2.6.4.tar.xz
rm -i $LFS/sources/lfs-bootscripts-2024085.tar.xz.1
rm -i $LFS/sources/vim-9.1.1122.tar.gz
rm -i $LFS/MD5SUMS

Other

It seems like the other security fixes are for after the system is built, not needed before building it. Confirmed (?) by Google AI Mode 7/26/2025