Le Mar 25 juillet 2006 12:42, Axel Thimm a écrit :
> Currently, if BuildRoot isn't defined, then "" is
used
Not always, if you use %{buildroot} w/o BuildRoot: tag it expands to
literally to itself, e.g. "%{buildroot}". At least with FC5's
rpm. Maybe previously it was effectively %{nil}.
That's actually a good argument to use %{buildroot} in every Fedora SPEC
file, if you don't have the risk of ovewriting / with it.
So my proposal would be:
1. add automatic buildroot to FC7 rpm (using mktemp and/or all the various
ways packages can collide with each other)
2. replace all the $BUILDROOT instances with %{buildroot} so even if
someone rebuilds a spec on pre-FC7 rpm as root he won't kill his system
Regards,
--
Nicolas Mailhot