Skip to contentSkip to conversation

python3-twofish: drop recipe

PATCH In review Tim Orling 2 participants 3 messages Feb 26, 2022

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/1 python3-twofish: drop recipe

The code has not been touched since 2013 and does not build with bdist_wheel. If you depend upon this recipe, please work with upstream to update the package to PEP-517 packaging.

---
 ...ng-return-statements-in-module-stubs.patch | 38 -------------------
 .../python/python3-twofish_0.3.0.bb           | 15 --------
 2 files changed, 53 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch
 delete mode 100644 meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb
meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch deleted +0 -38
deleted file mode 100644
index c25b2457e2..0000000000
@@ -1,38 +0,0 @@
-From 5704610f4b3aed5210e9c5b7c05ff8b5b2364c9c Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-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 <[email protected]>
-
-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
-
meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb deleted +0 -15
deleted file mode 100644
index 94fb71090e..0000000000
@@ -1,15 +0,0 @@
-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"
Signature · 1 line
2.30.2
#1 lore raw

it appears in dependencies of one another recipe in meta-python

ERROR: Nothing RPROVIDES 'python3-twofish' (but /mnt/b/yoe/master/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-pyjks_20.0.0.bb RDEPENDS on or otherwise requires it
)

Quoted 90 lines · Tim Orling

The code has not been touched since 2013 and does not build with bdist_wheel. If you depend upon this recipe, please work with upstream to update the package to PEP-517 packaging.

---
 ...ng-return-statements-in-module-stubs.patch | 38 -------------------
 .../python/python3-twofish_0.3.0.bb           | 15 --------
 2 files changed, 53 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch
 delete mode 100644 meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb
meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch deleted +0 -38
deleted file mode 100644
index c25b2457e2..0000000000
@@ -1,38 +0,0 @@
-From 5704610f4b3aed5210e9c5b7c05ff8b5b2364c9c Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-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 <[email protected]>
-
-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
-
meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb deleted +0 -16
deleted file mode 100644
index 94fb71090e..0000000000
@@ -1,15 +0,0 @@
-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"
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95537): https://lists.openembedded.org/g/openembedded-devel/message/95537
Mute This Topic: https://lists.openembedded.org/mt/89404719/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw
Quoted 7 lines · Khem Raj

it appears in dependencies of one another recipe in meta-python

ERROR: Nothing RPROVIDES 'python3-twofish' (but

/mnt/b/yoe/master/sources/meta-openembedded/meta-python/recipes-devtools/python/ python3-pyjks_20.0.0.bb
RDEPENDS on or otherwise requires it

ok. Perhaps we can find a way to modify upstream to be able to build a wheel.
My first guess is to change
"from distutils.core import setup, Extension"
To either use setuptools or the vendored setuptoools._distutils

This will probably turn into the next super pattern to build these old code bases.

Quoted 1 line
Quoted 109 lines · Tim Orling
Quoted 11 lines

The code has not been touched since 2013 and does not build with bdist_wheel. If you depend upon this recipe, please work with upstream to update the package to PEP-517 packaging.

---
 ...ng-return-statements-in-module-stubs.patch | 38 -------------------
 .../python/python3-twofish_0.3.0.bb           | 15 --------
 2 files changed, 53 deletions(-)
 delete mode 100644

meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch

Quoted 1 line
 delete mode 100644 meta-python/recipes-devtools/python/

python3-twofish_0.3.0.bb

Quoted 2 lines

diff --git

a/meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch b/meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch

Quoted 3 lines

deleted file mode 100644
index c25b2457e2..0000000000
---

a/meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch

meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch line 8

Quoted 10 lines

+++ /dev/null

meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch deleted +0 -8
@@ -1,38 +0,0 @@
-From 5704610f4b3aed5210e9c5b7c05ff8b5b2364c9c Mon Sep 17 00:00:00 2001
-From: Martin Jansa <[email protected]>
-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]

meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch

Quoted 4 lines
meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch deleted +0 -4
-     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]

meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch

Quoted 7 lines
meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch deleted +0 -7
-     46 | PyMODINIT_FUNC PyInit__twofish(void) { }
-        | ^~~~~~~~~~~~~~
-  cc1: some warnings being treated as errors
-
-Signed-off-by: Martin Jansa <[email protected]>
-
-Upstream-Status: Submitted [

https://github.com/keybase/python-twofish/pull/6]

meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch

Quoted 9 lines
meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch deleted +0 -9
----
- 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

Review line 29

Quoted 1 line
(quoted diff) +0 -1
- We need a stub init_twofish function so the module will link as a

proper module.

Review line 30

Quoted 1 line
(quoted diff) +0 -1
- Do not import _twofish from python; it will not work since _twofish is

not a *real* module

Review

Quoted 9 lines
meta-python/recipes-devtools/python/python3-twofish/0001-Fix-missing-return-statements-in-module-stubs.patch deleted +0 -8
- */
--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
-
(quoted diff) +0 -0

python3-twofish_0.3.0.bb b/meta-python/recipes-devtools/python/ python3-twofish_0.3.0.bb

meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb line 2

Quoted 7 lines

deleted file mode 100644
index 94fb71090e..0000000000

meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb deleted +0 -2
@@ -1,15 +0,0 @@
-SUMMARY = "Bindings for the Twofish implementation by Niels Ferguson"
-DESCRIPTION = "Bindings for the Twofish implementation by Niels

Ferguson\

meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb

Quoted 6 lines
meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb deleted +0 -6
- 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"

meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb

Quoted 3 lines
meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb deleted +0 -3
-
-SRC_URI[md5sum] = "d7d22f16dc4ffa0e3ae2200654033abe"
-SRC_URI[sha256sum] =

"b09d8bb50d33b23ff34cafb1f9209f858f752935c6a5c901efb92a41acb830fa"

Quoted 11 lines
meta-python/recipes-devtools/python/python3-twofish_0.3.0.bb deleted +0 -5
-
-inherit pypi setuptools3
-
-BBCLASSEXTEND = "native nativesdk"
--

2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#95537):

https://lists.openembedded.org/g/openembedded-devel/message/95537

Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/89404719/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [

[email protected]]

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-