Diff libseccomp-2.6.0 with a libseccomp-9999

/usr/portage/sys-libs/libseccomp/libseccomp-9999.ebuild 2025-12-22 20:18:07.010888463 +0300
8 8
DISTUTILS_USE_PEP517=setuptools
9 9
PYTHON_COMPAT=( python3_{10..13} )
10 10

  
11
inherit distutils-r1 multilib-minimal
11
inherit distutils-r1 multilib-minimal multiprocessing
12 12

  
13 13
DESCRIPTION="High level interface to Linux seccomp filter"
14 14
HOMEPAGE="https://github.com/seccomp/libseccomp"
......
19 19
	inherit autotools git-r3
20 20
else
21 21
	SRC_URI="https://github.com/seccomp/libseccomp/releases/download/v${PV}/${P}.tar.gz"
22
	KEYWORDS="-* amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 x86"
22
	KEYWORDS="-* ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~x86"
23 23
fi
24 24

  
25 25
LICENSE="LGPL-2.1"
......
28 28
RESTRICT="!test? ( test )"
29 29
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
30 30

  
31
RDEPEND="
32
	python? ( ${PYTHON_DEPS} )
33
"
31 34
# We need newer kernel headers; we don't keep strict control of the exact
32 35
# version here, just be safe and pull in the latest stable ones. bug #551248
33
DEPEND="
36
DEPEND="${RDEPEND}
34 37
	>=sys-kernel/linux-headers-5.15
35
	python? ( ${PYTHON_DEPS} )
36 38
"
37
RDEPEND="${DEPEND}"
38 39
BDEPEND="
39 40
	${DEPEND}
40 41
	dev-util/gperf
......
47 48
PATCHES=(
48 49
	"${FILESDIR}"/libseccomp-2.6.0-python-shared.patch
49 50
	"${FILESDIR}"/libseccomp-2.5.3-skip-valgrind.patch
50
	"${FILESDIR}"/${P}-drop-bogus-test.patch
51 51
)
52 52

  
53 53
src_prepare() {
......
58 58

  
59 59
		eautoreconf
60 60
	fi
61

  
62
	# Silence noise when running Python tests
63
	sed -i -e 's:$(pwd)/../src/python/build/lib\.\*:$(pwd):' tests/regression || die
61 64
}
62 65

  
63 66
multilib_src_configure() {
......
89 92
}
90 93

  
91 94
multilib_src_test() {
95
	local -x LIBSECCOMP_TSTCFG_JOBS="$(makeopts_jobs)"
96
	emake -Onone check
97

  
98
	if multilib_is_native_abi && use python ; then
99
		distutils-r1_src_test
100
	fi
101
}
102

  
103
python_test() {
104
	local -x LIBSECCOMP_TSTCFG_MODE_LIST="python"
105

  
92 106
	emake -Onone check
93 107
}
94 108

  
Thank you!