From 772230b409640c6704a3afccf42ffad933c1fba5 Mon Sep 17 00:00:00 2001
From: NoisyCoil <noisycoil@tutanota.com>
Date: Sat, 26 Jul 2025 02:37:00 +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 c808b05..00fc581 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Build-Depends:
  clang <!nocheck>,
  debhelper-compat (= 13),
  dh-sequence-rust,
- librust-bindgen-0.71+default-dev,
+ librust-bindgen-0.72+default-dev,
  librust-leptonica-sys-0.4+default-dev,
  librust-pkg-config-0.3+default-dev,
  libtesseract-dev <!nocheck>,
@@ -21,7 +21,7 @@ Package: librust-tesseract-sys-dev
 Architecture: all
 Multi-Arch: foreign
 Depends:
- librust-bindgen-0.71+default-dev,
+ librust-bindgen-0.72+default-dev,
  librust-leptonica-sys-0.4+default-dev,
  librust-pkg-config-0.3+default-dev,
  libtesseract-dev,
diff --git a/debian/patches/1001_bindgen.patch b/debian/patches/1001_bindgen.patch
index 7c9c4b4..f0d2c73 100644
--- a/debian/patches/1001_bindgen.patch
+++ b/debian/patches/1001_bindgen.patch
@@ -2,7 +2,7 @@ Description: accept newer branches of crate bindgen
 Author: Jonas Smedegaard <dr@jones.dk>
 Bug-Debian: https://bugs.debian.org/1051244
 Bug-Debian: https://bugs.debian.org/1087403
-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
@@ -12,7 +12,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
  
  [build-dependencies]
 -bindgen = "0.64"
-+bindgen = ">= 0.64, <= 0.71"
++bindgen = ">= 0.64, <= 0.72"
  [target.'cfg(windows)'.build-dependencies]
  vcpkg = "0.2.8"
  [target.'cfg(any(target_os="macos", target_os="linux", target_os="freebsd"))'.build-dependencies]
diff --git a/debian/patches/2002_no_windows.patch b/debian/patches/2002_no_windows.patch
index b76f065..474309d 100644
--- a/debian/patches/2002_no_windows.patch
+++ b/debian/patches/2002_no_windows.patch
@@ -9,7 +9,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 @@ -16,7 +16,5 @@
  
  [build-dependencies]
- bindgen = ">= 0.64, <= 0.71"
+ bindgen = ">= 0.64, <= 0.72"
 -[target.'cfg(windows)'.build-dependencies]
 -vcpkg = "0.2.8"
  [target.'cfg(any(target_os="macos", target_os="linux", target_os="freebsd"))'.build-dependencies]
-- 
2.47.2

