[yocto] [meta-cgl][PATCH] crmsh: disable network access for xsltproc when generate manpages

Yi Zhao yi.zhao at windriver.com
Thu Oct 19 23:02:15 PDT 2017


If the network is in poor condition, there may be an error when generate
manpages:

| a2x --xsltproc-opts=--catalogs -L -f manpage doc/crm.8.adoc
[snip]
| a2x: ERROR: "xsltproc" --catalogs --stringparam callout.graphics 0
--stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0
"/buildarea/build/tmp-glibc/work/armv5e-wrs-linux-gnueabi/crmsh/2.3.2-r0/recipe-sysroot-native/etc/asciidoc/docbook-xsl/manpage.xsl"
"/buildarea/build/tmp-glibc/work/armv5e-wrs-linux-gnueabi/crmsh/2.3.2-r0/crmsh-2.3.2/doc/crm.8.xml"
returned non-zero exit status 6
| make: *** [Makefile:848: doc/crm.8] Error 1

By default, xsltproc tries to fetch DTDs from network. If the nework is
in poor condition, the incomplete download may cause a dtd parsing
error. Pass "--nonet" and "--novalid" options to xsltproc to disable the
network access and skip loading the document´s DTD.

Signed-off-by: Yi Zhao <yi.zhao at windriver.com>
---
 meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch b/meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch
index 6e1a291..f465c82 100644
--- a/meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch
+++ b/meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch
@@ -17,7 +17,7 @@ index d89affb..0f2361f 100644
  
  %.8: %.8.adoc
 -	a2x -f manpage $<
-+	a2x --xsltproc-opts=--catalogs -L -f manpage $<
++	a2x --xsltproc-opts=--catalogs --xsltproc-opts=--nonet --xsltproc-opts=--novalid -L -f manpage $<
  
  # Shared data files
  install-data-hook:
-- 
2.7.4




More information about the yocto mailing list