Hi, Panu and me had a discussion related to automatic BuildRoot feature in the upcoming rpm. The plan is to actually obsolete BuildRoot tag from specs and to let decide rpm itself where the BuildRoot should be if not explicitely reconfigured.
https://fedoraproject.org/wiki/PackagingDrafts/BuildRoot proposes the following BuildRoots in specs: 1. %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 2. %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 3. %{_tmppath}/%{name}-%{version}-%{release}-root The problem is that the 1. buildroot would break rpm --short-circuit and requires mktemp. The others are quite acceptable, but here we go with another proposal: Let's add BUILDROOTS directory among others like RPMS, SOURCES, etc. to %{_topdir} and new %{_buildrootdir} variable originally pointing to %{_topdir}. So what I mean is to have: _buildrootdir %{_topdir}/BUILDROOTS _buildroot %{_buildrootdir}/%{name}-%{version}-%{release}-root or _buildroot %{_buildrootdir}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Opinions? Best, Jindrich -- Jindrich Novy <[EMAIL PROTECTED]> http://people.redhat.com/jnovy/ _______________________________________________ Rpm-maint mailing list Rpm-maint@lists.rpm.org https://lists.rpm.org/mailman/listinfo/rpm-maint