summaryrefslogtreecommitdiff
path: root/dev-python/bcrypt/files
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-10-05 19:49:09 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-10-05 19:49:09 +0000
commit8484d75e7a7e01aac107442ce201d1ff64fd7c7d (patch)
tree7634cd59b99eea5e1f2a95a80792a9c9b3ff9456 /dev-python/bcrypt/files
parent0fc0d7474056ad77ced8479e67a5842c760ca3de (diff)
downloadbaldeagleos-repo-8484d75e7a7e01aac107442ce201d1ff64fd7c7d.tar.gz
baldeagleos-repo-8484d75e7a7e01aac107442ce201d1ff64fd7c7d.tar.xz
baldeagleos-repo-8484d75e7a7e01aac107442ce201d1ff64fd7c7d.zip
Adding metadata
Diffstat (limited to 'dev-python/bcrypt/files')
-rw-r--r--dev-python/bcrypt/files/bcrypt-4.2.0-patch-pyo3-subinterp.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-python/bcrypt/files/bcrypt-4.2.0-patch-pyo3-subinterp.patch b/dev-python/bcrypt/files/bcrypt-4.2.0-patch-pyo3-subinterp.patch
new file mode 100644
index 000000000000..964dd964fa93
--- /dev/null
+++ b/dev-python/bcrypt/files/bcrypt-4.2.0-patch-pyo3-subinterp.patch
@@ -0,0 +1,23 @@
+https://bugs.gentoo.org/920906
+https://github.com/pyca/bcrypt/issues/694
+https://github.com/PyO3/pyo3/issues/3451
+https://src.fedoraproject.org/rpms/rust-pyo3/raw/rawhide/f/0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch
+
+From d59176bc05aa37838fd4a8dd253f47c962f61118 Mon Sep 17 00:00:00 2001
+From: Fabio Valentini <decathorpe@gmail.com>
+Date: Tue, 23 Jul 2024 14:41:04 +0200
+Subject: [PATCH] Make unsafe subinterpreter support available via cfg flag
+
+--- a/src/impl_/pymodule.rs
++++ b/src/impl_/pymodule.rs
+@@ -107,7 +107,7 @@ impl ModuleDef {
+ // that static data is not reused across interpreters.
+ //
+ // PyPy does not have subinterpreters, so no need to check interpreter ID.
+- #[cfg(not(any(PyPy, GraalPy)))]
++ #[cfg(not(any(PyPy, GraalPy, pyo3_unsafe_allow_subinterpreters)))]
+ {
+ // PyInterpreterState_Get is only available on 3.9 and later, but is missing
+ // from python3.dll for Windows stable API on 3.9
+--
+2.45.2