<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2416</bug_id>
          
          <creation_ts>2012-05-04 06:05:48 +0000</creation_ts>
          <short_desc>xmlto/xsltproc stylesheets cannot be found even when they are installed in sysroot</short_desc>
          <delta_ts>2014-07-17 05:46:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.7 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Martin Jansa">Martin.Jansa</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21094</commentid>
    <comment_count>0</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-05-04 06:05:48 +0000</bug_when>
    <thetext>When autotools detect that xmlto or xstlproc available then it usually doesn&apos;t check if there are working stylesheets for it, so many recipes with enabled doc/man building fail like this:
http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-December/037066.html

or newer example:
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-May/021942.html

would be nice to provide working xmlto-native/xsltproc-native/stylesheets-native and then enable doc/man building in recipes where we had to explicitly disable it.

meta/recipes-support/libxslt/libxslt_1.1.26.bb already provides native version
xmlto can be imported from meta-oe/recipes-support/xmlto/xmlto_0.0.25.bb
docbook-sgml-dtd-4.3-native.bb can be imported from oe-core-contrib/jansa/test

more info:
http://lists.linuxtogo.org/pipermail/openembedded-devel/2011-December/037106.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43105</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2014-05-03 18:23:58 +0000</bug_when>
    <thetext>Old links to oe-devel/oe-core ML are not working anymore, here are the right ones

&quot;[oe] [PATCH v2 meta-oe 1/7] xmlto: add version 0.0.25&quot;
http://lists.openembedded.org/pipermail/openembedded-devel/2011-December/082225.html

&quot;[OE-core] [PATCHv3] xserver-xorg-lite: disable xmlto like full	xserver-xorg does&quot;
http://lists.openembedded.org/pipermail/openembedded-core/2012-May/061330.html

&quot;[oe] [PATCH v2 meta-oe 1/7] xmlto: add version 0.0.25&quot;
http://lists.openembedded.org/pipermail/openembedded-devel/2011-December/082264.html

Before enabling the docs we should make sure that the -native tools are fixes to look for stylesheets in sysroot and only in sysroot, because otherwise it will work for most people (stylesheets are usually installed in host distro) and especially when upgrading some recipe, people won&apos;t notice that upstream updated docs to use dtd-4.4 instead of dtd-4.3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44409</commentid>
    <comment_count>2</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-07-10 02:46:24 +0000</bug_when>
    <thetext>Test Steps:

1. vim local.conf
...
IMAGE_FEATURES += &quot;ssh-server-dropbear&quot;
PACKAGECONFIG_pn-alsa-utils = &quot;xmlto&quot;
IMAGE_INSTALL_append = &quot; xmlto&quot;
...

2. bitbake alsa-utils
If the build is ok, it means xmlto-native could work.

3. bitbake core-image-minimal

4. start qemu target and ssh the target

5. copy a manual source to target
   ssh tmp/work/i586-poky-linux/alsa-utils/1.0.27.2-r0/alsa-utils-1.0.27.2/alsactl/alsactl_init.xml root@192.168.7.2:/home/root

6. on target
   root@qemux86:~# xmlto man alsactl_init.xml 
   Note: Writing alsactl_init.7

//Hongxu</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44523</commentid>
    <comment_count>3</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-07-17 05:46:24 +0000</bug_when>
    <thetext>Merged into master

    xserver-xorg.inc: add PACKAGECONFIG for xmlto
    
    Support xmlto for documentation generation and disable it by default.
    
    [YOCTO #2416]
    
    (From OE-Core rev: c2d8322b3e3d1c2cb1ed7ccff59c7e86ab7af751)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>