Skip to contentSkip to conversation

crmsh: disable network access for xsltproc when generate manpages

PATCH New Yi Zhao 1 participant 1 message Oct 20, 2017

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 crmsh: disable network access for xsltproc when generate manpages

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.

---
 meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-cgl-common/recipes-cgl/crmsh/crmsh/tweaks_for_build.patch +1 -1
index 6e1a291..f465c82 100644
@@ -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:
Signature · 1 line
2.7.4