xsltproc_nonet.patch 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. This adds the -nonet option to xsltproc invocations, which fixes
  2. compile errors when building the gnome-doc-utils docs.
  3. Upstream-Status: Inappropriate [configuration]
  4. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
  5. Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
  6. Index: gnome-doc-utils-0.20.10/doc/xslt/Makefile.am
  7. ===================================================================
  8. --- gnome-doc-utils-0.20.10.orig/doc/xslt/Makefile.am
  9. +++ gnome-doc-utils-0.20.10/doc/xslt/Makefile.am
  10. @@ -21,14 +21,14 @@ all: $(xsldoc_docs) $(xsldoc_xmls)
  11. $(xsldoc_docs): $(xsldoc_xsls) xsldoc.awk xsldoc-fill.xsl
  12. $(AM_V_GEN)$(GDU_AWK) -f "$(srcdir)/xsldoc.awk" "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \
  13. - | xsltproc -o "$@" \
  14. + | xsltproc -nonet -o "$@" \
  15. --stringparam basename "$(basename $(notdir $@))" \
  16. --stringparam xsl_file "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \
  17. "$(srcdir)/xsldoc-fill.xsl" -
  18. $(xsldoc_xmls): xsldoc-docbook.xsl
  19. $(xsldoc_xmls): C/%.xml : C/%.xsldoc
  20. - $(AM_V_GEN)xsltproc -o "$@" \
  21. + $(AM_V_GEN)xsltproc -nonet -o "$@" \
  22. --stringparam basename "$(basename $(notdir $@))" \
  23. --stringparam xsl_file "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \
  24. "$(srcdir)/xsldoc-docbook.xsl" "$<"
  25. @@ -62,7 +62,7 @@ gnome-doc-xslt-check-includes:
  26. gnome-doc-xslt-check-xsldoc: $(xsldoc_docs)
  27. @echo "Running xsldoc checks";
  28. @(echo "<xsldoc>"; cat $(xsldoc_docs); echo "</xsldoc>") \
  29. - | xsltproc "$(srcdir)/xsldoc-check.xsl" - 1> /dev/null
  30. + | xsltproc -nonet "$(srcdir)/xsldoc-check.xsl" - 1> /dev/null
  31. .PHONY: clean-xsldoc
  32. clean-local: clean_xsldoc
  33. Index: gnome-doc-utils-0.20.10/tools/gnome-doc-utils.make
  34. ===================================================================
  35. --- gnome-doc-utils-0.20.10.orig/tools/gnome-doc-utils.make
  36. +++ gnome-doc-utils-0.20.10/tools/gnome-doc-utils.make
  37. @@ -37,7 +37,7 @@ $(DOC_H_FILE): $(DOC_H_DOCS);
  38. list='$(DOC_H_DOCS)'; for doc in $$list; do \
  39. xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
  40. if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
  41. - xsltproc --path "$$xmlpath" $(_credits) $$doc; \
  42. + xsltproc -nonet --path "$$xmlpath" $(_credits) $$doc; \
  43. done | sort | uniq \
  44. | awk 'BEGIN{s=""}{n=split($$0,w,"<");if(s!=""&&s!=substr(w[1],1,length(w[1])-1)){print s};if(n>1){print $$0;s=""}else{s=$$0}};END{if(s!=""){print s}}' \
  45. | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
  46. @@ -50,7 +50,7 @@ $(DOC_H_FILE): $(DOC_H_DOCS);
  47. docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
  48. | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
  49. echo $$xmlpath; \
  50. - ids=`xsltproc --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
  51. + ids=`xsltproc -nonet --xinclude --path "$$xmlpath" $(_ids) $$doc`; \
  52. for id in $$ids; do \
  53. echo '#define HELP_'`echo $$docid`'_'`echo $$id \
  54. | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
  55. @@ -197,7 +197,7 @@ $(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %
  56. echo "The file '$(_skcontentslist)' does not exist." >&2; \
  57. echo "Please check your ScrollKeeper installation." >&2; \
  58. exit 1; }
  59. - $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
  60. + $(GDU_V_DB2OMF)xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
  61. ## @ _DOC_OMF_HTML
  62. ## The OMF files for HTML output
  63. @@ -212,7 +212,7 @@ if ENABLE_SK
  64. echo "Please check your ScrollKeeper installation." >&2; \
  65. exit 1; }
  66. endif
  67. - $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
  68. + $(GDU_V_DB2OMF)xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
  69. ## @ _DOC_OMF_ALL
  70. ## All OMF output files to be built
  71. @@ -267,7 +267,7 @@ _DOC_C_FIGURES = $(if $(DOC_FIGURES),
  72. ## All HTML documentation in the C locale
  73. # FIXME: probably have to shell escape to determine the file names
  74. _DOC_C_HTML = $(foreach f, \
  75. - $(shell xsltproc --xinclude \
  76. + $(shell xsltproc -nonet --xinclude \
  77. --stringparam db.chunk.basename "$(DOC_MODULE)" \
  78. $(_chunks) "C/$(DOC_MODULE).xml"), \
  79. C/$(f).xhtml)
  80. @@ -393,7 +393,7 @@ _DOC_HTML_ALL = $(if $(filter html HTML,
  81. _DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
  82. $(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
  83. - $(GDU_V_DB2HTM)xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
  84. + $(GDU_V_DB2HTM)xsltproc -nonet -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@)
  85. ################################################################################