Skip to content

Commit b13fc4f

Browse files
committed
xt is devel only, so may require a newer perl
1 parent cda382e commit b13fc4f

8 files changed

+46
-14
lines changed

Changes

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
1.645 - 2024-08-25 TBD
22

33
* Move developer tests to xt/
4-
* Make Changes match CPAN::Changes::Spec and rgen DBI::Changes from that
4+
* Make Changes match CPAN::Changes::Spec and regen DBI::Changes from that
5+
* Fixes for modern gcc i.c.w. recent perl (Daniël)
56

67
1.644 - 2024-08-23, Tim Bunce
78

changes2pm.pl

+6-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use 5.014002;
44
use warnings;
55

6-
our $VERSION = "0.01 - 20240825";
6+
our $VERSION = "0.02 - 20240826";
77
our $CMD = $0 =~ s{.*/}{}r;
88

99
sub usage {
@@ -69,10 +69,12 @@ =head1 NAME
6969
say $ph "";
7070
shift @c while @c && $c[ 0] !~ m/\S/;
7171
pop @c while @c && $c[-1] !~ m/\S/;
72-
if ($c[0] =~ s/^\s*\K(\*|\x{2022})\s*//) {
73-
my @i = [ pop @c ];
72+
if ($c[0] =~ s/^(\s*)(\*|\x{2022})\s*//) {
73+
my $ws = $1;
74+
s/^$ws// for @c;
75+
my @i = [ shift @c ];
7476
while (@c) {
75-
if ($c[0] =~ s/^\s*\K(\*|\x{2022})\s*//) {
77+
if ($c[0] =~ s/^(\*|\x{2022})\s*//) {
7678
push @i => [ shift @c ]
7779
}
7880
else {

doc/DBI::Changes.3

+5-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
.\" ========================================================================
5959
.\"
6060
.IX Title "DBI::Changes 3"
61-
.TH DBI::Changes 3 2024-08-25 "perl v5.40.0" "User Contributed Perl Documentation"
61+
.TH DBI::Changes 3 2024-08-26 "perl v5.40.0" "User Contributed Perl Documentation"
6262
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
6363
.\" way too many mistakes in technical documents.
6464
.if n .ad l
@@ -69,6 +69,10 @@ DBI::Changes \- List of significant changes to the DBI
6969
.IX Subsection "Changes in DBI 1.645 - 25 Aug 2024"
7070
.IP \(bu 2
7171
Move developer tests to xt/
72+
.IP \(bu 2
73+
Make Changes match CPAN::Changes::Spec and regen DBI::Changes from that
74+
.IP \(bu 2
75+
Fixes for modern gcc i.c.w. recent perl (Daniël)
7276
.SS "Changes in DBI 1.644 \- 23 Aug 2024"
7377
.IX Subsection "Changes in DBI 1.644 - 23 Aug 2024"
7478
.Vb 10

doc/DBI::Changes.html

+6
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ <h2 id="Changes-in-DBI-1.645---25-Aug-2024">Changes in DBI 1.645 - 25 Aug 2024</
166166

167167
<li><p>Move developer tests to xt/</p>
168168

169+
</li>
170+
<li><p>Make Changes match CPAN::Changes::Spec and regen DBI::Changes from that</p>
171+
172+
</li>
173+
<li><p>Fixes for modern gcc i.c.w. recent perl (Dani&euml;l)</p>
174+
169175
</li>
170176
</ul>
171177

doc/DBI::Changes.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ DBI::Changes - List of significant changes to the DBI
55
## Changes in DBI 1.645 - 25 Aug 2024
66

77
- Move developer tests to xt/
8+
- Make Changes match CPAN::Changes::Spec and regen DBI::Changes from that
9+
- Fixes for modern gcc i.c.w. recent perl (Daniël)
810

911
## Changes in DBI 1.644 - 23 Aug 2024
1012

lib/DBI/Changes.pm

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ DBI::Changes - List of significant changes to the DBI
2020
2121
Move developer tests to xt/
2222
23+
=item *
24+
25+
Make Changes match CPAN::Changes::Spec and regen DBI::Changes from that
26+
27+
=item *
28+
29+
Fixes for modern gcc i.c.w. recent perl (Daniël)
30+
2331
=back
2432
2533
=head2 Changes in DBI 1.644 - 23 Aug 2024

xt/00_perlversion.t

+16-7
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,24 @@ my @pm = sort "DBI.pm",
2020
(glob "lib/*/*/*/*.pm");
2121

2222
my %f5xx = (
23-
"5.008.1" => [ @pm, glob ("t/*"), glob ("xt/*.t"), glob ("*.PL") ],
24-
"5.010.0" => [],
25-
"5.012.0" => [],
26-
"5.014.0" => [],
27-
"5.016.0" => [],
23+
"5.008.1" => { map { $_ => 1 } @pm, glob ("t/*"), glob ("xt/*.t"), glob ("*.PL") },
24+
"5.010.0" => {},
25+
"5.012.0" => {},
26+
"5.014.0" => { map { $_ => 1 } "xt/20_kwalitee.t" },
27+
"5.016.0" => {},
2828
);
2929

30-
foreach my $v (sort keys %f5xx) {
31-
my @f = @{$f5xx{$v}} or next;
30+
my @v = sort keys %f5xx;
31+
foreach my $v (reverse @v) {
32+
foreach my $f (sort keys %{$f5xx{$v}}) {
33+
foreach my $x (grep { $_ lt $v } @v) {
34+
delete $f5xx{$x}{$f}
35+
}
36+
}
37+
}
38+
39+
foreach my $v (@v) {
40+
my @f = sort keys %{$f5xx{$v}} or next;
3241
subtest ($v => sub { all_minimum_version_ok ($v, { paths => [ @f ]}); });
3342
}
3443

xt/20_kwalitee.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/perl
22

3-
use strict;
3+
use 5.012001;
44
use warnings;
55
use Test::More;
66

0 commit comments

Comments
 (0)