[Fedora-packaging] Re: buildroot race condition

Ville Skyttä ville.skytta at iki.fi
Tue Mar 13 20:51:09 UTC 2007

On Tuesday 13 March 2007, Enrico Scholz wrote:
> > The solution is to make the following mandatory:
> > %install
> > rm -rf $RPM_BUILD_ROOT
> > mkdir $RPM_BUILD_ROOT # this fails when $RPM_BUILD_ROOT already exists
> Will work;

...but will break in setups where some subdirs of $RPM_BUILD_ROOT are missing 
before %install.  This wouldn't suffer from that drawback:

mkdir -p $(dirname $RPM_BUILD_ROOT) ; mkdir $RPM_BUILD_ROOT

More information about the Fedora-packaging mailing list