!14 Fix gcc12 compilation issues

From: @XWwalker 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2023-07-04 01:38:18 +00:00 committed by Gitee
commit 6dd2bd55ac
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <xingwei14@h-partners.com> - 4.2-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Fix gcc12 compilation issues
* Thu Apr 20 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 4.2-2
- Type:requirement
- ID:NA