From e0f061a2af738668f33db7fdbd97c8f3c2438b89 Mon Sep 17 00:00:00 2001 From: yanjianqing Date: Thu, 18 Apr 2024 20:15:43 +0800 Subject: [PATCH] enable debug symbols --- Enable-debug-symbols.patch | 24 ++++++++++++++++++++++++ python-cryptography.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Enable-debug-symbols.patch diff --git a/Enable-debug-symbols.patch b/Enable-debug-symbols.patch new file mode 100644 index 0000000..26d705e --- /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 f9a1d54..c04dd54 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 -- Gitee