[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 92946c1: Create an XML catalog to forestall b
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 92946c1: Create an XML catalog to forestall bogus errors |
Date: |
Tue, 3 Nov 2020 17:29:07 -0500 (EST) |
branch: master
commit 92946c11ae79b5f1e654f4574a648a66372d2911
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Create an XML catalog to forestall bogus errors
See:
https://lists.nongnu.org/archive/html/lmi/2020-10/msg00103.html
et seqq.
Lines and bytes of output:
2560 171891 previously
1671 100248 with this change
---
install_xml_libraries.sh | 30 +++++++++++++++++++++++++++++-
1 file changed, 29 insertions(+), 1 deletion(-)
diff --git a/install_xml_libraries.sh b/install_xml_libraries.sh
index 4b29c42..88b059f 100755
--- a/install_xml_libraries.sh
+++ b/install_xml_libraries.sh
@@ -152,7 +152,7 @@ xmlwrapp_options="
--disable-tests
"
-# Actually build ##############################################################
+# Optionally, clean beforehand ################################################
# Nonchalantly remove pkgconfig and cmake subdirectories, even though
# other libraries might someday write files in them, because lmi never
@@ -179,6 +179,31 @@ if [ "$xml_skip_clean" != 1 ]; then
rm --force --recursive "$build_dir"
fi
+# Create an XML catalog #######################################################
+
+# This forestalls about a thousand lines of bogus error messages.
+
+throwaway_catalog=/etc/opt/lmi/xml_catalog
+
+cat >"$throwaway_catalog" <<EOF
+<?xml version="1.0"?>
+<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog
V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
+ <rewriteURI
uriStartString="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
+
rewritePrefix="file://$PWD/third_party/libxml2/test/valid/dtds/xhtml1-transitional.dtd"/>
+ <rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"
+
rewritePrefix="file://$PWD/third_party/libxml2/test/valid/dtds/xhtml-lat1.ent"/>
+ <rewriteURI
uriStartString="http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent"
+
rewritePrefix="file://$PWD/third_party/libxml2/test/valid/dtds/xhtml-special.ent"/>
+ <rewriteURI uriStartString="http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent"
+
rewritePrefix="file://$PWD/third_party/libxml2/test/valid/dtds/xhtml-symbol.ent"/>
+</catalog>
+EOF
+
+export XML_CATALOG_FILES="$throwaway_catalog"
+
+# Actually build ##############################################################
+
for lib in libxml2 libxslt; do
libdir="$srcdir/third_party/$lib"
if [ ! -x "$libdir/configure" ]; then
@@ -216,6 +241,9 @@ for lib in xmlwrapp; do
$MAKE install
done
+# Expunge the throwaway XML catalog.
+rm --force "$throwaway_catalog"
+
# autotools: 'make install' doesn't respect group permissions--see:
# https://lists.gnu.org/archive/html/automake/2019-01/msg00000.html
# After the 'chmod' calls, the 'find' command should find nothing.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lmi-commits] [lmi] master 92946c1: Create an XML catalog to forestall bogus errors,
Greg Chicares <=