[Git][NTPsec/ntpsec][master] Add droproot support type to the configure summary report

Matt Selsky gitlab at mg.gitlab.com
Sat May 20 17:10:33 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
06faf186 by Matt Selsky at 2017-05-20T13:07:05-04:00
Add droproot support type to the configure summary report

We need to avoid removing the cache of DEFINES when we write the config.h

- - - - -


1 changed file:

- wscript


Changes:

=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -880,7 +880,7 @@ int main(int argc, char **argv) {
         ctx.define("BUILD_EPOCH", int(time.time()), comment="Using default")
 
     ctx.start_msg("Writing configuration header:")
-    ctx.write_config_header("config.h")
+    ctx.write_config_header("config.h", remove=False)
     ctx.end_msg("config.h", "PINK")
 
     def yesno(x):
@@ -895,6 +895,16 @@ int main(int argc, char **argv) {
     msg_setting("LDFLAGS", " ".join(ctx.env.LDFLAGS))
     msg_setting("LINKFLAGS_NTPD", " ".join(ctx.env.LINKFLAGS_NTPD))
     msg_setting("PREFIX", ctx.env.PREFIX)
+    droproot_type = ""
+    if ctx.is_defined("HAVE_LINUX_CAPABILITY"):
+        droproot_type = "Linux"
+    elif ctx.is_defined("HAVE_SOLARIS_PRIVS"):
+        droproot_type = "Solaris"
+    elif ctx.is_defined("HAVE_SYS_CLOCKCTL_H"):
+        droproot_type = "NetBSD"
+    else:
+        droproot_type = "None"
+    msg_setting("Droproot Support", droproot_type)
     msg_setting("Debug Support", yesno(ctx.options.enable_debug))
     msg_setting("Refclocks", ", ".join(ctx.env.REFCLOCK_LIST))
     msg_setting("Build Manpages",



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/06faf186db61629e40dfb9a21156f46115bbcb62

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/06faf186db61629e40dfb9a21156f46115bbcb62
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170520/57656924/attachment.html>


More information about the vc mailing list