<?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>1366</bug_id>
          
          <creation_ts>2011-08-11 16:38:57 +0000</creation_ts>
          <short_desc>Adding packages via attempt only fails in package_rpm</short_desc>
          <delta_ts>2011-08-12 10:43: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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15417</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-08-11 16:38:57 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15420</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-08-11 16:53:58 +0000</bug_when>
    <thetext>The code in package_rpm for adding attempt only packages has not been updated to for the changes to resolve_package_rpm(), this change was due to the Chris Larson change that started to use ATTEMPTONLY.

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 5c67f69..a6da5fd 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -257,7 +257,14 @@ package_install_internal_rpm () {
                echo &quot;Adding attempt only packages...&quot;
                for pkg in ${package_attemptonly} ; do
                        echo &quot;Processing $pkg...&quot;
-                       pkg_name=$(resolve_package_rpm $pkg ${confbase}.conf)
+
+                       archvar=base_archs
+                       ml_pkg=$(echo ${pkg} | sed &quot;s,^${MLPREFIX}\(.*\),\1,&quot;)
+                       if [ &quot;${ml_pkg}&quot; != &quot;${pkg}&quot; ]; then
+                               archvar=ml_archs
+                       fi
+
+                       pkg_name=$(resolve_package_rpm ${confbase}-${archvar}.conf ${ml_pkg})
                        if [ -z &quot;$pkg_name&quot; ]; then
                                echo &quot;Unable to find package $pkg!&quot;
                                exit 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15421</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-08-11 18:13:38 +0000</bug_when>
    <thetext>Patch is not complete.  I&apos;ve sent an updated version.. (We were working on this in parallel without knowing it.)

The missing part of the fix attached to this defect is that the exit 1 should be a continue.

It&apos;s likely that this defect is related to 1325...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15448</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-08-12 10:43:46 +0000</bug_when>
    <thetext>
Thanks to Mark for the proper fix!

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3e8a98489dddb3bfc26309adcf83434852238445</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>