<?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>5714</bug_id>
          
          <creation_ts>2014-01-10 13:25:18 +0000</creation_ts>
          <short_desc>Target field is always empty in orm_package_dependency</short_desc>
          <delta_ts>2014-03-19 08:31:11 +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>Toaster</product>
          <component>toaster</component>
          <version>unspecified</version>
          <rep_platform>x86</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>major</bug_severity>
          <target_milestone>1.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreea Brandusa Proca">andreea.b.proca</reporter>
          <assigned_to name="Cristiana Voicu">cristiana.voicu</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>cristiana.voicu</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>39751</commentid>
    <comment_count>0</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2014-01-10 13:25:18 +0000</bug_when>
    <thetext>Example:

   {
    &quot;pk&quot;: 1,.
    &quot;model&quot;: &quot;orm.package_dependency&quot;,.
    &quot;fields&quot;: {
        &quot;depends_on&quot;: 3,.
        &quot;target&quot;: null,.
        &quot;dep_type&quot;: 0,.
        &quot;package&quot;: 2
    }

Tested on master:e93a345fae7c21652547bec501fcb1f3b6c6427d, qemux86 - core-image-minimal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39834</commentid>
    <comment_count>1</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2014-01-15 15:50:27 +0000</bug_when>
    <thetext>This does not happen anymore in master:e4c23f7bcb79072ea6028fbdf8f3f0dc17a63371.

{
    &quot;pk&quot;: 1,.
    &quot;model&quot;: &quot;orm.package_dependency&quot;,.
    &quot;fields&quot;: {
        &quot;depends_on&quot;: 1,.
        &quot;target&quot;: 1,.
        &quot;dep_type&quot;: 6,.
        &quot;package&quot;: 1
    }

Alex, could you, please, update the status?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39982</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-01-21 15:55:38 +0000</bug_when>
    <thetext>Not happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40683</commentid>
    <comment_count>3</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2014-02-25 13:25:43 +0000</bug_when>
    <thetext>The same issue happens in master:54562006c1327c5b99daa4cc05a3ba7e38412da1

{
    &quot;pk&quot;: 1,.
    &quot;model&quot;: &quot;orm.package_dependency&quot;,.
    &quot;fields&quot;: {
        &quot;depends_on&quot;: 3,.
        &quot;target&quot;: null,.
        &quot;dep_type&quot;: 0,.
        &quot;package&quot;: 2
    }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40864</commentid>
    <comment_count>4</comment_count>
    <who name="Cristiana Voicu">cristiana.voicu</who>
    <bug_when>2014-03-04 14:34:55 +0000</bug_when>
    <thetext>I investigated this bug. There is an issue related to dependencies between packages. As specified in the toaster API, the target should be populated for TRDEPENDS and TRCOMMENDS dep_type. But, the issue is that no entry can be found in the database with TRDEPENDS or TRCOMMENDS flag.
It seems that depends*.dot files in buildhistory are not populated after the rootfs refactoring. I filled a bug with this ( #5904) and I will add this bug as a blocker. This should fix this current issue, too. I will retest after #5904 will be fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40918</commentid>
    <comment_count>5</comment_count>
    <who name="Cristiana Voicu">cristiana.voicu</who>
    <bug_when>2014-03-06 11:51:02 +0000</bug_when>
    <thetext>I&apos;ve done a clean build using Laurentiu patches from oe-core mailing list, and in this case the database contains entries with target !=null, for e.g. 

{
    &quot;pk&quot;: 12942,
    &quot;model&quot;: &quot;orm.package_dependency&quot;,
    &quot;fields&quot;: {
        &quot;depends_on&quot;: 3573,
        &quot;target&quot;: 1,
        &quot;dep_type&quot;: 3,
        &quot;package&quot;: 3383
    }
},

After those patches will be merged on master, I will set this bug on fised, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40970</commentid>
    <comment_count>6</comment_count>
    <who name="Cristiana Voicu">cristiana.voicu</who>
    <bug_when>2014-03-07 14:50:37 +0000</bug_when>
    <thetext>waiting for patches for 5904 to be merged</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41353</commentid>
    <comment_count>7</comment_count>
    <who name="Cristiana Voicu">cristiana.voicu</who>
    <bug_when>2014-03-18 09:02:06 +0000</bug_when>
    <thetext>A part of bug #5904 is solved ( http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6029af2ec5f6a92b41c9e103625699e6ae2e6550), and it solves this bug, too</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41406</commentid>
    <comment_count>8</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2014-03-19 08:31:11 +0000</bug_when>
    <thetext>For dep_type = 1 (TRDEPENDS) or 3 (TRCOMMENDS) the target field is populated.
Verified in: master:463cd34f8c17c67c4f3adf3468424730b22f3974</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>