<?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>6550</bug_id>
          
          <creation_ts>2014-07-17 21:59:28 +0000</creation_ts>
          <short_desc>Error when installing Kernelshark on intel-core2-32 machine with RPM package class</short_desc>
          <delta_ts>2014-07-31 14:06:14 +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>core</component>
          <version>1.6.1</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>1.6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="California Sullivan">california.l.sullivan</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>dvhart</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</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>44551</commentid>
    <comment_count>0</comment_count>
    <who name="California Sullivan">california.l.sullivan</who>
    <bug_when>2014-07-17 21:59:28 +0000</bug_when>
    <thetext>Committing transaction...
Preparing...                    ######################################## [  0%]
error: file /usr/bin/trace-cmd conflicts between attempted installs of kernelshark-1.2+git0+7055ffd37b-r3.core2_32 and trace-cmd-1.2+git0+7055ffd37b-r3.core2_32

Only found when MACHINE = &quot;intel-core2-32&quot; and PACKAGE_CLASSES = &quot;package_rpm&quot;.
Changing MACHINE to &quot;intel-corei7-64&quot; or PACKAGE_CLASSES to &quot;package_ipk&quot; allows the build to complete successfully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44572</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-07-18 23:06:01 +0000</bug_when>
    <thetext>Patch submitted to oe-core. The problem was that if you try to install both kernelshark and trace-cmd, they both have packaged trace-cmd. I can&apos;t explain why this only appeared on one machine for Cal, but this did reproduce for me on intel-corei7-64 too.

A simple fix is just to remove trace-cmd from the install prior to packaging. It is maybe a little crude, but it&apos;s simple and consistent with the current do_install() task which already removes the datadir.

diff --git a/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb b/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb
index d61097d..f287bed 100644
--- a/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb
+++ b/meta/recipes-kernel/trace-cmd/kernelshark_1.2.bb
@@ -25,6 +25,7 @@ FILESPATH = &quot;${FILE_DIRNAME}/trace-cmd&quot;

 do_install() {
        oe_runmake CC=&quot;${CC}&quot; AR=&quot;${AR}&quot; prefix=&quot;${prefix}&quot; DESTDIR=&quot;${D}&quot; install_gui
+       rm ${D}${bindir}/trace-cmd
        rm -rf ${D}${datadir}/trace-cmd
        rmdir ${D}${datadir}
 }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44573</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-07-18 23:09:29 +0000</bug_when>
    <thetext>I think this would be appropriate for daisy as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44605</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2014-07-21 20:51:18 +0000</bug_when>
    <thetext>Fixed in master:
commit 5be57ba62b47f12f937b2e1e0f5ea07092c243d8
Author: Darren Hart &lt;dvhart@linux.intel.com&gt;
Date:   2014-07-18

    kernelshark: Remove trace-cmd from the kernelshark package</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>