Fix perms on newrole so that objcopy can process it

Fixes:
 	File usr/bin/newrole is not stripped on all architectures (have [.gnu_debugdata])
This commit is contained in:
Petr Lautrbach 2018-12-14 13:16:41 +01:00
parent d378c732b0
commit d98f342921

View File

@ -140,6 +140,8 @@ make -C semodule-utils-%{version} PYTHON=%{__python3} DESTDIR="%{buildroot}" SBI
make -C restorecond-%{version} PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install
# Fix perms on newrole so that objcopy can process it
chmod 0755 %{buildroot}%{_bindir}/newrole
# Systemd
rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/restorecond