From 4123feeee8144324a20bfd47945a74387db5bad4 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 13 Jun 2016 17:35:55 +0200 Subject: [PATCH] MT#20543 Fix strictures pragma usage - Pass a version option to strictures' import instead of a scalar. - Remove libindirect-perl from Build-Depends and Depends, and from Build.PL requires, as it is only used in development mode. Change-Id: I848bb97da26510b13dad4dd4f1d246ac11f14790 --- Build.PL | 1 - debian/control | 2 -- lib/Sipwise/Base.pm | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Build.PL b/Build.PL index 09bbe21..51a2ac2 100644 --- a/Build.PL +++ b/Build.PL @@ -12,7 +12,6 @@ my $builder = Module::Build->new( }, requires => { 'autodie' => 0, - 'indirect' => 'v0.30', 'parent' => 0, 'perl' => '5.014', 'strictures' => 1, diff --git a/debian/control b/debian/control index aa3d0e2..83ac070 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,6 @@ Priority: extra Maintainer: Sipwise Development Team Build-Depends: debhelper (>= 8), - libindirect-perl (>= 0.30), libipc-system-simple-perl, libstrictures-perl, libtrycatch-perl, @@ -14,7 +13,6 @@ Homepage: http://sipwise.com/ Package: libsipwise-base-perl Architecture: all Depends: - libindirect-perl (>= 0.30), libipc-system-simple-perl, libstrictures-perl, libtrycatch-perl, diff --git a/lib/Sipwise/Base.pm b/lib/Sipwise/Base.pm index 670b860..2dc4c1a 100644 --- a/lib/Sipwise/Base.pm +++ b/lib/Sipwise/Base.pm @@ -16,7 +16,7 @@ sub import { } my $caller = caller; - strictures->import(1); + strictures->import(version => 1); my $export = "package $caller;\n"; for my $f (sort keys %features) {