summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-24 21:06:40 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-24 21:07:00 -0400
commitce8b45e26a3e4cea48f6e7ff7faa2125ba32a96c (patch)
tree53965ca9b69a1f7f66bb1741213d98c6842da88d /net-misc/ntp
parentnet-misc/ntp: fix pthread linkage errors when running tests #563922 (diff)
downloadgentoo-ce8b45e26a3e4cea48f6e7ff7faa2125ba32a96c.tar.gz
gentoo-ce8b45e26a3e4cea48f6e7ff7faa2125ba32a96c.tar.bz2
gentoo-ce8b45e26a3e4cea48f6e7ff7faa2125ba32a96c.zip
net-misc/ntp: fix ntpd test link errors
Diffstat (limited to 'net-misc/ntp')
-rw-r--r--net-misc/ntp/files/ntp-4.2.8-ntpd-test-signd.patch21
-rw-r--r--net-misc/ntp/ntp-4.2.8_p4.ebuild1
2 files changed, 22 insertions, 0 deletions
diff --git a/net-misc/ntp/files/ntp-4.2.8-ntpd-test-signd.patch b/net-misc/ntp/files/ntp-4.2.8-ntpd-test-signd.patch
new file mode 100644
index 000000000000..403b2d589bee
--- /dev/null
+++ b/net-misc/ntp/files/ntp-4.2.8-ntpd-test-signd.patch
@@ -0,0 +1,21 @@
+http://bugs.ntp.org/show_bug.cgi?id=2951
+
+--- a/tests/ntpd/Makefile.in
++++ b/tests/ntpd/Makefile.in
+@@ -205,7 +205,7 @@ test_ntp_scanner_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+ -o $@
+ am_test_ntp_signd_OBJECTS = t-ntp_signd.$(OBJEXT) \
+ run-t-ntp_signd.$(OBJEXT) test-libntp.$(OBJEXT) \
+- ntp_signd.$(OBJEXT) $(am__objects_1)
++ $(am__objects_1)
+ test_ntp_signd_OBJECTS = $(am_test_ntp_signd_OBJECTS)
+ test_ntp_signd_DEPENDENCIES = $(am__DEPENDENCIES_3) \
+ $(top_builddir)/ntpd/ntp_config.o \
+@@ -871,7 +871,6 @@ test_ntp_signd_SOURCES = \
+ t-ntp_signd.c \
+ run-t-ntp_signd.c \
+ $(srcdir)/../libntp/test-libntp.c \
+- $(srcdir)/../../ntpd/ntp_signd.c \
+ $(NULL)
+
+
diff --git a/net-misc/ntp/ntp-4.2.8_p4.ebuild b/net-misc/ntp/ntp-4.2.8_p4.ebuild
index ae4fc76d8ec9..4bfcda085fa7 100644
--- a/net-misc/ntp/ntp-4.2.8_p4.ebuild
+++ b/net-misc/ntp/ntp-4.2.8_p4.ebuild
@@ -42,6 +42,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
+ epatch "${FILESDIR}"/${PN}-4.2.8-ntpd-test-signd.patch
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