[OE-core] [PATCH 4/8] xmlto: add version 0.0.25

2014-07-08 Thread Hongxu Jia
It moved from meta-oe and fixed the defect that xmlto/xsltproc
stylesheets cannot be found even when they are installed in
sysroot.

About the config files (catalog.xml), we refered what Ubuntu
13.04 did, so it could correctly search the xsl stylesheets
and xml dtds.

Assigned the environment variable XML_CATALOG_FILES, so the
xmlto will use oe-core's config as priority to avoid the
the search from build system.

[YOCTO #2416]

Signed-off-by: Hongxu Jia 
---
 meta/recipes-devtools/xmlto/files/catalog.xml  | 19 ++
 in-drop-the-test-of-xmllint-and-xsltproc.patch | 30 
 .../xmlto-0.0.25/obsolete_automake_macros.patch| 12 +++
 meta/recipes-devtools/xmlto/xmlto_0.0.25.bb| 42 ++
 4 files changed, 103 insertions(+)
 create mode 100644 meta/recipes-devtools/xmlto/files/catalog.xml
 create mode 100644 
meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
 create mode 100644 
meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch
 create mode 100644 meta/recipes-devtools/xmlto/xmlto_0.0.25.bb

diff --git a/meta/recipes-devtools/xmlto/files/catalog.xml 
b/meta/recipes-devtools/xmlto/files/catalog.xml
new file mode 100644
index 000..6b8833d
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/files/catalog.xml
@@ -0,0 +1,19 @@
+
+http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
+
+http://docbook.org/xml/"; 
catalog="./docbook-xml.xml"/>
+
+
+
+
+
+
+
+
+
+
+http://www.oasis-open.org/docbook/xml/"; 
catalog="./docbook-xml.xml"/>
+
+http://docbook.sourceforge.net/release/xsl/"; 
catalog="./docbook-xsl.xml"/>
+http://docbook.sourceforge.net/release/xsl/"; 
catalog="./docbook-xsl.xml"/>
+
diff --git 
a/meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
 
b/meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
new file mode 100644
index 000..69ca432
--- /dev/null
+++ 
b/meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
@@ -0,0 +1,30 @@
+configure.in: drop the test of xmllint and xsltproc
+
+The test is unnecessary, the xmllint and xsltproc were explicitly
+added to RDEPENDS.
+
+Upstream-Status: oe-specific
+Signed-off-by: Hongxu Jia 
+---
+ configure.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.in b/configure.in
+--- a/configure.in
 b/configure.in
+@@ -42,10 +42,10 @@ AC_ARG_VAR([LOCALE], [Name and path of the `locale' 
program.])
+ AC_PATH_PROG([LOCALE], [locale], [locale])
+ 
+ AC_ARG_VAR([XMLLINT], [Name and path of the `xmllint' program.])
+-AC_PATH_PROG([XMLLINT], [xmllint], [xmllint])
++dnl AC_PATH_PROG([XMLLINT], [xmllint], [xmllint])
+ 
+ AC_ARG_VAR([XSLTPROC], [Name and path of the `xsltproc' program.])
+-AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
++dnl AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
+ 
+ dnl
+ dnl toolchains
+-- 
+1.8.1.2
+
diff --git 
a/meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch 
b/meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch
new file mode 100644
index 000..faa8acc
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch
@@ -0,0 +1,12 @@
+diff -Nurd xmlto-0.0.25/configure.in xmlto-0.0.25/configure.in
+--- xmlto-0.0.25/configure.in  2011-12-01 17:49:00.0 +0200
 xmlto-0.0.25/configure.in  2013-01-07 05:24:16.169953519 +0200
+@@ -1,7 +1,7 @@
+ AC_INIT(xmlto, 0.0.25)
+ AC_CONFIG_SRCDIR(xmlto.spec.in)
+ AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects 1.6])
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+
+ AC_PROG_CC
+ AM_PROG_CC_C_O
diff --git a/meta/recipes-devtools/xmlto/xmlto_0.0.25.bb 
b/meta/recipes-devtools/xmlto/xmlto_0.0.25.bb
new file mode 100644
index 000..587097f
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/xmlto_0.0.25.bb
@@ -0,0 +1,42 @@
+SUMMARY = "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"
+
+PR = "r1"
+
+SRC_URI = "https://fedorahosted.org/releases/x/m/xmlto/xmlto-${PV}.tar.gz \
+   file://obsolete_automake_macros.patch \
+   file://configure.in-drop-the-test-of-xmllint-and-xsltproc.patch \
+   file://catalog.xml \
+"
+SRC_URI[md5sum] = "a88cd3f08789b4825d1ac89fa065170d"
+SRC_URI[sha256sum] = 
"c52b56d929e8d20fc19cd3b7ec238f8d039730c56ee311cc352e843147e3e31a"
+
+inherit autotools
+
+# xmlto needs getopt/xmllint/xsltproc at runtime
+RDEPENDS_${PN} = "docbook-xml-dtd4 \
+  docbook-xsl-stylesheets \
+  util-linux \
+  libxml2 \
+"
+RDEPENDS_${PN}_append_class-target = " \
+  libxslt-bin \
+"
+RDEPENDS_${PN}_append_class-native = " \
+  lib

[OE-core] [PATCH 4/8] xmlto: add version 0.0.25

2014-07-09 Thread Hongxu Jia
It moved from meta-oe and fixed the defect that xmlto/xsltproc
stylesheets cannot be found even when they are installed in
sysroot.

About the config files (catalog.xml), we refered what Ubuntu
13.04 did, so it could correctly search the xsl stylesheets
and xml dtds.

Assigned the environment variable XML_CATALOG_FILES, so the
xmlto will use oe-core's config as priority to avoid the
the search from build system.

[YOCTO #2416]

Signed-off-by: Hongxu Jia 
---
 meta/recipes-devtools/xmlto/files/catalog.xml  | 19 +
 in-drop-the-test-of-xmllint-and-xsltproc.patch | 30 ++
 .../xmlto-0.0.25/obsolete_automake_macros.patch| 12 ++
 meta/recipes-devtools/xmlto/xmlto_0.0.25.bb| 47 ++
 4 files changed, 108 insertions(+)
 create mode 100644 meta/recipes-devtools/xmlto/files/catalog.xml
 create mode 100644 
meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
 create mode 100644 
meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch
 create mode 100644 meta/recipes-devtools/xmlto/xmlto_0.0.25.bb

diff --git a/meta/recipes-devtools/xmlto/files/catalog.xml 
b/meta/recipes-devtools/xmlto/files/catalog.xml
new file mode 100644
index 000..6b8833d
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/files/catalog.xml
@@ -0,0 +1,19 @@
+
+http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
+
+http://docbook.org/xml/"; 
catalog="./docbook-xml.xml"/>
+
+
+
+
+
+
+
+
+
+
+http://www.oasis-open.org/docbook/xml/"; 
catalog="./docbook-xml.xml"/>
+
+http://docbook.sourceforge.net/release/xsl/"; 
catalog="./docbook-xsl.xml"/>
+http://docbook.sourceforge.net/release/xsl/"; 
catalog="./docbook-xsl.xml"/>
+
diff --git 
a/meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
 
b/meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
new file mode 100644
index 000..69ca432
--- /dev/null
+++ 
b/meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
@@ -0,0 +1,30 @@
+configure.in: drop the test of xmllint and xsltproc
+
+The test is unnecessary, the xmllint and xsltproc were explicitly
+added to RDEPENDS.
+
+Upstream-Status: oe-specific
+Signed-off-by: Hongxu Jia 
+---
+ configure.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.in b/configure.in
+--- a/configure.in
 b/configure.in
+@@ -42,10 +42,10 @@ AC_ARG_VAR([LOCALE], [Name and path of the `locale' 
program.])
+ AC_PATH_PROG([LOCALE], [locale], [locale])
+ 
+ AC_ARG_VAR([XMLLINT], [Name and path of the `xmllint' program.])
+-AC_PATH_PROG([XMLLINT], [xmllint], [xmllint])
++dnl AC_PATH_PROG([XMLLINT], [xmllint], [xmllint])
+ 
+ AC_ARG_VAR([XSLTPROC], [Name and path of the `xsltproc' program.])
+-AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
++dnl AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
+ 
+ dnl
+ dnl toolchains
+-- 
+1.8.1.2
+
diff --git 
a/meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch 
b/meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch
new file mode 100644
index 000..faa8acc
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch
@@ -0,0 +1,12 @@
+diff -Nurd xmlto-0.0.25/configure.in xmlto-0.0.25/configure.in
+--- xmlto-0.0.25/configure.in  2011-12-01 17:49:00.0 +0200
 xmlto-0.0.25/configure.in  2013-01-07 05:24:16.169953519 +0200
+@@ -1,7 +1,7 @@
+ AC_INIT(xmlto, 0.0.25)
+ AC_CONFIG_SRCDIR(xmlto.spec.in)
+ AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects 1.6])
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+
+ AC_PROG_CC
+ AM_PROG_CC_C_O
diff --git a/meta/recipes-devtools/xmlto/xmlto_0.0.25.bb 
b/meta/recipes-devtools/xmlto/xmlto_0.0.25.bb
new file mode 100644
index 000..0663060
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/xmlto_0.0.25.bb
@@ -0,0 +1,47 @@
+SUMMARY = "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"
+
+PR = "r1"
+
+SRC_URI = "https://fedorahosted.org/releases/x/m/xmlto/xmlto-${PV}.tar.gz \
+   file://obsolete_automake_macros.patch \
+   file://configure.in-drop-the-test-of-xmllint-and-xsltproc.patch \
+   file://catalog.xml \
+"
+SRC_URI[md5sum] = "a88cd3f08789b4825d1ac89fa065170d"
+SRC_URI[sha256sum] = 
"c52b56d929e8d20fc19cd3b7ec238f8d039730c56ee311cc352e843147e3e31a"
+
+inherit autotools
+
+# To make sure these native packages ready before xmlto-native was invoked.
+DEPENDS_class-native = " \
+docbook-xml-dtd4-native \
+docbook-xsl-stylesheets-native \
+util-linux-native \
+libxml2-native \
+libxslt-native \
+"
+
+# xmlto needs getopt/xmllint/xsltproc at runtime
+RDEPENDS_${PN}_class-target = " \
+docbo

[OE-core] [PATCH 4/8] xmlto: add version 0.0.25

2014-07-15 Thread Hongxu Jia
It moved from meta-oe and fixed the defect that xmlto/xsltproc
stylesheets cannot be found even when they are installed in
sysroot.

About the config files (catalog.xml), we refered what Ubuntu
13.04 did, so it could correctly search the xsl stylesheets
and xml dtds.

Assigned the environment variable XML_CATALOG_FILES, so the
xmlto will use oe-core's config as priority to avoid the
the search from build system.

[YOCTO #2416]

Signed-off-by: Hongxu Jia 
---
 meta/recipes-devtools/xmlto/files/catalog.xml  | 19 +++
 in-drop-the-test-of-xmllint-and-xsltproc.patch | 30 ++
 .../xmlto-0.0.25/obsolete_automake_macros.patch| 12 +++
 meta/recipes-devtools/xmlto/xmlto_0.0.25.bb| 37 ++
 4 files changed, 98 insertions(+)
 create mode 100644 meta/recipes-devtools/xmlto/files/catalog.xml
 create mode 100644 
meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
 create mode 100644 
meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch
 create mode 100644 meta/recipes-devtools/xmlto/xmlto_0.0.25.bb

diff --git a/meta/recipes-devtools/xmlto/files/catalog.xml 
b/meta/recipes-devtools/xmlto/files/catalog.xml
new file mode 100644
index 000..6b8833d
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/files/catalog.xml
@@ -0,0 +1,19 @@
+
+http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
+
+http://docbook.org/xml/"; 
catalog="./docbook-xml.xml"/>
+
+
+
+
+
+
+
+
+
+
+http://www.oasis-open.org/docbook/xml/"; 
catalog="./docbook-xml.xml"/>
+
+http://docbook.sourceforge.net/release/xsl/"; 
catalog="./docbook-xsl.xml"/>
+http://docbook.sourceforge.net/release/xsl/"; 
catalog="./docbook-xsl.xml"/>
+
diff --git 
a/meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
 
b/meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
new file mode 100644
index 000..69ca432
--- /dev/null
+++ 
b/meta/recipes-devtools/xmlto/xmlto-0.0.25/configure.in-drop-the-test-of-xmllint-and-xsltproc.patch
@@ -0,0 +1,30 @@
+configure.in: drop the test of xmllint and xsltproc
+
+The test is unnecessary, the xmllint and xsltproc were explicitly
+added to RDEPENDS.
+
+Upstream-Status: oe-specific
+Signed-off-by: Hongxu Jia 
+---
+ configure.in | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.in b/configure.in
+--- a/configure.in
 b/configure.in
+@@ -42,10 +42,10 @@ AC_ARG_VAR([LOCALE], [Name and path of the `locale' 
program.])
+ AC_PATH_PROG([LOCALE], [locale], [locale])
+ 
+ AC_ARG_VAR([XMLLINT], [Name and path of the `xmllint' program.])
+-AC_PATH_PROG([XMLLINT], [xmllint], [xmllint])
++dnl AC_PATH_PROG([XMLLINT], [xmllint], [xmllint])
+ 
+ AC_ARG_VAR([XSLTPROC], [Name and path of the `xsltproc' program.])
+-AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
++dnl AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
+ 
+ dnl
+ dnl toolchains
+-- 
+1.8.1.2
+
diff --git 
a/meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch 
b/meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch
new file mode 100644
index 000..faa8acc
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/xmlto-0.0.25/obsolete_automake_macros.patch
@@ -0,0 +1,12 @@
+diff -Nurd xmlto-0.0.25/configure.in xmlto-0.0.25/configure.in
+--- xmlto-0.0.25/configure.in  2011-12-01 17:49:00.0 +0200
 xmlto-0.0.25/configure.in  2013-01-07 05:24:16.169953519 +0200
+@@ -1,7 +1,7 @@
+ AC_INIT(xmlto, 0.0.25)
+ AC_CONFIG_SRCDIR(xmlto.spec.in)
+ AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects 1.6])
+-AM_CONFIG_HEADER(config.h)
++AC_CONFIG_HEADERS(config.h)
+
+ AC_PROG_CC
+ AM_PROG_CC_C_O
diff --git a/meta/recipes-devtools/xmlto/xmlto_0.0.25.bb 
b/meta/recipes-devtools/xmlto/xmlto_0.0.25.bb
new file mode 100644
index 000..2747d6d
--- /dev/null
+++ b/meta/recipes-devtools/xmlto/xmlto_0.0.25.bb
@@ -0,0 +1,37 @@
+SUMMARY = "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 \
+   file://obsolete_automake_macros.patch \
+   file://configure.in-drop-the-test-of-xmllint-and-xsltproc.patch \
+   file://catalog.xml \
+"
+SRC_URI[md5sum] = "a88cd3f08789b4825d1ac89fa065170d"
+SRC_URI[sha256sum] = 
"c52b56d929e8d20fc19cd3b7ec238f8d039730c56ee311cc352e843147e3e31a"
+
+inherit autotools
+
+# xmlto needs getopt/xmllint/xsltproc at runtime
+RDEPENDS_${PN} = "docbook-xml-dtd4 \
+  docbook-xsl-stylesheets \
+  util-linux \
+  libxml2 \
+"
+RDEPENDS_${PN}_append_class-target = " \
+  libxslt-bin \
+"
+
+BBCLASSEXTEND = "native"
+
+EXTRA_OECONF_append = " XMLLINT=xmllint XSLT

Re: [OE-core] [PATCH 4/8] xmlto: add version 0.0.25

2014-07-10 Thread Burton, Ross
On 9 July 2014 11:16, Hongxu Jia  wrote:
> +# To make sure these native packages ready before xmlto-native was invoked.
> +DEPENDS_class-native = " \
> +docbook-xml-dtd4-native \
> +docbook-xsl-stylesheets-native \
> +util-linux-native \
> +libxml2-native \
> +libxslt-native \
> +"

Does this do what you want if xmlto-native is pulled in from sstate in
an empty tmp?

> +# xmlto needs getopt/xmllint/xsltproc at runtime
> +RDEPENDS_${PN}_class-target = " \
> +docbook-xml-dtd4 \
> +docbook-xsl-stylesheets \
> +util-linux \
> +libxml2 \
> +libxslt-bin \
> +"

Don't bother with the -class-target override, they're general runtime
dependencies and not specific to the target build.

Ross
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 4/8] xmlto: add version 0.0.25

2014-07-10 Thread Hongxu Jia

On 07/11/2014 04:57 AM, Burton, Ross wrote:

On 9 July 2014 11:16, Hongxu Jia  wrote:

+# To make sure these native packages ready before xmlto-native was invoked.
+DEPENDS_class-native = " \
+docbook-xml-dtd4-native \
+docbook-xsl-stylesheets-native \
+util-linux-native \
+libxml2-native \
+libxslt-native \
+"

Does this do what you want if xmlto-native is pulled in from sstate in
an empty tmp?


Hi Ross,

If we don't have it, while runing bitbake world, there was a build
failure for alsa-utils which xmlto enabled.
...

| xmlto man alsactl_init.xml
| sed -e 's,@localstatedir\@,/var,g' -e 's,@sbindir\@,/usr/sbin,g' -e 
's,@daemonswitch\@,/etc/alsa/state-daemon.conf,g' < 90-alsa-restore.rules.in > 
90-alsa-restore.rules || rm 90-alsa-restore.rules
| i586-poky-linux-gcc  -m32 -march=i586 
--sysroot=/buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86  
-D__USE_GNU -DSYS_ASOUNDRC=\"/var/lib/alsa/asound.state\" 
-DSYS_PIDFILE=\"/var/run/alsactl.pid\" -O2 -pipe -g -feliminate-unused-debug-types  
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o alsactl alsactl-alsactl.o alsactl-state.o 
alsactl-lock.o alsactl-utils.o alsactl-init_parse.o alsactl-daemon.o  -lasound -lm -ldl -lpthread
| xmlto: 
/buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/alsa-utils/1.0.27.2-r0/alsa-utils-1.0.27.2/alsactl/alsactl_init.xml
 does not validate (status 3)
| xmlto: Fix document syntax or use --skip-validation option
| I/O error : Attempt to load network entity 
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
| 
/buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/alsa-utils/1.0.27.2-r0/alsa-utils-1.0.27.2/alsactl/alsactl_init.xml:3:
 warning: failed to load external entity 
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
|   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
|^
| I/O error : Attempt to load network entity 
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
| warning: failed to load external entity 
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
| validity error : Could not load the external subset 
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";

...

The alsa-utils invoked xmlto to generate document at his do_compile,
so we have to make sure the above native packages prepared before
xmlto-native.

//Hongxu




+# xmlto needs getopt/xmllint/xsltproc at runtime
+RDEPENDS_${PN}_class-target = " \
+docbook-xml-dtd4 \
+docbook-xsl-stylesheets \
+util-linux \
+libxml2 \
+libxslt-bin \
+"

Don't bother with the -class-target override, they're general runtime
dependencies and not specific to the target build.

Ross


-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 4/8] xmlto: add version 0.0.25

2014-07-15 Thread Richard Purdie
On Fri, 2014-07-11 at 09:45 +0800, Hongxu Jia wrote:
> On 07/11/2014 04:57 AM, Burton, Ross wrote:
> 
> > On 9 July 2014 11:16, Hongxu Jia  wrote:
> > > +# To make sure these native packages ready before xmlto-native was 
> > > invoked.
> > > +DEPENDS_class-native = " \
> > > +docbook-xml-dtd4-native \
> > > +docbook-xsl-stylesheets-native \
> > > +util-linux-native \
> > > +libxml2-native \
> > > +libxslt-native \
> > > +"
> > Does this do what you want if xmlto-native is pulled in from sstate in
> > an empty tmp?
> 
> Hi Ross,
> 
> If we don't have it, while runing bitbake world, there was a build
> failure for alsa-utils which xmlto enabled.
> ...
> | xmlto man alsactl_init.xml
> | sed -e 's,@localstatedir\@,/var,g' -e 's,@sbindir\@,/usr/sbin,g' -e 
> 's,@daemonswitch\@,/etc/alsa/state-daemon.conf,g' < 90-alsa-restore.rules.in 
> > 90-alsa-restore.rules || rm 90-alsa-restore.rules
> | i586-poky-linux-gcc  -m32 -march=i586 
> --sysroot=/buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86
>   -D__USE_GNU -DSYS_ASOUNDRC=\"/var/lib/alsa/asound.state\" 
> -DSYS_PIDFILE=\"/var/run/alsactl.pid\" -O2 -pipe -g 
> -feliminate-unused-debug-types  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed 
> -o alsactl alsactl-alsactl.o alsactl-state.o alsactl-lock.o alsactl-utils.o 
> alsactl-init_parse.o alsactl-daemon.o  -lasound -lm -ldl -lpthread
> | xmlto: 
> /buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/alsa-utils/1.0.27.2-r0/alsa-utils-1.0.27.2/alsactl/alsactl_init.xml
>  does not validate (status 3)
> | xmlto: Fix document syntax or use --skip-validation option
> | I/O error : Attempt to load network entity 
> http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
> | 
> /buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/alsa-utils/1.0.27.2-r0/alsa-utils-1.0.27.2/alsactl/alsactl_init.xml:3:
>  warning: failed to load external entity 
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
> |   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
> |^
> | I/O error : Attempt to load network entity 
> http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
> | warning: failed to load external entity 
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
> | validity error : Could not load the external subset 
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
> ...
> 
> The alsa-utils invoked xmlto to generate document at his do_compile,
> so we have to make sure the above native packages prepared before
> xmlto-native.

Shouldn't alsa-utils have a dependency on the docbook pieces it needs as
well as xmlto-native then?

Certainly, these are not build time dependencies of xmlto so something
is not quite right...

Cheers,

Richard

-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 4/8] xmlto: add version 0.0.25

2014-07-15 Thread Hongxu Jia

On 07/15/2014 06:57 PM, Richard Purdie wrote:

On Fri, 2014-07-11 at 09:45 +0800, Hongxu Jia wrote:

On 07/11/2014 04:57 AM, Burton, Ross wrote:


On 9 July 2014 11:16, Hongxu Jia  wrote:

+# To make sure these native packages ready before xmlto-native was invoked.
+DEPENDS_class-native = " \
+docbook-xml-dtd4-native \
+docbook-xsl-stylesheets-native \
+util-linux-native \
+libxml2-native \
+libxslt-native \
+"

Does this do what you want if xmlto-native is pulled in from sstate in
an empty tmp?

Hi Ross,

If we don't have it, while runing bitbake world, there was a build
failure for alsa-utils which xmlto enabled.
...
| xmlto man alsactl_init.xml
| sed -e 's,@localstatedir\@,/var,g' -e 's,@sbindir\@,/usr/sbin,g' -e 
's,@daemonswitch\@,/etc/alsa/state-daemon.conf,g' < 90-alsa-restore.rules.in > 
90-alsa-restore.rules || rm 90-alsa-restore.rules
| i586-poky-linux-gcc  -m32 -march=i586 
--sysroot=/buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/sysroots/qemux86  
-D__USE_GNU -DSYS_ASOUNDRC=\"/var/lib/alsa/asound.state\" 
-DSYS_PIDFILE=\"/var/run/alsactl.pid\" -O2 -pipe -g -feliminate-unused-debug-types  
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o alsactl alsactl-alsactl.o alsactl-state.o 
alsactl-lock.o alsactl-utils.o alsactl-init_parse.o alsactl-daemon.o  -lasound -lm -ldl -lpthread
| xmlto: 
/buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/alsa-utils/1.0.27.2-r0/alsa-utils-1.0.27.2/alsactl/alsactl_init.xml
 does not validate (status 3)
| xmlto: Fix document syntax or use --skip-validation option
| I/O error : Attempt to load network entity 
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
| 
/buildarea3/yocto-autobuilder/yocto-slave/nightly-x86/build/build/tmp/work/i586-poky-linux/alsa-utils/1.0.27.2-r0/alsa-utils-1.0.27.2/alsactl/alsactl_init.xml:3:
 warning: failed to load external entity 
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
|   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
|^
| I/O error : Attempt to load network entity 
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
| warning: failed to load external entity 
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
| validity error : Could not load the external subset 
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
...

The alsa-utils invoked xmlto to generate document at his do_compile,
so we have to make sure the above native packages prepared before
xmlto-native.

Shouldn't alsa-utils have a dependency on the docbook pieces it needs as
well as xmlto-native then?

Certainly, these are not build time dependencies of xmlto so something
is not quite right...


Got it, I will add docbook pieces to alsa-utils's dependency, V3 Incoming.

//Hongxu



Cheers,

Richard



--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core