summaryrefslogtreecommitdiff
path: root/net-misc/ntpsec/files/ntpsec-no-bsd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/ntpsec/files/ntpsec-no-bsd.patch')
-rw-r--r--net-misc/ntpsec/files/ntpsec-no-bsd.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/net-misc/ntpsec/files/ntpsec-no-bsd.patch b/net-misc/ntpsec/files/ntpsec-no-bsd.patch
new file mode 100644
index 000000000000..66dc9d34d2ef
--- /dev/null
+++ b/net-misc/ntpsec/files/ntpsec-no-bsd.patch
@@ -0,0 +1,35 @@
+--- a/wscript 2019-05-25 07:41:24.783651700 -0700
++++ b/wscript 2019-06-22 12:47:02.288170100 -0700
+@@ -305,12 +305,6 @@
+ ctx.check_cc(lib="m", comment="Math library")
+ ctx.check_cc(lib="rt", mandatory=False, comment="realtime library")
+ ctx.check_cc(lib="pthread", mandatory=False, comment="threads library")
+- ctx.check_cc(lib="execinfo", mandatory=False,
+- comment="BSD backtrace library")
+- ret = ctx.check_cc(lib="bsd", mandatory=False,
+- comment="BSD compatibility library")
+- if ret:
+- ctx.env.LDFLAGS += ["-lbsd"]
+
+ # -lssp and -lssp_nonshared may be needed by older gcc to
+ # support "-fstack-protector-all"
+@@ -682,19 +676,6 @@
+ prerequisites=ft[1], use=ft[2],
+ mandatory=ft[3])
+
+- # check for BSD versions outside of libc
+- if not ctx.get_define("HAVE_STRLCAT"):
+- ret = probe_function(ctx, function='strlcat',
+- prerequisites=['bsd/string.h'])
+- if ret:
+- ctx.define("HAVE_STRLCAT", 1, comment="Using bsd/strlcat")
+-
+- if not ctx.get_define("HAVE_STRLCPY"):
+- ret = probe_function(ctx, function='strlcpy',
+- prerequisites=['bsd/string.h'])
+- if ret:
+- ctx.define("HAVE_STRLCPY", 1, comment="Using bsd/strlcpy")
+-
+ # Nobody uses the symbol, but this seems like a good sanity check.
+ ctx.check_cc(header_name="stdbool.h", mandatory=True,
+ comment="Sanity check.")