Add -Wno-error=deprecated-declarations to CFLAGS to avoid build errors.

This commit is contained in:
Bojan Smojver 2021-11-11 07:06:43 +11:00
parent a47b67b6e7
commit 2cb0e78b53

View File

@ -13,7 +13,7 @@ Summary: Open source remote desktop protocol (RDP) server
Name: xrdp Name: xrdp
Epoch: 1 Epoch: 1
Version: 0.9.17 Version: 0.9.17
Release: 3%{?dist} Release: 4%{?dist}
License: ASL 2.0 and GPLv2+ and MIT License: ASL 2.0 and GPLv2+ and MIT
URL: http://www.xrdp.org/ URL: http://www.xrdp.org/
Source0: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/xrdp-%{version}.tar.gz Source0: https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/xrdp-%{version}.tar.gz
@ -105,6 +105,7 @@ echo '#!/bin/bash -l
. %{_libexecdir}/xrdp/startwm.sh' > sesman/startwm-bash.sh . %{_libexecdir}/xrdp/startwm.sh' > sesman/startwm-bash.sh
%build %build
CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" \
%configure --enable-fuse --enable-pixman --enable-painter --enable-vsock \ %configure --enable-fuse --enable-pixman --enable-painter --enable-vsock \
--with-socketdir=%{_rundir}/%{name} --with-socketdir=%{_rundir}/%{name}
%make_build %make_build
@ -281,6 +282,9 @@ fi
%{_datadir}/selinux/*/%{name}.pp %{_datadir}/selinux/*/%{name}.pp
%changelog %changelog
* Thu Nov 11 2021 Bojan Smojver <bojan@rexurive.com> - 1:0.9.17-4
- Add -Wno-error=deprecated-declarations to CFLAGS to avoid build errors
* Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 1:0.9.17-3 * Tue Sep 14 2021 Sahana Prasad <sahana@redhat.com> - 1:0.9.17-3
- Rebuilt with OpenSSL 3.0.0 - Rebuilt with OpenSSL 3.0.0