I am working on an xsl script to check packages before starting the
build process to ensure the user has the all the proper tarballs and
patches.
The process will work like this from the source of the LFS book:
make md5sums
The default location for the output is "~/lfs-book/md5sums".
The user can then
cp ~/lfs-book/md5sums /mnt/lfs/sources
md5sum -c md5sums
I'll also make this available in the downloads directory.
One issue for those using the svn version of the book is that the md5sum
of the bootscripts and the udev-config are computed when building the
html and are not directly in the xml. Additionally, the scripts are
rebuilt every time the book is rebuilt and the timestamp changes alter
the md5sum for these tarballs even if the contents have not changed.
For a release, these sums will have to be updated manually or via a
script, but it's a limitation for those rebuilding the book frequently.
I'm attaching my latest md5sums file.
For those interested, I'm also attaching the xsl script, but to most
people that's fairly esoteric.
I'll probably add these files to the svn repository later today.
-- Bruce
864d785215aa60d627c91fcb21b05b07 autoconf-2.68.tar.bz2
c2972c4d9b3e29c03d5f2af86249876f automake-1.11.1.tar.bz2
3fb927c7c33022f1c327f14a81c0d4b0 bash-4.2.tar.gz
bde820eac53fa3a8d8696667418557ad binutils-2.21.1a.tar.bz2
9dba20116b13fc61a0846b0058fbe004 bison-2.5.tar.bz2
00b516f4704d4a7cb50a1d97e6e8e15b bzip2-1.0.6.tar.gz
f5e8bb4752ee2e876ddd99bda7471f35 coreutils-8.13.tar.gz
3df1cbca885e751e22d3ebd1ac64dc3c dejagnu-1.5.tar.gz
22e4deef5d8949a727b159d6bc65c1cc diffutils-3.2.tar.gz
05f70470aea2ef7efbb0845b2b116720 e2fsprogs-1.41.14.tar.gz
44e1a4f4c877e9ddc5a542dfa7ecc92b expect5.45.tar.gz
6fd7cd6c4281e68fe9ec6644ce0fac6f file-5.09.tar.gz
351cc4adb07d54877fa15f75fb77d39f findutils-4.4.2.tar.gz
10714e50cea54dc7a227e3eddcd44d57 flex-2.5.35.tar.bz2
7cdc48e99b885a4bbe0e98dcf1706b22 gawk-4.0.0.tar.bz2
c57a9170c677bf795bdc04ed796ca491 gcc-4.6.1.tar.bz2
59f6e4c4193cb875964ffbe8aa384b58 gdbm-1.9.1.tar.gz
3dd55b952826d2b32f51308f2f91aa89 gettext-0.18.1.1.tar.gz
1588cc22e796c296223744895ebc4cef glibc-2.14.tar.bz2
0bbaedc82fb30315b06b1588b9077cd3 gmp-5.0.2.tar.bz2
03e3451a38b0d615cb113cbeaf252dc0 grep-2.9.tar.gz
8b8cd29385b97616a0f0d96d0951c5bf groff-1.21.tar.gz
ca9f2a2d571b57fc5c53212d1d22e2b5 grub-1.99.tar.gz
e381b8506210c794278f5527cba0e765 gzip-1.4.tar.gz
3ba3afb1d1b261383d247f46cb135ee8 iana-etc-2.30.tar.bz2
ad8fdcdf1797b9ca258264a6b04e48fd inetutils-1.8.tar.gz
8a3b6bc77c2ecf752284aa4a6fc630a6 iproute2-2.6.39.tar.gz
77d0b51454522bc6c170bbdc6e31202a kbd-1.15.2.tar.gz
56f9f76ffe13f70155f47f6b3c87d421 less-444.tar.gz
BOOTSCRIPTS-MD5SUM lfs-bootscripts-20111007.tar.bz2
dd3a987a0d2b594716baee2f73d61ae3 libpipeline-1.2.0.tar.gz
b32b04148ecdd7344abc6fe8bd1bb021 libtool-2.4.tar.gz
dff86c657cabe813bda84c72bfb93ae8 linux-3.0.4.tar.bz2
8a7cef47fecab6272eb86a6be6363b2f m4-1.4.16.tar.bz2
1a11100f3c63fcf5753818e59d63088f make-3.82.tar.bz2
2b41c96efec032d2b74ccbf2e401f93e man-db-2.6.0.2.tar.gz
1278c5289660e42a597fefd30d9bdcf0 man-pages-3.32.tar.bz2
8b2257ce9abef74c4a44d825d23140f3 module-init-tools-3.12.tar.bz2
0d6acab8d214bd7d1fbbc593e83dd00d mpc-0.9.tar.gz
bfbecb2eacb6d48432ead5cfc3f7390a mpfr-3.0.1.tar.bz2
8cb9c412e5f2d96bc6f459aa8c6282a1 ncurses-5.9.tar.gz
0818d1763ae0c4281bcdc63cdac0b2c0 patch-2.6.1.tar.bz2
04a4c5d3c1f9f19d77daff8e8cd19a26 perl-5.14.2.tar.bz2
9532714b6846013ca9898984ba4cd7e0 procps-3.2.8.tar.gz
ba3f4e971895c92bba7770d81c981503 psmisc-22.14.tar.gz
67948acb2ca081f23359d0256e9a271c readline-6.2.tar.gz
7d310fbd76e01a01115075c1fd3f455a sed-4.2.1.tar.bz2
b8608d8294ac88974f27b20f991c0e79 shadow-4.1.4.3.tar.bz2
e053094e8103165f98ddafe828f6ae4b sysklogd-1.5.tar.gz
6eda8a97b86e0a6f59dabbf25202aa6f sysvinit-2.88dsf.tar.bz2
2cee42a2ff4f1cd4f9298eeeb2264519 tar-1.26.tar.bz2
a08eaf8467c0631937067c1948dd326b tcl8.5.10-src.tar.gz
71ba711519209b5fb583fed2b3d86fcb texinfo-4.13a.tar.gz
91a88a359b60bbd074b024883cc0dbde udev-173.tar.bz2
d97f80f6a70cd97f0519b14f15e3e195 udev-173-testfiles.tar.bz2
UDEV-MD5SUM udev-config-20100128.tar.bz2
4dcacdbdafa116635e52b977d9d0e879 util-linux-2.20.tar.bz2
5b9510a17074e2b37d8bb38ae09edbf2 vim-7.3.tar.bz2
8d900b742b94fa9e708ca4f5a4b29003 xz-5.0.3.tar.bz2
be1e89810e66150f5b0327984d8625a0 zlib-1.2.5.tar.bz2
16ef261d87673ffaa6e838423d1cc4d1 bash-4.2-fixes-3.patch
6a5ac7e89b791aae556de0f745916f7f bzip2-1.0.6-install_docs-1.patch
31cb902aea949c6e5681f674df98a585 coreutils-8.13-i18n-2.patch
500481b75892e5c07e19e9953a690e54 coreutils-8.13-uname-1.patch
ad9109820534278c6dd0898178c0788f flex-2.5.35-gcc44-1.patch
1b7886a7a4df3a48617e88a481862264 gcc-4.6.1-cross_compile-1.patch
799ef1971350d2e3c794f2123f247cc6 gcc-4.6.1-startfiles_fix-1.patch
b0d442bb7057d036cd7545a3bf051fc1 glibc-2.14-fixes-2.patch
d1f28cb98acb9417fe52596908bbb9fd glibc-2.14-gcc_fix-1.patch
4f110dc9c8d4754fbda841492ce796b4 glibc-2.14-cpuid-1.patch
f75cca16a38da6caa7d52151f7136895 kbd-1.15.2-backspace-1.patch
66305450989c2633b9346900e9a5d9a3 mpfr-3.0.1-fixes-1.patch
c51e1a95bfc5310635d05081472c3534 patch-2.6.1-test_fix-1.patch
23682f20b6785e97f99d33be7719c9d6 perl-5.14.2-libc-1.patch
2ea4c8e9a2c2a5a291ec63c92d7c6e3b procps-3.2.8-fix_HZ_errors-1.patch
cd1a757e532d93662a7ed71da80e6b58 procps-3.2.8-watch_unicode-1.patch
3c185f7b76001d3d0af614f6f2cd5dfa readline-6.2-fixes-1.patch
<?xml version='1.0' encoding='ISO-8859-1'?>
<!-- Create a md5 list for packages and pathces used. -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:apply-templates select="//ulink"/>
</xsl:template>
<xsl:template match="ulink">
<!-- If some package don't have the predefined strings in their
name, the next test must be fixed to match it also. Skip possible
duplicated URLs that may be split for PDF output -->
<xsl:if test="(contains( @url, '.tar.' ) or
contains( @url, '.tgz' ) or
contains( @url, '.patch') ) and
not( ancestor-or-self::*/@condition = 'pdf' )" >
<!-- Get the md5sum -->
<xsl:value-of select="../../para/literal"/>
<!-- Add two spaces -->
<xsl:text> </xsl:text>
<!-- Get the basename -->
<xsl:call-template name="basename">
<xsl:with-param name="pathname" select="@url"/>
</xsl:call-template>
<!-- Add a newline -->
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:template>
<xsl:template name="basename">
<xsl:param name="pathname"/>
<xsl:choose>
<xsl:when test="contains( $pathname, '/' )" >
<xsl:call-template name="basename">
<xsl:with-param name="pathname" select="substring-after( $pathname, '/' )" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$pathname"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page