Bug 9370 - Fail to run devtool package in second time
Summary: Fail to run devtool package in second time
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Paul Eggleton
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-01 03:22 UTC by Yi Zhao
Modified: 2016-04-01 03:26 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yi Zhao 2016-04-01 03:22:18 UTC
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 "/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/checksum.py", line 126, in FileChecksumCache.get_checksums(filelist='/tmp/pv-1.5.3/*:True', pn='pv'):
                         if os.path.isdir(f):
    >                        checksums.extend(checksum_dir(f))
                         else:
  File "/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/checksum.py", line 111, in checksum_dir(pth='/tmp/pv-1.5.3/oe-workdir'):
                         fullpth = os.path.join(root, name)
    >                    checksum = checksum_file(fullpth)
                         if checksum:
  File "/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/checksum.py", line 99, in checksum_file(f='/tmp/pv-1.5.3/oe-workdir/pseudo/pseudo.socket'):
                 try:
    >                checksum = self.get_checksum(f)
                 except OSError as e:
  File "/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/checksum.py", line 80, in FileChecksumCache.get_checksum(f='/tmp/pv-1.5.3/oe-workdir/pseudo/pseudo.socket'):
     
    >        hashval = bb.utils.md5_file(f)
             self.cachedata_extras[0][f] = (cmtime, hashval)
  File "/buildarea1/poky_sdk/layers/poky/bitbake/lib/bb/utils.py", line 514, in md5_file(filename='/tmp/pv-1.5.3/oe-workdir/pseudo/pseudo.socket'):
     
    >    with open(filename, "rb") as f:
             for line in f:
IOError: [Errno 6] No such device or address: '/tmp/pv-1.5.3/oe-workdir/pseudo/pseudo.socket'

######################