<?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>5461</bug_id>
          
          <creation_ts>2013-11-05 08:56:38 +0000</creation_ts>
          <short_desc>Wrong value for size variable (table: Build_File)</short_desc>
          <delta_ts>2013-11-06 07:37:57 +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>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreea Brandusa Proca">andreea.b.proca</reporter>
          <assigned_to name="Alexandru Damian">alexandru.damian</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</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>38507</commentid>
    <comment_count>0</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2013-11-05 08:56:38 +0000</bug_when>
    <thetext>The value of the size variable is different from the value returned by os.path.getsize (or ls command).

e.g.:
in the database: {&apos;path&apos;: u&apos;/usr/include/asm-generic/ioctls.h&apos;, &apos;size&apos;: 3740}

os.path.getsize(&quot;/usr/include/asm-generic/ioctls.h&quot;)
3539

brandusa@andreea-Vostro-460:/usr/include/asm-generic$ ls -l
total 184
-rw-r--r-- 1 root root  3539 Sep 11 00:41 ioctls.h</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38548</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2013-11-05 15:27:02 +0000</bug_when>
    <thetext>The path in the database is related to the target filesystem, while you are testing with os.path.getsize() or ls -l a file on your host filesystem.

You need to test against $SYSROOT or target image file system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38574</commentid>
    <comment_count>2</comment_count>
    <who name="Andreea Brandusa Proca">andreea.b.proca</who>
    <bug_when>2013-11-06 07:37:57 +0000</bug_when>
    <thetext>Yes, you are right.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>