Skip to content

Commit 43a888b

Browse files
committed
add dummy test_dynamic rule for newer EUMM (RT #124910)
1 parent 1ed33a8 commit 43a888b

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed

JPEG/Makefile.jpeg.maybe

100644100755
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,29 @@ else
3636
local $ENV{LDFLAGS} = "$Config{ccflags} $Config{ldflags}";
3737
system(sh => "./configure");
3838
}
39+
40+
my $seen_empty_rule;
41+
open my $fh, '<', 'Makefile' or die "Error opening Makefile: $!";
42+
while(<$fh>)
43+
{
44+
if (/# Empty rule needed/)
45+
{
46+
$seen_empty_rule = 1;
47+
last;
48+
}
49+
}
50+
if (!$seen_empty_rule)
51+
{
52+
open my $ofh, '>>', 'Makefile' or die "Error appending to Makefile: $!";
53+
print $ofh <<'EOF';
54+
55+
# Empty rules needed since ExtUtils::MakeMaker 7.18 (see https://rt.cpan.org/Ticket/Display.html?id=117800)
56+
test_dynamic:
57+
58+
subdirs-test_dynamic:
59+
60+
EOF
61+
close $ofh or die "Error closing Makefile: $!";
62+
}
63+
3964
1;

PNG/Makefile.libpng.maybe

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ clean:
101101
# Empty rule needed since ExtUtils::MakeMaker 6.36 (ca.)
102102
test:
103103
104+
# Empty rule needed since ExtUtils::MakeMaker 7.18 (see https://rt.cpan.org/Ticket/Display.html?id=117800)
105+
test_dynamic:
106+
104107
EOF
105108
return 1;
106109
}

PNG/Makefile.zlib.maybe

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,27 @@ else
2929
local $ENV{CFLAGS} = "$Config{ccflags} $Config{cccdlflags}";
3030
system(sh => "./configure");
3131
}
32+
33+
my $seen_empty_rule;
34+
open my $fh, '<', 'Makefile' or die "Error opening Makefile: $!";
35+
while(<$fh>)
36+
{
37+
if (/# Empty rule needed/)
38+
{
39+
$seen_empty_rule = 1;
40+
last;
41+
}
42+
}
43+
if (!$seen_empty_rule)
44+
{
45+
open my $ofh, '>>', 'Makefile' or die "Error appending to Makefile: $!";
46+
print $ofh <<'EOF';
47+
48+
# Empty rule needed since ExtUtils::MakeMaker 7.18 (see https://rt.cpan.org/Ticket/Display.html?id=117800)
49+
test_dynamic:
50+
51+
EOF
52+
close $ofh or die "Error closing Makefile: $!";
53+
}
54+
3255
1;

0 commit comments

Comments
 (0)