Re: Bug#677865: dpkg-gencontrol warns about 'File::FcntlLock not available'
On Tue, May 27, 2014 at 04:49:35PM +0200, Jens Thoms Toerring wrote:
> Let's hope the new 0.20 version on CPAN is the final one;-)
Thanks for your awesome work, Jens!
@debian-perl: To make this usable for the original problem (giving
dpkg-dev a working File::FcntlLock without a transitive hard dependency
on perlapi-*), I suppose the package should either be split or the
${perl:Depends} dependency should be relaxed to a recommendation.
This way dpkg-dev could still depend on the package, and either fall
back to File::FcntlLock::Pure if File::FcntlLock::XS doesn't work, or
just unconditionally use File::FcntlLock::Pure. Not sure which is cleaner.
In the fallback option, dpkg-dev should probably set PERL_DL_NONLAZY=1
before trying to load File::FcntlLock::XS. See #479711.
(Hm, my preliminary testing indicates that 5.20.0 may introduce new
challenges around PERL_DL_NONLAZY. Urgh. Will investigate.)
--
Niko Tyni ntyni@debian.org
Reply to: