From cb0a6695c8de45326902a5262207507b5a5a3303 Mon Sep 17 00:00:00 2001 From: chengyechun Date: Sat, 26 Aug 2023 16:27:05 +0800 Subject: [PATCH] prevent build failures --- ntp.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ntp.spec b/ntp.spec index 6181d58..0c77907 100644 --- a/ntp.spec +++ b/ntp.spec @@ -2,7 +2,7 @@ Name: ntp Version: 4.2.8p17 -Release: 1 +Release: 2 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-MD5-manpage.patch Patch5: backport-add-NULL-pointer-check-when-ntpd-deletes-the-last-interface.patch BuildRequires: libcap-devel openssl-devel libedit-devel libevent-devel pps-tools-devel -BuildRequires: autogen autogen-libopts-devel systemd gcc perl-generators perl-HTML-Parser +BuildRequires: autogen autogen-libopts-devel systemd gcc perl-generators perl-HTML-Parser libtool Requires(pre): shadow-utils autogen >= 5.18.16 %{?systemd_requires} Recommends: ntpstat timedatex @@ -64,6 +64,8 @@ for f in COPYRIGHT; do iconv -f iso8859-1 -t utf8 -o ${f}{_,} && touch -r ${f}{,_} && mv -f ${f}{_,} done +./bootstrap + %build sed -i 's|$CFLAGS -Wstrict-overflow|$CFLAGS|' configure sntp/configure export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fno-strict-overflow" @@ -207,6 +209,12 @@ make check %{_mandir}/man8/*.8* %changelog +* Sat Aug 26 2023 chengyechun - 4.2.8p17-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:run the bootstrap script to prevent build failures + * Fri Jul 21 2023 chengyechun - 4.2.8p17-1 - Type:enhancement - ID: -- Gitee