[Scons-users] dependencies on directories
Tom Tanner (BLOOMBERG/ LONDON)
ttanner2 at bloomberg.net
Mon Dec 28 06:47:32 EST 2015
Oh, right. Thats really interesting, thank you. I'll have a look around and see what I can tease out when I'm at home over the next few days.
As far as I'm aware I'm using your QT5 tool (I tried going onto the default Qt tool but it didn't seem to work nearly as well), and the Install tool (my favourite for likely culprit), but that is on scons 2.3.7 - as I noted, I've not done a complete build with 2.4.1 yet, so it might no longer be a problem.
From: dl9obn at darc.de At: Dec 28 2015 11:37:22
To: scons-users at scons.org
Subject: Re: [Scons-users] dependencies on directories
Hi Tom,
On 28.12.2015 11:45, Tom Tanner (BLOOMBERG/ LONDON) wrote:
After I persuaded the guy in question to fix *his* dependencies, I discovered that the 'Install' builder appears to do something similar but different. It appears to generate a directory as a target. And the dependencies are strange indeed. Because the directory appears to depend on files that don't exist but *might*.
For instance I get the following list of dependencies:
bahblah/dirname:
source/this.h
source/this.hpp
source/this.hh
source/this.hxx
I think I know where that comes from. Some Tools use the call "File.rexists()" to check whether an accompanying file like "foo.hpp" exists for a source "foo.c". The problem is, that the File node gets added by this function if it doesn't exist...and that's where all the extra files come from.
In one of the last revisions ( https://bitbucket.org/scons/scons/pull-requests/193/new-method-rentry_exists_on_disk/diff ), I added the new method "Dir.rentry_exists_on_disk()" which only peeks onto the disk, but doesn't create new nodes.
However, the Tools haven't all been switched to the new method, yet. Can you name the tools that you use, so we might come up with an attack plan for this?
I'm really interested in this topic because I ran into the same problems you seem to have now, when trying to combine the Qt4 Tool with RPM packaging of the sources automatically...
Best regards,
Dirk
_______________________________________________
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/20151228/294aa10a/attachment-0001.html>
More information about the Scons-users
mailing list