[Scons-users] sconsign db access -- different results from Dir() and File() apis

Jay Damask jaydamask at gmail.com
Mon Jun 3 15:50:11 EDT 2013


Hello,

I'm trying to learn how to access the persisted csig (let's say md5) info
from the .sconsign.dblite db. Please note that below I'm running from the
python command line. I'm finding different behavior running a custom.py via
scons, I will follow this post with another.

$ uname -a
Linux wdac-nyk-lx01 3.5.0-25-generic #39-Ubuntu SMP Mon Feb 25 18:26:58 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux
$ scons --version
SCons by Steven Knight et al.:
script: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu

Using the Dir api, I can exec:

# $ python

>>> import SCons, SCons.Script, SCons.Node

>>> d_rel_src =

SCons.Script.Dir('#src/build_comm_lib/communications/protocol_buffers')

>>> d_rel_src.sconsign().get_entry('epa.proto').ninfo.csig


and I get an md5 signature that is persisted in the db. I can inspect the
db via:

# $ sconsign -c .sconsign.dblite | less

and sure enough Dir-api md5 is there.

However, using the File api, I can exec:

# $ python

>>> import SCons, SCons.Script, SCons.Node

>>> f_rel_src =

SCons.Script.File('#src/build_comm_lib/communications/protocol_buffers/epa.proto')

>>> f_rel_src.get_csig()

or

>>> f_rel_src.get_ninfo().csig


and I get some other md5 code that matches nothing that I can determine. In
fact, I can change the source, epa.proto, and still the hash doesn't
change, which makes me think I'm hashing the path, but I have checked
abspath and relpath, no luck.

Is it evident to some of you why I'm getting different results?

Thank you,
-Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130603/b26e9011/attachment.html


More information about the Scons-users mailing list