fix RPATH rpminspect reports

This commit is contained in:
Lukáš Zaoral 2023-10-06 17:29:05 +02:00 committed by Vasily Kleschov
parent 750a03c708
commit 07ccaae7f9
2 changed files with 17 additions and 6 deletions

1
.acl.metadata Normal file
View File

@ -0,0 +1 @@
6c9e46602adece1c2dae91ed065899d7f810bf01 acl-2.2.53.tar.gz

View File

@ -1,9 +1,9 @@
Summary: Access control list utilities
Name: acl
Version: 2.2.53
Release: 2%{?dist}
Release: 3%{?dist}
BuildRequires: gawk
BuildRequires: gettext
BuildRequires: gettext-devel
BuildRequires: libattr-devel
BuildRequires: libtool
Requires: libacl = %{version}-%{release}
@ -12,9 +12,12 @@ Source: https://download-mirror.savannah.gnu.org/releases/acl/acl-%{version}.tar
License: GPLv2+
URL: https://savannah.nongnu.org/projects/acl
# avoid permission denied problem with LD_PRELOAD in the test-suite
Patch1: 0001-acl-2.2.53-test-runwrapper.patch
# preserve failed setfacl return code (RHEL-3909)
# https://git.savannah.nongnu.org/cgit/acl.git/commit/?id=7ce89c695e76ec41fcebd83f8b728f63b0361a2d
Patch1: 0001-acl-2.2.53-setfacl-preserve-failed-status.patch
Patch2: 0001-acl-2.2.53-setfacl-preserve-failed-status.patch
%description
This package contains the getfacl and setfacl utilities needed for
@ -45,6 +48,9 @@ defined in POSIX 1003.1e draft standard 17.
%prep
%autosetup -p1
# newer autoconf fixes rpath warnings from rpminspect
autoreconf -fvi
%build
%configure
@ -52,7 +58,7 @@ defined in POSIX 1003.1e draft standard 17.
# sed -i 's/-O2/-O0/' libtool include/builddefs
# unset CFLAGS
make %{?_smp_mflags}
%make_build
%check
if ./setfacl -m "u:$(id -u):rwx" .; then
@ -73,14 +79,14 @@ if ./setfacl -m "u:$(id -u):rwx" .; then
fi
# run the upstream test-suite
make check || exit $?
%make_build check || exit $?
else
echo '*** ACLs are probably not supported by the file system,' \
'the test-suite will NOT run ***'
fi
%install
make install DESTDIR=$RPM_BUILD_ROOT
%make_install
# get rid of libacl.a and libacl.la
rm -f $RPM_BUILD_ROOT%{_libdir}/libacl.a
@ -117,6 +123,10 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}*
%{_libdir}/libacl.so.*
%changelog
* Fri Oct 06 2023 Lukáš Zaoral <lzaoral@redhat.com> - 2.2.53-3
- fix RPATH rpminspect reports
- actually apply an included patch
* Fri Oct 06 2023 Lukáš Zaoral <lzaoral@redhat.com> - 2.2.53-2
- preserve failed setfacl return code (RHEL-3909)