From 2394ee6289a2fc2628f198b4a9920116148dd814 Mon Sep 17 00:00:00 2001
From: David Bremner <david@tethera.net>
Date: Thu, 9 Dec 2021 21:26:39 -0400
Subject: [PATCH] debian: build only against default python version

This problem will will be solved in the next release of dh-python, but
the crude solution is needed for backports anyway.
---
 debian/changelog | 4 +++-
 debian/control   | 4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b3c52a41..be7bc397 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,10 @@ notmuch (0.34.2-1) unstable; urgency=medium
 
   * New upstream bugfix with release, with fixes database location in
     library and notmuch2 python module.
+  * Build only against the default version of python, to avoid including
+    multiple .abi3.so files in python3-notmuch2
 
- -- David Bremner <bremner@debian.org>  Thu, 09 Dec 2021 08:48:53 -0400
+ -- David Bremner <bremner@debian.org>  Fri, 10 Dec 2021 09:35:43 -0400
 
 notmuch (0.34.1-1) unstable; urgency=medium
 
diff --git a/debian/control b/debian/control
index 8a2e29dd..9872d602 100644
--- a/debian/control
+++ b/debian/control
@@ -23,13 +23,13 @@ Build-Depends:
  gnupg <!nocheck>,
  gpgsm <!nocheck>,
  libgmime-3.0-dev (>= 3.0.3~),
- libpython3-all-dev,
+ libpython3-dev,
  libsexp-dev,
  libtalloc-dev,
  libxapian-dev,
  libz-dev,
  pkg-config,
- python3-all (>= 3.1.2-7~),
+ python3,
  python3-cffi,
  python3-pytest,
  python3-pytest-cov,
-- 
2.45.2