commit:     1e1fb859444064c5a936071c5f3508dc48a912ec
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 14 15:44:55 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 14 16:47:38 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e1fb859

dev-python/rencode: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/rencode/Manifest                        |  1 -
 .../rencode/files/rencode-1.0.6-cython-3.1.0.patch | 26 -------------
 .../rencode-1.0.6-drop-wheel-dependency.patch      | 17 ---------
 .../files/rencode-1.0.6-fix-CVE-2021-40839.patch   | 34 -----------------
 dev-python/rencode/rencode-1.0.6-r4.ebuild         | 44 ----------------------
 5 files changed, 122 deletions(-)

diff --git a/dev-python/rencode/Manifest b/dev-python/rencode/Manifest
index f2ed4924274a..6563c1d9a520 100644
--- a/dev-python/rencode/Manifest
+++ b/dev-python/rencode/Manifest
@@ -1,2 +1 @@
-DIST rencode-1.0.6.gh.tar.gz 25455 BLAKE2B 
def013a569a53e2b2d96b3430c13676810bc5879e565f091dbc44f1ae950b8ec7ca0fa5e35a974432fd71a1bcca5a3f1f18bb2a9f042480167ab50e4f0aba8c3
 SHA512 
f04de4d3a83aed916bdc4b7a8ca772655e9324d0531ee882cb7d2a1e92b397bdcec8497bf02939e0a806886ecc62ed2e7319dfee054dad1b69052157f0959e8f
 DIST rencode-1.0.8.gh.tar.gz 26072 BLAKE2B 
cca51bc4c53930a6ea847adeef0394e4cea7120862392fecd7325bb4bb9b9df9afdc892a3dee0c879fba44a007e8050508406c1ad37bbc756413fcf39521e7f3
 SHA512 
0c929d557f20b055c2c1ccbb29e6e8bedd2dbab2b356da7cdc9bb985a78be7bfb3a0d43bb7576fd7f95a830e99eb23f3a9dcd01547307d00905bdd2555b49294

diff --git a/dev-python/rencode/files/rencode-1.0.6-cython-3.1.0.patch 
b/dev-python/rencode/files/rencode-1.0.6-cython-3.1.0.patch
deleted file mode 100644
index f77b9174dcf6..000000000000
--- a/dev-python/rencode/files/rencode-1.0.6-cython-3.1.0.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From db3ad169c16e00e39ebc72dc2938828f24299d56 Mon Sep 17 00:00:00 2001
-From: Sebastian Pipping <[email protected]>
-Date: Sun, 11 May 2025 22:17:27 +0200
-Subject: [PATCH] rencode/rencode.pyx: Fix compilation for Cython 3.1.0
-
-https://github.com/aresch/rencode/issues/31
----
- rencode/rencode.pyx | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/rencode/rencode.pyx b/rencode/rencode.pyx
-index 3db1180..494919b 100644
---- a/rencode/rencode.pyx
-+++ b/rencode/rencode.pyx
-@@ -275,7 +275,7 @@ cdef object MIN_SIGNED_LONGLONG = -MAX_SIGNED_LONGLONG
- 
- cdef encode(char **buf, unsigned int *pos, data):
-     t = type(data)
--    if t == int or t == long:
-+    if t == int:
-         if -128 <= data < 128:
-             encode_char(buf, pos, data)
-         elif -32768 <= data < 32768:
--- 
-2.49.0
-

diff --git a/dev-python/rencode/files/rencode-1.0.6-drop-wheel-dependency.patch 
b/dev-python/rencode/files/rencode-1.0.6-drop-wheel-dependency.patch
deleted file mode 100644
index 1a7e0ea2b87a..000000000000
--- a/dev-python/rencode/files/rencode-1.0.6-drop-wheel-dependency.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-commit 3019171614f22c3d489d46e0fb22c07bf393830f
-Author: Louis Sautier <[email protected]>
-Date:   Sun Aug 8 22:51:53 2021 +0200
-
-    Remove unnecessary wheel dependency
-
-diff --git a/setup.py b/setup.py
-index 023df09..6445c0a 100644
---- a/setup.py
-+++ b/setup.py
-@@ -92,5 +92,5 @@ setup(
-   url="https://github.com/aresch/rencode";,
-   cmdclass={'build_ext': optional_build_ext},
-   ext_modules=ext_modules,
--  setup_requires=['setuptools', 'wheel'],
-+  setup_requires=['setuptools'],
- )

diff --git a/dev-python/rencode/files/rencode-1.0.6-fix-CVE-2021-40839.patch 
b/dev-python/rencode/files/rencode-1.0.6-fix-CVE-2021-40839.patch
deleted file mode 100644
index 0a997d408017..000000000000
--- a/dev-python/rencode/files/rencode-1.0.6-fix-CVE-2021-40839.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From: Andrew Resch <[email protected]>
-Date: Mon, 9 Aug 2021 20:44:51 -0700
-Subject: [PATCH] Fix checking if typecode is valid while decoding.
-
-This bug will cause rencode to hang if the invalid typecode is included
-in a sequence type (list, dict) since the position will not change and
-the loop checking for the termination byte never returns.
-
-This change is a copy of PR #29 with a few aesthetic changes.
-
---- a/rencode/rencode.pyx
-+++ b/rencode/rencode.pyx
-@@ -527,6 +527,8 @@
-         return decode_fixed_dict(data, pos)
-     elif typecode == CHR_DICT:
-         return decode_dict(data, pos)
-+    else:
-+        raise ValueError("Invalid typecode: %d at pos: %d" % (typecode, 
pos[0]))
- 
- def loads(data, decode_utf8=False):
-     """
---- a/tests/test_rencode.py
-+++ b/tests/test_rencode.py
-@@ -223,5 +223,10 @@
-         assert rencode_orig.__version__
-         self.assertEqual(rencode.__version__[1:], 
rencode_orig.__version__[1:], "version number does not match")
- 
-+    def test_invalid_typecode(self):
-+        s = b";\x2f\x7f"
-+        with self.assertRaises(ValueError):
-+            rencode.loads(s)
-+
- if __name__ == '__main__':
-     unittest.main()

diff --git a/dev-python/rencode/rencode-1.0.6-r4.ebuild 
b/dev-python/rencode/rencode-1.0.6-r4.ebuild
deleted file mode 100644
index 0009b81a9299..000000000000
--- a/dev-python/rencode/rencode-1.0.6-r4.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_EXT=1
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{11..14} )
-
-inherit distutils-r1
-
-DESCRIPTION="similar to bencode from the BitTorrent project"
-HOMEPAGE="
-       https://github.com/aresch/rencode/
-       https://pypi.org/project/rencode/
-"
-SRC_URI="
-       https://github.com/aresch/${PN}/archive/v${PV}.tar.gz
-               -> ${P}.gh.tar.gz
-"
-
-LICENSE="GPL-3+"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv ~sparc x86 ~amd64-linux ~x86-linux"
-
-BDEPEND="
-       dev-python/cython[${PYTHON_USEDEP}]
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-       # 
https://github.com/aresch/rencode/commit/16e61e1ff4294bddb7c881536d3d454355c78969
-       "${FILESDIR}/${P}-drop-wheel-dependency.patch"
-       # bug #812437
-       "${FILESDIR}/${P}-fix-CVE-2021-40839.patch"
-       # bug #955434
-       "${FILESDIR}"/${P}-cython-3.1.0.patch
-)
-
-python_test() {
-       rm -rf rencode || die
-       epytest
-}

Reply via email to