[Scons-users] repositories, scons doesn't start the search from the beginning

Dan McNaul danmcnaul at gmail.com
Mon Mar 16 14:55:51 EDT 2015


WOW.

I looked through your issues and found that I did report this back in 2008.   Issue #1915.  My recent issue #3000 is a better explanation and test of the problem.  I supplied you with the things you need to see what I’m talking about. 

Dan

From: Dan McNaul 
Sent: Monday, March 16, 2015 2:22 PM
To: scons-users at scons.org 
Subject: repositories, scons doesn't start the search from the beginning

I apologize.  I didn’t follow your procedures of posting this here first.  I already created issue 3000 for this. I consider this a bug.  It has been around for a long time.  The tests are using
scons_2.3.4.

When using repositories, scons builds the "official" root correctly.  When
developers try to use the repository, scons does not identify header changes
correctly.

In the attached test cases, hdr1.h includes hdrA.h and hdr1.h uses stuff from
hdrA.h.  MyMain.c includes hdr1.h.  If you edget hdrA.h into your home dir (see
testcase1 in home1/g1r1/src/include) and make a change to it, scons misses the
change to the dependency and reports it is up to date.  (see home1/g1r1/bld.out).

To over come this, the developer has to recognize this behavior and also edget
hdr1.h (see testcase2 in home2/g1r1/src/include) for scons to realize it needs
to rebuild "stuff".  (see home2/g1r1/bld.out)

It appears that scons is not restarting it's repository search logic from the
beginning of all the paths to find headers included in other headers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150316/876f8534/attachment.html>


More information about the Scons-users mailing list