From 391c8a4ee6936d0867fcac307d520ac7946b1d79 Mon Sep 17 00:00:00 2001
From: NoisyCoil <noisycoil@tutanota.com>
Date: Sat, 26 Jul 2025 02:29:23 +0200
Subject: [PATCH] update patch 1001 to cover newer branch; relax
 (build-)dependency for crate bindgen

---
 debian/control                       | 4 ++--
 debian/patches/1001_bindgen.patch    | 4 ++--
 debian/patches/2002_no_windows.patch | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 8ad20d8..a7ed91e 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Build-Depends:
  debhelper-compat (= 13),
  dh-sequence-rust,
  libleptonica-dev,
- librust-bindgen-0.71+default-dev,
+ librust-bindgen-0.72+default-dev,
  librust-pkg-config-0.3+default-dev,
 Maintainer: Jonas Smedegaard <dr@jones.dk>
 Standards-Version: 4.7.0
@@ -19,7 +19,7 @@ Architecture: all
 Multi-Arch: foreign
 Depends:
  libleptonica-dev,
- librust-bindgen-0.71+default-dev,
+ librust-bindgen-0.72+default-dev,
  librust-pkg-config-0.3+default-dev,
  ${misc:Depends},
 Provides:
diff --git a/debian/patches/1001_bindgen.patch b/debian/patches/1001_bindgen.patch
index 2860784..d02f1cf 100644
--- a/debian/patches/1001_bindgen.patch
+++ b/debian/patches/1001_bindgen.patch
@@ -1,6 +1,6 @@
 Description: accept newer branches of crate bindgen
 Author: Jonas Smedegaard <dr@jones.dk>
-Last-Update: 2024-11-23
+Last-Update: 2025-07-26
 ---
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- a/Cargo.toml
@@ -10,7 +10,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  
  [build-dependencies]
 -bindgen = "0.64.0"
-+bindgen = ">= 0.64, <= 0.71"
++bindgen = ">= 0.64, <= 0.72"
  
  [target.'cfg(windows)'.build-dependencies]
  vcpkg = "0.2.15"
diff --git a/debian/patches/2002_no_windows.patch b/debian/patches/2002_no_windows.patch
index 7ff510d..180352e 100644
--- a/debian/patches/2002_no_windows.patch
+++ b/debian/patches/2002_no_windows.patch
@@ -8,7 +8,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 +++ b/Cargo.toml
 @@ -14,8 +14,5 @@
  [build-dependencies]
- bindgen = ">= 0.64, <= 0.71"
+ bindgen = ">= 0.64, <= 0.72"
  
 -[target.'cfg(windows)'.build-dependencies]
 -vcpkg = "0.2.15"
-- 
2.47.2

