mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/python-axolotl-curve25519: Allow building with gcc 14.x
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a62d306906
commit
664595879b
2 changed files with 26 additions and 2 deletions
|
@ -0,0 +1,24 @@
|
|||
From 901f4fb12e1290b72fbd26ea1f40755b079fa241 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Hanno=20B=C3=B6ck?= <hanno@gentoo.org>
|
||||
Date: Fri, 2 Dec 2022 10:51:43 +0100
|
||||
Subject: [PATCH] The 4th variable of PyModuleDef is an int, not a pointer:
|
||||
https://docs.python.org/3/c-api/module.html#c.PyModuleDef
|
||||
|
||||
Fixes compilation with clang.
|
||||
---
|
||||
curve25519module.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
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,
|
||||
};
|
||||
|
|
@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=python-axolotl-curve25519
|
||||
VERSION=${VERSION:-0.4.1.post2}
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -70,7 +70,7 @@ cd $TMP
|
|||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
|
||||
patch -p1 < $CWD/901f4fb12e1290b72fbd26ea1f40755b079fa241.patch
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
|
|
Loading…
Reference in a new issue