gnome-doc-utils: upgrade to 0.20.10

sysrooted-pkg-config.patch: adapt to the new version
use-usr-bin-env-for-python-in-xml2po.patch: adapt to the new version
xsltproc_nonet.patch: adapt to the new version

(From OE-Core rev: f801dbb0af3ac01e2c8b53600c7a37aa82b08343)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Constantin Musca 2012-12-21 16:13:23 +02:00 committed by Richard Purdie
parent ee00527ffc
commit 4233009527
4 changed files with 48 additions and 56 deletions

View File

@ -9,26 +9,24 @@ This should work ok with non sysrooted builds too since in those cases PKG_CONFI
will be empty will be empty
Upstream-Status: Pending Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Index: gnome-doc-utils-0.20.6/tools/gnome-doc-utils.make Index: gnome-doc-utils-0.20.10/tools/gnome-doc-utils.make
=================================================================== ===================================================================
--- gnome-doc-utils-0.20.6.orig/tools/gnome-doc-utils.make 2011-09-23 22:22:26.000000000 -0700 --- gnome-doc-utils-0.20.10.orig/tools/gnome-doc-utils.make
+++ gnome-doc-utils-0.20.6/tools/gnome-doc-utils.make 2011-09-23 22:30:03.479787196 -0700 +++ gnome-doc-utils-0.20.10/tools/gnome-doc-utils.make
@@ -133,12 +133,12 @@ _DOC_ABS_SRCDIR = @abs_srcdir@ @@ -133,11 +133,11 @@ _DOC_ABS_SRCDIR = @abs_srcdir@
_xml2po ?= `which xml2po` _xml2po ?= `which xml2po`
_xml2po_mode = $(if $(DOC_ID),mallard,docbook) _xml2po_mode = $(if $(DOC_ID),mallard,docbook)
-_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils` -_db2html ?= `$(PKG_CONFIG) --variable db2html gnome-doc-utils`
-_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils` -_db2omf ?= `$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
-_malrng ?= `$(PKG_CONFIG) --variable malrng gnome-doc-utils`
-_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl -_chunks ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
-_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl -_credits ?= `$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
-_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl -_ids ?= $(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl
+_db2html ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable db2html gnome-doc-utils` +_db2html ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable db2html gnome-doc-utils`
+_db2omf ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable db2omf gnome-doc-utils` +_db2omf ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable db2omf gnome-doc-utils`
+_malrng ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable malrng gnome-doc-utils`
+_chunks ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl +_chunks ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/chunks.xsl
+_credits ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl +_credits ?= ${PKG_CONFIG_SYSROOT_DIR}`$(PKG_CONFIG) --variable xmldir gnome-doc-utils`/gnome/xslt/docbook/utils/credits.xsl
+_ids ?= ${PKG_CONFIG_SYSROOT_DIR}$(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl +_ids ?= ${PKG_CONFIG_SYSROOT_DIR}$(shell $(PKG_CONFIG) --variable xmldir gnome-doc-utils)/gnome/xslt/docbook/utils/ids.xsl

View File

@ -1,30 +1,27 @@
Upstream-Status="Inappropriate [Would break behavior on Windows]"
We can't use #!/full/path/to/python -u as this can be longer than shebang We can't use #!/full/path/to/python -u as this can be longer than shebang
allows for. In order to be appropraite for upstream more work would be allows for. In order to be appropraite for upstream more work would be
needed to make sure that the main xml2po code doesn't rely on python needed to make sure that the main xml2po code doesn't rely on python
being invoked with -u (force stdin/out/err to be used raw). being invoked with -u (force stdin/out/err to be used raw).
---
xml2po/xml2po/Makefile.am | 1 -
xml2po/xml2po/xml2po.py.in | 2 +-
2 files changed, 1 insertion(+), 2 deletions(-)
Index: gnome-doc-utils-0.20.6/xml2po/xml2po/Makefile.am Upstream-Status: Inappropriate [Would break behavior on Windows]
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Index: gnome-doc-utils-0.20.10/xml2po/xml2po/Makefile.am
=================================================================== ===================================================================
--- gnome-doc-utils-0.20.6.orig/xml2po/xml2po/Makefile.am --- gnome-doc-utils-0.20.10.orig/xml2po/xml2po/Makefile.am
+++ gnome-doc-utils-0.20.6/xml2po/xml2po/Makefile.am +++ gnome-doc-utils-0.20.10/xml2po/xml2po/Makefile.am
@@ -7,7 +7,6 @@ CLEANFILES = xml2po @@ -7,7 +7,6 @@ CLEANFILES = xml2po
xml2po: xml2po.py.in xml2po: xml2po.py.in
sed -e "s/^VERSION =.*/VERSION = \"@VERSION@\"/" \ $(AM_V_GEN)sed -e "s/^VERSION =.*/VERSION = \"@VERSION@\"/" \
- -e "s+^#!.*python.*+#!$(PYTHON)+" \ - -e "s+^#!.*python.*+#!$(PYTHON)+" \
< $(srcdir)/xml2po.py.in > xml2po < $(srcdir)/xml2po.py.in > xml2po
chmod +x xml2po $(AM_V_at)chmod +x xml2po
Index: gnome-doc-utils-0.20.6/xml2po/xml2po/xml2po.py.in Index: gnome-doc-utils-0.20.10/xml2po/xml2po/xml2po.py.in
=================================================================== ===================================================================
--- gnome-doc-utils-0.20.6.orig/xml2po/xml2po/xml2po.py.in --- gnome-doc-utils-0.20.10.orig/xml2po/xml2po/xml2po.py.in
+++ gnome-doc-utils-0.20.6/xml2po/xml2po/xml2po.py.in +++ gnome-doc-utils-0.20.10/xml2po/xml2po/xml2po.py.in
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
-#!/usr/bin/python -u -#!/usr/bin/python -u
+#!/usr/bin/env python +#!/usr/bin/env python

View File

@ -2,16 +2,17 @@ This adds the -nonet option to xsltproc invocations, which fixes
compile errors when building the gnome-doc-utils docs. compile errors when building the gnome-doc-utils docs.
Upstream-Status: Inappropriate [configuration] Upstream-Status: Inappropriate [configuration]
Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
diff -urN gnome-doc-utils-0.20.5.orig//doc/xslt/Makefile.am gnome-doc-utils-0.20.5/doc/xslt/Makefile.am Index: gnome-doc-utils-0.20.10/doc/xslt/Makefile.am
--- gnome-doc-utils-0.20.5.orig//doc/xslt/Makefile.am 2011-03-22 06:56:17.000000000 -0700 ===================================================================
+++ gnome-doc-utils-0.20.5/doc/xslt/Makefile.am 2011-05-09 09:35:04.946138220 -0700 --- gnome-doc-utils-0.20.10.orig/doc/xslt/Makefile.am
@@ -21,14 +21,14 @@ +++ gnome-doc-utils-0.20.10/doc/xslt/Makefile.am
@@ -21,14 +21,14 @@ all: $(xsldoc_docs) $(xsldoc_xmls)
$(xsldoc_docs): $(xsldoc_xsls) xsldoc.awk xsldoc-fill.xsl $(xsldoc_docs): $(xsldoc_xsls) xsldoc.awk xsldoc-fill.xsl
$(GDU_AWK) -f "$(srcdir)/xsldoc.awk" "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \ $(AM_V_GEN)$(GDU_AWK) -f "$(srcdir)/xsldoc.awk" "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \
- | xsltproc -o "$@" \ - | xsltproc -o "$@" \
+ | xsltproc -nonet -o "$@" \ + | xsltproc -nonet -o "$@" \
--stringparam basename "$(basename $(notdir $@))" \ --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
$(xsldoc_xmls): xsldoc-docbook.xsl $(xsldoc_xmls): xsldoc-docbook.xsl
$(xsldoc_xmls): C/%.xml : C/%.xsldoc $(xsldoc_xmls): C/%.xml : C/%.xsldoc
- xsltproc -o "$@" \ - $(AM_V_GEN)xsltproc -o "$@" \
+ xsltproc -nonet -o "$@" \ + $(AM_V_GEN)xsltproc -nonet -o "$@" \
--stringparam basename "$(basename $(notdir $@))" \ --stringparam basename "$(basename $(notdir $@))" \
--stringparam xsl_file "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \ --stringparam xsl_file "$(filter %/$(basename $(notdir $@)).xsl,$(xsldoc_xsls))" \
"$(srcdir)/xsldoc-docbook.xsl" "$<" "$(srcdir)/xsldoc-docbook.xsl" "$<"
@@ -62,7 +62,7 @@ @@ -62,7 +62,7 @@ gnome-doc-xslt-check-includes:
gnome-doc-xslt-check-xsldoc: $(xsldoc_docs) gnome-doc-xslt-check-xsldoc: $(xsldoc_docs)
@echo "Running xsldoc checks"; @echo "Running xsldoc checks";
@(echo "<xsldoc>"; cat $(xsldoc_docs); echo "</xsldoc>") \ @(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
.PHONY: clean-xsldoc .PHONY: clean-xsldoc
clean-local: clean_xsldoc clean-local: clean_xsldoc
@@ -75,4 +75,4 @@ Index: gnome-doc-utils-0.20.10/tools/gnome-doc-utils.make
DOC_MODULE = gnome-doc-xslt ===================================================================
DOC_INCLUDES = legal.xml translating.xml $(patsubst %,%.xml,$(xsldoc_base)) --- gnome-doc-utils-0.20.10.orig/tools/gnome-doc-utils.make
+++ gnome-doc-utils-0.20.10/tools/gnome-doc-utils.make
-DOC_LINGUAS = de @@ -37,7 +37,7 @@ $(DOC_H_FILE): $(DOC_H_DOCS);
\ No newline at end of file
+DOC_LINGUAS = de
diff -urN gnome-doc-utils-0.20.5.orig//tools/gnome-doc-utils.make gnome-doc-utils-0.20.5/tools/gnome-doc-utils.make
--- gnome-doc-utils-0.20.5.orig//tools/gnome-doc-utils.make 2011-03-22 06:56:17.000000000 -0700
+++ gnome-doc-utils-0.20.5/tools/gnome-doc-utils.make 2011-05-09 09:34:03.278985782 -0700
@@ -37,7 +37,7 @@
list='$(DOC_H_DOCS)'; for doc in $$list; do \ list='$(DOC_H_DOCS)'; for doc in $$list; do \
xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \ xmlpath="`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`:$(srcdir)/`echo $$doc | sed -e 's/^\(.*\/\).*/\1/' -e '/\//!s/.*//'`"; \
if ! test -f "$$doc"; then doc="$(srcdir)/$$doc"; fi; \ 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
done | sort | uniq \ done | sort | uniq \
| 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}}' \ | 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}}' \
| sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp | sed -e 's/\\/\\\\/' -e 's/"/\\"/' -e 's/\(.*\)/\t"\1",/' >> $@.tmp
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@ $(DOC_H_FILE): $(DOC_H_DOCS);
docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \ docid=`echo "$$doc" | sed -e 's/.*\/\([^/]*\)\.xml/\1/' \
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \ | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`; \
echo $$xmlpath; \ echo $$xmlpath; \
@ -62,25 +57,25 @@ diff -urN gnome-doc-utils-0.20.5.orig//tools/gnome-doc-utils.make gnome-doc-util
for id in $$ids; do \ for id in $$ids; do \
echo '#define HELP_'`echo $$docid`'_'`echo $$id \ echo '#define HELP_'`echo $$docid`'_'`echo $$id \
| sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \ | sed -e 's/[^a-zA-Z_]/_/g' | tr 'a-z' 'A-Z'`' "'$$id'"' >> $@.tmp; \
@@ -180,7 +180,7 @@ @@ -197,7 +197,7 @@ $(_DOC_OMF_DB) : $(DOC_MODULE)-%.omf : %
echo "The file '$(_skcontentslist)' does not exist." >&2; \ echo "The file '$(_skcontentslist)' does not exist." >&2; \
echo "Please check your ScrollKeeper installation." >&2; \ echo "Please check your ScrollKeeper installation." >&2; \
exit 1; } exit 1; }
- xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; } - $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
+ xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; } + $(GDU_V_DB2OMF)xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'docbook') || { rm -f "$@"; exit 1; }
## @ _DOC_OMF_HTML ## @ _DOC_OMF_HTML
## The OMF files for HTML output ## The OMF files for HTML output
@@ -195,7 +195,7 @@ @@ -212,7 +212,7 @@ if ENABLE_SK
echo "Please check your ScrollKeeper installation." >&2; \ echo "Please check your ScrollKeeper installation." >&2; \
exit 1; } exit 1; }
endif endif
- xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; } - $(GDU_V_DB2OMF)xsltproc -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
+ xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; } + $(GDU_V_DB2OMF)xsltproc -nonet -o $@ $(call db2omf_args,$@,$<,'xhtml') || { rm -f "$@"; exit 1; }
## @ _DOC_OMF_ALL ## @ _DOC_OMF_ALL
## All OMF output files to be built ## All OMF output files to be built
@@ -250,7 +250,7 @@ @@ -267,7 +267,7 @@ _DOC_C_FIGURES = $(if $(DOC_FIGURES),
## All HTML documentation in the C locale ## All HTML documentation in the C locale
# FIXME: probably have to shell escape to determine the file names # FIXME: probably have to shell escape to determine the file names
_DOC_C_HTML = $(foreach f, \ _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
--stringparam db.chunk.basename "$(DOC_MODULE)" \ --stringparam db.chunk.basename "$(DOC_MODULE)" \
$(_chunks) "C/$(DOC_MODULE).xml"), \ $(_chunks) "C/$(DOC_MODULE).xml"), \
C/$(f).xhtml) C/$(f).xhtml)
@@ -379,7 +379,7 @@ @@ -393,7 +393,7 @@ _DOC_HTML_ALL = $(if $(filter html HTML,
_DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml) _DOC_HTML_TOPS = $(foreach lc,C $(_DOC_REAL_LINGUAS),$(lc)/$(DOC_MODULE).xhtml)
$(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS) $(_DOC_HTML_TOPS): $(_DOC_C_DOCS) $(_DOC_LC_DOCS)
- xsltproc -o $@ --xinclude --param db.chunk.chunk_top "false()" --stringparam db.chunk.basename "$(DOC_MODULE)" --stringparam db.chunk.extension ".xhtml" $(_db2html) $(patsubst %.xhtml,%.xml,$@) - $(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,$@)
+ 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,$@) + $(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,$@)
################################################################################ ################################################################################

View File

@ -1,12 +1,14 @@
require gnome-doc-utils.inc require gnome-doc-utils.inc
LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=eb723b61539feef013de476e68b5c50a \ LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=eb723b61539feef013de476e68b5c50a \
file://COPYING.LGPL;md5=a6f89e2100d9b6cdffcea4f398e37343" file://COPYING.LGPL;md5=a6f89e2100d9b6cdffcea4f398e37343"
PR = "r8" PR = "r0"
GNOME_COMPRESS_TYPE = "xz"
SRC_URI += "file://xsltproc_nonet.patch \ SRC_URI += "file://xsltproc_nonet.patch \
file://use-usr-bin-env-for-python-in-xml2po.patch \ file://use-usr-bin-env-for-python-in-xml2po.patch \
file://sysrooted-pkg-config.patch \ file://sysrooted-pkg-config.patch \
" "
SRC_URI[archive.md5sum] = "8f6e05071599bc073007830ea0a68391" SRC_URI[archive.md5sum] = "3c64ad7bacd617b04999e4a168afaac5"
SRC_URI[archive.sha256sum] = "091486e370480bf45349ad09dac799211092a02938b26a0d68206172cb6cebbf" SRC_URI[archive.sha256sum] = "cb0639ffa9550b6ddf3b62f3b1add92fb92ab4690d351f2353cffe668be8c4a6"