[Clfs-commits] [Cross-LFS]Cross-LFS Book branch, master, updated. clfs-2.0.0-56-g2a2d3fb

git git at cross-lfs.org
Mon Jun 3 06:46:31 PDT 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cross-LFS Book".

The branch, master has been updated
       via  2a2d3fb01afb6e38de711310d473f0177b0afb95 (commit)
       via  b1a30db5ed385d08c259794fe12230a926345189 (commit)
       via  60b094870b9828ed884be0dc3ca976fe411fb19a (commit)
      from  4996aa596b6691e8b17ca144d4f19d7709550f50 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2a2d3fb01afb6e38de711310d473f0177b0afb95
Author: William Harrington <kb0iic at berzerkula.org>
Date:   Mon Jun 3 08:45:00 2013 -0500

    Update md5 hashes for failed checksums tests.

diff --git a/BOOK/packages.ent b/BOOK/packages.ent
index c93b21c..4c50233 100644
--- a/BOOK/packages.ent
+++ b/BOOK/packages.ent
@@ -222,7 +222,7 @@
 <!ENTITY iproute2-version "3.8.0">
 <!ENTITY iproute2-size "400 KB">
 <!ENTITY iproute2-url "&kernel;/linux/utils/net/iproute2/iproute2-&iproute2-version;.tar.xz">
-<!ENTITY iproute2-md5 "879d3fac4e90809598b2864ec4a0cbf8">
+<!ENTITY iproute2-md5 "951622fd770428116dc165acba375414">
 <!ENTITY iproute2-home "http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2">
 
 <!ENTITY iputils-version "s20101006">
diff --git a/BOOK/patches.ent b/BOOK/patches.ent
index fc33eab..70a818a 100644
--- a/BOOK/patches.ent
+++ b/BOOK/patches.ent
@@ -31,7 +31,7 @@
 <!ENTITY gcc-branch_update-patch-size "601 KB">
 
 <!ENTITY iana-etc-get_fix-patch "iana-etc-&iana-etc-version;-get_fix-1.patch">
-<!ENTITY iana-etc-get_fix-patch-md5 "7da753875d46cabc21763dac0db571b3">
+<!ENTITY iana-etc-get_fix-patch-md5 "73aee2dc34cf4d990cc22fe323d89f27">
 <!ENTITY iana-etc-get_fix-patch-size "4 KB">
 
 <!ENTITY iana-etc-numbers_update-date "20120610">
@@ -68,7 +68,7 @@
 <!ENTITY ncurses-branch_update-patch-size "2,492 KB">
 
 <!ENTITY perl-libc-patch "perl-&perl-version;-libc-1.patch">
-<!ENTITY perl-libc-patch-md5 "7eb56b19ca0a9f0aa2a780710047c76c">
+<!ENTITY perl-libc-patch-md5 "65551c960143c93312916b9bf8f1c0ed">
 <!ENTITY perl-libc-patch-size "1.540 KB">
 
 <!ENTITY procps-ps_cgroup-patch "procps-&procps-version;-ps_cgroup-1.patch">
@@ -102,7 +102,7 @@
 <!ENTITY iproute2-libdir-patch-size "4.0 KB">
 
 <!ENTITY perl-multilib-patch "perl-&perl-version;-Configure_multilib-1.patch">
-<!ENTITY perl-multilib-patch-md5 "107a7414a230c798a3af22fcbb24307e">
+<!ENTITY perl-multilib-patch-md5 "24f1028d4ea9c1b26c9e9e843d373431">
 <!ENTITY perl-multilib-patch-size "1.885 KB">
 
 <!-- Start of Pure64 patches -->

commit b1a30db5ed385d08c259794fe12230a926345189
Author: William Harrington <kb0iic at berzerkula.org>
Date:   Mon Jun 3 08:44:29 2013 -0500

    Include md5sum list when generating download-list.

diff --git a/BOOK/Makefile b/BOOK/Makefile
index 2c8f503..66af22c 100644
--- a/BOOK/Makefile
+++ b/BOOK/Makefile
@@ -190,13 +190,17 @@ ARCHS_DLLIST := $(ARCHS:%=%-dllist)
 download-list: $(ARCHS_DLLIST)
 $(ARCHS_DLLIST): override arch = $(@:%-dllist=%)
 $(ARCHS_DLLIST):
-	@echo "Creating download list for $(arch)..."
+	@echo "Creating download and md5sum list for $(arch)..."
 	$(Q)mkdir -p $(DLLISTDIR)
 	$(Q)xsltproc --xinclude --nonet \
 	  --output $(DLLISTDIR)/$(arch).list \
 	  $(TOP)/stylesheets/wget.xsl \
 	  $(TOP)/$(arch)-index.xml
-
+	 $(Q)xsltproc --xinclude --nonet \
+	  --output $(DLLISTDIR)/$(arch).md5sum \
+	  $(TOP)/stylesheets/md5sum.xsl \
+	  $(TOP)/$(arch)-index.xml
+       
 FG_GREEN := $(shell echo -e '\e[0;32m')
 FG_BLUE := $(shell echo -e '\e[0;34m')
 FG_DEFAULT := $(shell echo -e '\e[0;0m')

commit 60b094870b9828ed884be0dc3ca976fe411fb19a
Author: William Harrington <kb0iic at berzerkula.org>
Date:   Mon Jun 3 08:43:31 2013 -0500

    Add md5sum stylesheet.

diff --git a/BOOK/stylesheets/md5sum.xsl b/BOOK/stylesheets/md5sum.xsl
new file mode 100644
index 0000000..b9d69a0
--- /dev/null
+++ b/BOOK/stylesheets/md5sum.xsl
@@ -0,0 +1,67 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+
+<!--
+XSLT stylesheet to create md5sum file for packages and patches to check integrity.
+Only for Cross-LFS.
+
+Usage example:
+
+xsltproc -xinclude -nonet -output mips64.md5sum stylesheets/md5sum.xsl materials/mips64-chapter.xml
+-->
+
+<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 name="filename-basename">
+    <!-- We assume all filenames are really URIs and use "/" -->
+    <xsl:param name="filename"></xsl:param>
+    <xsl:param name="recurse" select="false()"/>
+
+    <xsl:choose>
+      <xsl:when test="contains($filename, '/')">
+        <xsl:call-template name="filename-basename">
+          <xsl:with-param name="filename"
+                          select="substring-after($filename, '/')"/>
+          <xsl:with-param name="recurse" select="true()"/>
+        </xsl:call-template>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:choose>
+          <xsl:when test="contains($filename, '?')">
+            <xsl:value-of select="substring-before($filename,'?')"/>
+	  </xsl:when>
+	  <xsl:otherwise>
+            <xsl:value-of select="$filename"/>
+	  </xsl:otherwise>
+        </xsl:choose>
+      </xsl:otherwise>
+    </xsl:choose>
+  </xsl:template>
+
+  <xsl:template match="ulink">
+      <!-- Packages. If some package don't have the string ".tar." in their
+      name, the next test must be fixed to match it also. -->
+    <xsl:if test="contains(@url, '.tar.') or contains(@url, '.tgz')
+            or contains(@url, '.patch') and contains(@url, '&patches-root;')
+            and not(ancestor-or-self::*/@condition = 'pdf')">
+      <xsl:value-of select="../following-sibling::para/literal"/>
+      <xsl:text>  </xsl:text>
+      <xsl:call-template name="filename-basename">
+        <xsl:with-param name="filename" select="@url"/>
+        <xsl:with-param name="recurse" select="true()"/>
+      </xsl:call-template>
+      <xsl:text>&#x0a;</xsl:text>
+    </xsl:if>
+  </xsl:template>
+
+</xsl:stylesheet>

-----------------------------------------------------------------------

Summary of changes:
 BOOK/Makefile               |    8 ++++-
 BOOK/packages.ent           |    2 +-
 BOOK/patches.ent            |    6 ++--
 BOOK/stylesheets/md5sum.xsl |   67 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 77 insertions(+), 6 deletions(-)
 create mode 100644 BOOK/stylesheets/md5sum.xsl


hooks/post-receive
-- 
Cross-LFS Book



More information about the Clfs-commits mailing list