<?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>10366</bug_id>
          
          <creation_ts>2016-10-04 12:13:49 +0000</creation_ts>
          <short_desc>trouble with perf do_install</short_desc>
          <delta_ts>2016-10-07 17:24:49 +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>unspecified</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>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Maksim E. Kozlov">maksim.e.kozlov</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</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>66858</commentid>
    <comment_count>0</comment_count>
    <who name="Maksim E. Kozlov">maksim.e.kozlov</who>
    <bug_when>2016-10-04 12:13:49 +0000</bug_when>
    <thetext>I got an error during building perf tool

xmlto: Can&apos;t continue, xsltproc tool not found or not executable.
| make[2]: *** [/work/ram/myimage/tmp-glibc/work/mymachine-oe-linux/perf/1.0-r9/perf-1.0/perf-annotate.1] Error 3
| make[2]: *** Waiting for unfinished jobs....
| make[1]: *** [try-install-man] Error 2
| make: *** [install] Error 2
| make: Leaving directory `/work/ram/myimage/tmp-glibc/work-shared/mymachine/kernel-source/tools/perf&apos;
| ERROR: Function failed: do_install (log file is located at /work/ram/myimage/tmp-glibc/work/mymachine-oe-linux/perf/1.0-r9/temp/log.do_install.6782)
ERROR: Task (/work/openembedded/meta/recipes-kernel/perf/perf.bb:do_install) failed with exit code &apos;1&apos;

It seems that there is a missing dependency, but I am not sure if this is a bug. I resolved this for myself with this patch

diff --git a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
index 886e7b4..a2cee10 100644
--- a/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
+++ b/meta/recipes-devtools/xmlto/xmlto_0.0.28.bb
@@ -19,6 +19,7 @@ RDEPENDS_${PN} = &quot;docbook-xml-dtd4 \
                   docbook-xsl-stylesheets \
                   util-linux \
                   libxml2 \
+                  libxslt \
                   bash \
 &quot;
 RDEPENDS_${PN}_append_class-target = &quot; \

I do not know if it is a correct solution and I will be grateful if someone points to right solution


I use master branch from git://git.openembedded.org/openembedded-core</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66930</commentid>
    <comment_count>1</comment_count>
    <who name="Maksim E. Kozlov">maksim.e.kozlov</who>
    <bug_when>2016-10-05 12:18:58 +0000</bug_when>
    <thetext>Sorry, I forgot to say that this trouble appears during image build which is a  custom image and recipe contains the following:

IMAGE_INSTALL = &quot; \
    base-files \
    base-passwd \
    busybox \
    busybox-mdev \
    netbase \
    netperf \
    openssh \
    initscripts \
    perf \
&quot;
IMAGE_FSTYPES += &quot;${INITRAMFS_FSTYPES}&quot;

IMAGE_FEATURES = &quot;&quot;
IMAGE_LINGUAS = &quot;&quot;
USE_DEVFS = &quot;0&quot;
IMAGE_DEVICE_TABLES = &quot;files/device_table-boot.txt&quot;

inherit core-image

IMAGE_ROOTFS_SIZE = &quot;8192&quot;

BAD_RECOMMENDATIONS += &quot;busybox-syslog&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66989</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-10-06 14:58:02 +0000</bug_when>
    <thetext>At the very least the dependency is wrong since its a build failure and should depend on xslt-native for tools which are run. The target dependency doesn&apos;t make sense for a build time issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67013</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-10-06 18:37:16 +0000</bug_when>
    <thetext>I think the correct patch is for a build DEPENDS, since xsltproc is needed for xmlto, my host happen to provide it, when removed it from my host I got the dependency failure.

DEPENDS_class-native += &quot;libxslt&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67055</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-10-07 17:24:49 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e96af0c0b9a11234cd1f0c75ebe1dfec3e59c183</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>