Chenxiong Qi wrote: > On Thu, Feb 8, 2018 at 9:09 PM, Miroslav Suchý <[email protected]> wrote: >> * rm -rf $RPM_BUILD_ROOT >> >> In the past, it was necessary to clean the buildroot at >> the beginning of %install and the end of %clean. This is >> no longer true and not needed since F12. > > Not needed in EL6 as well?
I don't think so.
redhat-rpm-config-9.0.3-51.el6.centos has the following
code in /usr/lib/rpm/redhat/macros:
#---------------------------------------------------------------------
# Expanded at beginning of %install scriptlet.
#
%__spec_install_pre %{___build_pre}\
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "${RPM_BUILD_ROOT}"\
mkdir -p `dirname "$RPM_BUILD_ROOT"`\
mkdir "$RPM_BUILD_ROOT"\
%{nil}
But if I'm reading things incorrectly, I welcome corrections
from the real rpm experts here. :)
--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Suppose I were a member of Congress, and suppose I were an idiot. But,
I repeat myself.
-- Mark Twain
signature.asc
Description: PGP signature
_______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
