Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sabyenc/files/, dev-python/sabyenc/
Date: Wed, 07 Sep 2022 04:44:42
Message-Id: 1662525777.637e284c75735e485555554709e3c7033d376d5b.mgorny@gentoo
1 commit: 637e284c75735e485555554709e3c7033d376d5b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 7 04:42:57 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 7 04:42:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=637e284c
7
8 dev-python/sabyenc: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/sabyenc/Manifest | 1 -
13 .../sabyenc/files/sabyenc-4.0.2-fix-segfault.patch | 28 ----------------------
14 dev-python/sabyenc/sabyenc-4.0.2.ebuild | 28 ----------------------
15 3 files changed, 57 deletions(-)
16
17 diff --git a/dev-python/sabyenc/Manifest b/dev-python/sabyenc/Manifest
18 index 26a0a7656ff2..c3cc9df57aff 100644
19 --- a/dev-python/sabyenc/Manifest
20 +++ b/dev-python/sabyenc/Manifest
21 @@ -1,2 +1 @@
22 -DIST sabyenc-4.0.2.tar.gz 19579235 BLAKE2B 26af61a979f94b954a6fb7fa425ca07a8d757fb16c9d434e9a1e0019d84d156b527e9309cc65113fef64dd3f2afb92b46619dc9506327273f2ba7822337e9ccf SHA512 88e8b47b1438ca55b51dbf8a407c33ec335f0604abf8a3dcbc45853b6dadadf9932d97cf3f0adabd71a9405e2deaeff2777483d9ea692c9d3cbab99dfbfbc901
23 DIST sabyenc-5.4.2.gh.tar.gz 19774424 BLAKE2B fbb954435236eb1794611a8e5852534b0f7dbd79806e8a9ca1bb57274df7cc89a6a26aa92c89c596e0c2857d4bfbd4e4c34f1d529cb5d2464a669d6d15a3f392 SHA512 a07a57e6b3416e147fcef4f27e52fea4b3a522ebb722b4d223469b63e9d08f42689950d86c544a41bfe81bba934514a43094c13b98aa585167cae69a5aa1f405
24
25 diff --git a/dev-python/sabyenc/files/sabyenc-4.0.2-fix-segfault.patch b/dev-python/sabyenc/files/sabyenc-4.0.2-fix-segfault.patch
26 deleted file mode 100644
27 index 1a80d5f13da8..000000000000
28 --- a/dev-python/sabyenc/files/sabyenc-4.0.2-fix-segfault.patch
29 +++ /dev/null
30 @@ -1,28 +0,0 @@
31 -From: Arthur Zamarin <arthurzam@×××××.com>
32 -Date: Sat, 18 Sep 2021 21:07:45 +0300
33 -Subject: Fix Segfault during testing
34 -
35 -decode_usenet_chunks might receive it argument as bytesarray, or
36 -as bytes object, but the C code expects only bytesarray.
37 -Add code, to apply variant for each case, and fail using assert when
38 -both don't apply.
39 -
40 -Signed-off-by: Arthur Zamarin <arthurzam@×××××.com>
41 -
42 ---- a/src/sabyenc3.c
43 -+++ b/src/sabyenc3.c
44 -@@ -593,7 +593,13 @@ PyObject* decode_usenet_chunks(PyObject* self, PyObject* args) {
45 - num_bytes_reserved = 0;
46 - lp_max = (int)PyList_Size(Py_input_list);
47 - for(lp = 0; lp < lp_max; lp++) {
48 -- num_bytes_reserved += (int)PyByteArray_GET_SIZE(PyList_GetItem(Py_input_list, lp));
49 -+ PyObject *temp = PyList_GetItem(Py_input_list, lp);
50 -+ if (PyByteArray_Check(temp))
51 -+ num_bytes_reserved += (int)PyByteArray_GET_SIZE(temp);
52 -+ else if (PyBytes_Check(temp))
53 -+ num_bytes_reserved += (int)PyBytes_GET_SIZE(temp);
54 -+ else
55 -+ assert(PyByteArray_Check(temp) || PyBytes_Check(temp));
56 - }
57 - }
58 -
59
60 diff --git a/dev-python/sabyenc/sabyenc-4.0.2.ebuild b/dev-python/sabyenc/sabyenc-4.0.2.ebuild
61 deleted file mode 100644
62 index d9536017b50b..000000000000
63 --- a/dev-python/sabyenc/sabyenc-4.0.2.ebuild
64 +++ /dev/null
65 @@ -1,28 +0,0 @@
66 -# Copyright 1999-2021 Gentoo Authors
67 -# Distributed under the terms of the GNU General Public License v2
68 -
69 -EAPI=7
70 -
71 -PYTHON_COMPAT=( python3_{8..10} )
72 -
73 -inherit distutils-r1
74 -
75 -DESCRIPTION="Module providing raw yEnc encoding/decoding for SABnzbd"
76 -HOMEPAGE="https://github.com/sabnzbd/sabyenc"
77 -SRC_URI="https://github.com/sabnzbd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
78 -
79 -LICENSE="LGPL-3"
80 -SLOT="0"
81 -KEYWORDS="amd64 ~x86"
82 -
83 -BDEPEND="test? (
84 - dev-python/chardet[${PYTHON_USEDEP}]
85 - )"
86 -
87 -DOCS=( CHANGES.md README.md doc/yenc-draft.1.3.txt )
88 -
89 -PATCHES=(
90 - "${FILESDIR}/${P}-fix-segfault.patch"
91 -)
92 -
93 -distutils_enable_tests pytest