On 09/28/2018 05:45 PM, Akira Urushibata wrote:
One problem that seems to pop up a lot is students running make and then
forgetting make install.
What I have thought about is to produce a simple list of files of
critical directories at appropriate times where a comparison to a
reference list could highlight missing files.
A student of shell operations should try to create the reference list
by himself.
I posted a solution to this list recently:
for file in *html
do
echo -n $file;
sed -n -r '/Installed [Pp]rograms?:/,/<\/span>/p' $file |\
sed -e 's/</\n</g' -e 's/>/>\n/g' |\
grep -v '^<.*>$' | tr -s '\n' ' '
echo; echo
done | sed 's/(.[^(]*)//g'
I observe some discrepancies between what this list produces and what
is actually installed. Is the content of "installed programs" actually
checked with each update of the LFS Book? There is also the possibility
that installation of a small number of programs is architecture dependent.
What you suggest is a bit of overkill for a simple sanity check.
Generally speaking, we can trust the install procedures if the main
packages are in place.
Checking after every package would quickly get to be fairly onerous.
Please note that we do have automated procedures that tells us the
installed files for every page in Chapter 6.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page