summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Arnold <nerdboy@gentoo.org>2019-08-04 21:58:15 -0700
committerStephen Arnold <nerdboy@gentoo.org>2019-08-04 21:59:18 -0700
commita9623dcbb24918843d9454ae04b6b277d25fa2ab (patch)
tree599b5917b950340936dc44feed94fc8ced7f2e58 /net-misc/ntpsec/files
parentapp-crypt/yubikey-manager-qt: remove old (diff)
downloadgentoo-a9623dcbb24918843d9454ae04b6b277d25fa2ab.tar.gz
gentoo-a9623dcbb24918843d9454ae04b6b277d25fa2ab.tar.bz2
gentoo-a9623dcbb24918843d9454ae04b6b277d25fa2ab.zip
net-misc/ntpsec: update ebuilds and use flags, fix for bug #685456
* (modified) patch supplied by James Browning <jamesb.fe80@gmail.com> only applies to 1.1.4 and up * remove obsolete configure option from 1.1.6 and up Package-Manager: Portage-2.3.67, Repoman-2.3.12 Signed-off-by: Steve Arnold <nerdboy@gentoo.org>
Diffstat (limited to 'net-misc/ntpsec/files')
-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.")