<?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>9370</bug_id>
          
          <creation_ts>2016-04-01 03:22:18 +0000</creation_ts>
          <short_desc>Fail to run devtool package in second time</short_desc>
          <delta_ts>2016-04-01 03:26:48 +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>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.1</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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>ke.zou</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>zhangle.yang</cc>
          
          <qa_contact name="Yi Zhao">yi.zhao</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>60647</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2016-04-01 03:22:18 +0000</bug_when>
    <thetext>git rev: master/21823cb466e79540567ad1a43ae6f93d850e4057

Steps:
1. Install eSDK and setup the environment

2. Download the test source and extract it.
   $ wget http://www.ivarch.com/programs/sources/pv-1.5.3.tar.bz2
   $ tar xjf pv-1.5.3.tar.bz2 -C /tmp/

3. Add the recipe
   $ devtool add pv /tmp/pv-1.5.3

4. Build pv
   $ devtool build pv  (This command include do_package task)
   or run devtool package directly
   $ devtool package pv

5. Then run devtool package again
   $ devtool package pv

In step 5, an error occurs:
###########################
$ devtool package pv
Parsing recipes..done.
Loading cache: 100% |###################################################################################################################################################| ETA:  00:00:00
Loaded 1301 entries from dependency cache.
Parsing recipes: 100% |#################################################################################################################################################| Time: 00:00:00
Parsing of 872 .bb files complete (871 cached, 1 parsed). 1301 targets, 48 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Preparing RunQueue
ERROR: An uncaught exception occured in runqueue, please see the failure below:
ERROR: Running idle function
Traceback (most recent call last):
  File &quot;/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/checksum.py&quot;, line 126, in FileChecksumCache.get_checksums(filelist=&apos;/tmp/pv-1.5.3/*:True&apos;, pn=&apos;pv&apos;):
                         if os.path.isdir(f):
    &gt;                        checksums.extend(checksum_dir(f))
                         else:
  File &quot;/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/checksum.py&quot;, line 111, in checksum_dir(pth=&apos;/tmp/pv-1.5.3/oe-workdir&apos;):
                         fullpth = os.path.join(root, name)
    &gt;                    checksum = checksum_file(fullpth)
                         if checksum:
  File &quot;/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/checksum.py&quot;, line 99, in checksum_file(f=&apos;/tmp/pv-1.5.3/oe-workdir/pseudo/pseudo.socket&apos;):
                 try:
    &gt;                checksum = self.get_checksum(f)
                 except OSError as e:
  File &quot;/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/checksum.py&quot;, line 80, in FileChecksumCache.get_checksum(f=&apos;/tmp/pv-1.5.3/oe-workdir/pseudo/pseudo.socket&apos;):
     
    &gt;        hashval = bb.utils.md5_file(f)
             self.cachedata_extras[0][f] = (cmtime, hashval)
  File &quot;/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/utils.py&quot;, line 514, in md5_file(filename=&apos;/tmp/pv-1.5.3/oe-workdir/pseudo/pseudo.socket&apos;):
     
    &gt;    with open(filename, &quot;rb&quot;) as f:
             for line in f:
IOError: [Errno 6] No such device or address: &apos;/tmp/pv-1.5.3/oe-workdir/pseudo/pseudo.socket&apos;

######################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60648</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-04-01 03:26:48 +0000</bug_when>
    <thetext>This should be fixed by:

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

    </bug>

</bugzilla>