Gentoo Archives: gentoo-commits

From: "Hanno Böck" <hanno@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-axolotl-curve25519/files/, ...
Date: Fri, 02 Dec 2022 10:02:31
Message-Id: 1669975333.5d93a77c89ebcf55f3673236941668b8f990b337.hanno@gentoo
1 commit: 5d93a77c89ebcf55f3673236941668b8f990b337
2 Author: Hanno Böck <hanno <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 2 10:00:27 2022 +0000
4 Commit: Hanno Böck <hanno <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 2 10:02:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d93a77c
7
8 dev-python/python-axolotl-curve25519: Fix compilation with clang.
9
10 This fixes an invalid type in the python module struct. Also
11 sent upstream.
12
13 Closes: https://bugs.gentoo.org/871369
14 Signed-off-by: Hanno Böck <hanno <AT> gentoo.org>
15
16 .../files/python-axolotl-curve25519-fix-type.patch | 15 +++++++++++++++
17 .../python-axolotl-curve25519-0.4.1_p2-r3.ebuild | 2 ++
18 2 files changed, 17 insertions(+)
19
20 diff --git a/dev-python/python-axolotl-curve25519/files/python-axolotl-curve25519-fix-type.patch b/dev-python/python-axolotl-curve25519/files/python-axolotl-curve25519-fix-type.patch
21 new file mode 100644
22 index 000000000000..dc30fff8d911
23 --- /dev/null
24 +++ b/dev-python/python-axolotl-curve25519/files/python-axolotl-curve25519-fix-type.patch
25 @@ -0,0 +1,15 @@
26 +See https://github.com/tgalal/python-axolotl-curve25519/pull/26
27 +
28 +diff --git a/curve25519module.c b/curve25519module.c
29 +index f4bd3d7..cf8bb45 100644
30 +--- a/curve25519module.c
31 ++++ b/curve25519module.c
32 +@@ -158,7 +158,7 @@ curve25519_functions[] = {
33 + PyModuleDef_HEAD_INIT,
34 + "axolotl_curve25519",
35 + NULL,
36 +- NULL,
37 ++ 0,
38 + curve25519_functions,
39 + };
40 +
41
42 diff --git a/dev-python/python-axolotl-curve25519/python-axolotl-curve25519-0.4.1_p2-r3.ebuild b/dev-python/python-axolotl-curve25519/python-axolotl-curve25519-0.4.1_p2-r3.ebuild
43 index 4ee2dee9744b..e8a857838ab6 100644
44 --- a/dev-python/python-axolotl-curve25519/python-axolotl-curve25519-0.4.1_p2-r3.ebuild
45 +++ b/dev-python/python-axolotl-curve25519/python-axolotl-curve25519-0.4.1_p2-r3.ebuild
46 @@ -18,3 +18,5 @@ S="${WORKDIR}/${PN}-${MY_PV}"
47 LICENSE="BSD GPL-3"
48 SLOT="0"
49 KEYWORDS="amd64 ~arm64 ~riscv x86"
50 +
51 +PATCHES=( "${FILESDIR}/python-axolotl-curve25519-fix-type.patch" )