Skip to content

Fix not strip files in centos7

Rubén Gonzalez requested to merge rgonzalez/cerbero:hotfix_centos into master

The commit 5a7d1973 that fixes rpmbuild, also introduces a bug in centos7. The files inside the RPM package are not stripped.

If %define debug_package %{nil} is used then %__spec_install_post doesn’t include __debug_install_post. And __debug_install_post includes the execution of /usr/lib/rpm/find-debuginfo.sh, which it is the one that extracts debug info from bins and libs.

Code from /usr/lib/rpm/macros

%__spec_install_post\
%{?__debug_package:%{__debug_install_post}}\
%{__arch_install_post}\
%{__os_install_post}\
%{nil}

Undefining _debugsource_packages and _debuginfo_subpackages the debuginfo and debugsource RPM packages are not generated and the rpmbuild process keeps extracting debug info from the files (find-debuginfo.sh is called).

Merge request reports