* [PATCH 0/1] cooker.py: change working dir before use pyinotify
@ 2015-04-21 9:07 Robert Yang
2015-04-21 9:07 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 5+ messages in thread
From: Robert Yang @ 2015-04-21 9:07 UTC (permalink / raw)
To: bitbake-devel
The following changes since commit fc15878af46c09512fc3cb73480359fcbb22e627:
init-install-efi.sh: fix gummiboot entry installation (2015-04-21 07:20:27 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib rbt/cwd
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/cwd
Robert Yang (1):
cooker.py: change working dir before use pyinotify
bitbake/lib/bb/cooker.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] cooker.py: change working dir before use pyinotify
2015-04-21 9:07 [PATCH 0/1] cooker.py: change working dir before use pyinotify Robert Yang
@ 2015-04-21 9:07 ` Robert Yang
2015-04-24 10:25 ` Richard Purdie
0 siblings, 1 reply; 5+ messages in thread
From: Robert Yang @ 2015-04-21 9:07 UTC (permalink / raw)
To: bitbake-devel
Fixed:
$ cd tmp/work/core2-64-poky-linux/bash/4.3-r1
$ bitbake bash -cclean
ERROR: Running idle function
Traceback (most recent call last):
File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 1317, in Notifier.process_events():
continue
> revent = self._sys_proc_fun(raw_event) # system processings
if watch_ and watch_.proc_fun:
File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 686, in _SysProcessEvent.__call__(event=<_RawEvent cookie=0 mask=0x40000200 name=build wd=5 >):
# 3- default call method process_default
> return self.process_default(event)
File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 897, in _SysProcessEvent.process_default(raw_event=<_RawEvent cookie=0 mask=0x40000200 name=build wd=5 >, to_append=None):
dict_.update(to_append)
> return Event(dict_)
File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 628, in Event.__init__(raw={'path': '.', 'wd': 5, 'mask': 1073742336, 'name': 'build', 'dir': True}):
self.pathname = os.path.abspath(os.path.join(self.path,
> self.name))
else:
File "/usr/lib/python2.7/posixpath.py", line 347, in abspath(path='./build'):
else:
> cwd = os.getcwd()
path = join(cwd, path)
OSError: [Errno 2] No such file or directory
And we can't run bitbake again:
ERROR: Only one copy of bitbake should be run against a build directory
Chaneg working dir to TOPDIR rather than the dir which runs the command
will fix the problem. Move self.initConfigurationData ahead, otherwise,
there is no self.data.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
bitbake/lib/bb/cooker.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 9c101f2..678a2f7 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -121,6 +121,9 @@ class BBCooker:
self.configuration = configuration
+ self.initConfigurationData()
+ os.chdir(self.data.expand('${TOPDIR}'))
+
self.configwatcher = pyinotify.WatchManager()
self.configwatcher.bbseen = []
self.confignotifier = pyinotify.Notifier(self.configwatcher, self.config_notifications)
@@ -131,9 +134,6 @@ class BBCooker:
self.watcher.bbseen = []
self.notifier = pyinotify.Notifier(self.watcher, self.notifications)
-
- self.initConfigurationData()
-
self.inotify_modified_files = []
def _process_inotify_updates(server, notifier_list, abort):
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] cooker.py: change working dir before use pyinotify
2015-04-21 9:07 ` [PATCH 1/1] " Robert Yang
@ 2015-04-24 10:25 ` Richard Purdie
2015-04-29 5:41 ` Robert Yang
0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2015-04-24 10:25 UTC (permalink / raw)
To: Robert Yang; +Cc: bitbake-devel
On Tue, 2015-04-21 at 02:07 -0700, Robert Yang wrote:
> Fixed:
> $ cd tmp/work/core2-64-poky-linux/bash/4.3-r1
> $ bitbake bash -cclean
>
> ERROR: Running idle function
> Traceback (most recent call last):
> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 1317, in Notifier.process_events():
> continue
> > revent = self._sys_proc_fun(raw_event) # system processings
> if watch_ and watch_.proc_fun:
> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 686, in _SysProcessEvent.__call__(event=<_RawEvent cookie=0 mask=0x40000200 name=build wd=5 >):
> # 3- default call method process_default
> > return self.process_default(event)
>
> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 897, in _SysProcessEvent.process_default(raw_event=<_RawEvent cookie=0 mask=0x40000200 name=build wd=5 >, to_append=None):
> dict_.update(to_append)
> > return Event(dict_)
>
> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 628, in Event.__init__(raw={'path': '.', 'wd': 5, 'mask': 1073742336, 'name': 'build', 'dir': True}):
> self.pathname = os.path.abspath(os.path.join(self.path,
> > self.name))
> else:
> File "/usr/lib/python2.7/posixpath.py", line 347, in abspath(path='./build'):
> else:
> > cwd = os.getcwd()
> path = join(cwd, path)
> OSError: [Errno 2] No such file or directory
>
> And we can't run bitbake again:
> ERROR: Only one copy of bitbake should be run against a build directory
>
> Chaneg working dir to TOPDIR rather than the dir which runs the command
> will fix the problem. Move self.initConfigurationData ahead, otherwise,
> there is no self.data.
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> bitbake/lib/bb/cooker.py | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
> index 9c101f2..678a2f7 100644
> --- a/bitbake/lib/bb/cooker.py
> +++ b/bitbake/lib/bb/cooker.py
> @@ -121,6 +121,9 @@ class BBCooker:
>
> self.configuration = configuration
>
> + self.initConfigurationData()
> + os.chdir(self.data.expand('${TOPDIR}'))
data.getVar("TOPDIR", True) please ;-)
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] cooker.py: change working dir before use pyinotify
2015-04-24 10:25 ` Richard Purdie
@ 2015-04-29 5:41 ` Robert Yang
2015-07-06 10:10 ` Robert Yang
0 siblings, 1 reply; 5+ messages in thread
From: Robert Yang @ 2015-04-29 5:41 UTC (permalink / raw)
To: Richard Purdie; +Cc: bitbake-devel
On 04/24/2015 06:25 PM, Richard Purdie wrote:
> On Tue, 2015-04-21 at 02:07 -0700, Robert Yang wrote:
>> Fixed:
>> $ cd tmp/work/core2-64-poky-linux/bash/4.3-r1
>> $ bitbake bash -cclean
>>
>> ERROR: Running idle function
>> Traceback (most recent call last):
>> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 1317, in Notifier.process_events():
>> continue
>> > revent = self._sys_proc_fun(raw_event) # system processings
>> if watch_ and watch_.proc_fun:
>> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 686, in _SysProcessEvent.__call__(event=<_RawEvent cookie=0 mask=0x40000200 name=build wd=5 >):
>> # 3- default call method process_default
>> > return self.process_default(event)
>>
>> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 897, in _SysProcessEvent.process_default(raw_event=<_RawEvent cookie=0 mask=0x40000200 name=build wd=5 >, to_append=None):
>> dict_.update(to_append)
>> > return Event(dict_)
>>
>> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 628, in Event.__init__(raw={'path': '.', 'wd': 5, 'mask': 1073742336, 'name': 'build', 'dir': True}):
>> self.pathname = os.path.abspath(os.path.join(self.path,
>> > self.name))
>> else:
>> File "/usr/lib/python2.7/posixpath.py", line 347, in abspath(path='./build'):
>> else:
>> > cwd = os.getcwd()
>> path = join(cwd, path)
>> OSError: [Errno 2] No such file or directory
>>
>> And we can't run bitbake again:
>> ERROR: Only one copy of bitbake should be run against a build directory
>>
>> Chaneg working dir to TOPDIR rather than the dir which runs the command
>> will fix the problem. Move self.initConfigurationData ahead, otherwise,
>> there is no self.data.
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> bitbake/lib/bb/cooker.py | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
>> index 9c101f2..678a2f7 100644
>> --- a/bitbake/lib/bb/cooker.py
>> +++ b/bitbake/lib/bb/cooker.py
>> @@ -121,6 +121,9 @@ class BBCooker:
>>
>> self.configuration = configuration
>>
>> + self.initConfigurationData()
>> + os.chdir(self.data.expand('${TOPDIR}'))
>
> data.getVar("TOPDIR", True) please ;-)
Thanks, I updated it in the repo:
git://git.pokylinux.org/poky-contrib rbt/cwd
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 6762239..fbfce6a 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -121,6 +121,9 @@ class BBCooker:
self.configuration = configuration
+ self.initConfigurationData()
+ os.chdir(self.data.getVar("TOPDIR", True))
+
self.configwatcher = pyinotify.WatchManager()
self.configwatcher.bbseen = []
self.confignotifier = pyinotify.Notifier(self.configwatcher,
self.config_notifications)
@@ -131,9 +134,6 @@ class BBCooker:
self.watcher.bbseen = []
self.notifier = pyinotify.Notifier(self.watcher, self.notifications)
-
- self.initConfigurationData()
-
self.inotify_modified_files = []
def _process_inotify_updates(server, notifier_list, abort):
// Robert
>
> Cheers,
>
> Richard
>
>
>
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] cooker.py: change working dir before use pyinotify
2015-04-29 5:41 ` Robert Yang
@ 2015-07-06 10:10 ` Robert Yang
0 siblings, 0 replies; 5+ messages in thread
From: Robert Yang @ 2015-07-06 10:10 UTC (permalink / raw)
To: Richard Purdie; +Cc: bitbake-devel
On 04/29/2015 01:41 PM, Robert Yang wrote:
>
>
> On 04/24/2015 06:25 PM, Richard Purdie wrote:
>> On Tue, 2015-04-21 at 02:07 -0700, Robert Yang wrote:
>>> Fixed:
>>> $ cd tmp/work/core2-64-poky-linux/bash/4.3-r1
>>> $ bitbake bash -cclean
>>>
>>> ERROR: Running idle function
>>> Traceback (most recent call last):
>>> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 1317, in
>>> Notifier.process_events():
>>> continue
>>> > revent = self._sys_proc_fun(raw_event) # system processings
>>> if watch_ and watch_.proc_fun:
>>> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 686, in
>>> _SysProcessEvent.__call__(event=<_RawEvent cookie=0 mask=0x40000200
>>> name=build wd=5 >):
>>> # 3- default call method process_default
>>> > return self.process_default(event)
>>>
>>> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 897, in
>>> _SysProcessEvent.process_default(raw_event=<_RawEvent cookie=0
>>> mask=0x40000200 name=build wd=5 >, to_append=None):
>>> dict_.update(to_append)
>>> > return Event(dict_)
>>>
>>> File "/buildarea/lyang1/poky/bitbake/lib/pyinotify.py", line 628, in
>>> Event.__init__(raw={'path': '.', 'wd': 5, 'mask': 1073742336, 'name':
>>> 'build', 'dir': True}):
>>> self.pathname = os.path.abspath(os.path.join(self.path,
>>> > self.name))
>>> else:
>>> File "/usr/lib/python2.7/posixpath.py", line 347, in abspath(path='./build'):
>>> else:
>>> > cwd = os.getcwd()
>>> path = join(cwd, path)
>>> OSError: [Errno 2] No such file or directory
>>>
>>> And we can't run bitbake again:
>>> ERROR: Only one copy of bitbake should be run against a build directory
>>>
>>> Chaneg working dir to TOPDIR rather than the dir which runs the command
>>> will fix the problem. Move self.initConfigurationData ahead, otherwise,
>>> there is no self.data.
>>>
>>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>>> ---
>>> bitbake/lib/bb/cooker.py | 6 +++---
>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
>>> index 9c101f2..678a2f7 100644
>>> --- a/bitbake/lib/bb/cooker.py
>>> +++ b/bitbake/lib/bb/cooker.py
>>> @@ -121,6 +121,9 @@ class BBCooker:
>>>
>>> self.configuration = configuration
>>>
>>> + self.initConfigurationData()
>>> + os.chdir(self.data.expand('${TOPDIR}'))
>>
>> data.getVar("TOPDIR", True) please ;-)
>
> Thanks, I updated it in the repo:
>
> git://git.pokylinux.org/poky-contrib rbt/cwd
ping.
// Robert
>
> diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
> index 6762239..fbfce6a 100644
> --- a/bitbake/lib/bb/cooker.py
> +++ b/bitbake/lib/bb/cooker.py
> @@ -121,6 +121,9 @@ class BBCooker:
>
> self.configuration = configuration
>
> + self.initConfigurationData()
> + os.chdir(self.data.getVar("TOPDIR", True))
> +
> self.configwatcher = pyinotify.WatchManager()
> self.configwatcher.bbseen = []
> self.confignotifier = pyinotify.Notifier(self.configwatcher,
> self.config_notifications)
> @@ -131,9 +134,6 @@ class BBCooker:
> self.watcher.bbseen = []
> self.notifier = pyinotify.Notifier(self.watcher, self.notifications)
>
> -
> - self.initConfigurationData()
> -
> self.inotify_modified_files = []
>
> def _process_inotify_updates(server, notifier_list, abort):
>
>
> // Robert
>
>>
>> Cheers,
>>
>> Richard
>>
>>
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-07-06 10:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-21 9:07 [PATCH 0/1] cooker.py: change working dir before use pyinotify Robert Yang
2015-04-21 9:07 ` [PATCH 1/1] " Robert Yang
2015-04-24 10:25 ` Richard Purdie
2015-04-29 5:41 ` Robert Yang
2015-07-06 10:10 ` Robert Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.