Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/
Date: Tue, 31 May 2022 06:54:55
Message-Id: 1653980083.83298719593bc8a55b806e1c1e797f175a64744e.sam@gentoo
1 commit: 83298719593bc8a55b806e1c1e797f175a64744e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 31 06:50:23 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue May 31 06:54:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83298719
7
8 net-analyzer/wireshark: add 3.6.5
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-analyzer/wireshark/Manifest | 1 +
13 ...ireshark-9999.ebuild => wireshark-3.6.5.ebuild} | 41 ++++++++++++----------
14 net-analyzer/wireshark/wireshark-9999.ebuild | 34 ++++++++++--------
15 3 files changed, 43 insertions(+), 33 deletions(-)
16
17 diff --git a/net-analyzer/wireshark/Manifest b/net-analyzer/wireshark/Manifest
18 index dc8c2a47fbc4..bd4a9d691d3e 100644
19 --- a/net-analyzer/wireshark/Manifest
20 +++ b/net-analyzer/wireshark/Manifest
21 @@ -1,3 +1,4 @@
22 DIST wireshark-3.4.11.tar.xz 32354216 BLAKE2B 3e08d01f2d89f5ddd74c4e2215e6852f30c7419234a45b52a25aa9119995ec2c2882cc3993dce7941e6e73230eb4d295bf0785dda5fe8c3df99f9efdb1e42bfd SHA512 cfef2c3e56279baadb7f41a1f46fde9214a467972f69914c14a8153ea2f2adcb55832413bcaf7a3f8d98b4b62d0574f12144de6c06ff382b4fa8b071903993dc
23 DIST wireshark-3.6.2.tar.xz 39654296 BLAKE2B 585cf925892ec9d5b6413ccc53c49035eba8a7cd9206f1354f0a808daec9b0f20fc72b3427a2b592f196dd6b2ab67fd35e73d152a20c16fb0f0153c6a03d3156 SHA512 cd4a8077629632e9a924600f9af2ffd01917726fd64504d6f3b4a2a1cb5340c9c0bac23e4abab63743952a0a78efd2e09bb125b127d24e85eca6fa41928fd070
24 DIST wireshark-3.6.3.tar.xz 39935892 BLAKE2B 3b636867d946f0cf748eb719874e815c919ee9cedd21a7e9034d54b4cb87ae4a09ec02a199e1ec8051e421fe2929983d659f340ccfd12ab35e1ecd52000964fd SHA512 4415216f791caee23757f3c754dd88ce8fd8eb8d2d64c1bd011b40c7451a1ef56cf41bcf1cdcf41221f196bf17be550f9271f05b82a017a02cac5c241785b7e6
25 +DIST wireshark-3.6.5.tar.xz 39939340 BLAKE2B 4df1abce2563f20e91fac169ef1ab65851a5f63423aceba487db8cd4b954c4a2ba5673e032878b33a43992cb2ee4628899eee8b0065220cd0c79a8c98a589ef0 SHA512 9aa60721401fbd1f3c6b912312792433c9f8a09583cf684a4f1a24c839f4786a54a0abbfd88c04ba222e5a7af09f7bc67c292a0f944c9b717a71509655fe2fe5
26
27 diff --git a/net-analyzer/wireshark/wireshark-9999.ebuild b/net-analyzer/wireshark/wireshark-3.6.5.ebuild
28 similarity index 90%
29 copy from net-analyzer/wireshark/wireshark-9999.ebuild
30 copy to net-analyzer/wireshark/wireshark-3.6.5.ebuild
31 index 3c9c26865ea3..fffca9343012 100644
32 --- a/net-analyzer/wireshark/wireshark-9999.ebuild
33 +++ b/net-analyzer/wireshark/wireshark-3.6.5.ebuild
34 @@ -86,8 +86,10 @@ BDEPEND="${PYTHON_DEPS}
35 dev-qt/linguist-tools:5
36 )
37 test? (
38 - dev-python/pytest
39 - dev-python/pytest-xdist
40 + $(python_gen_any_dep '
41 + dev-python/pytest[${PYTHON_USEDEP}]
42 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
43 + ')
44 )"
45 RDEPEND="${RDEPEND}
46 qt5? ( virtual/freedesktop-icon-theme )
47 @@ -98,8 +100,17 @@ PATCHES=(
48 "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch
49 )
50
51 +python_check_deps() {
52 + use test || return 0
53 +
54 + python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" &&
55 + python_has_version -b "dev-python/pytest-xdist[${PYTHON_USEDEP}]"
56 +}
57 +
58 pkg_setup() {
59 use lua && lua-single_pkg_setup
60 +
61 + python-any-r1_pkg_setup
62 }
63
64 src_configure() {
65 @@ -153,7 +164,7 @@ src_configure() {
66 -DBUILD_tshark=$(usex tshark)
67 -DBUILD_udpdump=$(usex udpdump)
68 -DBUILD_wireshark=$(usex qt5)
69 - -DDISABLE_WERROR=yes
70 + -DDISABLE_WERROR=ON
71 -DENABLE_BCG729=$(usex bcg729)
72 -DENABLE_BROTLI=$(usex brotli)
73 -DENABLE_CAP=$(usex filecaps caps)
74 @@ -185,18 +196,11 @@ src_configure() {
75 src_test() {
76 cmake_build test-programs
77
78 - myctestargs=(
79 - --disable-capture
80 - --skip-missing-programs=all
81 - --verbose
82 -
83 - # Skip known failing tests
84 - # extcaps needs a bunch of external programs
85 - -E "(suite_extcaps)"
86 - #-E "(suite_decryption|suite_extcaps|suite_nameres)"
87 - )
88 -
89 - cmake_src_test
90 + # https://www.wireshark.org/docs/wsdg_html_chunked/ChTestsRunPytest.html
91 + epytest \
92 + --disable-capture \
93 + --skip-missing-programs=all \
94 + --program-path "${BUILD_DIR}"/run
95 }
96
97 src_install() {
98 @@ -207,7 +211,8 @@ src_install() {
99
100 # install headers
101 insinto /usr/include/wireshark
102 - doins "${BUILD_DIR}"/config.h
103 + doins ws_diag_control.h ws_symbol_export.h \
104 + "${BUILD_DIR}"/config.h
105
106 # If trying to remove this, try build e.g. libvirt first!
107 # At last check, Fedora is still doing this too.
108 @@ -232,12 +237,12 @@ src_install() {
109
110 for s in 16 32 48 64 128 256 512 1024 ; do
111 insinto /usr/share/icons/hicolor/${s}x${s}/apps
112 - newins resources/icons/wsicon${s}.png wireshark.png
113 + newins image/wsicon${s}.png wireshark.png
114 done
115
116 for s in 16 24 32 48 64 128 256 ; do
117 insinto /usr/share/icons/hicolor/${s}x${s}/mimetypes
118 - newins resources/icons//WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
119 + newins image/WiresharkDoc-${s}.png application-vnd.tcpdump.pcap.png
120 done
121 fi
122
123
124 diff --git a/net-analyzer/wireshark/wireshark-9999.ebuild b/net-analyzer/wireshark/wireshark-9999.ebuild
125 index 3c9c26865ea3..68dc99e8c15c 100644
126 --- a/net-analyzer/wireshark/wireshark-9999.ebuild
127 +++ b/net-analyzer/wireshark/wireshark-9999.ebuild
128 @@ -86,8 +86,10 @@ BDEPEND="${PYTHON_DEPS}
129 dev-qt/linguist-tools:5
130 )
131 test? (
132 - dev-python/pytest
133 - dev-python/pytest-xdist
134 + $(python_gen_any_dep '
135 + dev-python/pytest[${PYTHON_USEDEP}]
136 + dev-python/pytest-xdist[${PYTHON_USEDEP}]
137 + ')
138 )"
139 RDEPEND="${RDEPEND}
140 qt5? ( virtual/freedesktop-icon-theme )
141 @@ -98,8 +100,17 @@ PATCHES=(
142 "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch
143 )
144
145 +python_check_deps() {
146 + use test || return 0
147 +
148 + python_has_version -b "dev-python/pytest[${PYTHON_USEDEP}]" &&
149 + python_has_version -b "dev-python/pytest-xdist[${PYTHON_USEDEP}]"
150 +}
151 +
152 pkg_setup() {
153 use lua && lua-single_pkg_setup
154 +
155 + python-any-r1_pkg_setup
156 }
157
158 src_configure() {
159 @@ -153,7 +164,7 @@ src_configure() {
160 -DBUILD_tshark=$(usex tshark)
161 -DBUILD_udpdump=$(usex udpdump)
162 -DBUILD_wireshark=$(usex qt5)
163 - -DDISABLE_WERROR=yes
164 + -DDISABLE_WERROR=ON
165 -DENABLE_BCG729=$(usex bcg729)
166 -DENABLE_BROTLI=$(usex brotli)
167 -DENABLE_CAP=$(usex filecaps caps)
168 @@ -185,18 +196,11 @@ src_configure() {
169 src_test() {
170 cmake_build test-programs
171
172 - myctestargs=(
173 - --disable-capture
174 - --skip-missing-programs=all
175 - --verbose
176 -
177 - # Skip known failing tests
178 - # extcaps needs a bunch of external programs
179 - -E "(suite_extcaps)"
180 - #-E "(suite_decryption|suite_extcaps|suite_nameres)"
181 - )
182 -
183 - cmake_src_test
184 + # https://www.wireshark.org/docs/wsdg_html_chunked/ChTestsRunPytest.html
185 + epytest \
186 + --disable-capture \
187 + --skip-missing-programs=all \
188 + --program-path "${BUILD_DIR}"/run
189 }
190
191 src_install() {