Package: python-bcrypt Version: 5.0.0-3 We hope to update rust-getrandom to version 0.4 soon, python-bcrypt will need a slight tweak to build with the new version.
diff -Nru python-bcrypt-5.0.0/debian/changelog python-bcrypt-5.0.0/debian/changelog --- python-bcrypt-5.0.0/debian/changelog 2025-12-08 17:17:36.000000000 +0000 +++ python-bcrypt-5.0.0/debian/changelog 2026-03-12 16:52:59.000000000 +0000 @@ -1,3 +1,10 @@ +python-bcrypt (5.0.0-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Adjust packaging for getrandom 0.4. + + -- Peter Michael Green <[email protected]> Thu, 12 Mar 2026 16:52:59 +0000 + python-bcrypt (5.0.0-3) unstable; urgency=medium * Team upload. diff -Nru python-bcrypt-5.0.0/debian/control python-bcrypt-5.0.0/debian/control --- python-bcrypt-5.0.0/debian/control 2025-12-08 17:17:36.000000000 +0000 +++ python-bcrypt-5.0.0/debian/control 2026-03-12 16:52:04.000000000 +0000 @@ -13,7 +13,7 @@ librust-base64-dev, librust-bcrypt-dev, librust-bcrypt-pbkdf-dev, - librust-getrandom-dev, + librust-getrandom-0.4-dev, librust-pyo3-dev (>= 0.26), librust-pyo3-dev (<< 0.28), librust-subtle-dev, diff -Nru python-bcrypt-5.0.0/debian/.gitignore python-bcrypt-5.0.0/debian/.gitignore --- python-bcrypt-5.0.0/debian/.gitignore 2025-12-08 17:17:36.000000000 +0000 +++ python-bcrypt-5.0.0/debian/.gitignore 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -/files diff -Nru python-bcrypt-5.0.0/debian/patches/getrandom-0.4.patch python-bcrypt-5.0.0/debian/patches/getrandom-0.4.patch --- python-bcrypt-5.0.0/debian/patches/getrandom-0.4.patch 1970-01-01 00:00:00.000000000 +0000 +++ python-bcrypt-5.0.0/debian/patches/getrandom-0.4.patch 2026-03-12 16:37:16.000000000 +0000 @@ -0,0 +1,13 @@ +Index: python-bcrypt-5.0.0/src/_bcrypt/Cargo.toml +=================================================================== +--- python-bcrypt-5.0.0.orig/src/_bcrypt/Cargo.toml ++++ python-bcrypt-5.0.0/src/_bcrypt/Cargo.toml +@@ -13,7 +13,7 @@ bcrypt = "0.15" + bcrypt-pbkdf = "0.10.0" + base64 = "0.22.1" + subtle = "2.6" +-getrandom = "0.3" ++getrandom = "0.4" + + [features] + extension-module = ["pyo3/extension-module"] diff -Nru python-bcrypt-5.0.0/debian/patches/Revert-Update-getrandom-and-bcrypt.patch python-bcrypt-5.0.0/debian/patches/Revert-Update-getrandom-and-bcrypt.patch --- python-bcrypt-5.0.0/debian/patches/Revert-Update-getrandom-and-bcrypt.patch 2025-12-08 17:17:36.000000000 +0000 +++ python-bcrypt-5.0.0/debian/patches/Revert-Update-getrandom-and-bcrypt.patch 2026-03-12 16:36:14.000000000 +0000 @@ -1,8 +1,8 @@ From: Bastian Germann <[email protected]> Date: Wed, 10 Sep 2025 16:22:10 +0200 -Subject: Revert "Update getrandom and bcrypt (#966)" +Subject: Revert bcrypt update -This reverts commit 3181f2101ab370c73b1cbb83c38cb110e25d1fcb. +This reverts part of commit 3181f2101ab370c73b1cbb83c38cb110e25d1fcb. --- src/_bcrypt/Cargo.toml | 4 ++-- src/_bcrypt/src/lib.rs | 2 +- @@ -12,7 +12,7 @@ index 5e29663..27cbc09 100644 --- a/src/_bcrypt/Cargo.toml +++ b/src/_bcrypt/Cargo.toml -@@ -9,11 +9,11 @@ publish = false +@@ -9,7 +9,7 @@ publish = false [dependencies] pyo3 = { version = "0.26", features = ["abi3"] } @@ -21,21 +21,3 @@ bcrypt-pbkdf = "0.10.0" base64 = "0.22.1" subtle = "2.6" --getrandom = "0.3" -+getrandom = "0.2" - - [features] - extension-module = ["pyo3/extension-module"] -diff --git a/src/_bcrypt/src/lib.rs b/src/_bcrypt/src/lib.rs -index ad38fdf..e0df356 100644 ---- a/src/_bcrypt/src/lib.rs -+++ b/src/_bcrypt/src/lib.rs -@@ -45,7 +45,7 @@ fn gensalt<'p>( - } - - let mut salt = [0; 16]; -- getrandom::fill(&mut salt).unwrap(); -+ getrandom::getrandom(&mut salt).unwrap(); - - let encoded_salt = BASE64_ENGINE.encode(salt); - diff -Nru python-bcrypt-5.0.0/debian/patches/series python-bcrypt-5.0.0/debian/patches/series --- python-bcrypt-5.0.0/debian/patches/series 2025-12-08 17:17:36.000000000 +0000 +++ python-bcrypt-5.0.0/debian/patches/series 2026-03-12 16:36:36.000000000 +0000 @@ -1,2 +1,3 @@ Revert-Update-getrandom-and-bcrypt.patch accept-pyo3-0.27.patch +getrandom-0.4.patch

