commit: 5d93a77c89ebcf55f3673236941668b8f990b337 Author: Hanno Böck <hanno <AT> gentoo <DOT> org> AuthorDate: Fri Dec 2 10:00:27 2022 +0000 Commit: Hanno Böck <hanno <AT> gentoo <DOT> org> CommitDate: Fri Dec 2 10:02:13 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d93a77c
dev-python/python-axolotl-curve25519: Fix compilation with clang. This fixes an invalid type in the python module struct. Also sent upstream. Closes: https://bugs.gentoo.org/871369 Signed-off-by: Hanno Böck <hanno <AT> gentoo.org> .../files/python-axolotl-curve25519-fix-type.patch | 15 +++++++++++++++ .../python-axolotl-curve25519-0.4.1_p2-r3.ebuild | 2 ++ 2 files changed, 17 insertions(+) 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 new file mode 100644 index 000000000000..dc30fff8d911 --- /dev/null +++ b/dev-python/python-axolotl-curve25519/files/python-axolotl-curve25519-fix-type.patch @@ -0,0 +1,15 @@ +See https://github.com/tgalal/python-axolotl-curve25519/pull/26 + +diff --git a/curve25519module.c b/curve25519module.c +index f4bd3d7..cf8bb45 100644 +--- a/curve25519module.c ++++ b/curve25519module.c +@@ -158,7 +158,7 @@ curve25519_functions[] = { + PyModuleDef_HEAD_INIT, + "axolotl_curve25519", + NULL, +- NULL, ++ 0, + curve25519_functions, + }; + 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 index 4ee2dee9744b..e8a857838ab6 100644 --- 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 @@ -18,3 +18,5 @@ S="${WORKDIR}/${PN}-${MY_PV}" LICENSE="BSD GPL-3" SLOT="0" KEYWORDS="amd64 ~arm64 ~riscv x86" + +PATCHES=( "${FILESDIR}/python-axolotl-curve25519-fix-type.patch" )