Skip to content

Commit

Permalink
p5.26-net-pcap: compatibility with libpcap 1.9.0
Browse files Browse the repository at this point in the history
* applying patch in to fix tests  [maddingue/Net-Pcap#9]
  • Loading branch information
agm650 authored and dbevans committed Dec 12, 2018
1 parent 30dcbf5 commit d6b50a9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion perl/p5-net-pcap/Portfile
Expand Up @@ -21,7 +21,7 @@ platforms darwin
checksums rmd160 1959ae0cc70fdd8b4cdb2d9028123fd83338c8d5 \
sha256 cb9bd44948c23544bb9d4e28261dbd0dbb3e7564709487a7855576e0d9b68307

patchfiles fix-build-netpcap.patch
patchfiles fix-build-netpcap.patch Net-Pcap-0.18-Adapt-a-test-to-libpcap-1.8.0.patch

if {${perl5.major} != ""} {
depends_lib-append \
Expand Down
@@ -0,0 +1,13 @@
diff --git a/t/09-error.t b/t/09-error.t
--- t/09-error.t
+++ t/09-error.t
@@ -22,7 +22,7 @@ is( $@, '', "compile() with an invalid filter string" );
is( $res, -1, " - result must not be null: $res" );
eval { $err = Net::Pcap::geterr($pcap) };
is( $@, '', "geterr()" );
-like( $err, '/^(?:parse|syntax) error$/', " - \$err must not be null: $err" );
+like( $err, '/(^|: )(?:parse|syntax) error$/', " - \$err must not be null: $err" );

# Testing compile() with a valid filter
eval { $res = Net::Pcap::compile($pcap, \$filter, "tcp", 0, $mask) };

0 comments on commit d6b50a9

Please sign in to comment.