mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 22:35:25 +01:00
parent
fcd5c793a7
commit
df5cf7197b
|
|
@ -436,6 +436,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
|
|||
python3-twine \
|
||||
python3-twisted \
|
||||
python3-twitter \
|
||||
python3-twofish \
|
||||
python3-txaio \
|
||||
python3-txdbus \
|
||||
python3-txws \
|
||||
|
|
|
|||
|
|
@ -0,0 +1,38 @@
|
|||
From 5704610f4b3aed5210e9c5b7c05ff8b5b2364c9c Mon Sep 17 00:00:00 2001
|
||||
From: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
Date: Mon, 12 Aug 2019 08:18:21 +0000
|
||||
Subject: [PATCH] Fix missing return statements in module stubs
|
||||
|
||||
* fixes build with -Werror=return-type
|
||||
twofish.c: In function 'init_twofish':
|
||||
twofish.c:45:1: error: control reaches end of non-void function [-Werror=return-type]
|
||||
45 | PyMODINIT_FUNC init_twofish(void) { }
|
||||
| ^~~~~~~~~~~~~~
|
||||
twofish.c: In function 'PyInit__twofish':
|
||||
twofish.c:46:1: error: control reaches end of non-void function [-Werror=return-type]
|
||||
46 | PyMODINIT_FUNC PyInit__twofish(void) { }
|
||||
| ^~~~~~~~~~~~~~
|
||||
cc1: some warnings being treated as errors
|
||||
|
||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/keybase/python-twofish/pull/6]
|
||||
---
|
||||
twofish.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/twofish.c b/twofish.c
|
||||
index e324c34..d4487d8 100644
|
||||
--- a/twofish.c
|
||||
+++ b/twofish.c
|
||||
@@ -42,5 +42,5 @@ DL_EXPORT(void) exp_Twofish_decrypt(Twofish_key * xkey, uint8_t c[16], uint8_t p
|
||||
We need a stub init_twofish function so the module will link as a proper module.
|
||||
Do not import _twofish from python; it will not work since _twofish is not a *real* module
|
||||
*/
|
||||
-PyMODINIT_FUNC init_twofish(void) { }
|
||||
-PyMODINIT_FUNC PyInit__twofish(void) { }
|
||||
+PyMODINIT_FUNC init_twofish(void) { return NULL; }
|
||||
+PyMODINIT_FUNC PyInit__twofish(void) { return NULL; }
|
||||
--
|
||||
2.17.1
|
||||
|
||||
15
meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb
Normal file
15
meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
SUMMARY = "Bindings for the Twofish implementation by Niels Ferguson"
|
||||
DESCRIPTION = "Bindings for the Twofish implementation by Niels Ferguson\
|
||||
libtwofish-dev."
|
||||
HOMEPAGE = "http://github.com/keybase/python-twofish"
|
||||
LICENSE = "BSD-3-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=33a63abf6d7567b1689d8ce69f00e43b"
|
||||
|
||||
SRC_URI += "file://0001-Fix-missing-return-statements-in-module-stubs.patch"
|
||||
|
||||
SRC_URI[md5sum] = "d7d22f16dc4ffa0e3ae2200654033abe"
|
||||
SRC_URI[sha256sum] = "b09d8bb50d33b23ff34cafb1f9209f858f752935c6a5c901efb92a41acb830fa"
|
||||
|
||||
inherit pypi setuptools3
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
Loading…
Reference in New Issue
Block a user