Fink::Finally::Buildlock(3) Fink documentation Fink::Finally::Buildlock(3)NAMEFink::Finally::Buildlock - Ensure that builds don't interfere.
DESCRIPTION
Buildlocks are designed to prevent concurrent fink processes from
interfering with each other's dependencies.
For example, if one fink process is compiling a package "foo" that has
a build-time dependency on the package "bar-dev", that fink process
will set a build-lock that prevents another fink (or dpkg or apt or...)
from removing the bar-dev package until the first fink process finishes
building the package foo. In addition, buildlocks prevent concurrent
builds of any given package (name-version-revision) to prevent the
build processes from over-writing each other's files.
See <https://github.com/fink/fink/wiki/Buildlocks> for more
information.
CLASS METHODS
new
my $bl = Fink::Finally::Buildlock->new($pv);
Put a buildlock on the Fink::PkgVersion object $pv. The lock will
be removed when $bl goes out of scope.
can_remove
my $fh = Fink::Finally::Buildlock->can_remove($lockfile);
Test if it is safe to remove a buildlock for a given lock-file.
After calling this, the caller must either close $fh or delete the
lockfile.
Fink 0.36.3.1 2013-12-30 Fink::Finally::Buildlock(3)