Quickfix for SLES11 & kernel w/o SO_REUSEPORT

This commit is contained in:
Michael Friedrich 2019-02-26 12:36:41 +01:00
parent 035b314596
commit 589190ba1f

View File

@ -17,7 +17,7 @@
# * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * # * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
# ******************************************************************************/ # ******************************************************************************/
%define revision 1 %define revision 2
# make sure that _rundir is working on older systems # make sure that _rundir is working on older systems
%if ! %{defined _rundir} %if ! %{defined _rundir}
@ -302,6 +302,11 @@ Provides Nano syntax highlighting for icinga2.
find . -type f -name '*.sh' -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} \; find . -type f -name '*.sh' -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} \;
%endif %endif
# quick & dirty hack for SLES11 & Kernel < 2.9 w/o SO_REUSEPORT
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
find . -type f -name tcpsocket.cpp -exec sed -i -e 's|.*SO_REUSEPORT.*||g' {} \;
%endif
%build %build
# set basedir to allow cache to hit between different builds # set basedir to allow cache to hit between different builds
# this will make all paths below BUILD/icinga2-x.x.x relative for cache # this will make all paths below BUILD/icinga2-x.x.x relative for cache
@ -739,7 +744,10 @@ fi
%{_datadir}/nano/%{name}.nanorc %{_datadir}/nano/%{name}.nanorc
%changelog %changelog
* Tue Feb 25 2019 Michael Friedrich <michael.friedrich@icinga.com> 2.10.3-1 * Tue Feb 26 2019 Michael Friedrich <michael.friedrich@icinga.com> 2.10.3-2
- Apply quickfix for SLES11
* Tue Feb 26 2019 Michael Friedrich <michael.friedrich@icinga.com> 2.10.3-1
- Update to 2.10.3 - Update to 2.10.3
* Wed Nov 14 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.10.2-1 * Wed Nov 14 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.10.2-1