[Fedora-packaging] Re: buildroot race condition
Enrico Scholz
enrico.scholz at informatik.tu-chemnitz.de
Tue Mar 13 08:13:05 UTC 2007
Till Maas <opensource at till.name> writes:
> 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
Was brought up already when $RPM_BUILD_ROOT was discussed....
> 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; another solution would be to use a secure %_tmpdir (which is
write and perhaps readable by the packager only). Packagers have to
setup %_topdir already so this should happen for %_tmpdir too.
Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20070313/d58f2181/attachment.sig>
More information about the Fedora-packaging
mailing list