summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-03-04 15:44:46 +0100
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-03-04 22:49:13 +0100
commit7df05a0b38efdd2e3bc9b3cfeedc3e53616bc71a (patch)
treef32ab9fd2c674373104a73cdb080510c347e7d18 /lib
parent7f9974c75fc6cdd9821b887afac94ef0be415bc2 (diff)
downloadautomake-7df05a0b38efdd2e3bc9b3cfeedc3e53616bc71a.tar.gz
maint: require perl 5.6 throughout
That version of perl is quite old already, so it should be OK to require it. More importantly, it is the older perl versions the developers can currently use for testing, thus it's safer and more honest to just require it throughout. And anyway, we were already requiring it in Automake::Getopt, which implied that both automake and aclocal wouldn't have worked in practice with an older perl version. See also the discussion related to automake bug#10925. * lib/Automake/ChannelDefs.pm: Adjusted to require perl 5.6. * lib/Automake/Channels.pm: Likewise. * lib/Automake/Condition.pm: Likewise. * lib/Automake/Configure_ac.pm: Likewise. * lib/Automake/DisjConditions.pm: Likewise. * lib/Automake/FileUtils.pm: Likewise. * lib/Automake/General.pm: Likewise. * lib/Automake/Item.pm: Likewise. * lib/Automake/ItemDef.pm: Likewise. * lib/Automake/Location.pm: Likewise. * lib/Automake/Options.pm: Likewise. * lib/Automake/Rule.pm: Likewise. * lib/Automake/RuleDef.pm: Likewise. * lib/Automake/Struct.pm: Likewise. * lib/Automake/VarDef.pm: Likewise. * lib/Automake/Variable.pm: Likewise. * lib/Automake/Version.pm: Likewise. * lib/Automake/Wrap.pm: Likewise. * lib/Automake/XFile.pm: Likewise.
Diffstat (limited to 'lib')
-rw-r--r--lib/Automake/ChannelDefs.pm2
-rw-r--r--lib/Automake/Channels.pm2
-rw-r--r--lib/Automake/Condition.pm2
-rw-r--r--lib/Automake/Configure_ac.pm1
-rw-r--r--lib/Automake/DisjConditions.pm3
-rw-r--r--lib/Automake/FileUtils.pm1
-rw-r--r--lib/Automake/General.pm2
-rw-r--r--lib/Automake/Getopt.pm2
-rw-r--r--lib/Automake/Item.pm3
-rw-r--r--lib/Automake/ItemDef.pm2
-rw-r--r--lib/Automake/Location.pm2
-rw-r--r--lib/Automake/Options.pm1
-rw-r--r--lib/Automake/Rule.pm2
-rw-r--r--lib/Automake/RuleDef.pm2
-rw-r--r--lib/Automake/Struct.pm2
-rw-r--r--lib/Automake/VarDef.pm2
-rw-r--r--lib/Automake/Variable.pm2
-rw-r--r--lib/Automake/Version.pm2
-rw-r--r--lib/Automake/Wrap.pm1
-rw-r--r--lib/Automake/XFile.pm2
20 files changed, 30 insertions, 8 deletions
diff --git a/lib/Automake/ChannelDefs.pm b/lib/Automake/ChannelDefs.pm
index afafae539..524b8f5bb 100644
--- a/lib/Automake/ChannelDefs.pm
+++ b/lib/Automake/ChannelDefs.pm
@@ -55,7 +55,7 @@ shorthand function to output on specific channels.
=cut
-use 5.005;
+use 5.006;
use strict;
use Exporter;
diff --git a/lib/Automake/Channels.pm b/lib/Automake/Channels.pm
index 4b5c5e2d8..724a11487 100644
--- a/lib/Automake/Channels.pm
+++ b/lib/Automake/Channels.pm
@@ -66,7 +66,7 @@ etc.) that can also be overridden on a per-message basis.
=cut
-use 5.005;
+use 5.006;
use strict;
use Exporter;
use Carp;
diff --git a/lib/Automake/Condition.pm b/lib/Automake/Condition.pm
index ee16f621b..cc753d9e7 100644
--- a/lib/Automake/Condition.pm
+++ b/lib/Automake/Condition.pm
@@ -14,6 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Automake::Condition;
+
+use 5.006;
use strict;
use Carp;
diff --git a/lib/Automake/Configure_ac.pm b/lib/Automake/Configure_ac.pm
index d5c54da47..53e62a572 100644
--- a/lib/Automake/Configure_ac.pm
+++ b/lib/Automake/Configure_ac.pm
@@ -20,6 +20,7 @@
package Automake::Configure_ac;
+use 5.006;
use strict;
use Exporter;
use Automake::Channels;
diff --git a/lib/Automake/DisjConditions.pm b/lib/Automake/DisjConditions.pm
index cb9849558..e44912103 100644
--- a/lib/Automake/DisjConditions.pm
+++ b/lib/Automake/DisjConditions.pm
@@ -15,8 +15,9 @@
package Automake::DisjConditions;
-use Carp;
+use 5.006;
use strict;
+use Carp;
use Automake::Condition qw/TRUE FALSE/;
=head1 NAME
diff --git a/lib/Automake/FileUtils.pm b/lib/Automake/FileUtils.pm
index d73cebff2..17d8a4990 100644
--- a/lib/Automake/FileUtils.pm
+++ b/lib/Automake/FileUtils.pm
@@ -34,6 +34,7 @@ This perl module provides various general purpose file handling functions.
=cut
+use 5.006;
use strict;
use Exporter;
use File::stat;
diff --git a/lib/Automake/General.pm b/lib/Automake/General.pm
index be5764899..2a4a527c6 100644
--- a/lib/Automake/General.pm
+++ b/lib/Automake/General.pm
@@ -15,7 +15,7 @@
package Automake::General;
-use 5.005;
+use 5.006;
use strict;
use Exporter;
use File::Basename;
diff --git a/lib/Automake/Getopt.pm b/lib/Automake/Getopt.pm
index ffbcc129a..ea1c7ca6b 100644
--- a/lib/Automake/Getopt.pm
+++ b/lib/Automake/Getopt.pm
@@ -30,7 +30,7 @@ line options in conformance to the GNU Coding standards.
=cut
-use 5.006_002;
+use 5.006;
use strict;
use warnings FATAL => 'all';
use Exporter ();
diff --git a/lib/Automake/Item.pm b/lib/Automake/Item.pm
index 0066ac437..6da070e9a 100644
--- a/lib/Automake/Item.pm
+++ b/lib/Automake/Item.pm
@@ -14,9 +14,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Automake::Item;
+
+use 5.006;
use strict;
use Carp;
-
use Automake::ChannelDefs;
use Automake::DisjConditions;
diff --git a/lib/Automake/ItemDef.pm b/lib/Automake/ItemDef.pm
index 8148df885..8b6456220 100644
--- a/lib/Automake/ItemDef.pm
+++ b/lib/Automake/ItemDef.pm
@@ -14,6 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Automake::ItemDef;
+
+use 5.006;
use strict;
use Carp;
diff --git a/lib/Automake/Location.pm b/lib/Automake/Location.pm
index ba24ca2f1..290db73fe 100644
--- a/lib/Automake/Location.pm
+++ b/lib/Automake/Location.pm
@@ -15,6 +15,8 @@
package Automake::Location;
+use 5.006;
+
=head1 NAME
Automake::Location - a class for location tracking, with a stack of contexts
diff --git a/lib/Automake/Options.pm b/lib/Automake/Options.pm
index 651430d92..2f977bd54 100644
--- a/lib/Automake/Options.pm
+++ b/lib/Automake/Options.pm
@@ -15,6 +15,7 @@
package Automake::Options;
+use 5.006;
use strict;
use Exporter;
use Automake::Config;
diff --git a/lib/Automake/Rule.pm b/lib/Automake/Rule.pm
index 0b8d867ad..3db8c440a 100644
--- a/lib/Automake/Rule.pm
+++ b/lib/Automake/Rule.pm
@@ -14,6 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Automake::Rule;
+
+use 5.006;
use strict;
use Carp;
diff --git a/lib/Automake/RuleDef.pm b/lib/Automake/RuleDef.pm
index 738e377c5..571111cfe 100644
--- a/lib/Automake/RuleDef.pm
+++ b/lib/Automake/RuleDef.pm
@@ -14,6 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Automake::RuleDef;
+
+use 5.006;
use strict;
use Carp;
use Automake::ChannelDefs;
diff --git a/lib/Automake/Struct.pm b/lib/Automake/Struct.pm
index cd9369117..bf7adebcd 100644
--- a/lib/Automake/Struct.pm
+++ b/lib/Automake/Struct.pm
@@ -28,7 +28,7 @@ package Automake::Struct;
## See POD after __END__
-use 5.005_03;
+use 5.006;
use strict;
use vars qw(@ISA @EXPORT $VERSION);
diff --git a/lib/Automake/VarDef.pm b/lib/Automake/VarDef.pm
index d5b3224ca..dde99ac38 100644
--- a/lib/Automake/VarDef.pm
+++ b/lib/Automake/VarDef.pm
@@ -14,6 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Automake::VarDef;
+
+use 5.006;
use strict;
use Carp;
use Automake::ChannelDefs;
diff --git a/lib/Automake/Variable.pm b/lib/Automake/Variable.pm
index f9ed7dae4..4d346f056 100644
--- a/lib/Automake/Variable.pm
+++ b/lib/Automake/Variable.pm
@@ -14,6 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Automake::Variable;
+
+use 5.006;
use strict;
use Carp;
diff --git a/lib/Automake/Version.pm b/lib/Automake/Version.pm
index 35cfe8b43..423375b85 100644
--- a/lib/Automake/Version.pm
+++ b/lib/Automake/Version.pm
@@ -14,6 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
package Automake::Version;
+
+use 5.006;
use strict;
use Automake::ChannelDefs;
diff --git a/lib/Automake/Wrap.pm b/lib/Automake/Wrap.pm
index cd898dcdf..34b349ee2 100644
--- a/lib/Automake/Wrap.pm
+++ b/lib/Automake/Wrap.pm
@@ -15,6 +15,7 @@
package Automake::Wrap;
+use 5.006;
use strict;
require Exporter;
diff --git a/lib/Automake/XFile.pm b/lib/Automake/XFile.pm
index 1840f61ca..82edb2358 100644
--- a/lib/Automake/XFile.pm
+++ b/lib/Automake/XFile.pm
@@ -69,7 +69,7 @@ and C<getlines> methods to translate C<\r\n> to C<\n>.
=cut
-require 5.000;
+use 5.006;
use strict;
use vars qw($VERSION @EXPORT @EXPORT_OK $AUTOLOAD @ISA);
use Carp;