From 34cc2054b7568b13a9ecc77e0d8cbcebcd00031e Mon Sep 17 00:00:00 2001 From: gym369 Date: Sat, 16 Apr 2022 03:56:33 +0800 Subject: [PATCH] fix build error --- ntp.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ntp.spec b/ntp.spec index f4f3cab..782df9c 100644 --- a/ntp.spec +++ b/ntp.spec @@ -2,7 +2,7 @@ Name: ntp Version: 4.2.8p15 -Release: 6 +Release: 7 Summary: A protocol designed to synchronize the clocks of computers over a network License: MIT and BSD and BSD with advertising URL: https://www.ntp.org/ @@ -27,7 +27,7 @@ Patch4: fix-multiple-defination-with-gcc-10.patch Patch5: Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch Patch6: fix-MD5-manpage.patch -BuildRequires: libcap-devel openssl-devel libedit-devel libevent-devel pps-tools-devel +BuildRequires: libcap-devel openssl-devel libedit-devel libevent-devel pps-tools-devel libtool BuildRequires: autogen autogen-libopts-devel systemd gcc perl-generators perl-HTML-Parser Requires(pre): shadow-utils autogen >= 5.18.16 %{?systemd_requires} @@ -66,6 +66,7 @@ for f in COPYRIGHT; do done %build +./bootstrap sed -i 's|$CFLAGS -Wstrict-overflow|$CFLAGS|' configure sntp/configure export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fno-strict-overflow" %configure \ @@ -208,6 +209,9 @@ make check %{_mandir}/man8/*.8* %changelog +* Sat Apr 16 2022 gym369 - 4.2.8p15-7 +- Fix build + * Fri Dec 3 2021 renmingshuai - 4.2.8p15-6 - Type:bugfix - ID:NA -- Gitee