Bug#756629: libfile-fcntllock-perl: File::FcntlLock no longer exports the required constants
Raphaël Hertzog
hertzog at debian.org
Thu Jul 31 14:00:17 UTC 2014
Package: libfile-fcntllock-perl
Version: 0.20-1
Severity: important
The documentation of File::FcntlLock says:
EXPORT
The package exports the following constants:
F_GETLK F_SETLK F_SETLKW
F_RDLCK F_WRLCK F_UNLCK
SEEK_SET SEEK_CUR SEEK_END
But:
$ perl -MFile::FcntlLock -Mstrict -w -e "F_GETLK"
Bareword "F_GETLK" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.
The problem is that the constants are exported by File::FcntlLock::Core
but no longer by File::FcntlLock itself.
Here's a tentative patch:
$ diff -u lib/File/FcntlLock.pm /usr/lib/perl5/File/FcntlLock.pm
--- lib/File/FcntlLock.pm 2014-05-27 16:38:47.000000000 +0200
+++ /usr/lib/perl5/File/FcntlLock.pm 2014-07-31 15:50:19.454997932 +0200
@@ -22,6 +22,7 @@
bootstrap File::FcntlLock $VERSION;
+our @EXPORT = @File::FcntlLock::Core::EXPORT;
###########################################################
#
It seems to work here. I'd appreciate a prompt fix as it's affecting Kali.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libfile-fcntllock-perl depends on:
ii libc6 2.19-7
ii perl 5.18.2-7
ii perl-base [perlapi-5.18.2] 5.18.2-7
libfile-fcntllock-perl recommends no packages.
libfile-fcntllock-perl suggests no packages.
-- no debconf information
More information about the pkg-perl-maintainers
mailing list