commit: 494143c3b4921a5c8b8596d58f2c8b98296bf688 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> AuthorDate: Wed Mar 22 18:52:01 2017 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Wed Mar 22 18:52:01 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=494143c3
net-misc/ntp: Add patch to fix build with gcc-4.9 Upstream somehow dropped -fPIC on the ntpq libraries, this breaks build with gcc-4.9 (current stable). This adds the calculated NTP_HARD_CFLAGS to the CFLAGS for ntpq, which includes -fPIC if configure decides it's needed. Package-Manager: Portage-2.3.5, Repoman-2.3.2 net-misc/ntp/files/ntp-4.2.8_p10-ntpq-fpic.patch | 11 +++++++++++ net-misc/ntp/ntp-4.2.8_p10.ebuild | 1 + 2 files changed, 12 insertions(+) diff --git a/net-misc/ntp/files/ntp-4.2.8_p10-ntpq-fpic.patch b/net-misc/ntp/files/ntp-4.2.8_p10-ntpq-fpic.patch new file mode 100644 index 00000000000..dcf75d25bf9 --- /dev/null +++ b/net-misc/ntp/files/ntp-4.2.8_p10-ntpq-fpic.patch @@ -0,0 +1,11 @@ +--- ntp-4.2.8p10.orig/ntpq/Makefile.am 2017-03-21 06:04:21.000000000 -0700 ++++ ntp-4.2.8p10/ntpq/Makefile.am 2017-03-22 11:45:48.946630492 -0700 +@@ -23,7 +23,7 @@ + ntpq_LDADD += $(LDADD_NTP) + noinst_HEADERS= ntpq.h + noinst_LIBRARIES= libntpq.a +-libntpq_a_CFLAGS= -DNO_MAIN_ALLOWED -DBUILD_AS_LIB ++libntpq_a_CFLAGS= $(NTP_HARD_CFLAGS) -DNO_MAIN_ALLOWED -DBUILD_AS_LIB + CLEANFILES= + DISTCLEANFILES= .version version.c config.log $(man_MANS) + ETAGS_ARGS= Makefile.am diff --git a/net-misc/ntp/ntp-4.2.8_p10.ebuild b/net-misc/ntp/ntp-4.2.8_p10.ebuild index 89b01a6058f..31948a88e5b 100644 --- a/net-misc/ntp/ntp-4.2.8_p10.ebuild +++ b/net-misc/ntp/ntp-4.2.8_p10.ebuild @@ -39,6 +39,7 @@ S=${WORKDIR}/${MY_P} PATCHES=( "${FILESDIR}"/${PN}-4.2.8-ipc-caps.patch #533966 "${FILESDIR}"/${PN}-4.2.8-sntp-test-pthreads.patch #563922 + "${FILESDIR}"/${PN}-4.2.8_p10-ntpq-fpic.patch ) pkg_setup() {