summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gnome/gnome-doc-utils/xsltproc_nonet.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gnome/gnome-doc-utils/xsltproc_nonet.patch')
-rw-r--r--meta/recipes-gnome/gnome/gnome-doc-utils/xsltproc_nonet.patch57
1 files changed, 26 insertions, 31 deletions
diff --git a/meta/recipes-gnome/gnome/gnome-doc-utils/xsltproc_nonet.patch b/meta/recipes-gnome/gnome/gnome-doc-utils/xsltproc_nonet.patch
index 44d18e7da1..9346494e95 100644
--- a/meta/recipes-gnome/gnome/gnome-doc-utils/xsltproc_nonet.patch
+++ b/meta/recipes-gnome/gnome/gnome-doc-utils/xsltproc_nonet.patch
@@ -2,16 +2,17 @@ This adds the -nonet option to xsltproc invocations, which fixes
2compile errors when building the gnome-doc-utils docs. 2compile errors when building the gnome-doc-utils docs.
3 3
4Upstream-Status: Inappropriate [configuration] 4Upstream-Status: Inappropriate [configuration]
5
6Signed-off-by: Scott Garman <scott.a.garman@intel.com> 5Signed-off-by: Scott Garman <scott.a.garman@intel.com>
6Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
7 7
8diff -urN gnome-doc-utils-0.20.5.orig//doc/xslt/Makefile.am gnome-doc-utils-0.20.5/doc/xslt/Makefile.am 8Index: gnome-doc-utils-0.20.10/doc/xslt/Makefile.am
9--- gnome-doc-utils-0.20.5.orig//doc/xslt/Makefile.am 2011-03-22 06:56:17.000000000 -0700 9===================================================================
10+++ gnome-doc-utils-0.20.5/doc/xslt/Makefile.am 2011-05-09 09:35:04.946138220 -0700 10--- gnome-doc-utils-0.20.10.orig/doc/xslt/Makefile.am
11@@ -21,14 +21,14 @@ 11+++ gnome-doc-utils-0.20.10/doc/xslt/Makefile.am
12@@ -21,14 +21,14 @@ all: $(xsldoc_docs) $(xsldoc_xmls)
12 13
13 $(xsldoc_docs): $(xsldoc_xsls) xsldoc.awk xsldoc-fill.xsl 14 $(xsldoc_docs): $(xsldoc_xsls) xsldoc.awk xsldoc-fill.xsl
14 $(GDU_AWK) -f "$(srcdir)/xsldoc.awk" "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \ 15 $(AM_V_GEN)$(GDU_AWK) -f "$(srcdir)/xsldoc.awk" "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \
15- | xsltproc -o "$@" \ 16- | xsltproc -o "$@" \
16+ | xsltproc -nonet -o "$@" \ 17+ | xsltproc -nonet -o "$@" \
17 --stringparam basename "$(basename $(notdir $@))" \ 18 --stringparam basename "$(basename $(notdir $@))" \
@@ -20,12 +21,12 @@ diff -urN gnome-doc-utils-0.20.5.orig//doc/xslt/Makefile.am gnome-doc-utils-0.20
20 21
21 $(xsldoc_xmls): xsldoc-docbook.xsl 22 $(xsldoc_xmls): xsldoc-docbook.xsl
22 $(xsldoc_xmls): C/%.xml : C/%.xsldoc 23 $(xsldoc_xmls): C/%.xml : C/%.xsldoc
23- xsltproc -o "$@" \ 24- $(AM_V_GEN)xsltproc -o "$@" \
24+ xsltproc -nonet -o "$@" \ 25+ $(AM_V_GEN)xsltproc -nonet -o "$@" \
25 --stringparam basename "$(basename $(notdir $@))" \ 26 --stringparam basename "$(basename $(notdir $@))" \
26 --stringparam xsl_file "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \ 27 --stringparam xsl_file "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \
27 "$(srcdir)/xsldoc-docbook.xsl" "$<" 28 "$(srcdir)/xsldoc-docbook.xsl" "$<"
28@@ -62,7 +62,7 @@ 29@@ -62,7 +62,7 @@ gnome-doc-xslt-check-includes:
29 gnome-doc-xslt-check-xsldoc: $(xsldoc_docs) 30 gnome-doc-xslt-check-xsldoc: $(xsldoc_docs)
30 @echo "Running xsldoc checks"; 31 @echo "Running xsldoc checks";
31 @(echo "<xsldoc>"; cat $(xsldoc_docs); echo "</xsldoc>") \ 32 @(echo "<xsldoc>"; cat $(xsldoc_docs); echo "</xsldoc>") \
@@ -34,17 +35,11 @@ diff -urN gnome-doc-utils-0.20.5.orig//doc/xslt/Makefile.am gnome-doc-utils-0.20
34 35
35 .PHONY: clean-xsldoc 36 .PHONY: clean-xsldoc
36 clean-local: clean_xsldoc 37 clean-local: clean_xsldoc
37@@ -75,4 +75,4 @@ 38Index: gnome-doc-utils-0.20.10/tools/gnome-doc-utils.make
38 DOC_MODULE = gnome-doc-xslt 39===================================================================
39 DOC_INCLUDES = legal.xml translating.xml $(patsubst %,%.xml,$(xsldoc_base)) 40--- gnome-doc-utils-0.20.10.orig/tools/gnome-doc-utils.make
40 41+++ gnome-doc-utils-0.20.10/tools/gnome-doc-utils.make
41-DOC_LINGUAS = de 42@@ -37,7 +37,7 @@ $(DOC_H_FILE): $(DOC_H_DOCS);
42\ No newline at end of file
43+DOC_LINGUAS = de
44diff -urN gnome-doc-utils-0.20.5.orig//tools/gnome-doc-utils.make gnome-doc-utils-0.20.5/tools/gnome-doc-utils.make
45--- gnome-doc-utils-0.20.5.orig//tools/gnome-doc-utils.make 2011-03-22 06:56:17.000000000 -0700
46+++ gnome-doc-utils-0.20.5/tools/gnome-doc-utils.make 2011-05-09 09:34:03.278985782 -0700
47@@ -37,7 +37,7 @@
48 list='$(DOC_H_DOCS)'; for doc in $$list; do \ 43 list='$(DOC_H_DOCS)'; for doc in $$list; do \
49 xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \ 44 xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
50 if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \ 45 if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \
@@ -53,7 +48,7 @@ diff -urN gnome-doc-utils-0.20.5.orig//tools/gnome-doc-utils.make gnome-doc-util
53 done | sort | uniq \ 48 done | sort | uniq \
54 | 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}}' \ 49 | 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}}' \
55 | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp 50 | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
56@@ -50,7 +50,7 @@ 51@@ -50,7 +50,7 @@ $(DOC_H_FILE): $(DOC_H_DOCS);
57 docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \ 52 docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
58 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \ 53 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
59 echo $$xmlpath; \ 54 echo $$xmlpath; \
@@ -62,25 +57,25 @@ diff -urN gnome-doc-utils-0.20.5.orig//tools/gnome-doc-utils.make gnome-doc-util
62 for id in $$ids; do \ 57 for id in $$ids; do \
63 echo '#define HELP_'`echo $$docid`'_'`echo $$id \ 58 echo '#define HELP_'`echo $$docid`'_'`echo $$id \
64 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \ 59 | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
65@@ -180,7 +180,7 @@ 60@@ -197,7 +197,7 @@ $(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %
66 echo "The file '$(_skcontentslist)' does not exist." >&2; \ 61 echo "The file '$(_skcontentslist)' does not exist." >&2; \
67 echo "Please check your ScrollKeeper installation." >&2; \ 62 echo "Please check your ScrollKeeper installation." >&2; \
68 exit 1; } 63 exit 1; }
69- xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; } 64- $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
70+ xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; } 65+ $(GDU_V_DB2OMF)xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
71 66
72 ## @ _DOC_OMF_HTML 67 ## @ _DOC_OMF_HTML
73 ## The OMF files for HTML output 68 ## The OMF files for HTML output
74@@ -195,7 +195,7 @@ 69@@ -212,7 +212,7 @@ if ENABLE_SK
75 echo "Please check your ScrollKeeper installation." >&2; \ 70 echo "Please check your ScrollKeeper installation." >&2; \
76 exit 1; } 71 exit 1; }
77 endif 72 endif
78- xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; } 73- $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
79+ xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; } 74+ $(GDU_V_DB2OMF)xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
80 75
81 ## @ _DOC_OMF_ALL 76 ## @ _DOC_OMF_ALL
82 ## All OMF output files to be built 77 ## All OMF output files to be built
83@@ -250,7 +250,7 @@ 78@@ -267,7 +267,7 @@ _DOC_C_FIGURES = $(if $(DOC_FIGURES),
84 ## All HTML documentation in the C locale 79 ## All HTML documentation in the C locale
85 # FIXME: probably have to shell escape to determine the file names 80 # FIXME: probably have to shell escape to determine the file names
86 _DOC_C_HTML = $(foreach f, \ 81 _DOC_C_HTML = $(foreach f, \
@@ -89,12 +84,12 @@ diff -urN gnome-doc-utils-0.20.5.orig//tools/gnome-doc-utils.make gnome-doc-util
89 --stringparam db.chunk.basename "$(DOC_MODULE)" \ 84 --stringparam db.chunk.basename "$(DOC_MODULE)" \
90 $(_chunks) "C/$(DOC_MODULE).xml"), \ 85 $(_chunks) "C/$(DOC_MODULE).xml"), \
91 C/$(f).xhtml) 86 C/$(f).xhtml)
92@@ -379,7 +379,7 @@ 87@@ -393,7 +393,7 @@ _DOC_HTML_ALL = $(if $(filter html HTML,
93 _DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml) 88 _DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
94 89
95 $(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS) 90 $(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
96- xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@) 91- $(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,$@)
97+ 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,$@) 92+ $(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,$@)
98 93
99 94
100 ################################################################################ 95 ################################################################################