From: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: pedro.silva.ferreira@criticaltechworks.com
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH v2 1/2] buildhistory: fix package output folder creation
Date: Wed, 7 Aug 2024 17:55:37 +0200 [thread overview]
Message-ID: <2024080715553757b6284c@mail.local> (raw)
In-Reply-To: <20240806125955.160835-1-pedro.silva.ferreira@criticaltechworks.com>
Hello,
Because of DMARC, you really need to add your From: here
Also, the patch is still mangled and doesn't apply.
On 06/08/2024 13:59:54+0100, Pedro Ferreira via lists.openembedded.org wrote:
> This fix garantees that output package folder exists on
> buildhistory folder to avoid missing files-in-package.txt
> creation during task `package` execution.
>
> This issue happens because the output folder is being
> created on task `packagedata` before generating `latest` file.
>
> Also it ensures that in case of `find` fails we leave with
> a hard error instead of hidding the error on the for loop.
>
> Signed-off-by: Pedro Silva Ferreira <Pedro.Silva.Ferreira@criticaltechworks.com>
> ---
> v2 changes:
>
> Fixed Signed-off-by to the correct email
> ---
> meta/classes/buildhistory.bbclass | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
> index c3d049aea3..ad151092c9 100644
> --- a/meta/classes/buildhistory.bbclass
> +++ b/meta/classes/buildhistory.bbclass
> @@ -599,15 +599,13 @@ buildhistory_list_files_no_owners() {
>
> buildhistory_list_pkg_files() {
> # Create individual files-in-package for each recipe's package
> - for pkgdir in $(find ${PKGDEST}/* -maxdepth 0 -type d); do
> + pkgdirlist=$(find ${PKGDEST}/* -maxdepth 0 -type d)
> + for pkgdir in $pkgdirlist; do
> pkgname=$(basename $pkgdir)
> outfolder="${BUILDHISTORY_DIR_PACKAGE}/$pkgname"
> outfile="$outfolder/files-in-package.txt"
> # Make sure the output folder exists so we can create the file
> - if [ ! -d $outfolder ] ; then
> - bbdebug 2 "Folder $outfolder does not exist, file $outfile not created"
> - continue
> - fi
> + mkdir -p $outfolder
> buildhistory_list_files $pkgdir $outfile fakeroot
> done
> }
> --
> 2.34.1
>
> 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 (#203019): https://lists.openembedded.org/g/openembedded-core/message/203019
> Mute This Topic: https://lists.openembedded.org/mt/107750091/3617179
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alexandre.belloni@bootlin.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2024-08-07 15:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-06 12:59 [PATCH v2 1/2] buildhistory: fix package output folder creation Pedro Ferreira
2024-08-06 12:59 ` [PATCH v2 2/2] buildhistory: Restoring files from preserve list Pedro Ferreira
2024-08-07 15:55 ` Alexandre Belloni [this message]
2024-08-07 16:44 ` [OE-core] [PATCH v2 1/2] buildhistory: fix package output folder creation Richard Purdie
2024-08-08 12:19 ` Peter Kjellerstedt
2024-08-13 8:05 ` Pedro Ferreira
2024-08-13 12:09 ` [OE-core] " Steve Sakoman
2024-08-27 12:50 ` Pedro Silva Ferreira
2024-08-27 14:10 ` Richard Purdie
2024-08-29 10:55 ` Pedro Silva Ferreira
2024-08-29 11:53 ` Richard Purdie
2024-08-29 12:00 ` Richard Purdie
2024-08-29 14:21 ` Pedro Silva Ferreira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2024080715553757b6284c@mail.local \
--to=alexandre.belloni@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=pedro.silva.ferreira@criticaltechworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox