This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=63e02e0aabe17cb87929037db3939b3e575e97f6 commit 63e02e0aabe17cb87929037db3939b3e575e97f6 Author: Guillem Jover <[email protected]> AuthorDate: Thu Jun 14 02:53:23 2018 +0200 Dpkg::Shlibs: Disable bool overload Dpkg::Version warnings The usage in this file is correct, but we are still doing boolean evaluation. --- debian/changelog | 1 + scripts/Dpkg/Shlibs/Symbol.pm | 4 ++++ scripts/Dpkg/Shlibs/SymbolFile.pm | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/debian/changelog b/debian/changelog index ab1757193..2bd44d571 100644 --- a/debian/changelog +++ b/debian/changelog @@ -122,6 +122,7 @@ dpkg (1.19.1) UNRELEASED; urgency=medium deprecated variable, otherwise the scalar value 0 can get confused on scalar context to denote it is *not* deprecated instead of being version 0. + - Dpkg::Shlibs: Disable bool overload Dpkg::Version warnings. * Documentation: - Update gettext minimal version in README. - Add a missing dot on the dpkg-buildflags(1) «lfs» feature paragraph. diff --git a/scripts/Dpkg/Shlibs/Symbol.pm b/scripts/Dpkg/Shlibs/Symbol.pm index 802681bf1..142992b89 100644 --- a/scripts/Dpkg/Shlibs/Symbol.pm +++ b/scripts/Dpkg/Shlibs/Symbol.pm @@ -33,6 +33,10 @@ use Dpkg::Shlibs::Cppfilt; # Supported alias types in the order of matching preference use constant ALIAS_TYPES => qw(c++ symver); +# Needed by the deprecated key, which is a correct use. +no if $Dpkg::Version::VERSION ge '1.02', + warnings => qw(Dpkg::Version::semantic_change::overload::bool); + sub new { my ($this, %args) = @_; my $class = ref($this) || $this; diff --git a/scripts/Dpkg/Shlibs/SymbolFile.pm b/scripts/Dpkg/Shlibs/SymbolFile.pm index 1a165c9d0..4b1c7ef50 100644 --- a/scripts/Dpkg/Shlibs/SymbolFile.pm +++ b/scripts/Dpkg/Shlibs/SymbolFile.pm @@ -30,6 +30,10 @@ use Dpkg::Arch qw(get_host_arch); use parent qw(Dpkg::Interface::Storable); +# Needed by the deprecated key, which is a correct use. +no if $Dpkg::Version::VERSION ge '1.02', + warnings => qw(Dpkg::Version::semantic_change::overload::bool); + my %blacklist = ( __bss_end__ => 1, # arm __bss_end => 1, # arm -- Dpkg.Org's dpkg

