<?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>4305</bug_id>
          
          <creation_ts>2013-04-15 15:35:14 +0000</creation_ts>
          <short_desc>Smart reports &quot;no package provides&quot; when a conflict occurs</short_desc>
          <delta_ts>2013-10-21 07:11:28 +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>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>ionutx.chisanovici</cc>
    
    <cc>jessica.zhang</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>32169</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-04-15 15:35:14 +0000</bug_when>
    <thetext>openssh conflicts with dropbear, so quite rightly smart won&apos;t let you install packagegroup-core-ssh-dropbear and openssh in the same image. However the issue comes when it reports the error back:

Computing transaction...error: Can&apos;t install packagegroup-core-ssh-dropbear-1.0-r1@all: no package provides dropbear

This is not helpful as it would be the same error if the package didn&apos;t exist. The error should actually say that it could not perform the installation because of a conflict.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32170</commentid>
    <comment_count>1</comment_count>
      <attachid>1173</attachid>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-04-15 15:39:44 +0000</bug_when>
    <thetext>Created attachment 1173
Log of conflict error

Attached a log you get when building core-image-minimal with the following in local.conf:

CORE_IMAGE_EXTRA_INSTALL += &quot;openssh&quot;
EXTRA_IMAGE_FEATURES += &quot;ssh-server-dropbear&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34788</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-07-23 17:43:18 +0000</bug_when>
    <thetext>This only happens sometimes; it appears that smart&apos;s transaction code is not deterministic, so if it attempts to install dropbear first it fails with the appropriate error:

error: Can&apos;t install dropbear-2013.58-r1.0@armv5te: it&apos;s conflicted by the locked package openssh-6.2p2-r0@armv5te

However if it goes to install openssh first and then later installs packagegroup-core-ssh-dropbear which itself does not conflict with openssh but depends on dropbear which does, you get the inferior error message about it not being provided. (For clarity, &quot;install&quot; anywhere above actually means a trial installation during transaction processing rather than the actual installation, so the non-deterministic nature of the process probably isn&apos;t an issue, it just acts as a trigger for the underlying problem.)

I&apos;ve not yet figured out how to hack smart&apos;s transaction.py to fix this but I&apos;m working on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35119</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-07-29 15:06:47 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e8dfbb092c1bbf9bb2d8cec2d2d77eb89b3e887a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38070</commentid>
    <comment_count>4</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-10-21 07:11:28 +0000</bug_when>
    <thetext>Verified using commit: 505114c13d29799a25379f7ce720d632616d8776</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1173</attachid>
            <date>2013-04-15 15:39:44 +0000</date>
            <delta_ts>2013-04-15 15:39:44 +0000</delta_ts>
            <desc>Log of conflict error</desc>
            <filename>dropbear-conflict.txt</filename>
            <type>text/plain</type>
            <size>1115</size>
            <attacher name="Paul Eggleton">bluelightning</attacher>
            
              <data encoding="base64">TG9nIGRhdGEgZm9sbG93czoKfCBERUJVRzogRXhlY3V0aW5nIHNoZWxsIGZ1bmN0aW9uIGRvX3Jv
b3Rmcwp8IE5vdGU6IGNvbmZpZ3VyaW5nIFJQTSBwbGF0Zm9ybSBzZXR0aW5ncwp8IE5vdGU6IGNv
bmZpZ3VyaW5nIFJQTSBzeXN0ZW0gcHJvdmlkZXMKfCBOb3RlOiBjb25maWd1cmluZyBSUE0gREIg
c2V0dGluZ3MKfCBOb3RlOiBjb25maWd1cmluZyBTbWFydCBzZXR0aW5ncwp8IAp8IAp8IAp8IAp8
IAp8IAp8IE5vdGU6IGFkZGluZyBTbWFydCBjaGFubmVsIHFlbXVhcm0gKDYwKQp8IAp8IAp8IE5v
dGU6IGFkZGluZyBTbWFydCBjaGFubmVsIGFybXY1dGUgKDU1KQp8IAp8IAp8IE5vdGU6IGFkZGlu
ZyBTbWFydCBjaGFubmVsIGFsbCAoMTApCnwgCnwgCnwgTm90ZTogY29uZmlndXJpbmcgUlBNIGNy
b3NzLWluc3RhbGwgc2NyaXB0bGV0X3dyYXBwZXIKfCAKfCBVcGRhdGluZyBjYWNoZS4uLiAgICAg
ICAgICAgICAgICMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMgWzEwMCVd
CnwgCnwgU2F2aW5nIGNhY2hlLi4uCnwgCnwgTm90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