[Build-common-hackers] a WAF class for CDBS

Rémi Thebault remi.thebault at gmail.com
Wed Dec 29 18:39:02 UTC 2010

> Here's a proposed pseudo-code:
> If not safetybelt-off; then
>    do-checksum
>    mesg checksum
>    if checksum-match-fail (including no stored checksum at all); then
>      unpack-waf
>      error "waf checksum failed. inspect unpacked waf, and if ok
>             store above calculated checksum as debian/waf.sha1sum
>             and remove the unpacked files"
> else
>    warning "WARNING: waf file is executed without prior inspection!
>             this might be unsafe - you have been warned...!"

It's now implemented in waf.mk.in.
unpack is done by a separate python script. (still must I test it on
various waf versions).

I just have a little concern : the messages are drawn in too many output
since I do the tests with shell if and everything is echoed.
I could put all those test and unpacking in a separate shell script and
echo only what I need. Or do you prefer implementation only in
makefile ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20101229/0cdb5028/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/build-common-hackers/attachments/20101229/0cdb5028/attachment.pgp>

More information about the Build-common-hackers mailing list