Patchwork [v2,meta-oe,1/7] xmlto: add version 0.0.25

login
register
mail settings
Submitter Zhenhua Luo
Date Dec. 21, 2011, 6:01 a.m.
Message ID <1324447304-4874-1-git-send-email-b19537@freescale.com>
Download mbox | patch
Permalink /patch/17347/
State Accepted
Commit ab8f876ca8fa223c183e3db2029cce88f3435a27
Headers show

Comments

Zhenhua Luo - Dec. 21, 2011, 6:01 a.m.
From: Zhenhua Luo <b19537@freescale.com>

    xmlto converts an XML file (DocBook or XSL-FO) into a specified format
    (PS, PDF, HTML, man, ASCII, XSL-FO, etc.)

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
---
 meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb
Martin Jansa - Dec. 23, 2011, 10:03 a.m.
On Wed, Dec 21, 2011 at 02:01:38PM +0800, b19537@freescale.com wrote:
> From: Zhenhua Luo <b19537@freescale.com>
> 
>     xmlto converts an XML file (DocBook or XSL-FO) into a specified format
>     (PS, PDF, HTML, man, ASCII, XSL-FO, etc.)

Is there plan to provide native stylesheets too? Because after building
xmlto-native some packages are failing because they detect xmlto-native
available but don't check if all needed stylesheets are installed.

e.g. xtrans, libxdmcp:
| make[1]: Entering directory `/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc'
| /OE/shr-core/tmp/sysroots/x86_64-linux/usr/bin/xmlto  xhtml-nochunks xtrans.xml
| xmlto: /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc/xtrans.xml does not validate (status 3)
| xmlto: Fix document syntax or use --skip-validation option
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc/xtrans.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
|                       "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
|                                                                                ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc/xtrans.xml:26: parser error : Entity 'copy' not defined
| Copyright &copy; 1993, 1994 NCR Corporation - Dayton, Ohio, USA
|                 ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc/xtrans.xml:59: parser error : Entity 'copy' not defined
| Copyright &copy; 1993, 1994, 2002 The Open Group
|                 ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc/xtrans.xml:64: parser error : Entity 'ldquo' not defined
| of this software and associated documentation files (the &ldquo;Software&rdquo;)
|                                                                 ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc/xtrans.xml:64: parser error : Entity 'rdquo' not defined
| of this software and associated documentation files (the &ldquo;Software&rdquo;)
|                                                                                ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc/xtrans.xml:77: parser error : Entity 'ldquo' not defined
| THE SOFTWARE IS PROVIDED &ldquo;AS IS&rdquo;, WITHOUT WARRANTY OF ANY KIND, EXPR
|                                 ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc/xtrans.xml:77: parser error : Entity 'rdquo' not defined
| THE SOFTWARE IS PROVIDED &ldquo;AS IS&rdquo;, WITHOUT WARRANTY OF ANY KIND, EXPR
|                                             ^
| warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
| validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
| Document /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc/xtrans.xml does not validate
| make[1]: *** [xtrans.html] Error 13
| make[1]: Leaving directory `/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/xtrans/xtrans-1_1.2.6-r0/xtrans-1.2.6/doc'
| make: *** [all-recursive] Error 1



and libxdmcp:

| make[2]: Entering directory `/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc'
| /OE/shr-core/tmp/sysroots/x86_64-linux/usr/bin/xmlto  xhtml-nochunks xdmcp.xml
| xmlto: /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml does not validate (status 3)
| xmlto: Fix document syntax or use --skip-validation option
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
|                    "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
|                                                                             ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3774: parser error : Entity 'tau' not defined
| &tau; = private key shared by display and manager
|      ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3779: parser error : Entity 'rho' not defined
| &rho; = 64 bit random number generated by display
|      ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3784: parser error : Entity 'alpha' not defined
| &alpha; = authentication data in XDMCP packets
|        ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3789: parser error : Entity 'sigma' not defined
| &sigma; = per-session private key, generated by manager
|        ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3794: parser error : Entity 'beta' not defined
| &beta; = authorization data
|       ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3827: parser error : Entity 'rho' not defined
| &rho; = {&alpha; Request } *&tau;
|      ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3827: parser error : Entity 'alpha' not defined
| &rho; = {&alpha; Request } *&tau;
|                 ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3827: parser error : Entity 'tau' not defined
| &rho; = {&alpha; Request } *&tau;
|                                  ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3831: parser error : Entity 'alpha' not defined
| &alpha; Accept = { &rho; + 1}&tau;
|        ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3831: parser error : Entity 'rho' not defined
| &alpha; Accept = { &rho; + 1}&tau;
|                         ^
| /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml:3831: parser error : Entity 'tau' not defined
| &alpha; Accept = { &rho; + 1}&tau;
|                                   ^
| warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
| validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
| Document /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0/doc/xdmcp.xml does not validate
| make[2]: *** [xdmcp.html] Error 13
| make[2]: Leaving directory `/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXERROR: Function 'do_compile' failed (see /OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/temp/log.do_compile.895 for further information)
| dmcp-1.1.0/doc'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/OE/shr-core/tmp/work/armv7a-vfp-neon-oe-linux-gnueabi/libxdmcp/libxdmcp-1_1.1.0-r0/libXdmcp-1.1.0'
| make: *** [all] Error 2

Probably more, I haven't finished rebuild from scratch with it yet.
For now I plan to disable doc generation in those recipes where it's
failing, but if you plan to add all common stylesheets, then we can
try to fix doc generation instead and add xmlto-native + stylesheets
to DEPENDS instead.

Regards,

> Signed-off-by: Zhenhua Luo <b19537@freescale.com>
> ---
>  meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb |   14 ++++++++++++++
>  1 files changed, 14 insertions(+), 0 deletions(-)
>  create mode 100644 meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb
> 
> diff --git a/meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb b/meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb
> new file mode 100644
> index 0000000..806ea2e
> --- /dev/null
> +++ b/meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb
> @@ -0,0 +1,14 @@
> +DESCRIPTION = "A shell-script tool for converting XML files to various formats" 
> +HOMEPAGE = "https://fedorahosted.org/xmlto/" 
> +SECTION = "docs/xmlto" 
> +LICENSE = "GPLv2" 
> +
> +LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
> +
> +SRC_URI = "https://fedorahosted.org/releases/x/m/xmlto/xmlto-${PV}.tar.gz" 
> +SRC_URI[md5sum] = "a88cd3f08789b4825d1ac89fa065170d"
> +SRC_URI[sha256sum] = "c52b56d929e8d20fc19cd3b7ec238f8d039730c56ee311cc352e843147e3e31a"
> +
> +inherit autotools  
> +
> +BBCLASSEXTEND = "native nativesdk"
> -- 
> 1.7.0.4
> 
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
McClintock Matthew-B29882 - Dec. 28, 2011, 1:32 a.m.
On Fri, Dec 23, 2011 at 4:03 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> Is there plan to provide native stylesheets too? Because after building
> xmlto-native some packages are failing because they detect xmlto-native
> available but don't check if all needed stylesheets are installed.

Can you help us out here and tell us what package would provide these?

-M
Martin Jansa - Dec. 29, 2011, 10:24 a.m.
On Wed, Dec 28, 2011 at 01:32:24AM +0000, McClintock Matthew-B29882 wrote:
> On Fri, Dec 23, 2011 at 4:03 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> > Is there plan to provide native stylesheets too? Because after building
> > xmlto-native some packages are failing because they detect xmlto-native
> > available but don't check if all needed stylesheets are installed.
> 
> Can you help us out here and tell us what package would provide these?

In gentoo they are provided by packages like this
app-text/docbook-xml-dtd
but because each docs build can ask for different dtd version then it's
common to have more than one version installed at the same time (e.g. 4.1,
4.2 and 4.3 are mostly used at my gentoo installation)

That's why OE-classic and OE-core has those PV already in PN:
./recipes/docbook-sgml-dtd
./recipes/docbook-sgml-dtd/docbook-sgml-dtd-native.inc
./recipes/docbook-sgml-dtd/docbook-sgml-dtd-3.1-native.bb
./recipes/docbook-sgml-dtd/docbook-sgml-dtd-4.5-native.bb
./recipes/docbook-sgml-dtd/docbook-sgml-dtd-4.4-native.bb
./recipes/docbook-sgml-dtd/docbook-sgml-dtd-4.1-native.bb
and
./meta/recipes-devtools/docbook-sgml-dtd
./meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc
./meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-3.1-native.bb
./meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-4.5-native.bb
./meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-4.1-native.bb

But those xorg recipes seems to be using dtd-4.3.

Regards,
Martin Jansa - Dec. 29, 2011, 10:41 a.m.
On Thu, Dec 29, 2011 at 11:24:39AM +0100, Martin Jansa wrote:
> On Wed, Dec 28, 2011 at 01:32:24AM +0000, McClintock Matthew-B29882 wrote:
> > On Fri, Dec 23, 2011 at 4:03 AM, Martin Jansa <martin.jansa@gmail.com> wrote:
> > > Is there plan to provide native stylesheets too? Because after building
> > > xmlto-native some packages are failing because they detect xmlto-native
> > > available but don't check if all needed stylesheets are installed.
> > 
> > Can you help us out here and tell us what package would provide these?
> 
> In gentoo they are provided by packages like this
> app-text/docbook-xml-dtd
> but because each docs build can ask for different dtd version then it's
> common to have more than one version installed at the same time (e.g. 4.1,
> 4.2 and 4.3 are mostly used at my gentoo installation)
> 
> That's why OE-classic and OE-core has those PV already in PN:
> ./recipes/docbook-sgml-dtd
> ./recipes/docbook-sgml-dtd/docbook-sgml-dtd-native.inc
> ./recipes/docbook-sgml-dtd/docbook-sgml-dtd-3.1-native.bb
> ./recipes/docbook-sgml-dtd/docbook-sgml-dtd-4.5-native.bb
> ./recipes/docbook-sgml-dtd/docbook-sgml-dtd-4.4-native.bb
> ./recipes/docbook-sgml-dtd/docbook-sgml-dtd-4.1-native.bb
> and
> ./meta/recipes-devtools/docbook-sgml-dtd
> ./meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc
> ./meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-3.1-native.bb
> ./meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-4.5-native.bb
> ./meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-4.1-native.bb
> 
> But those xorg recipes seems to be using dtd-4.3.

To be more clear about the issue: 

1) now there is also target xmlto without any dtds for target
2) xmlto-native is autodetected as available (ie for xorg stuff) but
   then fails to build docs because cannot find dtds even with
   4.3-native added and installed
   meta/recipes-devtools/docbook-utils/docbook-utils-native_0.6.14.bb is
   doing some magic to find correct dtd files, not sure if it works
3) xorg builds have xmlto support autodetected, I have patches to
   disable it (to build them on host without stylessheets already
   installed), but if xmlto is fixed and stylesheets available then we
   can force it enabled instead.

Regards,

Patch

diff --git a/meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb b/meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb
new file mode 100644
index 0000000..806ea2e
--- /dev/null
+++ b/meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb
@@ -0,0 +1,14 @@ 
+DESCRIPTION = "A shell-script tool for converting XML files to various formats" 
+HOMEPAGE = "https://fedorahosted.org/xmlto/" 
+SECTION = "docs/xmlto" 
+LICENSE = "GPLv2" 
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
+
+SRC_URI = "https://fedorahosted.org/releases/x/m/xmlto/xmlto-${PV}.tar.gz" 
+SRC_URI[md5sum] = "a88cd3f08789b4825d1ac89fa065170d"
+SRC_URI[sha256sum] = "c52b56d929e8d20fc19cd3b7ec238f8d039730c56ee311cc352e843147e3e31a"
+
+inherit autotools  
+
+BBCLASSEXTEND = "native nativesdk"