summaryrefslogtreecommitdiff
path: root/dev-python/blake3
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-14 00:09:04 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-14 00:09:04 +0100
commit5e41a38157bb40e8513e8e34426e85faba672fe7 (patch)
tree38e9365afd56c161d0e970ddf5420b2585130587 /dev-python/blake3
parent0ebcd2cbf178600b5eb36b2f24cdbb3d2f4a9000 (diff)
gentoo auto-resync : 14:06:2024 - 00:09:04
Diffstat (limited to 'dev-python/blake3')
-rw-r--r--dev-python/blake3/Manifest3
-rw-r--r--dev-python/blake3/blake3-0.4.1.ebuild7
-rw-r--r--dev-python/blake3/files/blake3-0.4.1-gcc14.patch37
3 files changed, 45 insertions, 2 deletions
diff --git a/dev-python/blake3/Manifest b/dev-python/blake3/Manifest
index 95b062257b3c..fdddf2b57378 100644
--- a/dev-python/blake3/Manifest
+++ b/dev-python/blake3/Manifest
@@ -1,3 +1,4 @@
+AUX blake3-0.4.1-gcc14.patch 1638 BLAKE2B 4df139c4b5a33c287a355931a20dda5cbe9745938d660bbaff2fc8b1ead692b070775ad1e97d59709cc60b99621b1fb032073e4003d44a1c248ab7e11e564806 SHA512 43e131d90ec71be9e8f8028a0c82670d4785c2f441f11100f339998686f0e258f7d8269fc9ed45d95a35a9149f856805951dd33dc9da0c39ef24bf1251d3185f
DIST arrayref-0.3.7.crate 9620 BLAKE2B 69d25ca9c15c188ca954a862f320869a448a5d8ed5765a6fc26309abb030e1d846d12800d960c8a97aa3ab422e8d2b883bd154781ed219a858e02b20cc803613 SHA512 dcf1c7de6d1d4b921e26a39cd70070bd460cd27f0a38be9099e41fc8b05fb60ba4f9aa91f92401cdcd0847bad08bffa7db4dca8d7cc84a3c8a1416d1758838ce
DIST arrayvec-0.7.4.crate 29856 BLAKE2B 81ffac1db340e919618351819def3880ab1ef70d0acc47d680f15298eb749bcbc3bf7944ba14159be46b1e734c91b4c0f8cbaf774fd864c17caa3c9fb1fc2e9b SHA512 91e8f70330c515c966d78ae235e890594f9607381ac738a2c3586b53f01411e98d1687494f39ccc365948ae60497df3dfb2be18e26ab7e69bc0966b6c250e1ac
DIST autocfg-1.1.0.crate 13272 BLAKE2B 7724055c337d562103f191f4e36cab469e578f0c51cc24d33624dea155d108a07578703766341fd6a4cc1ef52acda406e7dba1650d59115f18261281e5b40203 SHA512 df972c09abbdc0b6cb6bb55b1e29c7fed706ece38a62613d9e275bac46a19574a7f96f0152cccb0239efea04ee90083a146b58b15307696c4c81878cd12de28f
@@ -45,5 +46,5 @@ DIST windows_i686_msvc-0.48.5.crate 864300 BLAKE2B 3d3ea8be55e2d6ced0eeda18abe1d
DIST windows_x86_64_gnu-0.48.5.crate 801619 BLAKE2B aa7e7e6a6ff9f9553ada3a0a39a9aa798e9d995a8eef36e0b6fdb2a0db93ddecee5548970575271fe43aec74797a420d0ee231d503b5bad1bd999059261e0e33 SHA512 1d6056fae430b3d042bdff3c6217c76be4b8b9f5dada9bad06beaac2db7d7ab9b0a82e44f498ec88e61afa73e99f56d84d445dc3847732b9ce5d947e08485f74
DIST windows_x86_64_gnullvm-0.48.5.crate 418486 BLAKE2B 12a2199d434617c1df1a839e9f435620ad64b40c579f6d0c3677553ad7a48e5765d12c266b04946402e15c92cff2e4ac4979ce2130750ef426e2672119680284 SHA512 c016d5b5e73832b61ff67929d92fa8c16e154656294357266ad29ce1f44db4ca2d2935dba31a6b571187dc838b1d22f1e3b41fefffd1d719a338439adf1646aa
DIST windows_x86_64_msvc-0.48.5.crate 798412 BLAKE2B 8abc0721e2fb337fe17c91d278947d36122d9045b839ba0cf3e690202d242265b676f23cc301da5f9d98c56ca4ecb76f7d6f072ee71bf986a1deca87020b90e5 SHA512 fa1c5cd14ca2ff0082e2504cf59d317dc4dc6f7138d35c12f95d4476a9c13d8b7f5537d0ee251eee7c99411ad31b22263171b7fbd391daa5d3ea3488ceaa61a0
-EBUILD blake3-0.4.1.ebuild 2483 BLAKE2B 89d171580c37bf7cfceba6922851fe9c24b4ccdc3984a7231bd522950db31d938bcfb6970dea80aaeeead0f45e0ac0473beeb7c3e1464ee7aa9d2f47ac3b3c4a SHA512 50943680aeea5b97d68d8f7be337d0a205128abd2622be39c05079e46efeadbbafdb983fdd90decc7e79f634217512c943a29ed9b515bca4156937f8a0d42c89
+EBUILD blake3-0.4.1.ebuild 2589 BLAKE2B e09c3851a68efc939f7dccd348637d80347c3ade032c3dfe783f93ef41d620bfcaa7fc5d2b7453e37c8597e5c417294c48ec5d1d155bef498aa2d3cec4863904 SHA512 2f890bd37deb01ba1ddf9db8c4e333851ed3b0a9374375d5b19d2fb8ef4f4de9adac114fa801edb658f99f35841110cda3acb0e0b7f3ecbe91a07ebf7b69f09d
MISC metadata.xml 520 BLAKE2B ce0ade2fa2cfcc2a4d9139c7394b7af0c1b2289fef2586c3834b6f8a937ecb6cf0a70ebcf68a56dc77ee40e13c3d7f7fd0bf225d306b216eb4938a42d8968585 SHA512 1d54955a5a465d28d671b92eb3511b34959b1f49a0b083c16726c03bb8d36c4ab615415c47c42e1a5a2502a3731d5f3da253cd933da3ca7b8b773d1cac949ed9
diff --git a/dev-python/blake3/blake3-0.4.1.ebuild b/dev-python/blake3/blake3-0.4.1.ebuild
index b2772f15cb9e..169408721d16 100644
--- a/dev-python/blake3/blake3-0.4.1.ebuild
+++ b/dev-python/blake3/blake3-0.4.1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
CARGO_OPTIONAL=1
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=standalone
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
CRATES="
arrayref@0.3.7
@@ -113,6 +113,11 @@ src_unpack() {
}
src_prepare() {
+ local PATCHES=(
+ # https://github.com/oconnor663/blake3-py/pull/44
+ "${FILESDIR}/${P}-gcc14.patch"
+ )
+
# sed the package name and version to improve compatibility
sed -e 's:blake3_experimental_c:blake3:' \
-e "s:0[.]0[.]1:${PV}:" \
diff --git a/dev-python/blake3/files/blake3-0.4.1-gcc14.patch b/dev-python/blake3/files/blake3-0.4.1-gcc14.patch
new file mode 100644
index 000000000000..367d5c94e1b1
--- /dev/null
+++ b/dev-python/blake3/files/blake3-0.4.1-gcc14.patch
@@ -0,0 +1,37 @@
+diff --git a/c_impl/blake3module.c b/c_impl/blake3module.c
+index 4448445..842421a 100644
+--- a/c_impl/blake3module.c
++++ b/c_impl/blake3module.c
+@@ -217,7 +217,7 @@ static PyObject *Blake3_update(Blake3Object *self, PyObject *args) {
+ // Success. We need to increment the refcount on self to return it, see:
+ // https://docs.python.org/3/extending/extending.html#ownership-rules.
+ Py_INCREF(self);
+- ret = self;
++ ret = (PyObject *)self;
+
+ exit:
+ release_buf_if_acquired(&data);
+@@ -272,7 +272,7 @@ static PyObject *Blake3_update_mmap(Blake3Object *self, PyObject *args,
+ // Success. We need to increment the refcount on self to return it, see:
+ // https://docs.python.org/3/extending/extending.html#ownership-rules.
+ Py_INCREF(self);
+- ret = self;
++ ret = (PyObject *)self;
+
+ exit:
+ if (file) {
+@@ -347,11 +347,11 @@ static PyObject *Blake3_reset(Blake3Object *self, PyObject *args) {
+
+ static PyMethodDef Blake3_methods[] = {
+ {"update", (PyCFunction)Blake3_update, METH_VARARGS, "add input bytes"},
+- {"update_mmap", (PyCFunctionWithKeywords)Blake3_update_mmap,
++ {"update_mmap", (PyCFunction)Blake3_update_mmap,
+ METH_VARARGS | METH_KEYWORDS, "add input bytes from a filepath"},
+- {"digest", (PyCFunctionWithKeywords)Blake3_digest,
++ {"digest", (PyCFunction)Blake3_digest,
+ METH_VARARGS | METH_KEYWORDS, "finalize the hash"},
+- {"hexdigest", (PyCFunctionWithKeywords)Blake3_hexdigest,
++ {"hexdigest", (PyCFunction)Blake3_hexdigest,
+ METH_VARARGS | METH_KEYWORDS,
+ "finalize the hash and encode the result as hex"},
+ {"copy", (PyCFunction)Blake3_copy, METH_VARARGS,