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 39705C282D1 for ; Thu, 6 Mar 2025 14:26:43 +0000 (UTC) Subject: Re: [PATCH] buildhistory.bbclass: restore BUILDHISTORY_PRESERVE files To: openembedded-core@lists.openembedded.org From: "Pedro Ferreira" X-Originating-Location: Rinchoa, Lisbon, PT (78.137.195.161) X-Originating-Platform: Windows Chrome 133 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 06 Mar 2025 06:26:34 -0800 References: <16166.1737643041567770551@lists.openembedded.org> In-Reply-To: <16166.1737643041567770551@lists.openembedded.org> Message-ID: <359.1741271194425273451@lists.openembedded.org> Content-Type: multipart/alternative; boundary="km4QFVaSB40MpmPtfsQQ" 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, 06 Mar 2025 14:26:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/212392 --km4QFVaSB40MpmPtfsQQ Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Simple scenario to test it: *Pre-conditions:* INHERIT +=3D "buildhistory" BUILDHISTORY_RESET =3D "1" BUILDHISTORY_PRESERVE:append =3D " files-in-package.txt" *Run:* bitbake -c cleansstate base-passwd && 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:* rm -rf tmp && 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 --km4QFVaSB40MpmPtfsQQ Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Simple scenario to test it:
 
Pre-conditions:
INHERIT +=3D "buildhistory"
BUILDHISTORY_RESET =3D "1"
BUILD= HISTORY_PRESERVE:append =3D " files-in-package.txt"

Run:
bitbake -c = cleansstate base-passwd && bitbake base-passwd
= Check:
cat PATH_TO_BUILD_dir/buildhistory/packages/core2-64-p= oky-linux/base-passwd/base-passwd-dbg/files-in-package.txt
(File e= xists and content ok)
Run:
rm -rf tmp &= & 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
--km4QFVaSB40MpmPtfsQQ--