summaryrefslogtreecommitdiff
path: root/debian/patches/0004-Strip-all-symbols-not-just-debuginfo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0004-Strip-all-symbols-not-just-debuginfo.patch')
-rw-r--r--debian/patches/0004-Strip-all-symbols-not-just-debuginfo.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/0004-Strip-all-symbols-not-just-debuginfo.patch b/debian/patches/0004-Strip-all-symbols-not-just-debuginfo.patch
new file mode 100644
index 0000000..f1a25aa
--- /dev/null
+++ b/debian/patches/0004-Strip-all-symbols-not-just-debuginfo.patch
@@ -0,0 +1,20 @@
+From: Matthew Fennell <matthew@fennell.dev>
+Date: Tue, 14 Oct 2025 19:02:08 +0100
+Subject: Strip all symbols, not just debuginfo
+
+This is to fix the debug-file-with-no-debug-symbols lintian warning.
+---
+ Cargo.toml | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/Cargo.toml b/Cargo.toml
+index 09d9bd9..d59a544 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -10,3 +10,6 @@ crate-type = ["cdylib"]
+
+ [dependencies]
+ pyo3 = "=0.26.0"
++
++[profile.release]
++strip = true