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

Ville Skyttä ville.skytta at iki.fi
Sun Mar 20 21:15:49 UTC 2005


On Sun, 2005-03-20 at 21:29 +0100, Michael Schwendt wrote:
> On Sun, 20 Mar 2005 21:47:45 +0200, Ville Skyttä wrote:
>
> > 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.
> 
> Right. Basically, it is wasted time to discuss it, since it should occur
> *very* rarely. The only difference is, operations below a path prefixed
> with an expanded %buildroot, which likely doesn't exist on machines
> other than the build system, are harmless, [...]

Well yes, kinda sorta, until people who rebuild packages for whatever
reason and follow good practices do it as non-root.  In those resulting
binaries, %buildroot is likely to be expanded
to /home/$builduser/some/thing which makes it more of a problem.




More information about the fedora-extras-list mailing list