<?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>3864</bug_id>
          
          <creation_ts>2013-02-07 14:50:35 +0000</creation_ts>
          <short_desc>smart installer prefers i586 over core2 in repository</short_desc>
          <delta_ts>2013-09-02 15:30:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Package Management Issues</product>
          <component>package-management-issues</component>
          <version>1.4</version>
          <rep_platform>E-Menlow</rep_platform>
          <op_sys>x86_64</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.4 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Bogdan Marinescu">bogdan.a.marinescu</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>bogdan.a.marinescu</cc>
    
    <cc>elizabeth.flanagan</cc>
    
    <cc>n3npq</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>29642</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-02-07 14:50:35 +0000</bug_when>
    <thetext>BUILD: 1.4_M3:3ae1a4ba972cfc17ff3f2fda632da8ecc3414885
META-INTEL: 4f676959c35cbd0ed9ac6a1817993d38611859e1
ENVIRONMENT: Emenlow
STEPS TO REPRODUCE: 
  
1)Add a rpm-md channel with smart. Make sure this channel and the default rpm-sys channel are enabled. (I used the autobuilder repository, example: http://autobuilder.yoctoproject.org/pub/nightly/20130131-4/rpm/ )
2)Run &quot;smart update&quot; to update the channel information.
3)Run &quot;smart install package_name&quot; to install a package from the remote repository. For example, &quot;smart install groff&quot; . 

Notice the architecture used is i586 even though core2 is present and it should prefer that.

Please note that building an emenlow uses only core2 rpm .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30066</commentid>
    <comment_count>1</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-02-25 10:32:03 +0000</bug_when>
    <thetext>Update: I see the repodata folder was moved to rpm/&lt;architecture&gt; . Is this correct? As it stands now, smart can correctly install packages with core2 architecture.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30068</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-02-25 10:40:38 +0000</bug_when>
    <thetext>That part is correct, yes. For the purposes of rootfs construction, keeping separate indexes for each architecture helps when switching between machines - you don&apos;t need to re-create the whole index just to include/exclude some of the architectures.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30124</commentid>
    <comment_count>3</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-02-26 13:06:08 +0000</bug_when>
    <thetext>With a repodata structure similar to the one we had before this change, could this become an issue with other rpm repositories? If now, please set this to NOTABUG.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30127</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-02-26 13:34:21 +0000</bug_when>
    <thetext>Assuming there is a correct /etc/rpm/platform created for the image, Smart should be able to install the correct package even if there is only one index; it seems from the report that it cannot do that, so as far as I&apos;m concerned the bug is still valid.

We have our own reasons for using one index per locale, but that doesn&apos;t mean it&apos;s acceptable to force users to do the same just to get the correct architecture priority behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30128</commentid>
    <comment_count>5</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-02-26 13:34:43 +0000</bug_when>
    <thetext>Er, one index per architecture, not locale. Reading too many things at once...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31526</commentid>
    <comment_count>6</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-04-04 14:34:12 +0000</bug_when>
    <thetext>I can&apos;t find 20130131-4 on the autobuilder anymore, is the repository available from somewhere else?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31541</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-04-04 15:13:24 +0000</bug_when>
    <thetext>Check with Beth</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31597</commentid>
    <comment_count>8</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-04-05 09:26:57 +0000</bug_when>
    <thetext>You can use the information in https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=419 to create your own repository and images by using the commits from my post.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31619</commentid>
    <comment_count>9</comment_count>
    <who name="Beth Flanagan">elizabeth.flanagan</who>
    <bug_when>2013-04-05 16:12:21 +0000</bug_when>
    <thetext>No, 20130131 is over two months old. Long gone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31901</commentid>
    <comment_count>10</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-04-11 11:11:17 +0000</bug_when>
    <thetext>This is how /etc/rpm/platform looks like for emenlow:

i586-poky-linux
emenlow-.*-linux
core2-.*-linux
i686-.*-linux
i586-.*-linux
i486-.*-linux
i386-.*-linux
x86-.*-linux
noarch-.*-linux.*
any-.*-linux.*
all-.*-linux.*

So I&apos;m guessing the problem is not in smart, but in the way /etc/rpm/platform is generated. I don&apos;t know much about /etc/rpm/platform and a google search didn&apos;t reveal much information, so I&apos;m still looking into this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32566</commentid>
    <comment_count>11</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-04-24 08:56:58 +0000</bug_when>
    <thetext>Patch sent (rpm: change arch scoring items).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32604</commentid>
    <comment_count>12</comment_count>
    <who name="Jeff Johnson">n3npq</who>
    <bug_when>2013-04-24 17:05:39 +0000</bug_when>
    <thetext>The /etc/rpm/platform file determines arch scoring.

The first line is a string that identifies CPU-VERSION-OS-GNU.

The remaining lines are regex patterns. The patterns are
applied to the RPMTAG_PLATFORM tag string in *.rpm packages.

The line number of the first pattern that matches is the arch score.

smart SHOULD prefer the package with the lowest score.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32715</commentid>
    <comment_count>13</comment_count>
    <who name="Bogdan Marinescu">bogdan.a.marinescu</who>
    <bug_when>2013-04-29 14:01:31 +0000</bug_when>
    <thetext>Patch merged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36165</commentid>
    <comment_count>14</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-09-02 15:30:48 +0000</bug_when>
    <thetext>This is verified in master:5745e45b18e5099e94b4d5a73bc97dc6d4cdc91f (sorry for the delay; this has been working for quite a while)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>