Bug#675947: Circular build-dependency between libfile-fcntllock-perl and dpkg-dev

Dominic Hargreaves dom at earth.li
Mon Jun 4 12:24:54 UTC 2012


Package: dpkg-dev
Version: 1.16.3

I had a go today at starting a test rebuild of XS perl modules against
perl 5.16 (which is not yet in experiemental, but is being prepared at
[1]).

Unfortunately, since the perl 5.14 transition, dpkg-dev has gained a
dependency on libfile-fcntllock-perl (as of 1.16.2);
libfile-fcntllock-perl is itself a package requiring rebuilding.

This blocks the rebuilds of perl packages.

The attached patch solves this by using flock() which is built into
perl, rather than an external library. My understanding is that this
should be adequate for the purpose, but please let me know if I've missed
something and there is a strong reason to use File::FcntlLock instead
(if so, maybe we could make the relationship to libfile-fcntllock-perl a
recommends, and abort if we detect that a parallel build is being invoked
without File::FcntlLock being installed).

Thanks,
Dominic.

[1] <http://anonscm.debian.org/gitweb/?p=perl/perl.git;a=shortlog;h=refs/heads/debian-5.16>

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-use-of-File-FcntlLock-in-dpkg-dev.patch
Type: text/x-diff
Size: 2759 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/perl-maintainers/attachments/20120604/59963407/attachment.patch>


More information about the Perl-maintainers mailing list