Fix gcc12 compilation issues

This commit is contained in:
xingwei 2023-06-30 12:39:09 +00:00
parent 5474682309
commit fa15538c98

View File

@ -1,6 +1,6 @@
Name: ypserv Name: ypserv
Version: 4.2 Version: 4.2
Release: 2 Release: 3
Summary: The NIS server Summary: The NIS server
License: GPLv2 License: GPLv2
URL: https://github.com/thkukuk/ypserv URL: https://github.com/thkukuk/ypserv
@ -56,6 +56,8 @@ export CFLAGS="$RPM_OPT_FLAGS -fpic"
export CFLAGS="$CFLAGS -Wno-error=strict-prototypes" export CFLAGS="$CFLAGS -Wno-error=strict-prototypes"
%endif %endif
export CFLAGS="$CFLAGS -Wno-format-overflow"
%configure --enable-checkroot --enable-fqdn --libexecdir=%{_libdir}/yp \ %configure --enable-checkroot --enable-fqdn --libexecdir=%{_libdir}/yp \
--with-dbmliborder=tokyocabinet --localstatedir=%{_localstatedir} --with-selinux --with-dbmliborder=tokyocabinet --localstatedir=%{_localstatedir} --with-selinux
%make_build %make_build
@ -109,6 +111,12 @@ install -m 644 etc/ypserv.conf %{buildroot}/%{_sysconfdir}
%{_mandir}/*/* %{_mandir}/*/*
%changelog %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 * Thu Apr 20 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 4.2-2
- Type:requirement - Type:requirement
- ID:NA - ID:NA