conflict with Decider('MD5-timestamp') and --implicit-deps-unchanged?

"KANNEGIESER Veit (MM)" <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello,

comparing
v3.0.4.3a41ed6b288cee8d085373ad7fa02894e1903864,
2019-01-20 22:51:36, by bdeegan on kufra
against (worked good)
v3.0.3.27552f9e8d59c13c3567f2bd380b74e34ee25324,
2019-01-08 02:59:02, by bdbaddog on hpmicrodog

shows

"scons: rebuilding `dir2\file2.txt' because `dir1\file1.txt' changed"
even when the file did not change.

scons --implicit-deps-unchanged --tree=prune --debug=explain

first pass will process everthing, expected

on second pass:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `dir1\file1.txt' is up to date.
+-dir1\file1.txt
  +-file0.txt
scons: rebuilding `dir2\file2.txt' because `dir1\file1.txt' changed
Copy("dir2\file2.txt", "dir1\file1.txt")
+-dir2\file2.txt
  +-dir1\file1.txt
    +-file0.txt
scons: done building targets.


when disabling Decider('MD5-timestamp') or the
'--implicit-deps-unchanged' option,
the targets are considered up to date.



import os

# Decider('MD5')

#
Decider('MD5-timestamp')

def cp(target, source):
  Command(target, source, Copy("$TARGET", "$SOURCE"))
  Default(target)

f0 =                      'file0.txt'
f1 = os.path.join('dir1', 'file1.txt')
f2 = os.path.join('dir2', 'file2.txt')

cp(f1, f0)
cp(f2, f1)



maybe this is related to <https://github.com/SCons/scons/issues/2980>


regards

- --
Veit Kannegieser
software developer

Magneti Marelli GmbH
Instrument Cluster and Display

Waldburgstraße 21
70563 Stuttgart
Tel: +49 711 12371 129
Fax: +49 711 12371 198
mailto:[email protected]

Manager: Heinrich-Gerhard Schüring
Domicile: Stuttgart
Court of Registry: Stuttgart, HRB 761189

please send plain text mail.
please ignore the mail server appended spam.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEElP6zc7O10FCIcxYNH1Nrgn5dJmkFAlxjKcAACgkQH1Nrgn5d
Jmn0eA//YRH/p4zoU9RkRU33eLN8VjYoBysJNG/SFwyyj6PmYdQz/g20RHwgs78E
SyAdyGspGxsSWVW2zeHG8eYwti90k9T0yaaXtmdN0rnL2l902iQ5uKzuIUb4Z8O+
qyKBFua9JJnuR8pmgrCHU/3VWi5T4E1epHhFdH2WfrumRBfTLYD3TeLi5tyv9eId
0WqWz5yCR415qu2I5Kvsj4bCv51cXt72UPF4eV5Pcm1VuRrb0EswvX7UnSCRJ9jD
Nq5t8amIspZCw8a9H/VF8XtDIWdnwSTiyNUVdMdh2kgAzuQsDk4RftxyMoI0Cl4W
0OChkUoJ5CmmeALc6dO0aa6q0auEiiRj1u48FDYtlEdFWneQIf5VWjT28DPZz1Cn
FPVDf9cBhYYzjohTP+WHa58ckgOnWz3SOmc2DNtYnyhwRHLkQ3zW8QdKvjspD2aQ
7p4pYGk2kvt3dpNFpCUKAVMp8oR1mVd0LeYI9U2bMEkMFc/hBY342RUsoMIsEaxv
f8bDmS1D0znuIjhIK4gjmtkuTTYbR6+WrJ3GDO2N+l2gCbd9NnSuKRHtehnWev+8
qH20PzdwhvXqMLyc16PtCys1X9K7fJs0RXbsGqx2QezpZ8Ut5YJhnNsIJZOC41Q/
23niH6hUfS+hqLwMp8OvgyneM/hP5LqbovVjfNOMDGXrGXfofZU=
=9ZBL
-----END PGP SIGNATURE-----
Besuchen Sie unseren Internetauftritt! - VISIT OUR WEB SITE! www.magnetimarelli.com Dieses Dokument ist vertraulich zu behandeln. Es ist nicht gestattet, es ohne unsere ausdrückliche Genehmigung weiterzuleiten, zu vervielfältigen oder den Inhalt zu verwerten. Wenn Sie nicht der beabsichtigte Empfänger sind, informieren Sie bitte den Absender und löschen diese Email. This document is to be treated confidentially. It is not allowed to pass on, duplicate, exploit or disclose the contents of this email in all respects without our expressed permission. If you are not the intended recipient, please contact the sender and delete this message. ---------------------------------------------------------------------------------------------------------- Geschäftsführer: Heinrich-Gerhard Schuering Sitz der Gesellschaft: Stuttgart Amtsgericht: Stuttgart HRB 761189

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
Sconstruct (text/plain, 310 B)
import os

# Decider('MD5')

#
Decider('MD5-timestamp')

def cp(target, source):
  Command(target, source, Copy("$TARGET", "$SOURCE"))
  Default(target)

f0 =                      'file0.txt'
f1 = os.path.join('dir1', 'file1.txt')
f2 = os.path.join('dir2', 'file2.txt')

cp(f1, f0)
cp(f2, f1)
_init.cmd (text/plain, 184 B)
@echo off
echo --- init ---
if exist dir1 rmdir /s /q dir1
if exist dir2 rmdir /s /q dir2
del /q /f .sconsign.dblite > nul
mkdir dir1
mkdir dir2
echo %date% %time% > file0.txt
_3.cmd (text/plain, 562 B)
@echo off
call _init.cmd
echo --- pass 1 ---
"C:\Program Files\Python37\python.exe" "C:\Program Files\Python37\Scripts\scons" --implicit-deps-unchanged --tree=prune --debug=explain
echo --- pass 2 ---
"C:\Program Files\Python37\python.exe" "C:\Program Files\Python37\Scripts\scons" --implicit-deps-unchanged --tree=prune --debug=explain
echo --- changing file0 ---
echo %date% %time% > file0.txt
echo --- pass 3 ---
"C:\Program Files\Python37\python.exe" "C:\Program Files\Python37\Scripts\scons" --implicit-deps-unchanged --tree=prune --debug=explain
Sconstruct.sig (application/octet-stream, 566 B) - not displayed
_init.cmd.sig (application/octet-stream, 566 B) - not displayed
_3.cmd.sig (application/octet-stream, 566 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.