$RPM_BUILD_ROOT vs. %buildroot (was: Re: potential candidates for contribution)

Ville Skyttä ville.skytta at iki.fi
Sun Mar 20 19:47:45 UTC 2005


On Sun, 2005-03-20 at 20:13 +0100, Rudolf Kastl wrote:
> Am Donnerstag, den 17.03.2005, 14:42 +0100 schrieb Michael Schwendt:
>
> > [As a side-note, using $RPM_BUILD_ROOT has been particularly dangerous in
> > a few cases, where it appeared in scriptlets.]
> 
> this is a good argument so i might switch to a pure macro style.

You're missing an important point.  That value expanded doesn't really
make things much better.  Put $RPM_BUILD_ROOT or %{buildroot} in a %post
or friends scriptlet and it's a packaging bug anyway, and a potentially
dangerous one.  Pick your poison.




More information about the fedora-extras-list mailing list