Diff wireshark-4.0.10 with a wireshark-4.1.0

/usr/portage/net-analyzer/wireshark/wireshark-4.1.0.ebuild 2023-10-09 14:52:33.344368447 +0300
4 4
EAPI=8
5 5

  
6 6
LUA_COMPAT=( lua5-{1..2} )
7
PYTHON_COMPAT=( python3_{10..11} )
7
# TODO: check cmake/modules/UseAsn2Wrs.cmake for 3.12
8
PYTHON_COMPAT=( python3_{10..12} )
8 9

  
9
inherit fcaps flag-o-matic readme.gentoo-r1 lua-single python-any-r1 qmake-utils xdg cmake
10
inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg cmake
10 11

  
11 12
DESCRIPTION="Network protocol analyzer (sniffer)"
12 13
HOMEPAGE="https://www.wireshark.org/"
......
22 23
	SRC_URI+=" verify-sig? ( https://www.wireshark.org/download/SIGNATURES-${PV}.txt -> ${P}-signatures.txt )"
23 24
	S="${WORKDIR}/${P/_/}"
24 25

  
25
	if [[ ${PV} != *_rc* ]] ; then
26
		KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~riscv ~x86"
27
	fi
26
	# 4.1.x is an experimental release until 4.2
27
	#if [[ ${PV} != *_rc* ]] ; then
28
	#	KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~riscv ~x86"
29
	#fi
28 30
fi
29 31

  
30 32
LICENSE="GPL-2"
......
39 41
	lua? ( ${LUA_REQUIRED_USE} )
40 42
"
41 43

  
42
# Tests restricted for now because rely on pytest internals w/ >=3.11
43
# See bug #897078 and https://gitlab.com/wireshark/wireshark/-/issues/18740.
44
RESTRICT="!test? ( test ) test"
44
RESTRICT="!test? ( test )"
45 45

  
46 46
# bug #753062 for speexdsp
47 47
RDEPEND="
......
140 140

  
141 141
PATCHES=(
142 142
	"${FILESDIR}"/${PN}-2.6.0-redhat.patch
143
	"${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch
144 143
)
145 144

  
146 145
python_check_deps() {
......
241 240
		-DENABLE_LIBXML2=$(usex libxml2)
242 241
		-DENABLE_LTO=$(usex lto)
243 242
		-DENABLE_LUA=$(usex lua)
243
		-DLUA_FIND_VERSIONS="${ELUA#lua}"
244 244
		-DENABLE_LZ4=$(usex lz4)
245 245
		-DENABLE_MINIZIP=$(usex minizip)
246 246
		-DENABLE_NETLINK=$(usex netlink)
......
321 321
	if [[ -d "${ED}"/usr/share/appdata ]] ; then
322 322
		rm -r "${ED}"/usr/share/appdata || die
323 323
	fi
324

  
325
	readme.gentoo_create_doc
326 324
}
327 325

  
328 326
pkg_postinst() {
......
337 335
			"${EROOT}"/usr/bin/dumpcap
338 336
	fi
339 337

  
340
	readme.gentoo_print_elog
338
	ewarn "NOTE: To capture traffic with wireshark as normal user you have to"
339
	ewarn "add yourself to the pcap group. This security measure ensures"
340
	ewarn "that only trusted users are allowed to sniff your traffic."
341 341
}
Thank you!