Bugzilla – Bug 1303
waf recompiles all the scripts in the scratch directory when adding a new one
Last modified: 2013-08-06 14:14:27 UTC
Hello, I just tried ns-3-dev (November 22, 2011). Just in case, I am using Debian 6.0.3, but I think this bug is in all platforms. Every time I compile a script in the scratch directory, it compiles all the scripts in the scratch directory. Just do this simple experiment: cd ns-3-dev cp examples/tutorial/first.cc scratch/script1.cc ./waf --run scratch/script1 # This compile scratch/script1.cc. It is OK. cp examples/tutorial/first.cc scratch/script2.cc ./waf --run scratch/script2 # Now, this compile script1.cc and script2.cc. # It should only compile script2.cc. cp examples/tutorial/first.cc scratch/script3.cc ./waf --run scratch/script3 # Now, this compile script1.cc, script2.cc, and script3.cc. # It should only compile script3.cc Thank you. Eric.
(In reply to comment #0) > Hello, > > I just tried ns-3-dev (November 22, 2011). Just in > case, I am using Debian 6.0.3, but I think this bug is in > all platforms. Every time I compile a script in the > scratch directory, it compiles all the scripts in the > scratch directory. > > Just do this simple experiment: > cd ns-3-dev > cp examples/tutorial/first.cc scratch/script1.cc > ./waf --run scratch/script1 > # This compile scratch/script1.cc. It is OK. > > cp examples/tutorial/first.cc scratch/script2.cc > ./waf --run scratch/script2 > # Now, this compile script1.cc and script2.cc. > # It should only compile script2.cc. > I reproduce this problem. It sounds like a bug in WAF, which I have no time to fix. However, if I modify script2 and then try to run it, WAF builds only script2 and none of the other scratch programs. THis is not so bad.
Reducing severity: the problem occurs only when adding new programs to the scratch folder, not when modifying existing ones. So it doesn't sound so big problem...
Documented "bugs" are called "features". This is a feature.