<?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>5313</bug_id>
          
          <creation_ts>2013-10-03 20:39:30 +0000</creation_ts>
          <short_desc>Some valid image configurations can not be made into SDK configurations</short_desc>
          <delta_ts>2014-02-24 10:14:46 +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.5</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.5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>37591</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-10-03 20:39:30 +0000</bug_when>
    <thetext>When configuring an oe-core build adding the following line to the local.conf:

PACKAGE_CLASSES = &quot;package_rpm&quot;
IMAGE_INSTALL_append = &quot;packagegroup-core-ssh-dropbear openssh-sftp-server&quot;

The system ends up building properly, including ssh from dropbear, and an sftp-server from openssh.  There are no package conflicts in this.

When you either enable pkg-dev -- or try to build the SDK (which enables pkg-dev) a failure occurs when running through the &apos;attempt&apos; install process with smart:

error: openssh-6.2p2-r0 requires openssh-scp
error: openssh-6.2p2-r0 requires openssh-ssh
error: openssh-6.2p2-r0 requires openssh-keygen
error: openssh-6.2p2-r0 requires openssh-sshd
error: packagegroup-core-ssh-dropbear-1.0-r1 requires dropbear

The attemptonly install process will then fail, causing the SDK (or image) generation to fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37592</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-10-03 20:41:02 +0000</bug_when>
    <thetext>Workaround for this issue:

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 05de1ff..98aa98b 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -478,7 +478,7 @@ EOF
                echo &quot;Note: see `dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}&quot;
                translate_oe_to_smart ${sdk_mode} --attemptonly $package_attemptonly
                echo &quot;Attempting $pkgs_to_install&quot; &gt;&gt; &quot;`dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}&quot;
-               smart --data-dir=${target_rootfs}/var/lib/smart install --attempt -y ${pkgs_to_install} &gt;&gt; &quot;`dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}&quot; 2&gt;&amp;1
+               smart --data-dir=${target_rootfs}/var/lib/smart install --attempt -y ${pkgs_to_install} &gt;&gt; &quot;`dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}&quot; 2&gt;&amp;1 || :
        fi
 }


This will workaround the problem by ignoring the --attempt install.  However, this is not the proper fix because it means certain components may not end up in the image or SDK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37621</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-10-04 13:06:33 +0000</bug_when>
    <thetext>The underlying cause of this is related to bug 5057, although this bug is really about smart being capable of ignoring the conflict when it comes to installing the complementary packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40625</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-02-24 10:14:46 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e9c1191da4f84c9743b053e7030ab28b48f57c44

This wasn&apos;t a trivial fix so I&apos;d rather not backport this to dora for the moment, unless it&apos;s desperately needed. Please re-open if that&apos;s the case.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>