commit:     e224dd523ebe4fd061e3137c24e9dcd4788a65a2
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  5 16:20:12 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Jun  5 16:20:12 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e224dd52

net-misc/ntp: pass --with-hardenfile=/dev/null to configure

The NTP build system has a script that adds platform-specific "hardening"
flags to CFLAGS. Disable this behavior and respect the user's CFLAGS.

Closes: https://bugs.gentoo.org/895802
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 net-misc/ntp/{ntp-4.2.8_p16.ebuild => ntp-4.2.8_p16-r1.ebuild} | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net-misc/ntp/ntp-4.2.8_p16.ebuild 
b/net-misc/ntp/ntp-4.2.8_p16-r1.ebuild
similarity index 97%
rename from net-misc/ntp/ntp-4.2.8_p16.ebuild
rename to net-misc/ntp/ntp-4.2.8_p16-r1.ebuild
index 8ab34a0081da..bcd2887e326e 100644
--- a/net-misc/ntp/ntp-4.2.8_p16.ebuild
+++ b/net-misc/ntp/ntp-4.2.8_p16-r1.ebuild
@@ -82,6 +82,9 @@ src_configure() {
                # Increase the default memlimit from 32MiB to 128MiB, bug 
#533232
                --with-memlock=256
 
+               # Avoid overriding the user's toolchain settings, bug #895802
+               --with-hardenfile=/dev/null
+
                $(use_enable caps linuxcaps)
                $(use_enable parse-clocks)
                $(use_enable ipv6)

Reply via email to