summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2025-10-14 19:03:43 +0100
committerMatthew Fennell <matthew@fennell.dev>2025-11-02 00:51:59 +0000
commit8e5c5ce319a12500e811227c9c8064d86b3f7249 (patch)
treed5f69390400f9a652bc6c6ccc667b888782f194c
parent2efa6d7afb821650f69638f8e14640ef2761276d (diff)
Fix debug-file-with-no-debug-symbolsHEADdebian/latest
-rw-r--r--debian/patches/0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch2
-rw-r--r--debian/patches/0004-Strip-all-symbols-not-just-debuginfo.patch20
-rw-r--r--debian/patches/series1
3 files changed, 22 insertions, 1 deletions
diff --git a/debian/patches/0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch b/debian/patches/0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch
index 06f0975..69934b7 100644
--- a/debian/patches/0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch
+++ b/debian/patches/0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch
@@ -9,7 +9,7 @@ The currently packaged version of pyo3 is 0.25.1, while Cargo.toml requires
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Cargo.toml b/Cargo.toml
-index 0813be1..76e9b7b 100644
+index 0813be1..09d9bd9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,4 +9,4 @@ name = "slidge_style_parser"
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
diff --git a/debian/patches/series b/debian/patches/series
index 843e1c8..2e4339f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
0001-Allow-later-versions-of-pyo3-in-Cargo.toml.patch
0002-Migrate-from-GIL-Refs-API-to-Bound-T.patch
0003-Explicitly-document-trailing-optional-arguments.patch
+0004-Strip-all-symbols-not-just-debuginfo.patch