diff --git a/Enable-debug-symbols.patch b/Enable-debug-symbols.patch new file mode 100644 index 0000000000000000000000000000000000000000..26d705eb1bff62ca2771b300c6e0737f9985f3b5 --- /dev/null +++ b/Enable-debug-symbols.patch @@ -0,0 +1,24 @@ +From 9bb3f2df8a035dd2366ed0cf6391f28576107808 Mon Sep 17 00:00:00 2001 +From: yanjianqing +Date: Thu, 18 Apr 2024 20:11:24 +0800 +Subject: [PATCH] Enabledebug symbols + +--- + src/rust/Cargo.toml | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml +index 2322486..4f75516 100644 +--- a/src/rust/Cargo.toml ++++ b/src/rust/Cargo.toml +@@ -36,6 +36,7 @@ crate-type = ["cdylib"] + + [profile.release] + overflow-checks = true ++debug = true + + [workspace] + members = [ +-- +2.21.0 + diff --git a/python-cryptography.spec b/python-cryptography.spec index f9a1d541ab2e2960f680a67b8387f38fb475286a..c04dd54da68b97fe60f7b690677c11db63ed6449 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,7 +1,7 @@ %global pypi_name cryptography Name: python-%{pypi_name} Version: 42.0.2 -Release: 2 +Release: 3 Summary: PyCA's cryptography library License: ASL 2.0 or BSD URL: https://cryptography.io/en/latest/ @@ -15,6 +15,7 @@ Source1: cargo-vendor-cache.tar.gz Patch6002: backport-provide-openssl-apis-related-to-SM-for-python.patch Patch6003: backport-CVE-2024-26130.patch +Patch6004: Enable-debug-symbols.patch BuildRequires: openssl-devel cargo BuildRequires: gcc @@ -87,6 +88,9 @@ EOF %doc README.rst docs %changelog +* Thu Apr 18 2024 yanjianqing - 42.0.2-3 +- Enable debug symbols + * Tue Feb 27 2024 shixuantong - 42.0.2-2 - fix CVE-2024-26130