[Scons-users] Having issue with scanner in Command()

Bill Deegan bill at baddogconsulting.com
Fri May 4 11:40:56 EDT 2018


Jason,

I"m not aware of a Makefile scanner.

What's in variable 'copyed'?

Can you paste output of --tree=prune?
-Bill

On Fri, May 4, 2018 at 10:31 AM, Jason Kenny <dragon512 at live.com> wrote:

> Hi,
>
> I am setting up a build with SCons that has to build openssl. I am using
> the Command() logic to call the native build system. I am having an issue
> with this code wanting to rebuild because of a file "crypto/buildinf.h" is
> rebuilt as part of the process with a new date value/ This causes SCons to
> say stuff needs to be rebuilt. The issue here is an odd circular reference
> that is forming up and I am unclear on what is adding it at this time. I am
> hoping before I dig to deep into this that some one might know, or have
> some idea on what is happening. Details
>
> I have a two commands:
>
> out = env.Command(
> ["Makefile"],
> copyed,
> "cd ${TARGET.dir} ; ./Configure -DSSL_ALLOW_ADH enable-ec_nistp_64_gcc_128
> \
> --prefix=${ABSPATH('#_makeinstall')}/${PART_NAME}\
> --openssldir=${ABSPATH('#_makeinstall')}/${PART_NAME} linux-x86_64 shared\
> "
> )
>
> Then I have a command
> env.Ignore(out, ["crypto/buildinf.h"])
>
> env.Command(
> [
> env.File("crypto/buildinf.h"),
> "#_makeinstall/${PART_NAME}/bin/c_rehash",
> ...
> ],
> ["Makefile"],
> [
> "cd ${{SOURCE.dir}} ; make all CC=${{CC}} CXX=${{CXX}} $(-j{jobs}$)"
> .format(jobs=env.GetOption('num_jobs')),
> "cd ${SOURCE.dir} ; make install"
> ] )
>
> What is happening is that after the first run Scons will tell me it needs
> to rebuild because:
>
> scons: rebuilding `_build/build_debug_posix-x86_64/openssl/Makefile'
> because `_build/build_debug_posix-x86_64/openssl/crypto/buildinf.h'
> changed
>
> I have an Ignore line that should remove this... What is odd for me is
> that the next build command is run because:
> scons: rebuilding `_build/build_debug_posix-x86_
> 64/openssl/crypto/buildinf.h' because `_build/build_debug_posix-x86_
> 64/openssl/Makefile' changed
>
> I seem to have a cycle of some kind. I am unclear on how to break it.
>
> I am unclear on what scanner is adding this depends in Command. Do we have
> a generic Makefile scanner??
> Any thoughts??
>
> Jason
>
>
> _______________________________________________
> 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/20180504/1c4c9919/attachment.html>


More information about the Scons-users mailing list