Resolves: #1085389 - avoid failure of %check when building as root

This commit is contained in:
Kamil Dudka 2016-05-19 13:04:12 +02:00
parent e65b1249cb
commit b7ea8ae975
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Summary: Access control list utilities
Name: acl
Version: 2.2.52
Release: 12%{?dist}
Release: 13%{?dist}
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gawk
BuildRequires: gettext
@ -78,6 +78,11 @@ make %{?_smp_mflags}
if ./setfacl/setfacl -m u:`id -u`:rwx .; then
make tests || exit $?
if test 0 = `id -u`; then
# test/root/permissions.test requires the 'daemon' user to be a member
# of the 'bin' group in order not to fail. Prevent the test from
# running if we detect that its requirements are not met (#1085389).
id -nG daemon | grep bin >/dev/null || rm -f test/root/permissions.test
make root-tests || exit $?
fi
else
@ -126,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}*
%{_libdir}/libacl.so.*
%changelog
* Thu Jun 22 2017 Kamil Dudka <kdudka@redhat.com> 2.2.52-13
- avoid failure of %%check when building as root (#1085389)
* Wed May 17 2017 Kamil Dudka <kdudka@redhat.com> 2.2.52-12
- fix spurious acl_check() failure on setfacl --restore (#1451826)
- update project URL (#1418474)