[Scons-users] How to force a re-building of a cached file using the env.CacheDir() feature.

Don Baldwin donb at qti.qualcomm.com
Wed Jan 25 17:55:02 EST 2023


Sorry, just saw this.  No, SCons is behaving fine so far, we just need a backup plan in case we do run into a problem.

Thanks,
Don

From: Scons-users <scons-users-bounces at scons.org> On Behalf Of Bill Deegan
Sent: Wednesday, January 18, 2023 7:39 PM
To: SCons users mailing list <scons-users at scons.org>
Subject: Re: [Scons-users] How to force a re-building of a cached file using the env.CacheDir() feature.


WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.
Why are you trying to do this?
Is SCons misbehaving?

On Wed, Jan 18, 2023 at 4:42 PM Don Baldwin <donb at qti.qualcomm.com<mailto:donb at qti.qualcomm.com>> wrote:
How does one find the bsig for a file?  I don't see that in the sconsign output.

Thanks,
Don

-----Original Message-----
From: Scons-users <scons-users-bounces at scons.org<mailto:scons-users-bounces at scons.org>> On Behalf Of Mats Wichmann
Sent: Wednesday, January 18, 2023 12:08 PM
To: scons-users at scons.org<mailto:scons-users at scons.org>
Subject: Re: [Scons-users] How to force a re-building of a cached file using the env.CacheDir() feature.

WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.

On 1/18/23 12:33, Don Baldwin wrote:
> Hi,
>
> We’re looking into using the SCons target-caching feature (using the
> env.CacheDir() method), and there is a question of how to force a
> re-caching of a particular file.  Is there a way to do this?

--cache-force, basically.  There's not any particular granularity to it... I don't think you can give a limited list of targets (one or more) and have only those be updated.

there's also an old issue with a patch which separates --cache-force and --cache-populate (which are currently synonyms) so that they don't behave exactly the same - though the proposed new behavior of of --cache-populate is rather the opposite of what you're looking for, it doesn't update any existing cached files (#1908).

> I looked into trying to find out the md5 value of a file, and then
> deleting the cached file directly, and I’m running the ‘sconsign’ tool
> on the .sconsign.dblite file with the -c option to get the csig value,
> which I think is the same thing as the md5, but those values don’t
> seem to match any of the filenames stored in the cache.

turns out the "build signature" (bsig) is what is used to generate the cache file name, not the content signature.




_______________________________________________
Scons-users mailing list
Scons-users at scons.org<mailto:Scons-users at scons.org>
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
Scons-users at scons.org<mailto:Scons-users at scons.org>
https://pairlist4.pair.net/mailman/listinfo/scons-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20230125/d5db4540/attachment.htm>


More information about the Scons-users mailing list