summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-24 21:06:20 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-24 21:07:00 -0400
commitcd5fac21940cf8460238bf9366087cfa40e2e614 (patch)
treec51e8c6423a07049d75867db1d0e48d3d5d5f5a7 /net-misc/ntp
parentdev-libs/wayland: Update for configure flag changes. (diff)
downloadgentoo-cd5fac21940cf8460238bf9366087cfa40e2e614.tar.gz
gentoo-cd5fac21940cf8460238bf9366087cfa40e2e614.tar.bz2
gentoo-cd5fac21940cf8460238bf9366087cfa40e2e614.zip
net-misc/ntp: fix pthread linkage errors when running tests #563922
Diffstat (limited to 'net-misc/ntp')
-rw-r--r--net-misc/ntp/files/ntp-4.2.8-sntp-test-pthreads.patch13
-rw-r--r--net-misc/ntp/ntp-4.2.8_p4.ebuild1
2 files changed, 14 insertions, 0 deletions
diff --git a/net-misc/ntp/files/ntp-4.2.8-sntp-test-pthreads.patch b/net-misc/ntp/files/ntp-4.2.8-sntp-test-pthreads.patch
new file mode 100644
index 000000000000..4f8d15ff854a
--- /dev/null
+++ b/net-misc/ntp/files/ntp-4.2.8-sntp-test-pthreads.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/563922
+http://bugs.ntp.org/show_bug.cgi?id=2906
+
+--- a/sntp/tests/Makefile.in
++++ b/sntp/tests/Makefile.in
+@@ -783,6 +783,7 @@ base_LDADD = \
+ $(LIBOPTS_LDADD) \
+ $(LDADD_LIBEVENT) \
+ $(top_builddir)/../libntp/libntp.a \
++ $(PTHREAD_LIBS) \
+ $(LDADD_LIBNTP) \
+ $(LDADD_NTP) \
+ $(NULL)
diff --git a/net-misc/ntp/ntp-4.2.8_p4.ebuild b/net-misc/ntp/ntp-4.2.8_p4.ebuild
index 69c2159d43b4..ae4fc76d8ec9 100644
--- a/net-misc/ntp/ntp-4.2.8_p4.ebuild
+++ b/net-misc/ntp/ntp-4.2.8_p4.ebuild
@@ -41,6 +41,7 @@ pkg_setup() {
src_prepare() {
epatch "${FILESDIR}"/${PN}-4.2.8-ipc-caps.patch #533966
+ epatch "${FILESDIR}"/${PN}-4.2.8-sntp-test-pthreads.patch #563922
append-cppflags -D_GNU_SOURCE #264109
# Make sure every build uses the same install layout. #539092
find sntp/loc/ -type f '!' -name legacy -delete || die