Skip to content

Commit

Permalink
net-misc/ntp: fix pthread linkage errors when running tests #563922
Browse files Browse the repository at this point in the history
  • Loading branch information
vapier committed Oct 25, 2015
1 parent 25d0882 commit cd5fac2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions net-misc/ntp/files/ntp-4.2.8-sntp-test-pthreads.patch
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions net-misc/ntp/ntp-4.2.8_p4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd5fac2

Please sign in to comment.