Accepting request 399284 from home:berny:branches:Base:System

- sv-bug-48030-find-exec-plus-does-not-pass-all-arguments.patch:
  Add upstream patch to fix https://savannah.gnu.org/bugs/?48030

OBS-URL: https://build.opensuse.org/request/show/399284
OBS-URL: https://build.opensuse.org/package/show/Base:System/findutils?expand=0&rev=70
This commit is contained in:
2016-05-31 20:28:15 +00:00
committed by Git OBS Bridge
parent 93f389494d
commit 7e03d26c9d
3 changed files with 269 additions and 0 deletions

View File

@@ -34,6 +34,9 @@ Source0: http://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz
# adds a new option -xautofs to find to not descend into directories on autofs file systems
Patch0: findutils-4.4.2-xautofs.patch
# Upstream patch, to be removed with version 4.7.0.
Patch100: sv-bug-48030-find-exec-plus-does-not-pass-all-arguments.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# BuildRequire dejagnu for 'runtest' to execute all tests.
BuildRequires: dejagnu
@@ -63,6 +66,7 @@ useful for finding things on your system.
%prep
%setup -q
%patch0
%patch100
%build
%if 0%{?qemu_user_space_build}
@@ -76,6 +80,13 @@ export DEFAULT_ARG_SIZE="(31u * 1024u)"
make %{?_smp_mflags}
%check
if [ "%{version}" != '4.6.0' ]; then
echo "ERROR: remove this if-else-fi block from the spec file with findutils version >4.6.0." >&2
exit 1
else
# Make the test script added with 'sv-48030*.patch' executable.
chmod +x find/testsuite/sv-48030-exec-plus-bug.sh
fi
make check \
|| { cat tests/test-suite.log; exit 1; }