From fa15538c98c34d94b6943a53d0167bb86bd0ef4e Mon Sep 17 00:00:00 2001 From: xingwei Date: Fri, 30 Jun 2023 12:39:09 +0000 Subject: [PATCH] Fix gcc12 compilation issues --- ypserv.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ypserv.spec b/ypserv.spec index 9ffed25..cd92b2b 100644 --- a/ypserv.spec +++ b/ypserv.spec @@ -1,6 +1,6 @@ Name: ypserv Version: 4.2 -Release: 2 +Release: 3 Summary: The NIS server License: GPLv2 URL: https://github.com/thkukuk/ypserv @@ -56,6 +56,8 @@ export CFLAGS="$RPM_OPT_FLAGS -fpic" export CFLAGS="$CFLAGS -Wno-error=strict-prototypes" %endif +export CFLAGS="$CFLAGS -Wno-format-overflow" + %configure --enable-checkroot --enable-fqdn --libexecdir=%{_libdir}/yp \ --with-dbmliborder=tokyocabinet --localstatedir=%{_localstatedir} --with-selinux %make_build @@ -109,6 +111,12 @@ install -m 644 etc/ypserv.conf %{buildroot}/%{_sysconfdir} %{_mandir}/*/* %changelog +* Fri Jun 30 2023 xingwei - 4.2-3 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:Fix gcc12 compilation issues + * Thu Apr 20 2023 jammyjellyfish - 4.2-2 - Type:requirement - ID:NA