All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [OE-core] [PATCH v2] buildhistory.bbclass: create the buildhistory directory when needed
       [not found] <16D869D532B5A22D.25756@lists.openembedded.org>
@ 2022-03-03  0:06 ` Jose Quaresma
  2022-03-03 14:49   ` Steve Sakoman
  0 siblings, 1 reply; 3+ messages in thread
From: Jose Quaresma @ 2022-03-03  0:06 UTC (permalink / raw)
  To: Jose Quaresma; +Cc: OE-core, Steve Sakoman

[-- Attachment #1: Type: text/plain, Size: 2965 bytes --]

Can this patch be backported to dunfell?

Jose

Jose Quaresma via lists.openembedded.org <quaresma.jose=
gmail.com@lists.openembedded.org> escreveu no dia quarta, 2/03/2022 à(s)
00:47:

> When the BUILDHISTORY_RESET is enabled we need to move the
> content from BUILDHISTORY_DIR to BUILDHISTORY_OLD_DIR but
> when we start a clean build in the first run we don't have the
> BUILDHISTORY_DIR so the move of files will fail.
>
> | ERROR: Command execution failed: Traceback (most recent call last):
> |  File "/xxx/poky/bitbake/lib/bb/command.py", line 110, in runAsyncCommand
> |    commandmethod(self.cmds_async, self, options)
> |  File "/xxx/poky/bitbake/lib/bb/command.py", line 564, in buildTargets
> |    command.cooker.buildTargets(pkgs_to_build, task)
> |  File "/xxx/poky/bitbake/lib/bb/cooker.py", line 1481, in buildTargets
> |    bb.event.fire(bb.event.BuildStarted(buildname, ntargets),
> self.databuilder.mcdata[mc])
> |  File "/xxx/home/builder/src/base/poky/bitbake/lib/bb/event.py", line
> 214, in fire
> |    fire_class_handlers(event, d)
> |  File "/xxx/poky/bitbake/lib/bb/event.py", line 121, in
> fire_class_handlers
> |    execute_handler(name, handler, event, d)
> |  File "/xxx/poky/bitbake/lib/bb/event.py", line 93, in execute_handler
> |    ret = handler(event)
> |  File "/xxx/poky/meta/classes/buildhistory.bbclass", line 919, in
> buildhistory_eventhandler
> |    entries = [ x for x in os.listdir(rootdir) if not x.startswith('.') ]
> | FileNotFoundError: [Errno 2] No such file or directory:
> '/xxx/buildhistory'
>
> Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> ---
>  V2: remove the check to see if the directory exists
>
>  meta/classes/buildhistory.bbclass | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes/buildhistory.bbclass
> b/meta/classes/buildhistory.bbclass
> index 49797a6701..8db79a4829 100644
> --- a/meta/classes/buildhistory.bbclass
> +++ b/meta/classes/buildhistory.bbclass
> @@ -896,6 +896,7 @@ python buildhistory_eventhandler() {
>                  if os.path.isdir(olddir):
>                      shutil.rmtree(olddir)
>                  rootdir = e.data.getVar("BUILDHISTORY_DIR")
> +                bb.utils.mkdirhier(rootdir)
>                  entries = [ x for x in os.listdir(rootdir) if not
> x.startswith('.') ]
>                  bb.utils.mkdirhier(olddir)
>                  for entry in entries:
> --
> 2.35.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#162587):
> https://lists.openembedded.org/g/openembedded-core/message/162587
> Mute This Topic: https://lists.openembedded.org/mt/89491842/5052612
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

-- 
Best regards,

José Quaresma

[-- Attachment #2: Type: text/html, Size: 4241 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH v2] buildhistory.bbclass: create the buildhistory directory when needed
  2022-03-03  0:06 ` [OE-core] [PATCH v2] buildhistory.bbclass: create the buildhistory directory when needed Jose Quaresma
@ 2022-03-03 14:49   ` Steve Sakoman
  2022-03-03 15:22     ` Jose Quaresma
  0 siblings, 1 reply; 3+ messages in thread
From: Steve Sakoman @ 2022-03-03 14:49 UTC (permalink / raw)
  To: Jose Quaresma; +Cc: OE-core

On Wed, Mar 2, 2022 at 2:07 PM Jose Quaresma <quaresma.jose@gmail.com> wrote:
>
> Can this patch be backported to dunfell?

I've added it to my test queue.

Steve

>
> Jose
>
> Jose Quaresma via lists.openembedded.org <quaresma.jose=gmail.com@lists.openembedded.org> escreveu no dia quarta, 2/03/2022 à(s) 00:47:
>>
>> When the BUILDHISTORY_RESET is enabled we need to move the
>> content from BUILDHISTORY_DIR to BUILDHISTORY_OLD_DIR but
>> when we start a clean build in the first run we don't have the
>> BUILDHISTORY_DIR so the move of files will fail.
>>
>> | ERROR: Command execution failed: Traceback (most recent call last):
>> |  File "/xxx/poky/bitbake/lib/bb/command.py", line 110, in runAsyncCommand
>> |    commandmethod(self.cmds_async, self, options)
>> |  File "/xxx/poky/bitbake/lib/bb/command.py", line 564, in buildTargets
>> |    command.cooker.buildTargets(pkgs_to_build, task)
>> |  File "/xxx/poky/bitbake/lib/bb/cooker.py", line 1481, in buildTargets
>> |    bb.event.fire(bb.event.BuildStarted(buildname, ntargets), self.databuilder.mcdata[mc])
>> |  File "/xxx/home/builder/src/base/poky/bitbake/lib/bb/event.py", line 214, in fire
>> |    fire_class_handlers(event, d)
>> |  File "/xxx/poky/bitbake/lib/bb/event.py", line 121, in fire_class_handlers
>> |    execute_handler(name, handler, event, d)
>> |  File "/xxx/poky/bitbake/lib/bb/event.py", line 93, in execute_handler
>> |    ret = handler(event)
>> |  File "/xxx/poky/meta/classes/buildhistory.bbclass", line 919, in buildhistory_eventhandler
>> |    entries = [ x for x in os.listdir(rootdir) if not x.startswith('.') ]
>> | FileNotFoundError: [Errno 2] No such file or directory: '/xxx/buildhistory'
>>
>> Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
>> ---
>>  V2: remove the check to see if the directory exists
>>
>>  meta/classes/buildhistory.bbclass | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
>> index 49797a6701..8db79a4829 100644
>> --- a/meta/classes/buildhistory.bbclass
>> +++ b/meta/classes/buildhistory.bbclass
>> @@ -896,6 +896,7 @@ python buildhistory_eventhandler() {
>>                  if os.path.isdir(olddir):
>>                      shutil.rmtree(olddir)
>>                  rootdir = e.data.getVar("BUILDHISTORY_DIR")
>> +                bb.utils.mkdirhier(rootdir)
>>                  entries = [ x for x in os.listdir(rootdir) if not x.startswith('.') ]
>>                  bb.utils.mkdirhier(olddir)
>>                  for entry in entries:
>> --
>> 2.35.1
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#162587): https://lists.openembedded.org/g/openembedded-core/message/162587
>> Mute This Topic: https://lists.openembedded.org/mt/89491842/5052612
>> Group Owner: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [quaresma.jose@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
>
>
> --
> Best regards,
>
> José Quaresma


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH v2] buildhistory.bbclass: create the buildhistory directory when needed
  2022-03-03 14:49   ` Steve Sakoman
@ 2022-03-03 15:22     ` Jose Quaresma
  0 siblings, 0 replies; 3+ messages in thread
From: Jose Quaresma @ 2022-03-03 15:22 UTC (permalink / raw)
  To: Steve Sakoman; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 3465 bytes --]

Great, thanks!

Steve Sakoman <steve@sakoman.com> escreveu no dia quinta, 3/03/2022 à(s)
14:49:

> On Wed, Mar 2, 2022 at 2:07 PM Jose Quaresma <quaresma.jose@gmail.com>
> wrote:
> >
> > Can this patch be backported to dunfell?
>
> I've added it to my test queue.
>
> Steve
>
> >
> > Jose
> >
> > Jose Quaresma via lists.openembedded.org <quaresma.jose=
> gmail.com@lists.openembedded.org> escreveu no dia quarta, 2/03/2022 à(s)
> 00:47:
> >>
> >> When the BUILDHISTORY_RESET is enabled we need to move the
> >> content from BUILDHISTORY_DIR to BUILDHISTORY_OLD_DIR but
> >> when we start a clean build in the first run we don't have the
> >> BUILDHISTORY_DIR so the move of files will fail.
> >>
> >> | ERROR: Command execution failed: Traceback (most recent call last):
> >> |  File "/xxx/poky/bitbake/lib/bb/command.py", line 110, in
> runAsyncCommand
> >> |    commandmethod(self.cmds_async, self, options)
> >> |  File "/xxx/poky/bitbake/lib/bb/command.py", line 564, in buildTargets
> >> |    command.cooker.buildTargets(pkgs_to_build, task)
> >> |  File "/xxx/poky/bitbake/lib/bb/cooker.py", line 1481, in buildTargets
> >> |    bb.event.fire(bb.event.BuildStarted(buildname, ntargets),
> self.databuilder.mcdata[mc])
> >> |  File "/xxx/home/builder/src/base/poky/bitbake/lib/bb/event.py", line
> 214, in fire
> >> |    fire_class_handlers(event, d)
> >> |  File "/xxx/poky/bitbake/lib/bb/event.py", line 121, in
> fire_class_handlers
> >> |    execute_handler(name, handler, event, d)
> >> |  File "/xxx/poky/bitbake/lib/bb/event.py", line 93, in execute_handler
> >> |    ret = handler(event)
> >> |  File "/xxx/poky/meta/classes/buildhistory.bbclass", line 919, in
> buildhistory_eventhandler
> >> |    entries = [ x for x in os.listdir(rootdir) if not
> x.startswith('.') ]
> >> | FileNotFoundError: [Errno 2] No such file or directory:
> '/xxx/buildhistory'
> >>
> >> Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> >> ---
> >>  V2: remove the check to see if the directory exists
> >>
> >>  meta/classes/buildhistory.bbclass | 1 +
> >>  1 file changed, 1 insertion(+)
> >>
> >> diff --git a/meta/classes/buildhistory.bbclass
> b/meta/classes/buildhistory.bbclass
> >> index 49797a6701..8db79a4829 100644
> >> --- a/meta/classes/buildhistory.bbclass
> >> +++ b/meta/classes/buildhistory.bbclass
> >> @@ -896,6 +896,7 @@ python buildhistory_eventhandler() {
> >>                  if os.path.isdir(olddir):
> >>                      shutil.rmtree(olddir)
> >>                  rootdir = e.data.getVar("BUILDHISTORY_DIR")
> >> +                bb.utils.mkdirhier(rootdir)
> >>                  entries = [ x for x in os.listdir(rootdir) if not
> x.startswith('.') ]
> >>                  bb.utils.mkdirhier(olddir)
> >>                  for entry in entries:
> >> --
> >> 2.35.1
> >>
> >>
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >> Links: You receive all messages sent to this group.
> >> View/Reply Online (#162587):
> https://lists.openembedded.org/g/openembedded-core/message/162587
> >> Mute This Topic: https://lists.openembedded.org/mt/89491842/5052612
> >> Group Owner: openembedded-core+owner@lists.openembedded.org
> >> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> quaresma.jose@gmail.com]
> >> -=-=-=-=-=-=-=-=-=-=-=-
> >>
> >
> >
> > --
> > Best regards,
> >
> > José Quaresma
>


-- 
Best regards,

José Quaresma

[-- Attachment #2: Type: text/html, Size: 5256 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-03 15:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <16D869D532B5A22D.25756@lists.openembedded.org>
2022-03-03  0:06 ` [OE-core] [PATCH v2] buildhistory.bbclass: create the buildhistory directory when needed Jose Quaresma
2022-03-03 14:49   ` Steve Sakoman
2022-03-03 15:22     ` Jose Quaresma

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.