line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::PatchPerl::Plugin::Darwin; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require Devel::PatchPerl; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
4089613
|
use strict; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
81
|
|
6
|
1
|
|
|
1
|
|
15
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
98
|
|
7
|
1
|
|
|
1
|
|
21
|
use version; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
35
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = 'v0.1.1'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my @patch = ( |
12
|
|
|
|
|
|
|
{ |
13
|
|
|
|
|
|
|
perl => [ '5.6.0' ], |
14
|
|
|
|
|
|
|
subs => [ [ \&_patch_h2ph_pht560 ], [ \&_patch_h2ph_h560 ], [ \&_patch_h2ph560 ] ], |
15
|
|
|
|
|
|
|
}, |
16
|
|
|
|
|
|
|
{ |
17
|
|
|
|
|
|
|
perl => [ qr/^5\.6\.[1-2]$/ ], |
18
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_locale_test561 ], [ \&_patch_x2p_util561 ], [ \&_patch_timelocal_test561 ], |
19
|
|
|
|
|
|
|
[ \&_patch_h2ph_pht560 ], [ \&_patch_h2ph_h560 ], [ \&_patch_h2ph560 ], [ \&_patch_pwent_test561 ] ], |
20
|
|
|
|
|
|
|
}, |
21
|
|
|
|
|
|
|
{ |
22
|
|
|
|
|
|
|
perl => [ qw/5.8.9 5.10.1 5.11.0/, qr/^5\.9\.[0-5]$/ ], |
23
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_locale_test589 ] ], |
24
|
|
|
|
|
|
|
}, |
25
|
|
|
|
|
|
|
{ |
26
|
|
|
|
|
|
|
perl => [ qr/^5\.11\.[1-5]$/, qr/^5\.12\.[0-4]/, '5.13.0' ], |
27
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_locale_test5111 ] ], |
28
|
|
|
|
|
|
|
}, |
29
|
|
|
|
|
|
|
{ |
30
|
|
|
|
|
|
|
perl => [ '5.12.5', qr/^5\.14\.[0-4]/ ], |
31
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_locale_test5125 ] ], |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
{ |
34
|
|
|
|
|
|
|
perl => [ qr/^5\.13\.[1-9]$/, qr/^5\.13\.(10|11)/ ], |
35
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_locale_test5131 ] ], |
36
|
|
|
|
|
|
|
}, |
37
|
|
|
|
|
|
|
{ |
38
|
|
|
|
|
|
|
perl => [ qr/^5\.15\.[0-7]$/ ], |
39
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_locale_test5150 ] ], |
40
|
|
|
|
|
|
|
}, |
41
|
|
|
|
|
|
|
{ |
42
|
|
|
|
|
|
|
perl => [ qr/^5\.15\.[89]$/, qr/^5\.16\.[0-3]$/, qr/^5\.17\.\d+/, qr/^5\.18\.[0-4]$/, qr/^5\.19\.[0-8]/ ], |
43
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_locale_test5158 ] ], |
44
|
|
|
|
|
|
|
}, |
45
|
|
|
|
|
|
|
{ |
46
|
|
|
|
|
|
|
perl => [ qr/^5\.18\.[0-4]$/ ], |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_gdbm_fatal_test5180 ] ], |
49
|
|
|
|
|
|
|
}, |
50
|
|
|
|
|
|
|
{ |
51
|
|
|
|
|
|
|
perl => [ qr/^5\.22\.[34]$/ ], |
52
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_customized_dat5223 ] ], |
53
|
|
|
|
|
|
|
}, |
54
|
|
|
|
|
|
|
{ |
55
|
|
|
|
|
|
|
perl => [ qr/^5\.22\.[0-4]$/, qr/^5\.23\.[0-9]$/, qr/^5\.24\.[0-4]$/ ], |
56
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_libperl_test5230 ] ], |
57
|
|
|
|
|
|
|
}, |
58
|
|
|
|
|
|
|
{ |
59
|
|
|
|
|
|
|
perl => [ qr/^5\.24\.[1-4]$/ ], |
60
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_customized_dat5241 ] ], |
61
|
|
|
|
|
|
|
}, |
62
|
|
|
|
|
|
|
{ |
63
|
|
|
|
|
|
|
perl => [ qr/^5\.25\.]d+/, qr/^5\.26\.[0-3]$/, qr/^5\.27\.\d+/, qr/^5\.28\.[0-3]$/ ], |
64
|
|
|
|
|
|
|
subs => [ [ \&_patch_darwin_libperl_test5250 ] ], |
65
|
|
|
|
|
|
|
}, |
66
|
|
|
|
|
|
|
); |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub patchperl { |
69
|
15
|
|
|
15
|
0
|
161406965
|
my $class = shift; |
70
|
15
|
|
|
|
|
336
|
my %args = @_; |
71
|
15
|
|
|
|
|
116
|
my ($vers, $source, $patchexe) = @args{'version', 'source', 'patchexe'}; |
72
|
15
|
|
|
|
|
142
|
for my $p ( grep { Devel::PatchPerl::_is( $_->{perl}, $vers ) } @patch) { |
|
195
|
|
|
|
|
8405
|
|
73
|
15
|
|
|
|
|
44090
|
for my $s (@{$p->{subs}}) { |
|
15
|
|
|
|
|
119
|
|
74
|
21
|
|
|
|
|
60701
|
my($sub, @args) = @$s; |
75
|
21
|
50
|
|
|
|
200
|
push @args, $vers unless scalar @args; |
76
|
21
|
|
|
|
|
228
|
$sub->(@args); |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
sub _patch_pwent_test561 { |
82
|
1
|
|
|
1
|
|
40
|
my $patch = <<'END'; |
83
|
|
|
|
|
|
|
--- t/op/pwent.t |
84
|
|
|
|
|
|
|
+++ t/op/pwent.t |
85
|
|
|
|
|
|
|
@@ -1,5 +1,7 @@ |
86
|
|
|
|
|
|
|
#!./perl |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
+my $data; |
89
|
|
|
|
|
|
|
+ |
90
|
|
|
|
|
|
|
BEGIN { |
91
|
|
|
|
|
|
|
chdir 't' if -d 't'; |
92
|
|
|
|
|
|
|
@INC = '../lib'; |
93
|
|
|
|
|
|
|
@@ -41,6 +43,47 @@ BEGIN { |
94
|
|
|
|
|
|
|
} |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
+ if (not defined $where && $^O eq 'darwin') { |
98
|
|
|
|
|
|
|
+ my %want = do { |
99
|
|
|
|
|
|
|
+ my $inx = 0; |
100
|
|
|
|
|
|
|
+ map {$_ => {inx => $inx++, mung => sub {$_[0]}}} |
101
|
|
|
|
|
|
|
+ qw{RecordName Password UniqueID PrimaryGroupID |
102
|
|
|
|
|
|
|
+ RealName NFSHomeDirectory UserShell}; |
103
|
|
|
|
|
|
|
+ }; |
104
|
|
|
|
|
|
|
+ $want{RecordName}{mung} = sub {(split '\s+', $_[0], 2)[0]}; |
105
|
|
|
|
|
|
|
+ $want{UniqueID}{mung} = $want{PrimaryGroupID}{mung} = sub { |
106
|
|
|
|
|
|
|
+ unpack 'L', pack 'l', $_[0]}; |
107
|
|
|
|
|
|
|
+ foreach my $dscl (qw(/usr/bin/dscl)) { |
108
|
|
|
|
|
|
|
+ -x $dscl or next; |
109
|
|
|
|
|
|
|
+ open (my $fh, '-|', join (' ', $dscl, qw{. -readall /Users}, |
110
|
|
|
|
|
|
|
+ keys %want, '2>/dev/null')) or next; |
111
|
|
|
|
|
|
|
+ my @rec; |
112
|
|
|
|
|
|
|
+ while (<$fh>) { |
113
|
|
|
|
|
|
|
+ chomp; |
114
|
|
|
|
|
|
|
+ if ($_ eq '-') { |
115
|
|
|
|
|
|
|
+ @rec and $data .= join (':', @rec) . "\n"; |
116
|
|
|
|
|
|
|
+ @rec = (); |
117
|
|
|
|
|
|
|
+ next; |
118
|
|
|
|
|
|
|
+ } |
119
|
|
|
|
|
|
|
+ my ($name, $value) = split ':\s+', $_, 2; |
120
|
|
|
|
|
|
|
+ unless (defined $value) { |
121
|
|
|
|
|
|
|
+ s/:$//; |
122
|
|
|
|
|
|
|
+ $name = $_; |
123
|
|
|
|
|
|
|
+ $value = <$fh>; |
124
|
|
|
|
|
|
|
+ chomp $value; |
125
|
|
|
|
|
|
|
+ $value =~ s/^\s+//; |
126
|
|
|
|
|
|
|
+ } |
127
|
|
|
|
|
|
|
+ if (defined (my $info = $want{$name})) { |
128
|
|
|
|
|
|
|
+ $rec[$info->{inx}] = $info->{mung}->($value); |
129
|
|
|
|
|
|
|
+ } |
130
|
|
|
|
|
|
|
+ } |
131
|
|
|
|
|
|
|
+ @rec and $data .= join (':', @rec) . "\n"; |
132
|
|
|
|
|
|
|
+ $where = "dscl . -readall /Users"; |
133
|
|
|
|
|
|
|
+ undef $reason; |
134
|
|
|
|
|
|
|
+ last; |
135
|
|
|
|
|
|
|
+ } |
136
|
|
|
|
|
|
|
+ } |
137
|
|
|
|
|
|
|
+ |
138
|
|
|
|
|
|
|
if (not defined $where) { # Try local. |
139
|
|
|
|
|
|
|
my $PW = "/etc/passwd"; |
140
|
|
|
|
|
|
|
if (-f $PW && open(PW, $PW) && defined()) { |
141
|
|
|
|
|
|
|
@@ -69,51 +112,90 @@ my %perfect; |
142
|
|
|
|
|
|
|
my %seen; |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
setpwent(); |
145
|
|
|
|
|
|
|
-while () { |
146
|
|
|
|
|
|
|
- chomp; |
147
|
|
|
|
|
|
|
- # LIMIT -1 so that users with empty shells don't fall off |
148
|
|
|
|
|
|
|
- my @s = split /:/, $_, -1; |
149
|
|
|
|
|
|
|
- my ($name_s, $passwd_s, $uid_s, $gid_s, $gcos_s, $home_s, $shell_s); |
150
|
|
|
|
|
|
|
- if ($^O eq 'darwin') { |
151
|
|
|
|
|
|
|
- ($name_s, $passwd_s, $uid_s, $gid_s, $gcos_s, $home_s, $shell_s) = @s[0,1,2,3,7,8,9]; |
152
|
|
|
|
|
|
|
- } else { |
153
|
|
|
|
|
|
|
- ($name_s, $passwd_s, $uid_s, $gid_s, $gcos_s, $home_s, $shell_s) = @s; |
154
|
|
|
|
|
|
|
- } |
155
|
|
|
|
|
|
|
- next if /^\+/; # ignore NIS includes |
156
|
|
|
|
|
|
|
- if (@s) { |
157
|
|
|
|
|
|
|
- push @{ $seen{$name_s} }, $.; |
158
|
|
|
|
|
|
|
- } else { |
159
|
|
|
|
|
|
|
- warn "# Your $where line $. is empty.\n"; |
160
|
|
|
|
|
|
|
- next; |
161
|
|
|
|
|
|
|
- } |
162
|
|
|
|
|
|
|
- if ($n == $max) { |
163
|
|
|
|
|
|
|
- local $/; |
164
|
|
|
|
|
|
|
- my $junk = ; |
165
|
|
|
|
|
|
|
- last; |
166
|
|
|
|
|
|
|
- } |
167
|
|
|
|
|
|
|
- # In principle we could whine if @s != 7 but do we know enough |
168
|
|
|
|
|
|
|
- # of passwd file formats everywhere? |
169
|
|
|
|
|
|
|
- if (@s == 7 || ($^O eq 'darwin' && @s == 10)) { |
170
|
|
|
|
|
|
|
- @n = getpwuid($uid_s); |
171
|
|
|
|
|
|
|
- # 'nobody' et al. |
172
|
|
|
|
|
|
|
- next unless @n; |
173
|
|
|
|
|
|
|
- my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n; |
174
|
|
|
|
|
|
|
- # Protect against one-to-many and many-to-one mappings. |
175
|
|
|
|
|
|
|
- if ($name_s ne $name) { |
176
|
|
|
|
|
|
|
- @n = getpwnam($name_s); |
177
|
|
|
|
|
|
|
- ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n; |
178
|
|
|
|
|
|
|
- next if $name_s ne $name; |
179
|
|
|
|
|
|
|
- } |
180
|
|
|
|
|
|
|
- $perfect{$name_s}++ |
181
|
|
|
|
|
|
|
- if $name eq $name_s and |
182
|
|
|
|
|
|
|
- $uid eq $uid_s and |
183
|
|
|
|
|
|
|
-# Do not compare passwords: think shadow passwords. |
184
|
|
|
|
|
|
|
- $gid eq $gid_s and |
185
|
|
|
|
|
|
|
- $gcos eq $gcos_s and |
186
|
|
|
|
|
|
|
- $home eq $home_s and |
187
|
|
|
|
|
|
|
- $shell eq $shell_s; |
188
|
|
|
|
|
|
|
+ |
189
|
|
|
|
|
|
|
+if ($^O eq 'darwin') { |
190
|
|
|
|
|
|
|
+ my @lines = split(/\n/, $data); |
191
|
|
|
|
|
|
|
+ foreach my $line (@lines) { |
192
|
|
|
|
|
|
|
+ my @s = split /:/, $line, -1; |
193
|
|
|
|
|
|
|
+ my ($name_s, $passwd_s, $uid_s, $gid_s, $gcos_s, $home_s, $shell_s) = @s; |
194
|
|
|
|
|
|
|
+ next if /^\+/; # ignore NIS includes |
195
|
|
|
|
|
|
|
+ if (@s) { |
196
|
|
|
|
|
|
|
+ push @{ $seen{$name_s} }, $.; |
197
|
|
|
|
|
|
|
+ } else { |
198
|
|
|
|
|
|
|
+ warn "# Your $where line $. is empty.\n"; |
199
|
|
|
|
|
|
|
+ next; |
200
|
|
|
|
|
|
|
+ } |
201
|
|
|
|
|
|
|
+ if ($n == $max) { |
202
|
|
|
|
|
|
|
+ local $/; |
203
|
|
|
|
|
|
|
+ my $junk = ; |
204
|
|
|
|
|
|
|
+ last; |
205
|
|
|
|
|
|
|
+ } |
206
|
|
|
|
|
|
|
+ if (@s == 7 || ($^O eq 'darwin' && @s == 10)) { |
207
|
|
|
|
|
|
|
+ @n = getpwuid($uid_s); |
208
|
|
|
|
|
|
|
+ next unless @n; |
209
|
|
|
|
|
|
|
+ my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n; |
210
|
|
|
|
|
|
|
+ if ($name_s ne $name) { |
211
|
|
|
|
|
|
|
+ @n = getpwnam($name_s); |
212
|
|
|
|
|
|
|
+ ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n; |
213
|
|
|
|
|
|
|
+ next if $name_s ne $name; |
214
|
|
|
|
|
|
|
+ } |
215
|
|
|
|
|
|
|
+ $perfect{$name_s}++ |
216
|
|
|
|
|
|
|
+ if $name eq $name_s and |
217
|
|
|
|
|
|
|
+ $uid eq $uid_s and |
218
|
|
|
|
|
|
|
+ $gid eq $gid_s and |
219
|
|
|
|
|
|
|
+ $gcos eq $gcos_s and |
220
|
|
|
|
|
|
|
+ $home eq $home_s and |
221
|
|
|
|
|
|
|
+ $shell eq $shell_s; |
222
|
|
|
|
|
|
|
+ } |
223
|
|
|
|
|
|
|
+ $n++; |
224
|
|
|
|
|
|
|
+ } |
225
|
|
|
|
|
|
|
+} else { |
226
|
|
|
|
|
|
|
+ while () { |
227
|
|
|
|
|
|
|
+ chomp; |
228
|
|
|
|
|
|
|
+ # LIMIT -1 so that users with empty shells don't fall off |
229
|
|
|
|
|
|
|
+ my @s = split /:/, $_, -1; |
230
|
|
|
|
|
|
|
+ my ($name_s, $passwd_s, $uid_s, $gid_s, $gcos_s, $home_s, $shell_s); |
231
|
|
|
|
|
|
|
+ if ($^O eq 'darwin') { |
232
|
|
|
|
|
|
|
+ ($name_s, $passwd_s, $uid_s, $gid_s, $gcos_s, $home_s, $shell_s) = @s[0,1,2,3,7,8,9]; |
233
|
|
|
|
|
|
|
+ } else { |
234
|
|
|
|
|
|
|
+ ($name_s, $passwd_s, $uid_s, $gid_s, $gcos_s, $home_s, $shell_s) = @s; |
235
|
|
|
|
|
|
|
+ } |
236
|
|
|
|
|
|
|
+ next if /^\+/; # ignore NIS includes |
237
|
|
|
|
|
|
|
+ if (@s) { |
238
|
|
|
|
|
|
|
+ push @{ $seen{$name_s} }, $.; |
239
|
|
|
|
|
|
|
+ } else { |
240
|
|
|
|
|
|
|
+ warn "# Your $where line $. is empty.\n"; |
241
|
|
|
|
|
|
|
+ next; |
242
|
|
|
|
|
|
|
+ } |
243
|
|
|
|
|
|
|
+ if ($n == $max) { |
244
|
|
|
|
|
|
|
+ local $/; |
245
|
|
|
|
|
|
|
+ my $junk = ; |
246
|
|
|
|
|
|
|
+ last; |
247
|
|
|
|
|
|
|
+ } |
248
|
|
|
|
|
|
|
+ # In principle we could whine if @s != 7 but do we know enough |
249
|
|
|
|
|
|
|
+ # of passwd file formats everywhere? |
250
|
|
|
|
|
|
|
+ if (@s == 7 || ($^O eq 'darwin' && @s == 10)) { |
251
|
|
|
|
|
|
|
+ @n = getpwuid($uid_s); |
252
|
|
|
|
|
|
|
+ # 'nobody' et al. |
253
|
|
|
|
|
|
|
+ next unless @n; |
254
|
|
|
|
|
|
|
+ my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n; |
255
|
|
|
|
|
|
|
+ # Protect against one-to-many and many-to-one mappings. |
256
|
|
|
|
|
|
|
+ if ($name_s ne $name) { |
257
|
|
|
|
|
|
|
+ @n = getpwnam($name_s); |
258
|
|
|
|
|
|
|
+ ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$home,$shell) = @n; |
259
|
|
|
|
|
|
|
+ next if $name_s ne $name; |
260
|
|
|
|
|
|
|
+ } |
261
|
|
|
|
|
|
|
+ $perfect{$name_s}++ |
262
|
|
|
|
|
|
|
+ if $name eq $name_s and |
263
|
|
|
|
|
|
|
+ $uid eq $uid_s and |
264
|
|
|
|
|
|
|
+ # Do not compare passwords: think shadow passwords. |
265
|
|
|
|
|
|
|
+ $gid eq $gid_s and |
266
|
|
|
|
|
|
|
+ $gcos eq $gcos_s and |
267
|
|
|
|
|
|
|
+ $home eq $home_s and |
268
|
|
|
|
|
|
|
+ $shell eq $shell_s; |
269
|
|
|
|
|
|
|
+ } |
270
|
|
|
|
|
|
|
+ $n++; |
271
|
|
|
|
|
|
|
} |
272
|
|
|
|
|
|
|
- $n++; |
273
|
|
|
|
|
|
|
} |
274
|
|
|
|
|
|
|
endpwent(); |
275
|
|
|
|
|
|
|
END |
276
|
1
|
|
|
|
|
30
|
Devel::PatchPerl::_patch($patch); |
277
|
|
|
|
|
|
|
} |
278
|
|
|
|
|
|
|
|
279
|
|
|
|
|
|
|
sub _patch_h2ph_pht560 { |
280
|
1
|
|
|
1
|
|
47
|
my $patch = <<'END'; |
281
|
|
|
|
|
|
|
--- t/lib/h2ph.pht |
282
|
|
|
|
|
|
|
+++ t/lib/h2ph.pht |
283
|
|
|
|
|
|
|
@@ -29,7 +29,7 @@ unless(defined(&_H2PH_H_)) { |
284
|
|
|
|
|
|
|
if(!(defined (defined(&__SOMETHING_MORE_IMPORTANT) ? &__SOMETHING_MORE_IMPORTANT : 0))) { |
285
|
|
|
|
|
|
|
} |
286
|
|
|
|
|
|
|
elsif(!(defined (defined(&__SOMETHING_REALLY_REALLY_IMPORTANT) ? &__SOMETHING_REALLY_REALLY_IMPORTANT : 0))) { |
287
|
|
|
|
|
|
|
- die("Nup\,\ can\'t\ go\ on\ "); |
288
|
|
|
|
|
|
|
+ die("Nup, can't go on"); |
289
|
|
|
|
|
|
|
} else { |
290
|
|
|
|
|
|
|
eval 'sub EVERYTHING_IS_OK () {1;}' unless defined(&EVERYTHING_IS_OK); |
291
|
|
|
|
|
|
|
} |
292
|
|
|
|
|
|
|
@@ -49,7 +49,7 @@ unless(defined(&_H2PH_H_)) { |
293
|
|
|
|
|
|
|
require 'sys/ioctl.ph'; |
294
|
|
|
|
|
|
|
eval { |
295
|
|
|
|
|
|
|
my(%INCD) = map { $INC{$_} => 1 } (grep { $_ eq "sys/fcntl.ph" } keys(%INC)); |
296
|
|
|
|
|
|
|
- my(@REM) = map { "$_/sys/fcntl.ph" } (grep { not exists($INCD{"$_/sys/fcntl.ph"})and -f "$_/sys/fcntl.ph" } @INC); |
297
|
|
|
|
|
|
|
+ my(@REM) = map { "$_/sys/fcntl.ph" } (grep { not exists($INCD{"$_/sys/fcntl.ph"}) and -f "$_/sys/fcntl.ph" } @INC); |
298
|
|
|
|
|
|
|
require "$REM[0]" if @REM; |
299
|
|
|
|
|
|
|
}; |
300
|
|
|
|
|
|
|
warn($@) if $@; |
301
|
|
|
|
|
|
|
END |
302
|
1
|
|
|
|
|
46
|
Devel::PatchPerl::_patch($patch); |
303
|
|
|
|
|
|
|
} |
304
|
|
|
|
|
|
|
|
305
|
|
|
|
|
|
|
sub _patch_h2ph_h560 { |
306
|
1
|
|
|
1
|
|
46
|
my $patch = <<'END'; |
307
|
|
|
|
|
|
|
--- t/lib/h2ph.h |
308
|
|
|
|
|
|
|
+++ t/lib/h2ph.h |
309
|
|
|
|
|
|
|
@@ -38,7 +38,7 @@ |
310
|
|
|
|
|
|
|
#if !(defined __SOMETHING_MORE_IMPORTANT) |
311
|
|
|
|
|
|
|
# warn Be careful... |
312
|
|
|
|
|
|
|
#elif !(defined __SOMETHING_REALLY_REALLY_IMPORTANT) |
313
|
|
|
|
|
|
|
-# error Nup, can't go on /* ' /* stupid font-lock-mode */ |
314
|
|
|
|
|
|
|
+# error "Nup, can't go on" /* ' /* stupid font-lock-mode */ |
315
|
|
|
|
|
|
|
#else /* defined __SOMETHING_MORE_IMPORTANT && defined __SOMETHING_REALLY_REALLY_IMPORTANT */ |
316
|
|
|
|
|
|
|
# define EVERYTHING_IS_OK |
317
|
|
|
|
|
|
|
#endif |
318
|
|
|
|
|
|
|
END |
319
|
1
|
|
|
|
|
28
|
Devel::PatchPerl::_patch($patch); |
320
|
|
|
|
|
|
|
} |
321
|
|
|
|
|
|
|
|
322
|
|
|
|
|
|
|
sub _patch_h2ph560 { |
323
|
1
|
|
|
1
|
|
58
|
my $patch = <<'END'; |
324
|
|
|
|
|
|
|
--- utils/h2ph.PL.orig 2021-02-14 16:41:47.000000000 +0900 |
325
|
|
|
|
|
|
|
+++ utils/h2ph.PL 2021-02-14 16:43:37.000000000 +0900 |
326
|
|
|
|
|
|
|
@@ -120,9 +120,7 @@ while (defined (my $file = next_file())) |
327
|
|
|
|
|
|
|
open(OUT,">$Dest_dir/$outfile") || die "Can't create $outfile: $!\n"; |
328
|
|
|
|
|
|
|
} |
329
|
|
|
|
|
|
|
|
330
|
|
|
|
|
|
|
- print OUT |
331
|
|
|
|
|
|
|
- "require '_h2ph_pre.ph';\n\n", |
332
|
|
|
|
|
|
|
- "no warnings 'redefine';\n\n"; |
333
|
|
|
|
|
|
|
+ print OUT "require '_h2ph_pre.ph';\n\n"; |
334
|
|
|
|
|
|
|
|
335
|
|
|
|
|
|
|
while (defined (local $_ = next_line($file))) { |
336
|
|
|
|
|
|
|
if (s/^\s*\#\s*//) { |
337
|
|
|
|
|
|
|
@@ -195,19 +193,18 @@ while (defined (my $file = next_file())) |
338
|
|
|
|
|
|
|
"eval {\n"); |
339
|
|
|
|
|
|
|
$tab += 4; |
340
|
|
|
|
|
|
|
$t = "\t" x ($tab / 8) . ' ' x ($tab % 8); |
341
|
|
|
|
|
|
|
- print OUT ($t, "my(\@REM);\n"); |
342
|
|
|
|
|
|
|
if ($incl_type eq 'include_next') { |
343
|
|
|
|
|
|
|
print OUT ($t, |
344
|
|
|
|
|
|
|
"my(\%INCD) = map { \$INC{\$_} => 1 } ", |
345
|
|
|
|
|
|
|
"(grep { \$_ eq \"$incl\" } ", |
346
|
|
|
|
|
|
|
"keys(\%INC));\n"); |
347
|
|
|
|
|
|
|
print OUT ($t, |
348
|
|
|
|
|
|
|
- "\@REM = map { \"\$_/$incl\" } ", |
349
|
|
|
|
|
|
|
+ "my(\@REM) = map { \"\$_/$incl\" } ", |
350
|
|
|
|
|
|
|
"(grep { not exists(\$INCD{\"\$_/$incl\"})", |
351
|
|
|
|
|
|
|
" and -f \"\$_/$incl\" } \@INC);\n"); |
352
|
|
|
|
|
|
|
} else { |
353
|
|
|
|
|
|
|
print OUT ($t, |
354
|
|
|
|
|
|
|
- "\@REM = map { \"\$_/$incl\" } ", |
355
|
|
|
|
|
|
|
+ "my(\@REM) = map { \"\$_/$incl\" } ", |
356
|
|
|
|
|
|
|
"(grep {-r \"\$_/$incl\" } \@INC);\n"); |
357
|
|
|
|
|
|
|
} |
358
|
|
|
|
|
|
|
print OUT ($t, |
359
|
|
|
|
|
|
|
@@ -436,7 +433,7 @@ sub expr { |
360
|
|
|
|
|
|
|
} |
361
|
|
|
|
|
|
|
} else { |
362
|
|
|
|
|
|
|
if ($inif && $new !~ /defined\s*\($/) { |
363
|
|
|
|
|
|
|
- $new .= '(defined(&' . $id . ') ? &' . $id . ' : undef)'; |
364
|
|
|
|
|
|
|
+ $new .= '(defined(&' . $id . ') ? &' . $id . ' : 0)'; |
365
|
|
|
|
|
|
|
} elsif (/^\[/) { |
366
|
|
|
|
|
|
|
$new .= " \$$id"; |
367
|
|
|
|
|
|
|
} else { |
368
|
|
|
|
|
|
|
END |
369
|
1
|
|
|
|
|
77
|
Devel::PatchPerl::_patch($patch); |
370
|
|
|
|
|
|
|
} |
371
|
|
|
|
|
|
|
|
372
|
|
|
|
|
|
|
sub _patch_x2p_util561 { |
373
|
1
|
|
|
1
|
|
24
|
my $patch = <<'END'; |
374
|
|
|
|
|
|
|
--- x2p/util.c |
375
|
|
|
|
|
|
|
+++ x2p/util.c |
376
|
|
|
|
|
|
|
@@ -204,7 +204,7 @@ fatal(char *pat,...) |
377
|
|
|
|
|
|
|
} |
378
|
|
|
|
|
|
|
|
379
|
|
|
|
|
|
|
#if defined(__APPLE_CC__) |
380
|
|
|
|
|
|
|
-__private_extern__ /* warn() conflicts with libc */ |
381
|
|
|
|
|
|
|
+__private_extern__; /* warn() conflicts with libc */ |
382
|
|
|
|
|
|
|
#endif |
383
|
|
|
|
|
|
|
void |
384
|
|
|
|
|
|
|
warn(char *pat,...) |
385
|
|
|
|
|
|
|
END |
386
|
1
|
|
|
|
|
38
|
Devel::PatchPerl::_patch($patch); |
387
|
|
|
|
|
|
|
} |
388
|
|
|
|
|
|
|
|
389
|
|
|
|
|
|
|
sub _patch_timelocal_test561 { |
390
|
1
|
|
|
1
|
|
40
|
my $patch = <<'END'; |
391
|
|
|
|
|
|
|
--- t/lib/timelocal.t |
392
|
|
|
|
|
|
|
+++ t/lib/timelocal.t |
393
|
|
|
|
|
|
|
@@ -27,11 +27,12 @@ print "1..", @time * 2 + 5, "\n"; |
394
|
|
|
|
|
|
|
$count = 1; |
395
|
|
|
|
|
|
|
for (@time) { |
396
|
|
|
|
|
|
|
my($year, $mon, $mday, $hour, $min, $sec) = @$_; |
397
|
|
|
|
|
|
|
- $year -= 1900; |
398
|
|
|
|
|
|
|
+ $year -= 1900 if ($year < 1900); |
399
|
|
|
|
|
|
|
$mon --; |
400
|
|
|
|
|
|
|
my $time = timelocal($sec,$min,$hour,$mday,$mon,$year); |
401
|
|
|
|
|
|
|
# print scalar(localtime($time)), "\n"; |
402
|
|
|
|
|
|
|
my($s,$m,$h,$D,$M,$Y) = localtime($time); |
403
|
|
|
|
|
|
|
+ $Y += 1900; |
404
|
|
|
|
|
|
|
|
405
|
|
|
|
|
|
|
if ($s == $sec && |
406
|
|
|
|
|
|
|
$m == $min && |
407
|
|
|
|
|
|
|
@@ -50,6 +51,7 @@ for (@time) { |
408
|
|
|
|
|
|
|
$time = timegm($sec,$min,$hour,$mday,$mon,$year); |
409
|
|
|
|
|
|
|
($s,$m,$h,$D,$M,$Y) = gmtime($time); |
410
|
|
|
|
|
|
|
|
411
|
|
|
|
|
|
|
+ $Y += 1900; |
412
|
|
|
|
|
|
|
if ($s == $sec && |
413
|
|
|
|
|
|
|
$m == $min && |
414
|
|
|
|
|
|
|
$h == $hour && |
415
|
|
|
|
|
|
|
END |
416
|
1
|
|
|
|
|
32
|
Devel::PatchPerl::_patch($patch); |
417
|
|
|
|
|
|
|
} |
418
|
|
|
|
|
|
|
|
419
|
|
|
|
|
|
|
sub _patch_darwin_locale_test561 { |
420
|
1
|
|
|
1
|
|
3
|
my $patch = <<'END'; |
421
|
|
|
|
|
|
|
--- t/pragma/locale.t |
422
|
|
|
|
|
|
|
+++ t/pragma/locale.t |
423
|
|
|
|
|
|
|
@@ -424,6 +424,19 @@ if (-x "/usr/bin/locale" && open(LOCALES |
424
|
|
|
|
|
|
|
|
425
|
|
|
|
|
|
|
setlocale(LC_ALL, "C"); |
426
|
|
|
|
|
|
|
|
427
|
|
|
|
|
|
|
+if ($^O eq 'darwin') { |
428
|
|
|
|
|
|
|
+ # Darwin 8/Mac OS X 10.4 and 10.5 have bad Basque locales: perl bug #35895, |
429
|
|
|
|
|
|
|
+ # Apple bug ID# 4139653. It also has a problem in Byelorussian. |
430
|
|
|
|
|
|
|
+ (my $v) = $Config{osvers} =~ /^(\d+)/; |
431
|
|
|
|
|
|
|
+ if ($v >= 8 and $v < 10) { |
432
|
|
|
|
|
|
|
+ debug "# Skipping eu_ES, be_BY locales -- buggy in Darwin\n"; |
433
|
|
|
|
|
|
|
+ @Locale = grep ! m/^(eu_ES(?:\..*)?|be_BY\.CP1131)$/, @Locale; |
434
|
|
|
|
|
|
|
+ } else { |
435
|
|
|
|
|
|
|
+ debug "# Skipping be_BY locales -- buggy in Darwin\n"; |
436
|
|
|
|
|
|
|
+ @Locale = grep ! m/^be_BY\.CP1131$/, @Locale; |
437
|
|
|
|
|
|
|
+ } |
438
|
|
|
|
|
|
|
+} |
439
|
|
|
|
|
|
|
+ |
440
|
|
|
|
|
|
|
sub utf8locale { $_[0] =~ /utf-?8/i } |
441
|
|
|
|
|
|
|
|
442
|
|
|
|
|
|
|
@Locale = sort @Locale; |
443
|
|
|
|
|
|
|
END |
444
|
1
|
|
|
|
|
12
|
Devel::PatchPerl::_patch($patch); |
445
|
|
|
|
|
|
|
} |
446
|
|
|
|
|
|
|
|
447
|
|
|
|
|
|
|
sub _patch_darwin_locale_test589 { |
448
|
2
|
|
|
2
|
|
41
|
my $patch = <<'END'; |
449
|
|
|
|
|
|
|
--- lib/locale.t |
450
|
|
|
|
|
|
|
+++ lib/locale.t |
451
|
|
|
|
|
|
|
@@ -460,6 +460,9 @@ if ($^O eq 'darwin') { |
452
|
|
|
|
|
|
|
if ($v >= 8 and $v < 10) { |
453
|
|
|
|
|
|
|
debug "# Skipping eu_ES, be_BY locales -- buggy in Darwin\n"; |
454
|
|
|
|
|
|
|
@Locale = grep ! m/^(eu_ES|be_BY.CP1131$)/, @Locale; |
455
|
|
|
|
|
|
|
+ } else { |
456
|
|
|
|
|
|
|
+ debug "# Skipping be_BY locales -- buggy in Darwin\n"; |
457
|
|
|
|
|
|
|
+ @Locale = grep ! m/^be_BY\.CP1131$/, @Locale; |
458
|
|
|
|
|
|
|
} |
459
|
|
|
|
|
|
|
} |
460
|
|
|
|
|
|
|
END |
461
|
2
|
|
|
|
|
56
|
Devel::PatchPerl::_patch($patch); |
462
|
|
|
|
|
|
|
} |
463
|
|
|
|
|
|
|
|
464
|
|
|
|
|
|
|
sub _patch_darwin_locale_test5111 { |
465
|
1
|
|
|
1
|
|
106
|
my $patch = <<'END'; |
466
|
|
|
|
|
|
|
--- lib/locale.t |
467
|
|
|
|
|
|
|
+++ lib/locale.t |
468
|
|
|
|
|
|
|
@@ -460,7 +460,7 @@ if ($^O eq 'darwin') { |
469
|
|
|
|
|
|
|
if ($v >= 8 and $v < 10) { |
470
|
|
|
|
|
|
|
debug "# Skipping eu_ES, be_BY locales -- buggy in Darwin\n"; |
471
|
|
|
|
|
|
|
@Locale = grep ! m/^(eu_ES|be_BY\.CP1131)$/, @Locale; |
472
|
|
|
|
|
|
|
- } elsif ($v < 11) { |
473
|
|
|
|
|
|
|
+ } else { |
474
|
|
|
|
|
|
|
debug "# Skipping be_BY locales -- buggy in Darwin\n"; |
475
|
|
|
|
|
|
|
@Locale = grep ! m/^be_BY\.CP1131$/, @Locale; |
476
|
|
|
|
|
|
|
} |
477
|
|
|
|
|
|
|
END |
478
|
1
|
|
|
|
|
24
|
Devel::PatchPerl::_patch($patch); |
479
|
|
|
|
|
|
|
} |
480
|
|
|
|
|
|
|
|
481
|
|
|
|
|
|
|
sub _patch_darwin_locale_test5125 { |
482
|
2
|
|
|
2
|
|
44
|
my $patch = <<'END'; |
483
|
|
|
|
|
|
|
--- lib/locale.t |
484
|
|
|
|
|
|
|
+++ lib/locale.t |
485
|
|
|
|
|
|
|
@@ -460,7 +460,7 @@ if ($^O eq 'darwin') { |
486
|
|
|
|
|
|
|
if ($v >= 8 and $v < 10) { |
487
|
|
|
|
|
|
|
debug "# Skipping eu_ES, be_BY locales -- buggy in Darwin\n"; |
488
|
|
|
|
|
|
|
@Locale = grep ! m/^(eu_ES(?:\..*)?|be_BY\.CP1131)$/, @Locale; |
489
|
|
|
|
|
|
|
- } elsif ($v < 13) { |
490
|
|
|
|
|
|
|
+ } else { |
491
|
|
|
|
|
|
|
debug "# Skipping be_BY locales -- buggy in Darwin\n"; |
492
|
|
|
|
|
|
|
@Locale = grep ! m/^be_BY\.CP1131$/, @Locale; |
493
|
|
|
|
|
|
|
} |
494
|
|
|
|
|
|
|
END |
495
|
2
|
|
|
|
|
48
|
Devel::PatchPerl::_patch($patch); |
496
|
|
|
|
|
|
|
} |
497
|
|
|
|
|
|
|
|
498
|
|
|
|
|
|
|
sub _patch_darwin_locale_test5131 { |
499
|
0
|
|
|
0
|
|
0
|
my $patch = <<'END'; |
500
|
|
|
|
|
|
|
--- lib/locale.t |
501
|
|
|
|
|
|
|
+++ lib/locale.t |
502
|
|
|
|
|
|
|
@@ -460,7 +460,7 @@ if ($^O eq 'darwin') { |
503
|
|
|
|
|
|
|
if ($v >= 8 and $v < 10) { |
504
|
|
|
|
|
|
|
debug "# Skipping eu_ES, be_BY locales -- buggy in Darwin\n"; |
505
|
|
|
|
|
|
|
@Locale = grep ! m/^(eu_ES(?:\..*)?|be_BY\.CP1131)$/, @Locale; |
506
|
|
|
|
|
|
|
- } elsif ($v < 11) { |
507
|
|
|
|
|
|
|
+ } else { |
508
|
|
|
|
|
|
|
debug "# Skipping be_BY locales -- buggy in Darwin\n"; |
509
|
|
|
|
|
|
|
@Locale = grep ! m/^be_BY\.CP1131$/, @Locale; |
510
|
|
|
|
|
|
|
} |
511
|
|
|
|
|
|
|
END |
512
|
0
|
|
|
|
|
0
|
Devel::PatchPerl::_patch($patch); |
513
|
|
|
|
|
|
|
} |
514
|
|
|
|
|
|
|
|
515
|
|
|
|
|
|
|
sub _patch_darwin_locale_test5150 { |
516
|
0
|
|
|
0
|
|
0
|
my $patch = <<'END'; |
517
|
|
|
|
|
|
|
--- lib/locale.t |
518
|
|
|
|
|
|
|
+++ lib/locale.t |
519
|
|
|
|
|
|
|
@@ -460,7 +460,7 @@ if ($^O eq 'darwin') { |
520
|
|
|
|
|
|
|
if ($v >= 8 and $v < 10) { |
521
|
|
|
|
|
|
|
debug "# Skipping eu_ES, be_BY locales -- buggy in Darwin\n"; |
522
|
|
|
|
|
|
|
@Locale = grep ! m/^(eu_ES(?:\..*)?|be_BY\.CP1131)$/, @Locale; |
523
|
|
|
|
|
|
|
- } elsif ($v < 12) { |
524
|
|
|
|
|
|
|
+ } else { |
525
|
|
|
|
|
|
|
debug "# Skipping be_BY locales -- buggy in Darwin\n"; |
526
|
|
|
|
|
|
|
@Locale = grep ! m/^be_BY\.CP1131$/, @Locale; |
527
|
|
|
|
|
|
|
} |
528
|
|
|
|
|
|
|
END |
529
|
0
|
|
|
|
|
0
|
Devel::PatchPerl::_patch($patch); |
530
|
|
|
|
|
|
|
} |
531
|
|
|
|
|
|
|
|
532
|
|
|
|
|
|
|
sub _patch_darwin_locale_test5158 { |
533
|
2
|
|
|
2
|
|
32
|
my $patch = <<'END'; |
534
|
|
|
|
|
|
|
--- lib/locale.t |
535
|
|
|
|
|
|
|
+++ lib/locale.t |
536
|
|
|
|
|
|
|
@@ -648,7 +648,7 @@ if ($^O eq 'darwin') { |
537
|
|
|
|
|
|
|
if ($v >= 8 and $v < 10) { |
538
|
|
|
|
|
|
|
debug "# Skipping eu_ES, be_BY locales -- buggy in Darwin\n"; |
539
|
|
|
|
|
|
|
@Locale = grep ! m/^(eu_ES(?:\..*)?|be_BY\.CP1131)$/, @Locale; |
540
|
|
|
|
|
|
|
- } elsif ($v < 12) { |
541
|
|
|
|
|
|
|
+ } else { |
542
|
|
|
|
|
|
|
debug "# Skipping be_BY locales -- buggy in Darwin\n"; |
543
|
|
|
|
|
|
|
@Locale = grep ! m/^be_BY\.CP1131$/, @Locale; |
544
|
|
|
|
|
|
|
} |
545
|
|
|
|
|
|
|
END |
546
|
2
|
|
|
|
|
43
|
Devel::PatchPerl::_patch($patch); |
547
|
|
|
|
|
|
|
} |
548
|
|
|
|
|
|
|
|
549
|
|
|
|
|
|
|
sub _patch_darwin_gdbm_fatal_test5180 { |
550
|
1
|
|
|
1
|
|
27
|
my $patch = <<'END'; |
551
|
|
|
|
|
|
|
--- ext/GDBM_File/t/fatal.t |
552
|
|
|
|
|
|
|
+++ ext/GDBM_File/t/fatal.t |
553
|
|
|
|
|
|
|
@@ -30,16 +30,21 @@ isnt((open $fh, "<&=$fileno"), undef, "d |
554
|
|
|
|
|
|
|
or diag("\$! = $!"); |
555
|
|
|
|
|
|
|
isnt(close $fh, undef, |
556
|
|
|
|
|
|
|
"close fileno $fileno, out from underneath the GDBM_File"); |
557
|
|
|
|
|
|
|
-is(eval { |
558
|
|
|
|
|
|
|
+my $res = eval { |
559
|
|
|
|
|
|
|
$h{Perl} = 'Rules'; |
560
|
|
|
|
|
|
|
untie %h; |
561
|
|
|
|
|
|
|
- 1; |
562
|
|
|
|
|
|
|
-}, undef, 'Trapped error when attempting to write to knobbled GDBM_File'); |
563
|
|
|
|
|
|
|
+ 99; |
564
|
|
|
|
|
|
|
+}; |
565
|
|
|
|
|
|
|
|
566
|
|
|
|
|
|
|
-# Observed "File write error" and "lseek error" from two different systems. |
567
|
|
|
|
|
|
|
-# So there might be more variants. Important part was that we trapped the error |
568
|
|
|
|
|
|
|
-# via croak. |
569
|
|
|
|
|
|
|
-like($@, qr/ at .*\bfatal\.t line \d+\.\n\z/, |
570
|
|
|
|
|
|
|
- 'expected error message from GDBM_File'); |
571
|
|
|
|
|
|
|
+SKIP: { |
572
|
|
|
|
|
|
|
+ skip "Can't trigger failure", 2 if $res == 99; |
573
|
|
|
|
|
|
|
+ is $res, undef, "eval should return undef"; |
574
|
|
|
|
|
|
|
+ |
575
|
|
|
|
|
|
|
+ # Observed "File write error" and "lseek error" from two different systems. |
576
|
|
|
|
|
|
|
+ # So there might be more variants. Important part was that we trapped the error |
577
|
|
|
|
|
|
|
+ # via croak. |
578
|
|
|
|
|
|
|
+ like($@, qr/ at .*\bfatal\.t line \d+\.\n\z/, |
579
|
|
|
|
|
|
|
+ 'expected error message from GDBM_File'); |
580
|
|
|
|
|
|
|
+} |
581
|
|
|
|
|
|
|
|
582
|
|
|
|
|
|
|
unlink ; |
583
|
|
|
|
|
|
|
END |
584
|
1
|
|
|
|
|
164
|
Devel::PatchPerl::_patch($patch); |
585
|
|
|
|
|
|
|
} |
586
|
|
|
|
|
|
|
|
587
|
|
|
|
|
|
|
sub _patch_darwin_libperl_test5230 { |
588
|
2
|
|
|
2
|
|
57
|
my $patch = <<'END'; |
589
|
|
|
|
|
|
|
--- t/porting/libperl.t |
590
|
|
|
|
|
|
|
+++ t/porting/libperl.t |
591
|
|
|
|
|
|
|
@@ -550,7 +550,7 @@ if (defined $nm_err_tmp) { |
592
|
|
|
|
|
|
|
while (<$nm_err_fh>) { |
593
|
|
|
|
|
|
|
# OS X has weird error where nm warns about |
594
|
|
|
|
|
|
|
# "no name list" but then outputs fine. |
595
|
|
|
|
|
|
|
- if (/nm: no name list/ && $^O eq 'darwin') { |
596
|
|
|
|
|
|
|
+ if ((/nm: no name list/ || /^no symbols$/) && $^O eq 'darwin') { |
597
|
|
|
|
|
|
|
print "# $^O ignoring $nm output: $_"; |
598
|
|
|
|
|
|
|
next; |
599
|
|
|
|
|
|
|
} |
600
|
|
|
|
|
|
|
END |
601
|
2
|
|
|
|
|
65
|
Devel::PatchPerl::_patch($patch); |
602
|
|
|
|
|
|
|
} |
603
|
|
|
|
|
|
|
|
604
|
|
|
|
|
|
|
sub _patch_darwin_customized_dat5223 { |
605
|
1
|
|
|
1
|
|
35
|
my $patch = <<'END'; |
606
|
|
|
|
|
|
|
--- t/porting/customized.dat |
607
|
|
|
|
|
|
|
+++ t/porting/customized.dat |
608
|
|
|
|
|
|
|
@@ -20,7 +20,7 @@ ExtUtils::Command cpan/ExtUtils-Command/ |
609
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/bin/instmodsh 5bc04a0173b8b787f465271b6186220326ae8eef |
610
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command/MM.pm 6298f9b41b29e13010b185f64fa952570637fbb4 |
611
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist.pm 6e16329fb4d4c2f8db4afef4d8e79c1c1c918128 |
612
|
|
|
|
|
|
|
-ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm fc0483c5c7b92a8e0f63eb1f762172cddce5b948 |
613
|
|
|
|
|
|
|
+ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm 9239e2140e8d78d2d70802eff7ff07cb147bf0c6 |
614
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm 8d1b35fcd7d3b4f0552ffb151baf75ccb181267b |
615
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/Config.pm 676b10e16b2dc68ba21312ed8aa4d409e86005a6 |
616
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/FAQ.pod 757bffb47857521311f8f3bde43ebe165f8d5191 |
617
|
|
|
|
|
|
|
END |
618
|
1
|
|
|
|
|
42
|
Devel::PatchPerl::_patch($patch); |
619
|
|
|
|
|
|
|
} |
620
|
|
|
|
|
|
|
|
621
|
|
|
|
|
|
|
sub _patch_darwin_customized_dat5241 { |
622
|
1
|
|
|
1
|
|
45
|
my $patch = <<'END'; |
623
|
|
|
|
|
|
|
--- t/porting/customized.dat |
624
|
|
|
|
|
|
|
+++ t/porting/customized.dat |
625
|
|
|
|
|
|
|
@@ -22,7 +22,7 @@ ExtUtils::MakeMaker cpan/ExtUtils-MakeMa |
626
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command.pm e3a372e07392179711ea9972087c1105a2780fad |
627
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command/MM.pm b72721bd6aa9bf7ec328bda99a8fdb63cac6114d |
628
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist.pm 0e1e4c25eddb999fec6c4dc66593f76db34cfd16 |
629
|
|
|
|
|
|
|
-ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm bfd2aa00ca4ed251f342e1d1ad704abbaf5a615e |
630
|
|
|
|
|
|
|
+ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm 47d2fdf890d7913ccd0e32b5f98a98f75745d227 |
631
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm 5529ae3064365eafd99536621305d52f4ab31b45 |
632
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/Config.pm bc88b275af73b8faac6abd59a9aad3f625925810 |
633
|
|
|
|
|
|
|
ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/FAQ.pod 062e5d14a803fbbec8d61803086a3d7997e8a473 |
634
|
|
|
|
|
|
|
END |
635
|
1
|
|
|
|
|
46
|
Devel::PatchPerl::_patch($patch); |
636
|
|
|
|
|
|
|
} |
637
|
|
|
|
|
|
|
|
638
|
|
|
|
|
|
|
sub _patch_darwin_libperl_test5250 { |
639
|
2
|
|
|
2
|
|
27
|
my $patch = <<'END'; |
640
|
|
|
|
|
|
|
--- t/porting/libperl.t |
641
|
|
|
|
|
|
|
+++ t/porting/libperl.t |
642
|
|
|
|
|
|
|
@@ -574,7 +574,7 @@ if (defined $nm_err_tmp) { |
643
|
|
|
|
|
|
|
while (<$nm_err_fh>) { |
644
|
|
|
|
|
|
|
# OS X has weird error where nm warns about |
645
|
|
|
|
|
|
|
# "no name list" but then outputs fine. |
646
|
|
|
|
|
|
|
- if (/nm: no name list/ && $^O eq 'darwin') { |
647
|
|
|
|
|
|
|
+ if ((/nm: no name list/ || /^no symbols$/) && $^O eq 'darwin') { |
648
|
|
|
|
|
|
|
print "# $^O ignoring $nm output: $_"; |
649
|
|
|
|
|
|
|
next; |
650
|
|
|
|
|
|
|
} |
651
|
|
|
|
|
|
|
END |
652
|
2
|
|
|
|
|
37
|
Devel::PatchPerl::_patch($patch); |
653
|
|
|
|
|
|
|
} |
654
|
|
|
|
|
|
|
|
655
|
|
|
|
|
|
|
1; |
656
|
|
|
|
|
|
|
|
657
|
|
|
|
|
|
|
__END__ |