scons erroneously rebuilds when command-line targets change

XMLWordPrintable

Details

• Type: Bug
• Status: To Do
• Resolution: Unresolved
• Fix Version/s: None
• Component/s:
• Labels:
None
• Templates:
• Team:
Architecture

Description

scons seems to think some headers are no longer dependencies when scons is run with the examples or install targets. This can result in rebuilding entire packages when scons install is run after scons is run.

This has been observed in both afw and coadd_utils.

The workaround for this is to always specify lib first in your scons targets, even if it's implicit. In other words, always do:

 scons lib python 

or

 scons lib examples 

even though examples and lib depend on lib.

I've experimented with adding this to sconsUtils by messing with BUILD_TARGETS and COMMAND_LINE_TARGETS, but it seems to process the dependencies before we have a chance to modify the order of these, so that's not going to work.

This bug has been filed upstream with scons: http://scons.tigris.org/issues/show_bug.cgi?id=2798

Ported from TRAC Ticket 1800 (https://dev.lsstcorp.org/trac/ticket/1800)

People

• Assignee:
Unassigned
Reporter:
Jim Bosch
Watchers:
Robert Lupton, Tim Jenness