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/pycryptodome/, dev-python/pycryptodome/files/
Date: Sun, 28 Mar 2021 15:55:14
Message-Id: 1616946906.ee886ca4b0ef0e3224d1c8bececb8522f6da1987.mgorny@gentoo
1 commit: ee886ca4b0ef0e3224d1c8bececb8522f6da1987
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 28 15:41:08 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 28 15:55:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee886ca4
7
8 dev-python/pycryptodome: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pycryptodome/Manifest | 1 -
13 .../files/pycryptodome-3.9.4-parallel-make.patch | 22 ---------
14 .../pycryptodome-3.9.9-system-libtomcrypt.patch | 43 -----------------
15 .../pycryptodome/pycryptodome-3.9.9-r1.ebuild | 54 ----------------------
16 4 files changed, 120 deletions(-)
17
18 diff --git a/dev-python/pycryptodome/Manifest b/dev-python/pycryptodome/Manifest
19 index 4ac5d971007..024ebb61ebb 100644
20 --- a/dev-python/pycryptodome/Manifest
21 +++ b/dev-python/pycryptodome/Manifest
22 @@ -1,2 +1 @@
23 DIST pycryptodome-3.10.1.tar.gz 15545471 BLAKE2B ef1922efd0b6bef6beaee76fe03a4201a6f1cf2a203abcb12b96a5ea7c8de59a34ac704fe7508a3728a214efc0755f289d66dc14a0adb3f2eac882bc8db691bf SHA512 4c7e7e989d5363064e7e184f6b00a174045e03916cdf1199626afd7fe75eb5efcd13888ecdee607b974e96faad465694b384eb6d91edb8de1d0277ad71888c52
24 -DIST pycryptodome-3.9.9.tar.gz 15551299 BLAKE2B ac89bcc2bbe707cb2a9cf2496a2eb74ff5685f11017d60d67558de7ac6cad5c24c43b4074bff01e99378d7c88462e88e88f363c5329fb800e1a7872ad8a34dab SHA512 a1aad4d52256220fe3d5d7f399c2c5e7338d6eb88058da0571fe1c686d74d33ff4bc1c275d4b9373e0ff22f4ddcded75a25387e76fc65047f8612f8856c1bd4d
25
26 diff --git a/dev-python/pycryptodome/files/pycryptodome-3.9.4-parallel-make.patch b/dev-python/pycryptodome/files/pycryptodome-3.9.4-parallel-make.patch
27 deleted file mode 100644
28 index 331333533f1..00000000000
29 --- a/dev-python/pycryptodome/files/pycryptodome-3.9.4-parallel-make.patch
30 +++ /dev/null
31 @@ -1,22 +0,0 @@
32 -diff --git a/setup.py b/setup.py
33 -index 1d70caad..c72f64ff 100644
34 ---- a/setup.py
35 -+++ b/setup.py
36 -@@ -364,7 +364,7 @@ ext_modules = [
37 - Extension("Crypto.Cipher._raw_eksblowfish",
38 - include_dirs=['src/'],
39 - define_macros=[('EKS',None),],
40 -- sources=["src/blowfish.c"]),
41 -+ sources=["src/blowfish_eks.c"]),
42 - Extension("Crypto.Cipher._raw_cast",
43 - include_dirs=['src/'],
44 - sources=["src/CAST.c"]),
45 -@@ -427,7 +427,7 @@ ext_modules = [
46 - # Math
47 - Extension("Crypto.Math._modexp",
48 - include_dirs=['src/'],
49 -- sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c', 'src/mont.c'],
50 -+ sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c', 'src/mont_math.c'],
51 - ),
52 - ]
53 -
54
55 diff --git a/dev-python/pycryptodome/files/pycryptodome-3.9.9-system-libtomcrypt.patch b/dev-python/pycryptodome/files/pycryptodome-3.9.9-system-libtomcrypt.patch
56 deleted file mode 100644
57 index 927ad65e7c4..00000000000
58 --- a/dev-python/pycryptodome/files/pycryptodome-3.9.9-system-libtomcrypt.patch
59 +++ /dev/null
60 @@ -1,43 +0,0 @@
61 ---- a/setup.py 2019-01-19 22:52:55.000000000 +0100
62 -+++ b/setup.py 2019-02-15 15:29:46.960976879 +0100
63 -@@ -367,11 +367,13 @@ ext_modules = [
64 - include_dirs=['src/'],
65 - sources=["src/CAST.c"]),
66 - Extension("Crypto.Cipher._raw_des",
67 -- include_dirs=['src/', 'src/libtom/'],
68 -- sources=["src/DES.c"]),
69 -+ include_dirs=['src/'],
70 -+ sources=["src/DES.c"],
71 -+ extra_link_args=["-ltomcrypt"]),
72 - Extension("Crypto.Cipher._raw_des3",
73 -- include_dirs=['src/', 'src/libtom/'],
74 -- sources=["src/DES3.c"]),
75 -+ include_dirs=['src/'],
76 -+ sources=["src/DES3.c"],
77 -+ extra_link_args=["-ltomcrypt"]),
78 - Extension("Crypto.Util._cpuid_c",
79 - include_dirs=['src/'],
80 - sources=['src/cpuid.c']),
81 -@@ -400,8 +402,9 @@ ext_modules = [
82 - include_dirs=['src/'],
83 - sources=["src/ARC4.c"]),
84 - Extension("Crypto.Cipher._Salsa20",
85 -- include_dirs=['src/', 'src/libtom/'],
86 -- sources=["src/Salsa20.c"]),
87 -+ include_dirs=['src/'],
88 -+ sources=["src/Salsa20.c"],
89 -+ extra_link_args=["-ltomcrypt"]),
90 - Extension("Crypto.Cipher._chacha20",
91 - include_dirs=['src/'],
92 - sources=["src/chacha20.c"]),
93 ---- a/src/DES.c 2019-01-19 22:52:55.000000000 +0100
94 -+++ b/src/DES.c 2019-02-15 15:30:27.014967034 +0100
95 -@@ -39,7 +39,7 @@ FAKE_INIT(raw_des3)
96 -
97 - /* Include the actial DES implementation */
98 - #define LTC_NO_PROTOTYPES
99 --#include "libtom/tomcrypt_des.c"
100 -+#include <tomcrypt.h>
101 -
102 - struct block_state {
103 - symmetric_key sk;
104
105 diff --git a/dev-python/pycryptodome/pycryptodome-3.9.9-r1.ebuild b/dev-python/pycryptodome/pycryptodome-3.9.9-r1.ebuild
106 deleted file mode 100644
107 index 50c3a515eb5..00000000000
108 --- a/dev-python/pycryptodome/pycryptodome-3.9.9-r1.ebuild
109 +++ /dev/null
110 @@ -1,54 +0,0 @@
111 -# Copyright 1999-2021 Gentoo Authors
112 -# Distributed under the terms of the GNU General Public License v2
113 -
114 -EAPI=7
115 -
116 -PYTHON_COMPAT=( python3_{7..9} pypy3 )
117 -PYTHON_REQ_USE="threads(+)"
118 -
119 -inherit distutils-r1
120 -
121 -DESCRIPTION="A self-contained cryptographic library for Python"
122 -HOMEPAGE="https://www.pycryptodome.org/
123 - https://github.com/Legrandin/pycryptodome/
124 - https://pypi.org/project/pycryptodome/"
125 -SRC_URI="
126 - https://github.com/Legrandin/pycryptodome/archive/v${PV}.tar.gz
127 - -> ${P}.tar.gz"
128 -
129 -LICENSE="BSD-2 Unlicense"
130 -SLOT="0"
131 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 sparc x86 ~x64-macos"
132 -IUSE=""
133 -
134 -DEPEND="
135 - dev-libs/gmp:0=
136 - >=dev-libs/libtomcrypt-1.18.2-r1:="
137 -BDEPEND="
138 - virtual/python-cffi[${PYTHON_USEDEP}]"
139 -RDEPEND="
140 - ${DEPEND}
141 - ${BDEPEND}
142 - !dev-python/pycrypto"
143 -
144 -PATCHES=(
145 - "${FILESDIR}/pycryptodome-3.9.4-parallel-make.patch"
146 - "${FILESDIR}/pycryptodome-3.9.9-system-libtomcrypt.patch"
147 -)
148 -
149 -distutils_enable_tests setup.py
150 -
151 -python_prepare_all() {
152 - # parallel make fixes
153 - # Multiple targets were compiling the same file, setuptools doesn't
154 - # understand this and you get race conditions where a file gets
155 - # overwritten while it's linking. This makes the files look like separate
156 - # files so this race won't happen
157 - ln src/blowfish.c src/blowfish_eks.c || die
158 - ln src/mont.c src/mont_math.c || die
159 -
160 - # make sure we're unbundling it correctly
161 - rm -r src/libtom || die
162 -
163 - distutils-r1_python_prepare_all
164 -}