texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * configure.ac (Perl version and modules, tp-test


From: Patrice Dumas
Subject: branch master updated: * configure.ac (Perl version and modules, tp-tests) (perl-api-texi-build, pod-simple-texinfo-tests): update Perl modules and version in checks.
Date: Sun, 05 May 2024 20:05:52 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 9b3c0a6ac3 * configure.ac (Perl version and modules, tp-tests) 
(perl-api-texi-build, pod-simple-texinfo-tests): update Perl modules and 
version in checks.
9b3c0a6ac3 is described below

commit 9b3c0a6ac3960414168c72e06eb313b01c41ece0
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon May 6 02:05:48 2024 +0200

    * configure.ac (Perl version and modules, tp-tests)
    (perl-api-texi-build, pod-simple-texinfo-tests): update Perl modules
    and version in checks.
    
    Add use Data::Dumper in files where it is used, comment out if not
    used.
---
 ChangeLog                           | 9 +++++++++
 configure.ac                        | 8 ++++----
 tp/Texinfo/Common.pm                | 1 +
 tp/Texinfo/Convert/DocBook.pm       | 2 +-
 tp/Texinfo/Convert/TexinfoMarkup.pm | 2 +-
 tp/Texinfo/Convert/Text.pm          | 3 ++-
 tp/Texinfo/ParserNonXS.pm           | 2 +-
 tp/texi2any.pl                      | 2 ++
 8 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ecbb3443c3..b8452e6de0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2024-05-05  Patrice Dumas  <pertusus@free.fr>
+
+       * configure.ac (Perl version and modules, tp-tests)
+       (perl-api-texi-build, pod-simple-texinfo-tests): update Perl modules
+       and version in checks.
+
+       Add use Data::Dumper in files where it is used, comment out if not
+       used.
+
 2024-05-05  Patrice Dumas  <pertusus@free.fr>
 
        Use use warnings instead of $^W
diff --git a/configure.ac b/configure.ac
index 7b9003872a..0f5df62a60 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,7 +60,7 @@ AC_ARG_VAR([PERL_EXT_LDFLAGS], [Linker flags for a Perl 
extension])
 AC_ARG_VAR([PERL_EXT_CC], [Compiler for a Perl extension])
 
 AC_MSG_CHECKING([Perl version and modules])
-if $PERL -e "use 5.008_001; use Encode; use Data::Dumper; use 
Unicode::Normalize" >/dev/null 2>&1; then
+if $PERL -e "use 5.008_001; use Encode; use Data::Dumper; use Getopt::Long 
qw(GetOptions); use Storable; use File::Spec; use File::Basename; use 
Unicode::Normalize" >/dev/null 2>&1; then
   perl_version_requirement='yes'
 else
   perl_version_requirement='no'
@@ -499,7 +499,7 @@ AC_ARG_ENABLE([tp-tests],
     [
      if test "z$PROVE" = 'z'; then
        tp_tests='no'
-     elif $PERL -e "use 5.007_003; use Encode; use Test::More; use 
File::Basename; use File::Copy; use Data::Dumper; use Data::Compare; use 
Test::Deep; use Storable qw(dclone); use Getopt::Long qw(GetOptions);" > 
/dev/null 2>&1;
+     elif $PERL -e "use 5.008_001; use Encode; use Test::More; use 
File::Compare qw(compare); use Data::Dumper; use Data::Compare; use Test::Deep; 
use Storable qw(dclone);" > /dev/null 2>&1;
      then
        tp_tests='yes'
      else
@@ -520,7 +520,7 @@ AC_ARG_ENABLE([perl-api-texi-build],
        build_perl_api_texi='yes'
      fi],
     [
-     if $PERL -e "use 5.007_003; use Encode; use Pod::Simple::PullParser;" > 
/dev/null 2>&1;
+     if $PERL -e "use 5.008_001; use Encode; use Pod::Simple::PullParser;" > 
/dev/null 2>&1;
      then
        build_perl_api_texi='yes'
      else
@@ -553,7 +553,7 @@ AC_ARG_ENABLE([pod-simple-texinfo-tests],
     [
      if test "z$PROVE" = 'z' ; then
        pod_simple_texinfo_tests='no'
-     elif $PERL -e "use 5.007_003; use Encode; use Test::More; use 
Pod::Simple::PullParser;" > /dev/null 2>&1;
+     elif $PERL -e "use 5.008_001; use Encode; use Test::More; use 
Pod::Simple::PullParser;" > /dev/null 2>&1;
      then
        pod_simple_texinfo_tests='yes'
      else
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index abefbd0957..f53f0eb911 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -2034,6 +2034,7 @@ sub debug_hash
   warn "$str\n";
 }
 
+# for debugging
 use Data::Dumper;
 
 my @kept_keys = ('contents', 'cmdname', 'type', 'text', 'args',
diff --git a/tp/Texinfo/Convert/DocBook.pm b/tp/Texinfo/Convert/DocBook.pm
index e9a90d70fa..5085c338a7 100644
--- a/tp/Texinfo/Convert/DocBook.pm
+++ b/tp/Texinfo/Convert/DocBook.pm
@@ -39,7 +39,7 @@ use Texinfo::Convert::Utils;
 use Texinfo::Convert::Text;
 use Texinfo::Convert::Converter;
 use Texinfo::Convert::Plaintext;
-use Data::Dumper;
+#use Data::Dumper;
 use Carp qw(cluck);
 
 our @ISA = qw(Texinfo::Convert::Converter);
diff --git a/tp/Texinfo/Convert/TexinfoMarkup.pm 
b/tp/Texinfo/Convert/TexinfoMarkup.pm
index e6eb93c976..f41b2a3f3a 100644
--- a/tp/Texinfo/Convert/TexinfoMarkup.pm
+++ b/tp/Texinfo/Convert/TexinfoMarkup.pm
@@ -43,7 +43,7 @@ use Texinfo::Convert::Converter;
 use Texinfo::Convert::Unicode;
 # for debugging and adding the original line for some commands
 use Texinfo::Convert::Texinfo;
-use Data::Dumper;
+#use Data::Dumper;
 use Carp qw(cluck);
 
 our @ISA = qw(Texinfo::Convert::Converter);
diff --git a/tp/Texinfo/Convert/Text.pm b/tp/Texinfo/Convert/Text.pm
index ae40c1072d..475bad064b 100644
--- a/tp/Texinfo/Convert/Text.pm
+++ b/tp/Texinfo/Convert/Text.pm
@@ -27,8 +27,9 @@ use strict;
 
 use File::Basename;
 
-use Data::Dumper;
+#use Data::Dumper;
 use Carp qw(cluck carp confess);
+
 use Encode qw(decode);
 
 use Texinfo::Convert::ConvertXS;
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index 46b6ea984a..0893b74745 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -61,7 +61,7 @@ use if $] >= 5.014, re => '/a';
 
 # debug
 use Carp qw(cluck confess);
-use Data::Dumper;
+#use Data::Dumper;
 
 # to detect if an encoding may be used to open the files
 # to encode/decode in-memory strings used as files
diff --git a/tp/texi2any.pl b/tp/texi2any.pl
index 37ea3e0706..d903e65ac0 100755
--- a/tp/texi2any.pl
+++ b/tp/texi2any.pl
@@ -49,6 +49,8 @@ use Getopt::Long qw(GetOptions);
 # for dclone
 use Storable;
 
+use Data::Dumper;
+
 Getopt::Long::Configure("gnu_getopt");
 
 my ($real_command_name, $command_directory, $command_suffix);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]