From a519c169446c618079a9eb153f7a4a7c4fec6114 Mon Sep 17 00:00:00 2001 From: Marek Kulik Date: Tue, 1 Feb 2022 11:59:47 +0100 Subject: [PATCH] Fix gcc12 compilation issues Resolves: #2047138 --- ypserv.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ypserv.spec b/ypserv.spec index 70d3de6..767d172 100644 --- a/ypserv.spec +++ b/ypserv.spec @@ -2,7 +2,7 @@ Summary: The NIS (Network Information Service) server Url: http://www.linux-nis.org/nis/ypserv/index.html Name: ypserv Version: 4.2 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv2 Source0: https://github.com/thkukuk/%{name}/archive/v%{version}.tar.gz Source1: ypserv.service @@ -91,6 +91,8 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIC" export CFLAGS="$RPM_OPT_FLAGS -fpic" %endif +# Fix gcc12 issues (#2047138) +export CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -Wno-format-overflow" %configure \ --enable-checkroot \ @@ -173,6 +175,10 @@ install -m 755 %{SOURCE4} $RPM_BUILD_ROOT%{_libexecdir}/rpc.yppasswdd.env %{_includedir}/rpcsvc %changelog +* Tue Feb 01 2022 Marek Kulik - 4.2-4 +- Fix gcc12 compilation issues +- Resolves: #2047138 + * Sat Jan 22 2022 Fedora Release Engineering - 4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild