Bug 11034 - devtool modify doesn't work within eSDK
Summary: devtool modify doesn't work within eSDK
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.3 M3
Assignee: Paul Eggleton
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-02-09 01:03 UTC by Yi Zhao
Modified: 2017-03-22 07:01 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 2017-02-09 01:03:19 UTC
Git rev: master/226a508da955439b881b2f0a544a3aee76e59919

Steps:
1. Install sdk_ext and set the environment
2. Run devtool modify recipename

Error message:
$ devtool modify aspell
Loading cache: 100% |##################################################################################################################################| Time: 0:00:00
Loaded 1319 entries from dependency cache.
ERROR: An uncaught exception occurred in runqueue
Traceback (most recent call last):
  File "/home/build/poky_sdk_ppc7400/layers/poky/bitbake/lib/bb/runqueue.py", line 1295, in RunQueue._execute_runqueue():
                     self.rqdata.init_progress_reporter.next_stage()
    >                self.start_worker()
                     self.rqdata.init_progress_reporter.next_stage()
  File "/home/build/poky_sdk_ppc7400/layers/poky/bitbake/lib/bb/runqueue.py", line 1149, in RunQueue.start_worker():
             for mc in self.rqdata.dataCaches:
    >            self.worker[mc] = self._start_worker(mc)
     
  File "/home/build/poky_sdk_ppc7400/layers/poky/bitbake/lib/bb/runqueue.py", line 1095, in RunQueue._start_worker(mc='', fakeroot=False, rqexec=None):
             else:
    >            worker = subprocess.Popen(["bitbake-worker", magic], stdout=subprocess.PIPE, stdin=subprocess.PIPE)
             bb.utils.nonblockingfd(worker.stdout)
  File "/home/build/poky_sdk_ppc7400/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.5/subprocess.py", line 947, in Popen.__init__(args=['bitbake-worker', 'decafbad'], bufsize=-1, executable=None, stdin=-1, stdout=-1, stderr=None, preexec_fn=None, close_fds=True, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0, restore_signals=True, start_new_session=False, pass_fds=()):
                                     errread, errwrite,
    >                                restore_signals, start_new_session)
             except:
  File "/home/build/poky_sdk_ppc7400/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.5/subprocess.py", line 1551, in Popen._execute_child(args=['bitbake-worker', 'decafbad'], executable=b'bitbake-worker', preexec_fn=None, close_fds=True, pass_fds=(), cwd=None, env=None, startupinfo=None, creationflags=0, shell=False, p2cread=6, p2cwrite=10, c2pread=13, c2pwrite=21, errread=-1, errwrite=-1, restore_signals=True, start_new_session=False):
                                     err_msg += ': ' + repr(orig_executable)
    >                    raise child_exception_type(errno_num, err_msg)
                     raise child_exception_type(err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'bitbake-worker'

ERROR: Running idle function
Traceback (most recent call last):
  File "/home/build/poky_sdk_ppc7400/layers/poky/bitbake/lib/bb/runqueue.py", line 1295, in RunQueue._execute_runqueue():
                     self.rqdata.init_progress_reporter.next_stage()
    >                self.start_worker()
                     self.rqdata.init_progress_reporter.next_stage()
  File "/home/build/poky_sdk_ppc7400/layers/poky/bitbake/lib/bb/runqueue.py", line 1149, in RunQueue.start_worker():
             for mc in self.rqdata.dataCaches:
    >            self.worker[mc] = self._start_worker(mc)
     
  File "/home/build/poky_sdk_ppc7400/layers/poky/bitbake/lib/bb/runqueue.py", line 1095, in RunQueue._start_worker(mc='', fakeroot=False, rqexec=None):
             else:
    >            worker = subprocess.Popen(["bitbake-worker", magic], stdout=subprocess.PIPE, stdin=subprocess.PIPE)
             bb.utils.nonblockingfd(worker.stdout)
  File "/home/build/poky_sdk_ppc7400/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.5/subprocess.py", line 947, in Popen.__init__(args=['bitbake-worker', 'decafbad'], bufsize=-1, executable=None, stdin=-1, stdout=-1, stderr=None, preexec_fn=None, close_fds=True, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0, restore_signals=True, start_new_session=False, pass_fds=()):
                                     errread, errwrite,
    >                                restore_signals, start_new_session)
             except:
  File "/home/build/poky_sdk_ppc7400/buildtools/sysroots/x86_64-pokysdk-linux/usr/lib/python3.5/subprocess.py", line 1551, in Popen._execute_child(args=['bitbake-worker', 'decafbad'], executable=b'bitbake-worker', preexec_fn=None, close_fds=True, pass_fds=(), cwd=None, env=None, startupinfo=None, creationflags=0, shell=False, p2cread=6, p2cwrite=10, c2pread=13, c2pwrite=21, errread=-1, errwrite=-1, restore_signals=True, start_new_session=False):
                                     err_msg += ': ' + repr(orig_executable)
    >                    raise child_exception_type(errno_num, err_msg)
                     raise child_exception_type(err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'bitbake-worker'
Comment 1 Paul Eggleton 2017-02-09 03:47:11 UTC
Thanks for catching this - patch sent. 

It looks like this has been broken in master since the tinfoil2 changes unfortunately - our tests don't cover devtool modify within the eSDK, and even if they did it's possible that PATH might have been set such that the problem was masked.
Comment 3 Yi Zhao 2017-03-22 07:01:52 UTC
Verified it with 2.3 M3 RC1.
Git rev: master/6e20b31d5d17133e0fca086e12a0ad06ab5c4cc8