<?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>7563</bug_id>
          
          <creation_ts>2015-04-02 21:13:49 +0000</creation_ts>
          <short_desc>bitbake: printdiff looks for siginfo in incorrect locations for some tasks</short_desc>
          <delta_ts>2015-04-08 21:34:12 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</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>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christopher Larson">kergoth</reporter>
          <assigned_to name="Christopher Larson">kergoth</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.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>50057</commentid>
    <comment_count>0</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2015-04-02 21:13:49 +0000</bug_when>
    <thetext>Specifically with quilt-native (my test case due to it having no dependencies), I&apos;m seeing siginfo written out for &apos;quilt&apos; for the fetch, unpack, and patch tasks, whereas the siginfo for all the other tasks is written out for &apos;quilt-native&apos; (going by the on-disk location, anyway).

I believe this is the cause of why I&apos;ve seen useless -S printdiff which outputs a list of fetch tasks, but no details -- the siginfo wasn&apos;t available in the expected place.


Example:

› bitbake --no-setscene -c populate_sysroot quilt-native
Parsing recipes: 100% |##################################################################################################################################################################| Time: 00:01:22
Parsing of 884 .bb files complete (0 cached, 884 parsed). 1285 targets, 41 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = &quot;1.27.0&quot;
BUILD_SYS         = &quot;i686-linux&quot;
NATIVELSBSTRING   = &quot;CentOS-6.5&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.8+snapshot-20150402&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;(nobranch):fe9c5b1ba9f95e2321093eea1211bf5655eb6966&quot;

NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 7 tasks of which 0 didn&apos;t need to be rerun and all succeeded.
  321.32s user 3.88s system 350% cpu 1:32.91 total

› find sstate-cache
sstate-cache
sstate-cache/8c
sstate-cache/8c/sstate:quilt::0.64:r0::3:8c862fc766e8165a9149ba31d441fc58_patch.tgz.siginfo
sstate-cache/fb
sstate-cache/fb/sstate:quilt::0.64:r0::3:fb9378edacb1e2e512888cc63f789cce_fetch.tgz.siginfo
sstate-cache/c1
sstate-cache/c1/sstate:quilt::0.64:r0::3:c16c7a79a6cd95766dc26de62d769f7d_unpack.tgz.siginfo
sstate-cache/CentOS-6.5
sstate-cache/CentOS-6.5/3b
sstate-cache/CentOS-6.5/3b/sstate:quilt-native:i686-linux:0.64:r0:i686:3:3b36105dc93bf593a3496b28af5886f2_install.tgz.siginfo
sstate-cache/CentOS-6.5/78
sstate-cache/CentOS-6.5/78/sstate:quilt-native:i686-linux:0.64:r0:i686:3:78bd3c7485a2952c583b6021c4935e12_populate_sysroot.tgz.siginfo
sstate-cache/CentOS-6.5/78/sstate:quilt-native:i686-linux:0.64:r0:i686:3:78bd3c7485a2952c583b6021c4935e12_populate_sysroot.tgz
sstate-cache/CentOS-6.5/fd
sstate-cache/CentOS-6.5/fd/sstate:quilt-native:i686-linux:0.64:r0:i686:3:fd70a6d546932acf0e31af269bf1f721_compile.tgz.siginfo
sstate-cache/CentOS-6.5/f3
sstate-cache/CentOS-6.5/f3/sstate:quilt-native:i686-linux:0.64:r0:i686:3:f3987a6cc7328f9e4a7b13f7da8d1275_configure.tgz.siginfo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50058</commentid>
    <comment_count>1</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2015-04-02 21:30:42 +0000</bug_when>
    <thetext>Confirmed that what&apos;s written out and what printdiff expects don&apos;t match up for the fetch/unpack/patch tasks. If I build quilt-native, then modify its do_unpack, wipe tmp, and then run -S printdiff, it gives no useful detail:

NOTE: Preparing RunQueue
The differences between the current build and any cached tasks start at the following tasks:
/scratch/testbuild/poky2/meta/recipes-devtools/quilt/quilt-native_0.64.bb, do_unpack
NOTE: Reparsing files to collect dependency data
Writing locked sigs to /scratch/testbuild/poky2/build/locked-sigs.inc
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn&apos;t need to be rerun and all succeeded.

If I then cp -a the non-native siginfo into the NATIVELSBSTRING path, and correct their filenames to &apos;quilt-native:i686-linux&apos; rather than &apos;quilt:&apos;, I get this, which is useful:

NOTE: Preparing RunQueue
The differences between the current build and any cached tasks start at the following tasks:
/scratch/testbuild/poky2/meta/recipes-devtools/quilt/quilt-native_0.64.bb, do_unpack
NOTE: Reparsing files to collect dependency data
Writing locked sigs to /scratch/testbuild/poky2/build/locked-sigs.inc

Task quilt-native:do_unpack couldn&apos;t be used from the cache because:
  We need hash 95848187e61c749c35950710d814039d, closest matching task was c16c7a79a6cd95766dc26de62d769f7d
  Task dependencies changed from:
[&apos;BP&apos;, &apos;BPN&apos;, &apos;PN&apos;, &apos;PV&apos;, &apos;S&apos;, &apos;SAVANNAH_GNU_MIRROR&apos;, &apos;SPECIAL_PKGSUFFIX&apos;, &apos;SRC_URI&apos;, &apos;SRC_URI[md5sum]&apos;, &apos;SRC_URI[sha256sum]&apos;, &apos;base_do_unpack&apos;, &apos;base_prune_suffix&apos;]
to:
[&apos;BP&apos;, &apos;BPN&apos;, &apos;PN&apos;, &apos;PV&apos;, &apos;S&apos;, &apos;SAVANNAH_GNU_MIRROR&apos;, &apos;SPECIAL_PKGSUFFIX&apos;, &apos;SRC_URI&apos;, &apos;SRC_URI[md5sum]&apos;, &apos;SRC_URI[sha256sum]&apos;, &apos;base_do_unpack&apos;, &apos;base_prune_suffix&apos;, &apos;do_something&apos;]
  basehash changed from 144921aa0aa4d2a91da897867d286d18 to 7019e9b621627c6b5001dedfe89a6eac
  Dependency on variable do_something was added
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn&apos;t need to be rerun and all succeeded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50059</commentid>
    <comment_count>2</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2015-04-02 21:36:11 +0000</bug_when>
    <thetext>From reading sstate.bbclass, it seems this was by design for the following tasks: &quot;fetch&quot;, &quot;unpack&quot;, &quot;patch&quot;, &quot;populate_lic&quot;, &quot;preconfigure&quot;, but at least printdiff doesn&apos;t seem to be picking those up when dumping the scene information.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50060</commentid>
    <comment_count>3</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2015-04-02 21:53:47 +0000</bug_when>
    <thetext>Working on a fix for sstatesig.py now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50061</commentid>
    <comment_count>4</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2015-04-02 22:26:53 +0000</bug_when>
    <thetext>Currently doing more testing of https://gist.github.com/kergoth/3713d779c14dc8b98f36 before submission to the oe-core list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50063</commentid>
    <comment_count>5</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2015-04-02 23:17:40 +0000</bug_when>
    <thetext>Bumping importance, as being able to diagnose why something is building from scratch rather than using the sstate-cache is, from my perspective at least, a pretty important piece of functionality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50083</commentid>
    <comment_count>6</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2015-04-03 22:05:47 +0000</bug_when>
    <thetext>Patch emailed to the oe-core list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50160</commentid>
    <comment_count>7</comment_count>
    <who name="Christopher Larson">kergoth</who>
    <bug_when>2015-04-08 21:34:12 +0000</bug_when>
    <thetext>Richard merged this, so resolving.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>