From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A26BC02182 for ; Thu, 23 Jan 2025 14:37:31 +0000 (UTC) Subject: Re: [PATCH] buildhistory.bbclass: restore BUILDHISTORY_PRESERVE files To: openembedded-core@lists.openembedded.org From: "Pedro Ferreira" X-Originating-Location: Vila Nova de Foz Coa, Guarda, PT (213.205.68.220) X-Originating-Platform: Windows Chrome 132 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 23 Jan 2025 06:37:21 -0800 References: In-Reply-To: Message-ID: <16166.1737643041567770551@lists.openembedded.org> Content-Type: multipart/alternative; boundary="yLG2Kg5L9zAy7dvp4vmW" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 23 Jan 2025 14:37:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/210191 --yLG2Kg5L9zAy7dvp4vmW Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Ross, Here's a simple test do reproduce it. *Pre-conditions:* INHERIT +=3D "buildhistory" BUILDHISTORY_RESET =3D "1" BUILDHISTORY_PRESERVE:append =3D " files-in-package.txt" *- Starting without sstate cache* *Run:* bitbake base-passwd *Check:* cat PATH_TO_BUILD_dir/buildhistory/packages/core2-64-poky-linux/base-passwd= /base-passwd-dbg/files-in-package.txt (File exists and content ok) *Run:* bitbake base-passwd (it will use sstate cache) *Check:* cat PATH_TO_BUILD_dir/buildhistory/packages/core2-64-poky-linux/base-passwd= /base-passwd-dbg/files-in-package.txt (File wont exist) *- Starting with sstate cache* *Run:* bitbake base-passwd --no-setscene *Check:* cat PATH_TO_BUILD_dir/buildhistory/packages/core2-64-poky-linux/base-passwd= /base-passwd-dbg/files-in-package.txt (File exists and content ok) *Run:* bitbake base-passwd (it will use sstate cache) *Check:* cat PATH_TO_BUILD_dir/buildhistory/packages/core2-64-poky-linux/base-passwd= /base-passwd-dbg/files-in-package.txt (File wont exist) Cheers, Pedro --yLG2Kg5L9zAy7dvp4vmW Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi Ross,
 
Here's a simple test do reproduce it.
 
Pre-conditions:
INHERIT +=3D "buildhistory"
BUILDHISTORY_RESET =3D "1"
BUILD= HISTORY_PRESERVE:append =3D " files-in-package.txt"
 
- Starting without sstate cache
Run:
bitbake base-passwd
Check:
cat PATH_T= O_BUILD_dir/buildhistory/packages/core2-64-poky-linux/base-passwd/base-pass= wd-dbg/files-in-package.txt
(File exists and content ok)
Run:
bitbake base-passwd (it will use sstate cache)<= br />Check:
cat PATH_TO_BUILD_dir/buildhistory/packag= es/core2-64-poky-linux/base-passwd/base-passwd-dbg/files-in-package.txt
(File wont exist)
 
- Starting with sstate cache
Run:
bitbake base-passwd --no-setscene
Check:
cat PATH_TO_BUILD_dir/buildhistory/packages/core2-64-poky-linux/base-passw= d/base-passwd-dbg/files-in-package.txt
(File exists and content ok= )
Run:
bitbake base-passwd (it will use sst= ate cache)
Check:
cat PATH_TO_BUILD_dir/buildhis= tory/packages/core2-64-poky-linux/base-passwd/base-passwd-dbg/files-in-pack= age.txt
(File wont exist)
 
Cheers,
Pedro
--yLG2Kg5L9zAy7dvp4vmW--