Hi,

Yes I can see the issue using poky[master] on commit 
`db87ca070c5a4790dcdb9601bcb35037603f6d7f`.
For each package inside recipe_package I can only see latest and 
latest.pkg_postinst/preinst if applicable. There should be a 
files-in-package.txt for each package, but as I mentioned, the `recipe_package` 
folder exists but not `recipe_package/package` folder during `package` task and 
only on the next task which is creating `latest` file, this folder are 
created(ex: base-passwd-dbg, base-passwd-dev,...).
FYI: I updated the patches, Signed-off-by was pointing to the wrong email.

My best regards,

Pedro Ferreira

-----Original Message-----
From: Richard Purdie <[email protected]>
Sent: Tuesday, August 6, 2024 1:55 PM
To: Pedro Silva Ferreira <[email protected]>; 
[email protected]
Cc: Pedro Ferreira <[email protected]>
Subject: Re: [OE-core] [PATCH 1/2] buildhistory: fix package output folder 
creation

Notice: This e-mail has originated from an external email service, so do not 
click on any links, nor open any attachments unless you know who the sender is 
and are sure the content is secure.



On Mon, 2024-08-05 at 14:52 +0000, Pedro Silva Ferreira wrote:
> Without the fix you can check that with:
> Set on local.conf : INHERIT += "buildhistory"
> Run: bitbake -c cleansstate base-passwd && bitbake base-passwd
>
> Taking a look on buildhistory you will see that for base-passwd
> packages there is no files-in-package.txt
>
> Reason:
> On log.do_package, theres a log,"DEBUG: Shell function
> buildhistory_list_pkg_files finished", which indicates that the main
> shell function for the `files-in-package.txt` was triggered an so the
> function expects that the recipe package folder exists it will skip
> `files-in-package.txt` creation.
>
> On `packageData` task, there a python function `write_pkghistory` that
> runs for all packages from a recipe package and this function is
> protected to create the folder if this doesn’t exists.
> When writing `latest` we are protecting it from failing to write down
> the file but for `files-in-package.txt` we don’t.

Thanks for the details. Can you confirm this happens with current master 
please? I tested it and couldn't reproduce.

I'm wondering if this was fixed by:

https://git.yoctoproject.org/poky/commit/?id=2feb9e20e464088c377fadb9344da28100662130

Cheers,

Richard
The information in this communication may contain confidential or legally 
privileged information. It is intended solely for the use of the individual or 
entity it addresses and others authorized to receive it. If you are not an 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution or action in reliance on the contents of this information is 
strictly prohibited and may be unlawful. If you have received this 
communication by error, please notify us immediately by responding to this 
e-mail and then delete it from your system. Critical TechWorks is not liable 
for the proper and complete transmission of the information in this 
communication nor for any delay in its receipt

This e-mail is environmentally friendly, just like Critical TechWorks, which 
lives in a paper-free atmosphere. Therefore, please consider the environment 
before printing it!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#203030): 
https://lists.openembedded.org/g/openembedded-core/message/203030
Mute This Topic: https://lists.openembedded.org/mt/107685168/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to