[bitbake-devel] [PATCH] bitbake: fetch2/svn: Add tarsnapshots parameter

Richard Purdie richard.purdie at linuxfoundation.org
Wed Apr 4 07:56:16 UTC 2018


On Fri, 2018-03-23 at 11:28 +0200, Niko Mauno wrote:
> By adding 'tarsnapshots=currentonly' option to svn-specific component
> in
> SRC_URI, associated subversion repository module's existing tarball
> snapshots are removed from DL_DIR, before creating a new one.
> 
> This provides a means to avoid downloads directory becoming congested
> with a subversion repository module's tarball snapshots, which may
> occur
> for example during circumstances where source code residing in a
> subversion repository is subject to long-term development work, and
> recipe used in continuous integration builds has SRCREV set to
> AUTOREV.
> 
> Signed-off-by: Niko Mauno <niko.mauno at iki.fi>

This model does't really work as if multiple things share the downloads
directory there is a race window between the old tarballs being removed
and the new one being created. The downloads and sstate directories are
commonly shared between builds so we need to be mindful of this.

Cheers,

Richard



More information about the bitbake-devel mailing list