<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07/11/2014 04:57 AM, Burton, Ross
wrote:<br>
</div>
<blockquote
cite="mid:CAJTo0LZ7X4UUedddwb3q9XxkqZqTYF8-mHST7GRZ0y7OZUksvg@mail.gmail.com"
type="cite">
<pre wrap="">On 9 July 2014 11:16, Hongxu Jia <a class="moz-txt-link-rfc2396E" href="mailto:hongxu.jia@windriver.com"><hongxu.jia@windriver.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">+# 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 \
+"
</pre>
</blockquote>
<pre wrap="">
Does this do what you want if xmlto-native is pulled in from sstate in
an empty tmp?</pre>
</blockquote>
<br>
Hi Ross,<br>
<br>
If we don't have it, while runing bitbake world, there was a build<br>
failure for
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
alsa-utils which xmlto enabled.<br>
...<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<pre style="font-family: 'Courier New', courier, monotype, monospace; color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span class="stdout" style="font-family: 'Courier New', courier, monotype, monospace; color: black;">| 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 <a class="moz-txt-link-freetext" href="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd</a>
| /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 <a class="moz-txt-link-rfc2396E" href="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"</a>
| <a class="moz-txt-link-rfc2396E" href="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"</a>>
| ^
| I/O error : Attempt to load network entity <a class="moz-txt-link-freetext" href="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd</a>
| warning: failed to load external entity <a class="moz-txt-link-rfc2396E" href="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"</a>
| validity error : Could not load the external subset <a class="moz-txt-link-rfc2396E" href="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"</a></span></pre>
...<br>
<br>
The alsa-utils invoked xmlto to generate document at his do_compile,<br>
so we have to make sure the above native packages prepared before<br>
xmlto-native.<br>
<br>
//Hongxu<br>
<br>
<blockquote
cite="mid:CAJTo0LZ7X4UUedddwb3q9XxkqZqTYF8-mHST7GRZ0y7OZUksvg@mail.gmail.com"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">+# xmlto needs getopt/xmllint/xsltproc at runtime
+RDEPENDS_${PN}_class-target = " \
+ docbook-xml-dtd4 \
+ docbook-xsl-stylesheets \
+ util-linux \
+ libxml2 \
+ libxslt-bin \
+"
</pre>
</blockquote>
<pre wrap="">
Don't bother with the -class-target override, they're general runtime
dependencies and not specific to the target build.
Ross
</pre>
</blockquote>
<br>
</body>
</html>