Re: buildroot race condition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Till Maas wrote :

> 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

Other solutions :
- Use mach or mock
- Use a _tmppath inside your $HOME (thus buildroot will be too)

We all do one or the other, or even both, right? :-)

Matthias

-- 
Clean custom Red Hat Linux rpm packages : http://freshrpms.net/
Fedora Core release 6 (Zod) - Linux kernel 2.6.19-1.2911.6.5.fc6
Load : 0.07 0.20 0.32

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux