1 |
commit: 71b3ea1713fe69a7ef8a0bcf820d3bf18178908f |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 8 06:22:41 2017 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 11 19:27:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71b3ea17 |
7 |
|
8 |
dev-perl/Net-Pcap: Bump to version 0.180.0 |
9 |
|
10 |
- EAPI6 |
11 |
- Add USE=examples |
12 |
- Fix DESCRIPTION |
13 |
- Disable silly author tests |
14 |
- Fix tests against newer pcaps |
15 |
- Enable tests |
16 |
- Document comprehensive test notes |
17 |
|
18 |
Upstream: |
19 |
- Fix limitation of having only 1 callback function |
20 |
- Add pcap_offline_filter() |
21 |
- Add interop tests |
22 |
- Add fixes for old Test::More's |
23 |
- Append CCFLAGS instead of overriding |
24 |
|
25 |
Package-Manager: Portage-2.3.14, Repoman-2.3.6 |
26 |
|
27 |
dev-perl/Net-Pcap/Manifest | 1 + |
28 |
dev-perl/Net-Pcap/Net-Pcap-0.180.0.ebuild | 33 ++++++++++++++++++ |
29 |
.../Net-Pcap/files/Net-Pcap-0.18-test-error.patch | 39 ++++++++++++++++++++++ |
30 |
3 files changed, 73 insertions(+) |
31 |
|
32 |
diff --git a/dev-perl/Net-Pcap/Manifest b/dev-perl/Net-Pcap/Manifest |
33 |
index 390ed6867cd..01d2ffeadf2 100644 |
34 |
--- a/dev-perl/Net-Pcap/Manifest |
35 |
+++ b/dev-perl/Net-Pcap/Manifest |
36 |
@@ -1 +1,2 @@ |
37 |
DIST Net-Pcap-0.17.tar.gz 92853 BLAKE2B 147f0a11be36e7b5022f138611ad4226ea36d61902e966ab3400463aed4aecfd0022852df2589f363a6590270750b427cac9532f22a42e18d0f959a23e990ff1 SHA512 14747661b220b119b4182f13dbc1509cae5665e77588dbc8576f7d959f33ef6ee3785f2d9022093c1f1b808c37d04ee313f5ac39cc6eaa917962c9215c5a4de6 |
38 |
+DIST Net-Pcap-0.18.tar.gz 94207 BLAKE2B 257e2b7c5bf6ad05936b64171db3ee530249f40d695ca2aba21d4bfe4796989e3a4aa955472b9c39e33aab5d67d2eebb26b43e173dbd359d01201926fa3a6b6e SHA512 63cc216345eb65b1e76efa657623c9d444d20f4b54ab0c75e787483baaa4f1de7e3a9294967aa7eccbdca04c60b089194dd7e0d19838f899b332c5881a8c7f6d |
39 |
|
40 |
diff --git a/dev-perl/Net-Pcap/Net-Pcap-0.180.0.ebuild b/dev-perl/Net-Pcap/Net-Pcap-0.180.0.ebuild |
41 |
new file mode 100644 |
42 |
index 00000000000..0c7010719f0 |
43 |
--- /dev/null |
44 |
+++ b/dev-perl/Net-Pcap/Net-Pcap-0.180.0.ebuild |
45 |
@@ -0,0 +1,33 @@ |
46 |
+# Copyright 1999-2017 Gentoo Foundation |
47 |
+# Distributed under the terms of the GNU General Public License v2 |
48 |
+ |
49 |
+EAPI=6 |
50 |
+ |
51 |
+DIST_AUTHOR=SAPER |
52 |
+DIST_VERSION=0.18 |
53 |
+DIST_EXAMPLES=( "eg/*" ) |
54 |
+inherit perl-module eutils |
55 |
+ |
56 |
+DESCRIPTION="Interface to the pcap(3) LBL packet capture library" |
57 |
+ |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~alpha ~amd64 ~ppc ~x86" |
60 |
+IUSE="" |
61 |
+ |
62 |
+RDEPEND="net-libs/libpcap |
63 |
+ dev-perl/IO-Interface" |
64 |
+DEPEND="${RDEPEND}" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}/${PN}-${DIST_VERSION}-test-error.patch" |
68 |
+) |
69 |
+ |
70 |
+src_test() { |
71 |
+ if [[ $EUID != 0 ]]; then |
72 |
+ elog "Comprehensive testing of this module requires root permissions." |
73 |
+ elog "For details, see:" |
74 |
+ elog "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}" |
75 |
+ fi |
76 |
+ perl_rm_files t/pod{,cover,spell}.t t/distchk.t t/portfs.t |
77 |
+ perl-module_src_test |
78 |
+} |
79 |
|
80 |
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 |
81 |
new file mode 100644 |
82 |
index 00000000000..1bd8af5e87a |
83 |
--- /dev/null |
84 |
+++ b/dev-perl/Net-Pcap/files/Net-Pcap-0.18-test-error.patch |
85 |
@@ -0,0 +1,39 @@ |
86 |
+From 7c831efcb06d6254e54423cdcd95bebbb7725270 Mon Sep 17 00:00:00 2001 |
87 |
+From: Kent Fredric <kentnl@g.o> |
88 |
+Date: Fri, 8 Dec 2017 17:52:13 +1300 |
89 |
+Subject: Allow error message to be a suffix |
90 |
+ |
91 |
+Previously, the error message emitted by the native calls was of the |
92 |
+form: |
93 |
+ |
94 |
+ 'syntax error' |
95 |
+ |
96 |
+However, more recently the error message takes the form: |
97 |
+ |
98 |
+ 'syntax error in filter expression: syntax error' |
99 |
+ |
100 |
+This patch pretends the part before the ":" is functionally equivalent |
101 |
+to a line start, for the purposes of testing. |
102 |
+ |
103 |
+Bug: https://github.com/maddingue/Net-Pcap/issues/8 |
104 |
+Bug: https://github.com/maddingue/Net-Pcap/pull/9 |
105 |
+--- |
106 |
+ t/09-error.t | 2 +- |
107 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
108 |
+ |
109 |
+diff --git a/t/09-error.t b/t/09-error.t |
110 |
+index 90337b8..eee679d 100644 |
111 |
+--- a/t/09-error.t |
112 |
++++ b/t/09-error.t |
113 |
+@@ -22,7 +22,7 @@ is( $@, '', "compile() with an invalid filter string" ); |
114 |
+ is( $res, -1, " - result must not be null: $res" ); |
115 |
+ eval { $err = Net::Pcap::geterr($pcap) }; |
116 |
+ is( $@, '', "geterr()" ); |
117 |
+-like( $err, '/^(?:parse|syntax) error$/', " - \$err must not be null: $err" ); |
118 |
++like( $err, '/(^|: )(?:parse|syntax) error$/', " - \$err must not be null: $err" ); |
119 |
+ |
120 |
+ # Testing compile() with a valid filter |
121 |
+ eval { $res = Net::Pcap::compile($pcap, \$filter, "tcp", 0, $mask) }; |
122 |
+-- |
123 |
+2.14.3 |
124 |
+ |