From b7ea8ae975f255306ec9ae9e11a64762dab7f64e Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Thu, 19 May 2016 13:04:12 +0200 Subject: [PATCH] Resolves: #1085389 - avoid failure of %check when building as root --- acl.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/acl.spec b/acl.spec index 2c4d436..3121acc 100644 --- a/acl.spec +++ b/acl.spec @@ -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 2.2.52-13 +- avoid failure of %%check when building as root (#1085389) + * Wed May 17 2017 Kamil Dudka 2.2.52-12 - fix spurious acl_check() failure on setfacl --restore (#1451826) - update project URL (#1418474)