[Scons-users] --dry-run can still remove files - is this a bug?

Bill Deegan bill at baddogconsulting.com
Wed Aug 5 14:45:38 EDT 2015


Chris - Thanks for posting on the users mailing list.

It may be useful to pastebin the output from

--taskmastertrace=FILE

Somewhere and reply with a link to that.

I'm guessing that scons doesn't view this as part of the build process.

It's not possible to do a dry-run (which should include scanning files) in
a variantdir without copying the files in place (or symlink/hardlink)

Unless you specify duplicate = 0..

-Bil


On Wed, Aug 5, 2015 at 11:40 AM, chris warth <cswarth at gmail.com> wrote:
>
> Despite using the "No execute" options (-n, --just-print, --dry-run,
--recon), scons can delete files in the build directory. --dry-run should
not modify the filesystem - that's the point of having a --dry-run option.
>
> Note that this behavior can be worked-around by setting 'duplicate=0' in
the call to env.VariantDir(), but that's not really fixing --dry-run.
>
> To reproduce (on ubuntu linux), copy the attached file to SConstruct.error
>
> $ mkdir output
> $ >output/source.txt
>
> $ ~/scons/bin/scons --dry-run --debug=duplicate -f SConstruct.error
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> dup: no src for output/source.txt, unlinking old variant copy
> scons: building associated VariantDir targets: output
> scons: *** [output/target.txt] Source `output/source.txt' not found,
needed by target `output/target.txt'.
> scons: building terminated because of errors.
>
>
> $ ~/scons/bin/scons --version
> SCons by Steven Knight et al.:
>         script: v2.3.6.rel_2.3.5:3347:d31d5a4e74b6[MODIFIED], 2015/07/31
14:36:10, by bdbaddog on hpmicrodog
>         engine: v2.3.6.rel_2.3.5:3347:d31d5a4e74b6[MODIFIED], 2015/07/31
14:36:10, by bdbaddog on hpmicrodog
>         engine path: ['/home/cwarth/scons/lib/scons-2.3.6/SCons']
> Copyright (c) 2001 - 2015 The SCons Foundation
>
>
>
> _______________________________________________
> Scons-users mailing list
> 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/20150805/ce49bc9d/attachment-0001.html>


More information about the Scons-users mailing list