[Git][NTPsec/ntpsec][master] Require refclock local when using NIST lockclock

Eric S. Raymond gitlab at mg.gitlab.com
Sun Nov 13 20:37:23 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
053c1ebe by Matt Selsky at 2016-11-13T15:35:28-05:00
Require refclock local when using NIST lockclock

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -394,7 +394,11 @@ def cmd_configure(ctx, config):
                 ctx.define("ENABLE_MSSNTP", 1, comment="Enable MS-SNTP extensions https://msdn.microsoft.com/en-us/library/cc212930.aspx")
 
         if ctx.options.enable_lockclock:
+            if ctx.env.REFCLOCK_LOCAL:
                 ctx.define("ENABLE_LOCKCLOCK", 1, comment="Enable NIST 'lockclock'")
+            else:
+                import waflib.Errors
+                raise waflib.Errors.WafError("NIST 'lockclock' requires refclock 'local'")
 
         if not ctx.options.disable_droproot:
                 ctx.define("ENABLE_DROPROOT", 1, comment="Drop root after initialising")



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/053c1ebe404a69407dbb7cf7d1bfe7d4efd26b69
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161113/105a9e90/attachment.html>


More information about the vc mailing list