Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ignore missing ppport.h if target module use use_ppport() functions p…

…rovided by Module::Install::XSUtil.
  • Loading branch information...
commit 05151c32dea516de835000e022b60f58d7bcaf4b 1 parent c2c367b
Daisuke Murase authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/ShipIt/ProjectType/Perl/MakeMaker.pm
11 lib/ShipIt/ProjectType/Perl/MakeMaker.pm
View
@@ -42,6 +42,17 @@ sub disttest {
my $missing_ignore = join "|", qw( ^META\.yml$ ^inc/ );
@missing = grep { $_ !~ $missing_ignore } @missing;
+ # Module::Install::XSUtil also creates ppport.h automatically in make
+ {
+ open my $fh, '<', 'Makefile.PL' or die "Can't open Makefile.PL: $!";
+ my $f = do { local $/; <$fh> };
+ close $fh;
+
+ if ($f =~ /use_ppport/) {
+ @missing = grep { $_ ne 'ppport.h' } @missing;
+ }
+ }
+
# I'm getting sick of making MANIFEST.SKIP files just for the
# .shipit conf file and dh-make-perl stuff, so let's ignore those
my %ignore = map { $_ => 1 } qw(
Please sign in to comment.
Something went wrong with that request. Please try again.