From c7699fb1acd71eaacf494811025f97b6c7bb42c5 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Fri, 17 Jun 2016 14:43:32 +0200 Subject: [PATCH] findutils.spec: use out of source build --- findutils.spec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/findutils.spec b/findutils.spec index ea9c9b7..aa0ef9b 100644 --- a/findutils.spec +++ b/findutils.spec @@ -80,20 +80,20 @@ autoreconf -fiv # prevent test-isinf from failing with gcc-5.3.1 on ppc64le (#1294016) export CFLAGS="$RPM_OPT_FLAGS -D__SUPPORT_SNAN__" +mkdir build +cd build +ln -s ../configure %configure -# uncomment to turn off optimizations -#find -name Makefile | xargs sed -i 's/-O2/-O0/' - make %{?_smp_mflags} %check -make %{?_smp_mflags} check +make %{?_smp_mflags} check -C build %install -make install DESTDIR=$RPM_BUILD_ROOT +%make_install -C build -rm -f $RPM_BUILD_ROOT%{_infodir}/dir +rm -f %{buildroot}%{_infodir}/dir %find_lang %{name} @@ -122,6 +122,7 @@ fi %changelog * Fri Jun 17 2016 Kamil Dudka - 1:4.6.0-6 +- use out of source build - avoid SIGSEGV in case the internal -noop option is used (#1346471) * Tue May 31 2016 Kamil Dudka - 1:4.6.0-5