Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-2886

scons erroneously rebuilds when command-line targets change

    Details

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

      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)

        Attachments

          Container Issues

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jbosch Jim Bosch
                Watchers:
                Robert Lupton, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel