[Fedora-packaging] buildroot race condition

Till Maas opensource at till.name
Mon Mar 12 20:29:44 UTC 2007


Hello,

an OpenSUSE packager made me aware of a race condition problem with a lot of 
fedora specs:

http://lists.opensuse.org/opensuse-packaging/2007-02/msg00005.html

A lot of specs and the template specs from rpmdev-newspec use following:

%install
rm -rf $RPM_BUILD_ROOT
# racing time
mkdir -p $RPM_BUILD_ROOT/bla/foo

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

Regards,
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20070312/334b36c8/attachment.sig>


More information about the Fedora-packaging mailing list