Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libseccomp/, sys-libs/libseccomp/files/
Date: Sun, 30 Oct 2022 09:43:22
Message-Id: 1667122840.f1d0273dc3070fd511e8f65017ea87481934d0b2.sam@gentoo
1 commit: f1d0273dc3070fd511e8f65017ea87481934d0b2
2 Author: Michal Privoznik <michal.privoznik <AT> gmail <DOT> com>
3 AuthorDate: Tue Oct 25 12:43:59 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 09:40:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1d0273d
7
8 sys-libs/libseccomp: Rebase libseccomp-python-shared.patch
9
10 The libseccomp-python-shared.patch that makes python module
11 depend on libseccomp.so instead of linking it statically in
12 does no longer apply cleanly. Rebase it.
13
14 Signed-off-by: Michal Privoznik <michal.privoznik <AT> gmail.com>
15 Closes: https://github.com/gentoo/gentoo/pull/27943
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 .../files/libseccomp-2.6.0-python-shared.patch | 25 ++++++++++++++++++++++
19 sys-libs/libseccomp/libseccomp-9999.ebuild | 2 +-
20 2 files changed, 26 insertions(+), 1 deletion(-)
21
22 diff --git a/sys-libs/libseccomp/files/libseccomp-2.6.0-python-shared.patch b/sys-libs/libseccomp/files/libseccomp-2.6.0-python-shared.patch
23 new file mode 100644
24 index 000000000000..34b12db22112
25 --- /dev/null
26 +++ b/sys-libs/libseccomp/files/libseccomp-2.6.0-python-shared.patch
27 @@ -0,0 +1,25 @@
28 +From 594fecb16833c693ac0cff8f857aec0edd097077 Mon Sep 17 00:00:00 2001
29 +Message-Id: <594fecb16833c693ac0cff8f857aec0edd097077.1666701554.git.mprivozn@××××××.com>
30 +From: Michal Privoznik <mprivozn@××××××.com>
31 +Date: Tue, 25 Oct 2022 14:39:07 +0200
32 +Subject: [PATCH] Link python module against shared library
33 +
34 +---
35 + src/python/setup.py | 2 +-
36 + 1 file changed, 1 insertion(+), 1 deletion(-)
37 +
38 +diff --git a/src/python/setup.py b/src/python/setup.py
39 +index 46f9a73..85deb03 100755
40 +--- a/src/python/setup.py
41 ++++ b/src/python/setup.py
42 +@@ -40,6 +40,6 @@ setup(
43 + ext_modules = cythonize([
44 + Extension("seccomp", ["seccomp.pyx"],
45 + # unable to handle libtool libraries directly
46 +- extra_objects=["../.libs/libseccomp.a"]),
47 ++ extra_objects=["../.libs/libseccomp.so"]),
48 + ])
49 + )
50 +--
51 +2.37.4
52 +
53
54 diff --git a/sys-libs/libseccomp/libseccomp-9999.ebuild b/sys-libs/libseccomp/libseccomp-9999.ebuild
55 index fed0b3c8f425..e97b661f1bb0 100644
56 --- a/sys-libs/libseccomp/libseccomp-9999.ebuild
57 +++ b/sys-libs/libseccomp/libseccomp-9999.ebuild
58 @@ -37,7 +37,7 @@ BDEPEND="${DEPEND}
59 python? ( dev-python/cython[${PYTHON_USEDEP}] )"
60
61 PATCHES=(
62 - "${FILESDIR}"/libseccomp-python-shared.patch
63 + "${FILESDIR}"/libseccomp-2.6.0-python-shared.patch
64 "${FILESDIR}"/libseccomp-2.5.3-skip-valgrind.patch
65 )