summaryrefslogtreecommitdiff
path: root/dev-perl/Net-Pcap/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-15 18:47:53 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-15 18:47:53 +0000
commita4eda25bf0f72d757244b128657832bc4da28375 (patch)
tree5a4bda4947a8d19e1f07c2385db1aff2c18ba0d2 /dev-perl/Net-Pcap/files
parent6e8d3793323b8f24be801a4aaf31cdd31a8483e9 (diff)
gentoo auto-resync : 15:03:2024 - 18:47:52
Diffstat (limited to 'dev-perl/Net-Pcap/files')
-rw-r--r--dev-perl/Net-Pcap/files/Net-Pcap-0.18-libpcap-1.9.0.patch41
-rw-r--r--dev-perl/Net-Pcap/files/Net-Pcap-0.18-test-error.patch39
2 files changed, 0 insertions, 80 deletions
diff --git a/dev-perl/Net-Pcap/files/Net-Pcap-0.18-libpcap-1.9.0.patch b/dev-perl/Net-Pcap/files/Net-Pcap-0.18-libpcap-1.9.0.patch
deleted file mode 100644
index 2495600e5d0a..000000000000
--- a/dev-perl/Net-Pcap/files/Net-Pcap-0.18-libpcap-1.9.0.patch
+++ /dev/null
@@ -1,41 +0,0 @@
---- a/Makefile.PL
-+++ b/Makefile.PL
-@@ -106,7 +106,7 @@ REASON
- # We also store the list of available functions in a file for skipping the
- # corresponding tests.
- my @funcs = have_functions(find_functions());
--$options{DEFINE} .= cpp_defines(@funcs);
-+$options{DEFINE} .= cpp_defines(@funcs). "-DHAVE_PCAP_SETSAMPLING";
- open(FUNCS, '>funcs.txt') or warn "warning: can't write 'funcs.txt': $!\n";
- print FUNCS join("\n", @funcs), "\n";
- close(FUNCS);
---- a/stubs.inc
-+++ b/stubs.inc
-@@ -354,11 +354,6 @@ int pcap_parsesrcstr(const char *source,
- #ifdef _MSC_VER
- #pragma message( "Warning: the function pcap_open() is not available" )
- #endif
--struct pcap_rmtauth {
-- int type;
-- char *username;
-- char *password;
--};
-
- pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err);
- pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err) {
-@@ -511,6 +511,7 @@ HANDLE pcap_getevent(pcap_t *p) {
- #ifdef _MSC_VER
- #pragma message( "Warning: the function pcap_setsampling() is not available" )
- #endif
-+#if 0
- struct pcap_samp {
- int method;
- int value;
-@@ -522,6 +523,7 @@ struct pcap_samp *pcap_setsampling(pcap_
- return NULL;
- }
- #endif
-+#endif
-
-
- /*
diff --git a/dev-perl/Net-Pcap/files/Net-Pcap-0.18-test-error.patch b/dev-perl/Net-Pcap/files/Net-Pcap-0.18-test-error.patch
deleted file mode 100644
index 1bd8af5e87a9..000000000000
--- a/dev-perl/Net-Pcap/files/Net-Pcap-0.18-test-error.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 7c831efcb06d6254e54423cdcd95bebbb7725270 Mon Sep 17 00:00:00 2001
-From: Kent Fredric <kentnl@gentoo.org>
-Date: Fri, 8 Dec 2017 17:52:13 +1300
-Subject: Allow error message to be a suffix
-
-Previously, the error message emitted by the native calls was of the
-form:
-
- 'syntax error'
-
-However, more recently the error message takes the form:
-
- 'syntax error in filter expression: syntax error'
-
-This patch pretends the part before the ":" is functionally equivalent
-to a line start, for the purposes of testing.
-
-Bug: https://github.com/maddingue/Net-Pcap/issues/8
-Bug: https://github.com/maddingue/Net-Pcap/pull/9
----
- t/09-error.t | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/t/09-error.t b/t/09-error.t
-index 90337b8..eee679d 100644
---- a/t/09-error.t
-+++ b/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) };
---
-2.14.3
-