Login | Register
My pages Projects Community openCollabNet

Discussions > SCons User General Discussions (OBSOLETE) > Problems with dependencies of directory containing no files

Project highlights:

14 Nov 2017: Release 3.0.1 is now available at the download page.

18 Sep 2017: Release 3.0.0 is now available at the download page.

03 Nov 2016: Release 2.5.1 is now available at the download page.

scons
Discussion topic

Hide all messages in topic

All messages in topic

Re: [scons-users] Problems with dependencies of directory containing no files

Author miles1981
Full name Matthieu Brucher
Date 2008-01-04 01:15:04 PST
Message This is strange, I modified some other files (cpp files and headers) and now
the doc folder is updated by doxygen...
Well, it works, so thank you :D

Matthieu

2008/1/4, Matthieu Brucher <matthieu.brucher​@gmail.com>:
>
> Hi,
>
> After some trials, I got the latest Scons to work on my box.
> I have some new issues that didn't occur in the past :
> - if I create two SharedLibraries and if the second needs the first
> (LIBS='first'), I have to explicitely add a Depends instruction (BTW, why
> Depends and not Depend ??)
> - the current folder is not used anymore for the search of the external
> libraries, I have to Append LIBPATH=['.', ] so that gcc linker searchs in
> the correct place, this was not the case with the stable version of Scons.
>
> I dumped the dependency tree in a file and here is an excerpt :
> [E b C ] +-doc
> [E B P C ] | +-doc/html
> [E C ] | +-irt.doxyfile
> [E ] | +-IRT.py
> [E C ] | +-primitives.cpp
> [E C ] | +-doxygen.py
> [E C ] | +-simple_scene.h
>
> The doc folder is a dependency of some files, but if I modify
> simple_scene.h for instance, doxygen is not run. So the dependencies are
> accurate, but they do not trigger a rebuild :(
>
> Matthieu
>
> 2008/1/3, Matthieu Brucher <matthieu.brucher​@gmail.com>:
> >
> > Hi,
> >
> > Thank you for this, I thought I was using the last version on my Linux
> > box, but it was the Windows box (without doxygen) that had it installed...
> > I will try tomorrow :)
> >
> > Matthieu
> >
> > 2008/1/2, Robert Norton <rnorton at broadcom dot com>:
> > >
> > > Hi,
> > >
> > > From: Matthieu Brucher [mailto:matthieu.bru​cher at gmail dot com]
> > > Sent: 28 December 2007 09:40
> > > To: users at scons dot tigris dot org
> > > Subject: Re: [scons-users] Problems with dependencies of
> > > directory containing no files
> > >
> > >
> > > Hi,
> > >
> > > In the same kind of questions, I wondered why the Doxygen
> > > scanner did not add a dependency
> > > over each file that would be used in the generation of the
> > > documentation.
> > >
> > > This is what the code posted on the wiki was intended to do, however
> > > it
> > > appears to be broken in scons builds before 0.97.0d20070918. Try
> > > downloading and using the most recent checkpoint release and report
> > > back
> > > with your experiences.
> > >
> > > Robert
> > >
> > > Each time I want to generate the docs, I have to remove the
> > > doc
> > > folder and then call scons.
> > > Is there a way to add those dependencies easily ? (I'm only a
> > > basic Scons user so there is a
> > > lot I don't know)
> > >
> > > Matthieu
> > >
> > >
> > > 2007/12/20, Robert Norton < rnorton at broadcom dot com>:
> > >
> > > Hi,
> > >
> > > I tried using the doxygen builder from the wiki and
> > > found that scons
> > > didn't add the dependencies generated by the Doxygen
> > > scanner to the
> > > dependency tree, even though I could see that the
> > > scanner was finding
> > > them correctly. Another user has clearly had the same
> > > problem:
> > >
> > >
> > > http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955
> > > < http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955
> > > >
> > >
> > > After some digging I discovered that the problem is
> > > that
> > > the doxygen
> > > emitter didn't output any File nodes in its targets,
> > > only Dir nodes. By
> > > adding a fake File node to the list of targets (and
> > > touching it in the
> > > action) everything worked as expected.
> > >
> > > Is this indented behaviour? I can't see a good reason
> > > why scons should
> > > ignore the dependencies for the directories. I am
> > > using
> > > scons 0.97 (and
> > > get the same behaviour with recent checkpoint).
> > >
> > > To make this a little more concrete I put together a
> > > small example in
> > > the attached zip. The following is the output of scons
> > >
> > > -n --debug=stree
> > > before adding the fake target file (see line 162 in
> > > doxygen.py):
> > >
> > > scons: Reading SConscript files ...
> > > scons: done reading SConscript files.
> > > scons: Building targets ...
> > > scons: `.' is up to date.
> > > E = exists
> > > R = exists in repository only
> > > b = implicit builder
> > > B = explicit builder
> > > S = side effect
> > > P = precious
> > > A = always build
> > > C = current
> > > N = no clean
> > > H = no cache
> > >
> > > [E b C ]+-.
> > > [E ] +-SConstruct
> > > [E b C ] +-docs
> > > [E B P C ] | +-docs/html
> > > [E ] | | +-doxy.cfg
> > > [E B P C ] | +-docs/latex
> > > [E ] | +-doxy.cfg
> > > [ ] +-doxy
> > > [E ] +-doxy.cfg
> > > scons: done building targets.
> > >
> > > and after:
> > >
> > > scons: Reading SConscript files ...
> > > scons: done reading SConscript files.
> > > scons: Building targets ...
> > > scons: `.' is up to date.
> > > E = exists
> > > R = exists in repository only
> > > b = implicit builder
> > > B = explicit builder
> > > S = side effect
> > > P = precious
> > > A = always build
> > > C = current
> > > N = no clean
> > > H = no cache
> > >
> > > [E b C ]+-.
> > > [E ] +-SConstruct
> > > [E b C ] +-docs
> > > [E B P C ] | +-docs/foobar
> > > [E ] | | +-doxy.cfg
> > > [E ] | | +-test.h
> > > [E B P C ] | +-docs/html
> > > [E ] | | +-doxy.cfg
> > > [E ] | | +-test.h
> > > [E B P C ] | +-docs/latex
> > > [E ] | +-doxy.cfg
> > > [E ] | +-test.h
> > > [ ] +-doxy
> > > [E ] +-doxy.cfg
> > > scons: done building targets.
> > >
> > > Two things to note:
> > >
> > > 1) the dependencies for all the directories are now
> > > correct (not just
> > > the fake file)
> > > 2) there is a spurious file 'doxy' in the tree.
> > >
> > > Is there a way to get rid of the spurious file?
> > >
> > > Thanks,
> > >
> > > Robert
> > >
> > >
> > > --------------------​--------------------​--------------------​---------
> > > To unsubscribe, e-mail:
> > > users-unsubscribe@sc​ons.tigris.org
> > > For additional commands, e-mail:
> > > users-help at scons dot tigris dot org
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > French PhD student
> > > Website : http://matthieu-bruc​her.developpez.com/
> > > < http://matthieu-bruc​her.developpez.com/​>
> > > Blogs : http://matt.eifelle.com and
> > > http://blog.developp​ez.com/?blog=92
> > > LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
> > >
> > >
> > > --------------------​--------------------​--------------------​---------
> > > To unsubscribe, e-mail: users-unsubscribe@sc​ons.tigris.org
> > > For additional commands, e-mail: users-help at scons dot tigris dot org
> > >
> > >
> >
> >
> > --
> > French PhD student
> > Website : http://matthieu-bruc​her.developpez.com/
> > Blogs : http://matt.eifelle.com and http://blog.developp​ez.com/?blog=92
> > LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
> >
>
>
>
> --
> French PhD student
> Website : http://matthieu-bruc​her.developpez.com/
> Blogs : http://matt.eifelle.com and http://blog.developp​ez.com/?blog=92
> LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
>



--
French PhD student
Website : http://matthieu-bruc​her.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developp​ez.com/?blog=92
LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
Attachments

Re: [scons-users] Problems with dependencies of directory containing no files

Author miles1981
Full name Matthieu Brucher
Date 2008-01-04 00:10:24 PST
Message Hi,

After some trials, I got the latest Scons to work on my box.
I have some new issues that didn't occur in the past :
- if I create two SharedLibraries and if the second needs the first
(LIBS='first'), I have to explicitely add a Depends instruction (BTW, why
Depends and not Depend ??)
- the current folder is not used anymore for the search of the external
libraries, I have to Append LIBPATH=['.', ] so that gcc linker searchs in
the correct place, this was not the case with the stable version of Scons.

I dumped the dependency tree in a file and here is an excerpt :
[E b C ] +-doc
[E B P C ] | +-doc/html
[E C ] | +-irt.doxyfile
[E ] | +-IRT.py
[E C ] | +-primitives.cpp
[E C ] | +-doxygen.py
[E C ] | +-simple_scene.h

The doc folder is a dependency of some files, but if I modify simple_scene.h
for instance, doxygen is not run. So the dependencies are accurate, but they
do not trigger a rebuild :(

Matthieu

2008/1/3, Matthieu Brucher <matthieu.brucher​@gmail.com>:
>
> Hi,
>
> Thank you for this, I thought I was using the last version on my Linux
> box, but it was the Windows box (without doxygen) that had it installed...
> I will try tomorrow :)
>
> Matthieu
>
> 2008/1/2, Robert Norton <rnorton at broadcom dot com>:
> >
> > Hi,
> >
> > From: Matthieu Brucher [mailto:matthieu.bru​cher at gmail dot com]
> > Sent: 28 December 2007 09:40
> > To: users at scons dot tigris dot org
> > Subject: Re: [scons-users] Problems with dependencies of
> > directory containing no files
> >
> >
> > Hi,
> >
> > In the same kind of questions, I wondered why the Doxygen
> > scanner did not add a dependency
> > over each file that would be used in the generation of the
> > documentation.
> >
> > This is what the code posted on the wiki was intended to do, however it
> > appears to be broken in scons builds before 0.97.0d20070918. Try
> > downloading and using the most recent checkpoint release and report back
> > with your experiences.
> >
> > Robert
> >
> > Each time I want to generate the docs, I have to remove the doc
> > folder and then call scons.
> > Is there a way to add those dependencies easily ? (I'm only a
> > basic Scons user so there is a
> > lot I don't know)
> >
> > Matthieu
> >
> >
> > 2007/12/20, Robert Norton < rnorton at broadcom dot com>:
> >
> > Hi,
> >
> > I tried using the doxygen builder from the wiki and
> > found that scons
> > didn't add the dependencies generated by the Doxygen
> > scanner to the
> > dependency tree, even though I could see that the
> > scanner was finding
> > them correctly. Another user has clearly had the same
> > problem:
> >
> >
> > http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955
> > <http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955 >
> >
> > After some digging I discovered that the problem is that
> > the doxygen
> > emitter didn't output any File nodes in its targets,
> > only Dir nodes. By
> > adding a fake File node to the list of targets (and
> > touching it in the
> > action) everything worked as expected.
> >
> > Is this indented behaviour? I can't see a good reason
> > why scons should
> > ignore the dependencies for the directories. I am using
> > scons 0.97 (and
> > get the same behaviour with recent checkpoint).
> >
> > To make this a little more concrete I put together a
> > small example in
> > the attached zip. The following is the output of scons
> > -n --debug=stree
> > before adding the fake target file (see line 162 in
> > doxygen.py):
> >
> > scons: Reading SConscript files ...
> > scons: done reading SConscript files.
> > scons: Building targets ...
> > scons: `.' is up to date.
> > E = exists
> > R = exists in repository only
> > b = implicit builder
> > B = explicit builder
> > S = side effect
> > P = precious
> > A = always build
> > C = current
> > N = no clean
> > H = no cache
> >
> > [E b C ]+-.
> > [E ] +-SConstruct
> > [E b C ] +-docs
> > [E B P C ] | +-docs/html
> > [E ] | | +-doxy.cfg
> > [E B P C ] | +-docs/latex
> > [E ] | +-doxy.cfg
> > [ ] +-doxy
> > [E ] +-doxy.cfg
> > scons: done building targets.
> >
> > and after:
> >
> > scons: Reading SConscript files ...
> > scons: done reading SConscript files.
> > scons: Building targets ...
> > scons: `.' is up to date.
> > E = exists
> > R = exists in repository only
> > b = implicit builder
> > B = explicit builder
> > S = side effect
> > P = precious
> > A = always build
> > C = current
> > N = no clean
> > H = no cache
> >
> > [E b C ]+-.
> > [E ] +-SConstruct
> > [E b C ] +-docs
> > [E B P C ] | +-docs/foobar
> > [E ] | | +-doxy.cfg
> > [E ] | | +-test.h
> > [E B P C ] | +-docs/html
> > [E ] | | +-doxy.cfg
> > [E ] | | +-test.h
> > [E B P C ] | +-docs/latex
> > [E ] | +-doxy.cfg
> > [E ] | +-test.h
> > [ ] +-doxy
> > [E ] +-doxy.cfg
> > scons: done building targets.
> >
> > Two things to note:
> >
> > 1) the dependencies for all the directories are now
> > correct (not just
> > the fake file)
> > 2) there is a spurious file 'doxy' in the tree.
> >
> > Is there a way to get rid of the spurious file?
> >
> > Thanks,
> >
> > Robert
> >
> >
> > --------------------​--------------------​--------------------​---------
> > To unsubscribe, e-mail:
> > users-unsubscribe@sc​ons.tigris.org
> > For additional commands, e-mail:
> > users-help at scons dot tigris dot org
> >
> >
> >
> >
> >
> >
> > --
> > French PhD student
> > Website : http://matthieu-bruc​her.developpez.com/
> > < http://matthieu-bruc​her.developpez.com/​>
> > Blogs : http://matt.eifelle.com and
> > http://blog.developp​ez.com/?blog=92
> > LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
> >
> >
> > --------------------​--------------------​--------------------​---------
> > To unsubscribe, e-mail: users-unsubscribe@sc​ons.tigris.org
> > For additional commands, e-mail: users-help at scons dot tigris dot org
> >
> >
>
>
> --
> French PhD student
> Website : http://matthieu-bruc​her.developpez.com/
> Blogs : http://matt.eifelle.com and http://blog.developp​ez.com/?blog=92
> LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
>



--
French PhD student
Website : http://matthieu-bruc​her.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developp​ez.com/?blog=92
LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
Attachments

Re: [scons-users] Problems with dependencies of directory containing no files

Author miles1981
Full name Matthieu Brucher
Date 2008-01-03 14:10:02 PST
Message Hi,

Thank you for this, I thought I was using the last version on my Linux box,
but it was the Windows box (without doxygen) that had it installed...
I will try tomorrow :)

Matthieu

2008/1/2, Robert Norton <rnorton at broadcom dot com>:
>
> Hi,
>
> From: Matthieu Brucher [mailto:matthieu.bru​cher at gmail dot com]
> Sent: 28 December 2007 09:40
> To: users at scons dot tigris dot org
> Subject: Re: [scons-users] Problems with dependencies of
> directory containing no files
>
>
> Hi,
>
> In the same kind of questions, I wondered why the Doxygen
> scanner did not add a dependency
> over each file that would be used in the generation of the
> documentation.
>
> This is what the code posted on the wiki was intended to do, however it
> appears to be broken in scons builds before 0.97.0d20070918. Try
> downloading and using the most recent checkpoint release and report back
> with your experiences.
>
> Robert
>
> Each time I want to generate the docs, I have to remove the doc
> folder and then call scons.
> Is there a way to add those dependencies easily ? (I'm only a
> basic Scons user so there is a
> lot I don't know)
>
> Matthieu
>
>
> 2007/12/20, Robert Norton <rnorton at broadcom dot com>:
>
> Hi,
>
> I tried using the doxygen builder from the wiki and
> found that scons
> didn't add the dependencies generated by the Doxygen
> scanner to the
> dependency tree, even though I could see that the
> scanner was finding
> them correctly. Another user has clearly had the same
> problem:
>
>
> http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955
> <http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955>
>
> After some digging I discovered that the problem is that
> the doxygen
> emitter didn't output any File nodes in its targets,
> only Dir nodes. By
> adding a fake File node to the list of targets (and
> touching it in the
> action) everything worked as expected.
>
> Is this indented behaviour? I can't see a good reason
> why scons should
> ignore the dependencies for the directories. I am using
> scons 0.97 (and
> get the same behaviour with recent checkpoint).
>
> To make this a little more concrete I put together a
> small example in
> the attached zip. The following is the output of scons
> -n --debug=stree
> before adding the fake target file (see line 162 in
> doxygen.py):
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: `.' is up to date.
> E = exists
> R = exists in repository only
> b = implicit builder
> B = explicit builder
> S = side effect
> P = precious
> A = always build
> C = current
> N = no clean
> H = no cache
>
> [E b C ]+-.
> [E ] +-SConstruct
> [E b C ] +-docs
> [E B P C ] | +-docs/html
> [E ] | | +-doxy.cfg
> [E B P C ] | +-docs/latex
> [E ] | +-doxy.cfg
> [ ] +-doxy
> [E ] +-doxy.cfg
> scons: done building targets.
>
> and after:
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: `.' is up to date.
> E = exists
> R = exists in repository only
> b = implicit builder
> B = explicit builder
> S = side effect
> P = precious
> A = always build
> C = current
> N = no clean
> H = no cache
>
> [E b C ]+-.
> [E ] +-SConstruct
> [E b C ] +-docs
> [E B P C ] | +-docs/foobar
> [E ] | | +-doxy.cfg
> [E ] | | +-test.h
> [E B P C ] | +-docs/html
> [E ] | | +-doxy.cfg
> [E ] | | +-test.h
> [E B P C ] | +-docs/latex
> [E ] | +-doxy.cfg
> [E ] | +-test.h
> [ ] +-doxy
> [E ] +-doxy.cfg
> scons: done building targets.
>
> Two things to note:
>
> 1) the dependencies for all the directories are now
> correct (not just
> the fake file)
> 2) there is a spurious file 'doxy' in the tree.
>
> Is there a way to get rid of the spurious file?
>
> Thanks,
>
> Robert
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail:
> users-unsubscribe@sc​ons.tigris.org
> For additional commands, e-mail:
> users-help at scons dot tigris dot org
>
>
>
>
>
>
> --
> French PhD student
> Website : http://matthieu-bruc​her.developpez.com/
> <http://matthieu-bruc​her.developpez.com/​>
> Blogs : http://matt.eifelle.com and
> http://blog.developp​ez.com/?blog=92
> LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@sc​ons.tigris.org
> For additional commands, e-mail: users-help at scons dot tigris dot org
>
>


--
French PhD student
Website : http://matthieu-bruc​her.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developp​ez.com/?blog=92
LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
Attachments

RE: [scons-users] Problems with dependencies of directory containing no files

Author Robert Norton <rnorton at broadcom dot com>
Full name Robert Norton <rnorton at broadcom dot com>
Date 2008-01-02 02:57:44 PST
Message Hi,

    From: Matthieu Brucher [mailto:matthieu.bru​cher at gmail dot com]
    Sent: 28 December 2007 09:40
    To: users at scons dot tigris dot org
    Subject: Re: [scons-users] Problems with dependencies of
directory containing no files
    
    
    Hi,
    
    In the same kind of questions, I wondered why the Doxygen
scanner did not add a dependency
      over each file that would be used in the generation of the
documentation.

This is what the code posted on the wiki was intended to do, however it
appears to be broken in scons builds before 0.97.0d20070918. Try
downloading and using the most recent checkpoint release and report back
with your experiences.

Robert

    Each time I want to generate the docs, I have to remove the doc
folder and then call scons.
      Is there a way to add those dependencies easily ? (I'm only a
basic Scons user so there is a
      lot I don't know)
    
    Matthieu
    
    
    2007/12/20, Robert Norton <rnorton at broadcom dot com>:

        Hi,
        
        I tried using the doxygen builder from the wiki and
found that scons
        didn't add the dependencies generated by the Doxygen
scanner to the
        dependency tree, even though I could see that the
scanner was finding
        them correctly. Another user has clearly had the same
problem:
        
    
http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955
<http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955>
        
        After some digging I discovered that the problem is that
the doxygen
        emitter didn't output any File nodes in its targets,
only Dir nodes. By
        adding a fake File node to the list of targets (and
touching it in the
        action) everything worked as expected.
        
        Is this indented behaviour? I can't see a good reason
why scons should
        ignore the dependencies for the directories. I am using
scons 0.97 (and
        get the same behaviour with recent checkpoint).
        
        To make this a little more concrete I put together a
small example in
        the attached zip. The following is the output of scons
-n --debug=stree
        before adding the fake target file (see line 162 in
doxygen.py):
        
        scons: Reading SConscript files ...
        scons: done reading SConscript files.
        scons: Building targets ...
        scons: `.' is up to date.
        E = exists
          R = exists in repository only
           b = implicit builder
           B = explicit builder
            S = side effect
             P = precious
              A = always build
               C = current
                N = no clean
                 H = no cache
        
        [E b C ]+-.
        [E ] +-SConstruct
        [E b C ] +-docs
        [E B P C ] | +-docs/html
        [E ] | | +-doxy.cfg
        [E B P C ] | +-docs/latex
        [E ] | +-doxy.cfg
        [ ] +-doxy
        [E ] +-doxy.cfg
        scons: done building targets.
        
        and after:
        
        scons: Reading SConscript files ...
        scons: done reading SConscript files.
        scons: Building targets ...
        scons: `.' is up to date.
        E = exists
          R = exists in repository only
           b = implicit builder
           B = explicit builder
            S = side effect
             P = precious
              A = always build
               C = current
                N = no clean
                 H = no cache
        
        [E b C ]+-.
        [E ] +-SConstruct
        [E b C ] +-docs
        [E B P C ] | +-docs/foobar
        [E ] | | +-doxy.cfg
        [E ] | | +-test.h
        [E B P C ] | +-docs/html
        [E ] | | +-doxy.cfg
        [E ] | | +-test.h
        [E B P C ] | +-docs/latex
        [E ] | +-doxy.cfg
        [E ] | +-test.h
        [ ] +-doxy
        [E ] +-doxy.cfg
        scons: done building targets.
        
        Two things to note:
        
        1) the dependencies for all the directories are now
correct (not just
        the fake file)
        2) there is a spurious file 'doxy' in the tree.
        
        Is there a way to get rid of the spurious file?
        
        Thanks,
        
        Robert
        
    
--------------------​--------------------​--------------------​---------
        To unsubscribe, e-mail:
users-unsubscribe@sc​ons.tigris.org
        For additional commands, e-mail:
users-help at scons dot tigris dot org
        
        




    --
    French PhD student
    Website : http://matthieu-bruc​her.developpez.com/
<http://matthieu-bruc​her.developpez.com/​>
    Blogs : http://matt.eifelle.com and
http://blog.developp​ez.com/?blog=92
    LinkedIn : http://www.linkedin.​com/in/matthieubruch​er

Re: [scons-users] Problems with dependencies of directory containing no files

Author miles1981
Full name Matthieu Brucher
Date 2007-12-28 01:40:06 PST
Message Hi,

In the same kind of questions, I wondered why the Doxygen scanner did not
add a dependency over each file that would be used in the generation of the
documentation.
Each time I want to generate the docs, I have to remove the doc folder and
then call scons. Is there a way to add those dependencies easily ? (I'm only
a basic Scons user so there is a lot I don't know)

Matthieu

2007/12/20, Robert Norton <rnorton at broadcom dot com>:
>
> Hi,
>
> I tried using the doxygen builder from the wiki and found that scons
> didn't add the dependencies generated by the Doxygen scanner to the
> dependency tree, even though I could see that the scanner was finding
> them correctly. Another user has clearly had the same problem:
>
> http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955
>
> After some digging I discovered that the problem is that the doxygen
> emitter didn't output any File nodes in its targets, only Dir nodes. By
> adding a fake File node to the list of targets (and touching it in the
> action) everything worked as expected.
>
> Is this indented behaviour? I can't see a good reason why scons should
> ignore the dependencies for the directories. I am using scons 0.97 (and
> get the same behaviour with recent checkpoint).
>
> To make this a little more concrete I put together a small example in
> the attached zip. The following is the output of scons -n --debug=stree
> before adding the fake target file (see line 162 in doxygen.py):
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: `.' is up to date.
> E = exists
> R = exists in repository only
> b = implicit builder
> B = explicit builder
> S = side effect
> P = precious
> A = always build
> C = current
> N = no clean
> H = no cache
>
> [E b C ]+-.
> [E ] +-SConstruct
> [E b C ] +-docs
> [E B P C ] | +-docs/html
> [E ] | | +-doxy.cfg
> [E B P C ] | +-docs/latex
> [E ] | +-doxy.cfg
> [ ] +-doxy
> [E ] +-doxy.cfg
> scons: done building targets.
>
> and after:
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: `.' is up to date.
> E = exists
> R = exists in repository only
> b = implicit builder
> B = explicit builder
> S = side effect
> P = precious
> A = always build
> C = current
> N = no clean
> H = no cache
>
> [E b C ]+-.
> [E ] +-SConstruct
> [E b C ] +-docs
> [E B P C ] | +-docs/foobar
> [E ] | | +-doxy.cfg
> [E ] | | +-test.h
> [E B P C ] | +-docs/html
> [E ] | | +-doxy.cfg
> [E ] | | +-test.h
> [E B P C ] | +-docs/latex
> [E ] | +-doxy.cfg
> [E ] | +-test.h
> [ ] +-doxy
> [E ] +-doxy.cfg
> scons: done building targets.
>
> Two things to note:
>
> 1) the dependencies for all the directories are now correct (not just
> the fake file)
> 2) there is a spurious file 'doxy' in the tree.
>
> Is there a way to get rid of the spurious file?
>
> Thanks,
>
> Robert
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@sc​ons.tigris.org
> For additional commands, e-mail: users-help at scons dot tigris dot org
>
>


--
French PhD student
Website : http://matthieu-bruc​her.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developp​ez.com/?blog=92
LinkedIn : http://www.linkedin.​com/in/matthieubruch​er
Attachments

RE: [scons-users] Problems with dependencies of directory containing no files

Author Robert Norton <rnorton at broadcom dot com>
Full name Robert Norton <rnorton at broadcom dot com>
Date 2007-12-24 08:39:45 PST
Message > -----Original Message-----
> From: Steven Knight [mailto:knight at baldmt dot com]
> Sent: 24 December 2007 14:37
> To: users at scons dot tigris dot org
> Subject: RE: [scons-users] Problems with dependencies of
> directory containing no files
>
> Hi Robert--
>
> > So did anyone try to reproduce my problem? Do you agree
> that it looks
> > like an SCons bug?
>
> I just tried it. It looks like this was fixed in 0.97.0d20070918 (but
> not in the checkpoint before that), most likely by the
> following change
> listed in the src/CHANGES.txt file:
>
> - When a file gets added to a directory, make sure the
> directory gets
> re-scanned for the new implicit dependency.
>
> When I run your configuration against 0.97.0d20070918 the
> --tree=status
> output shows both docs/html and docs/latex depend on the test.h file.

You are correct. I thought I had tested a recent checkpoint
release but apparently I was mistaken. My apologies for wasting your
valuable time.

Many thanks for your assistance.

> If the behavior you see varies, please open up a bug report at the
> tigris.org tracker, using guidelines at our bug submission page:
>
> http://scons.tigris.​org/bug-submission.h​tml
>
> (Messages only sent to the mailing list sometimes get overlooked.)

Noted for future reference.

Robert

> Thanks,
>
> --SK
>
> >> -----Original Message-----
> >> From: Robert Norton [mailto:rnorton at broadcom dot com]
> >> Sent: 20 December 2007 16:21
> >> To: users at scons dot tigris dot org
> >> Cc: Tim Woods
> >> Subject: [scons-users] Problems with dependencies of
> >> directory containing no files
> >>
> >> Hi,
> >>
> >> I tried using the doxygen builder from the wiki and found
> that scons
> >> didn't add the dependencies generated by the Doxygen scanner to the
> >> dependency tree, even though I could see that the scanner
> was finding
> >> them correctly. Another user has clearly had the same problem:
> >>
> >> http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955
> >>
> >> After some digging I discovered that the problem is that
> the doxygen
> >> emitter didn't output any File nodes in its targets, only Dir
> >> nodes. By
> >> adding a fake File node to the list of targets (and
> touching it in the
> >> action) everything worked as expected.
> >>
> >> Is this indented behaviour? I can't see a good reason why
> scons should
> >> ignore the dependencies for the directories. I am using scons
> >> 0.97 (and
> >> get the same behaviour with recent checkpoint).
> >>
> >> To make this a little more concrete I put together a small
> example in
> >> the attached zip. The following is the output of scons -n
> >> --debug=stree
> >> before adding the fake target file (see line 162 in doxygen.py):
> >>
> >> scons: Reading SConscript files ...
> >> scons: done reading SConscript files.
> >> scons: Building targets ...
> >> scons: `.' is up to date.
> >> E = exists
> >> R = exists in repository only
> >> b = implicit builder
> >> B = explicit builder
> >> S = side effect
> >> P = precious
> >> A = always build
> >> C = current
> >> N = no clean
> >> H = no cache
> >>
> >> [E b C ]+-.
> >> [E ] +-SConstruct
> >> [E b C ] +-docs
> >> [E B P C ] | +-docs/html
> >> [E ] | | +-doxy.cfg
> >> [E B P C ] | +-docs/latex
> >> [E ] | +-doxy.cfg
> >> [ ] +-doxy
> >> [E ] +-doxy.cfg
> >> scons: done building targets.
> >>
> >> and after:
> >>
> >> scons: Reading SConscript files ...
> >> scons: done reading SConscript files.
> >> scons: Building targets ...
> >> scons: `.' is up to date.
> >> E = exists
> >> R = exists in repository only
> >> b = implicit builder
> >> B = explicit builder
> >> S = side effect
> >> P = precious
> >> A = always build
> >> C = current
> >> N = no clean
> >> H = no cache
> >>
> >> [E b C ]+-.
> >> [E ] +-SConstruct
> >> [E b C ] +-docs
> >> [E B P C ] | +-docs/foobar
> >> [E ] | | +-doxy.cfg
> >> [E ] | | +-test.h
> >> [E B P C ] | +-docs/html
> >> [E ] | | +-doxy.cfg
> >> [E ] | | +-test.h
> >> [E B P C ] | +-docs/latex
> >> [E ] | +-doxy.cfg
> >> [E ] | +-test.h
> >> [ ] +-doxy
> >> [E ] +-doxy.cfg
> >> scons: done building targets.
> >>
> >> Two things to note:
> >>
> >> 1) the dependencies for all the directories are now
> correct (not just
> >> the fake file)
> >> 2) there is a spurious file 'doxy' in the tree.
> >>
> >> Is there a way to get rid of the spurious file?
> >>
> >> Thanks,
> >>
> >> Robert
> >>
> >
> >
> --------------------​--------------------​--------------------​---------
> > To unsubscribe, e-mail: users-unsubscribe@sc​ons.tigris.org
> > For additional commands, e-mail: users-help at scons dot tigris dot org
> >
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@sc​ons.tigris.org
> For additional commands, e-mail: users-help at scons dot tigris dot org
>
>
>

RE: [scons-users] Problems with dependencies of directory containing no files

Author stevenknight
Full name Steven Knight
Date 2007-12-24 06:36:39 PST
Message Hi Robert--

> So did anyone try to reproduce my problem? Do you agree that it looks
> like an SCons bug?

I just tried it. It looks like this was fixed in 0.97.0d20070918 (but
not in the checkpoint before that), most likely by the following change
listed in the src/CHANGES.txt file:

   - When a file gets added to a directory, make sure the directory gets
     re-scanned for the new implicit dependency.

When I run your configuration against 0.97.0d20070918 the --tree=status
output shows both docs/html and docs/latex depend on the test.h file.
If the behavior you see varies, please open up a bug report at the
tigris.org tracker, using guidelines at our bug submission page:

     http://scons.tigris.​org/bug-submission.h​tml

(Messages only sent to the mailing list sometimes get overlooked.)

Thanks,

         --SK

>> -----Original Message-----
>> From: Robert Norton [mailto:rnorton at broadcom dot com]
>> Sent: 20 December 2007 16:21
>> To: users at scons dot tigris dot org
>> Cc: Tim Woods
>> Subject: [scons-users] Problems with dependencies of
>> directory containing no files
>>
>> Hi,
>>
>> I tried using the doxygen builder from the wiki and found that scons
>> didn't add the dependencies generated by the Doxygen scanner to the
>> dependency tree, even though I could see that the scanner was finding
>> them correctly. Another user has clearly had the same problem:
>>
>> http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955
>>
>> After some digging I discovered that the problem is that the doxygen
>> emitter didn't output any File nodes in its targets, only Dir
>> nodes. By
>> adding a fake File node to the list of targets (and touching it in the
>> action) everything worked as expected.
>>
>> Is this indented behaviour? I can't see a good reason why scons should
>> ignore the dependencies for the directories. I am using scons
>> 0.97 (and
>> get the same behaviour with recent checkpoint).
>>
>> To make this a little more concrete I put together a small example in
>> the attached zip. The following is the output of scons -n
>> --debug=stree
>> before adding the fake target file (see line 162 in doxygen.py):
>>
>> scons: Reading SConscript files ...
>> scons: done reading SConscript files.
>> scons: Building targets ...
>> scons: `.' is up to date.
>> E = exists
>> R = exists in repository only
>> b = implicit builder
>> B = explicit builder
>> S = side effect
>> P = precious
>> A = always build
>> C = current
>> N = no clean
>> H = no cache
>>
>> [E b C ]+-.
>> [E ] +-SConstruct
>> [E b C ] +-docs
>> [E B P C ] | +-docs/html
>> [E ] | | +-doxy.cfg
>> [E B P C ] | +-docs/latex
>> [E ] | +-doxy.cfg
>> [ ] +-doxy
>> [E ] +-doxy.cfg
>> scons: done building targets.
>>
>> and after:
>>
>> scons: Reading SConscript files ...
>> scons: done reading SConscript files.
>> scons: Building targets ...
>> scons: `.' is up to date.
>> E = exists
>> R = exists in repository only
>> b = implicit builder
>> B = explicit builder
>> S = side effect
>> P = precious
>> A = always build
>> C = current
>> N = no clean
>> H = no cache
>>
>> [E b C ]+-.
>> [E ] +-SConstruct
>> [E b C ] +-docs
>> [E B P C ] | +-docs/foobar
>> [E ] | | +-doxy.cfg
>> [E ] | | +-test.h
>> [E B P C ] | +-docs/html
>> [E ] | | +-doxy.cfg
>> [E ] | | +-test.h
>> [E B P C ] | +-docs/latex
>> [E ] | +-doxy.cfg
>> [E ] | +-test.h
>> [ ] +-doxy
>> [E ] +-doxy.cfg
>> scons: done building targets.
>>
>> Two things to note:
>>
>> 1) the dependencies for all the directories are now correct (not just
>> the fake file)
>> 2) there is a spurious file 'doxy' in the tree.
>>
>> Is there a way to get rid of the spurious file?
>>
>> Thanks,
>>
>> Robert
>>
>
> --------------------​--------------------​--------------------​---------
> To unsubscribe, e-mail: users-unsubscribe@sc​ons.tigris.org
> For additional commands, e-mail: users-help at scons dot tigris dot org
>

RE: [scons-users] Problems with dependencies of directory containing no files

Author Robert Norton <rnorton at broadcom dot com>
Full name Robert Norton <rnorton at broadcom dot com>
Date 2007-12-24 01:44:44 PST
Message So did anyone try to reproduce my problem? Do you agree that it looks
like an SCons bug?

Robert

> -----Original Message-----
> From: Robert Norton [mailto:rnorton at broadcom dot com]
> Sent: 20 December 2007 16:21
> To: users at scons dot tigris dot org
> Cc: Tim Woods
> Subject: [scons-users] Problems with dependencies of
> directory containing no files
>
> Hi,
>
> I tried using the doxygen builder from the wiki and found that scons
> didn't add the dependencies generated by the Doxygen scanner to the
> dependency tree, even though I could see that the scanner was finding
> them correctly. Another user has clearly had the same problem:
>
> http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955
>
> After some digging I discovered that the problem is that the doxygen
> emitter didn't output any File nodes in its targets, only Dir
> nodes. By
> adding a fake File node to the list of targets (and touching it in the
> action) everything worked as expected.
>
> Is this indented behaviour? I can't see a good reason why scons should
> ignore the dependencies for the directories. I am using scons
> 0.97 (and
> get the same behaviour with recent checkpoint).
>
> To make this a little more concrete I put together a small example in
> the attached zip. The following is the output of scons -n
> --debug=stree
> before adding the fake target file (see line 162 in doxygen.py):
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: `.' is up to date.
> E = exists
> R = exists in repository only
> b = implicit builder
> B = explicit builder
> S = side effect
> P = precious
> A = always build
> C = current
> N = no clean
> H = no cache
>
> [E b C ]+-.
> [E ] +-SConstruct
> [E b C ] +-docs
> [E B P C ] | +-docs/html
> [E ] | | +-doxy.cfg
> [E B P C ] | +-docs/latex
> [E ] | +-doxy.cfg
> [ ] +-doxy
> [E ] +-doxy.cfg
> scons: done building targets.
>
> and after:
>
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> scons: `.' is up to date.
> E = exists
> R = exists in repository only
> b = implicit builder
> B = explicit builder
> S = side effect
> P = precious
> A = always build
> C = current
> N = no clean
> H = no cache
>
> [E b C ]+-.
> [E ] +-SConstruct
> [E b C ] +-docs
> [E B P C ] | +-docs/foobar
> [E ] | | +-doxy.cfg
> [E ] | | +-test.h
> [E B P C ] | +-docs/html
> [E ] | | +-doxy.cfg
> [E ] | | +-test.h
> [E B P C ] | +-docs/latex
> [E ] | +-doxy.cfg
> [E ] | +-test.h
> [ ] +-doxy
> [E ] +-doxy.cfg
> scons: done building targets.
>
> Two things to note:
>
> 1) the dependencies for all the directories are now correct (not just
> the fake file)
> 2) there is a spurious file 'doxy' in the tree.
>
> Is there a way to get rid of the spurious file?
>
> Thanks,
>
> Robert
>

Problems with dependencies of directory containing no files

Author Robert Norton <rnorton at broadcom dot com>
Full name Robert Norton <rnorton at broadcom dot com>
Date 2007-12-20 08:21:12 PST
Message Hi,

I tried using the doxygen builder from the wiki and found that scons
didn't add the dependencies generated by the Doxygen scanner to the
dependency tree, even though I could see that the scanner was finding
them correctly. Another user has clearly had the same problem:

http://scons.tigris.​org/servlets/ReadMsg​?listName=users&​msgNo=10955

After some digging I discovered that the problem is that the doxygen
emitter didn't output any File nodes in its targets, only Dir nodes. By
adding a fake File node to the list of targets (and touching it in the
action) everything worked as expected.

Is this indented behaviour? I can't see a good reason why scons should
ignore the dependencies for the directories. I am using scons 0.97 (and
get the same behaviour with recent checkpoint).

To make this a little more concrete I put together a small example in
the attached zip. The following is the output of scons -n --debug=stree
before adding the fake target file (see line 162 in doxygen.py):

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
 E = exists
  R = exists in repository only
   b = implicit builder
   B = explicit builder
    S = side effect
     P = precious
      A = always build
       C = current
        N = no clean
         H = no cache

[E b C ]+-.
[E ] +-SConstruct
[E b C ] +-docs
[E B P C ] | +-docs/html
[E ] | | +-doxy.cfg
[E B P C ] | +-docs/latex
[E ] | +-doxy.cfg
[ ] +-doxy
[E ] +-doxy.cfg
scons: done building targets.

and after:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
 E = exists
  R = exists in repository only
   b = implicit builder
   B = explicit builder
    S = side effect
     P = precious
      A = always build
       C = current
        N = no clean
         H = no cache

[E b C ]+-.
[E ] +-SConstruct
[E b C ] +-docs
[E B P C ] | +-docs/foobar
[E ] | | +-doxy.cfg
[E ] | | +-test.h
[E B P C ] | +-docs/html
[E ] | | +-doxy.cfg
[E ] | | +-test.h
[E B P C ] | +-docs/latex
[E ] | +-doxy.cfg
[E ] | +-test.h
[ ] +-doxy
[E ] +-doxy.cfg
scons: done building targets.

Two things to note:

1) the dependencies for all the directories are now correct (not just
the fake file)
2) there is a spurious file 'doxy' in the tree.

Is there a way to get rid of the spurious file?

Thanks,

Robert
Attachments
Messages per page: