Source: rust-tesseract-sys
Version: 0.6.1-2
Severity: normal
Tags: patch
X-Debbugs-Cc: noisyc...@tutanota.com, debian-r...@lists.debian.org

Hi Jonas,

bindgen is about to be updated from v0.66 to v0.70. The latter has been in
experimental for a few days. I tested that rust-tesseract-sys builds and its
autopkgtests pass in unstable using the updated version and leptonica as in
bug #1087401. Bumping the dependency is trivial, but I'm attaching a patch
anyway.

Best,

NC
>From 6047da829ed76cbbbce51d205183b4d03588a03d Mon Sep 17 00:00:00 2001
From: NoisyCoil <noisyc...@tutanota.com>
Date: Mon, 11 Nov 2024 01:26:56 +0100
Subject: [PATCH] Bump bindgen dependency to v0.70

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

diff --git a/debian/control b/debian/control
index d015eca..c63b364 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Build-Depends:
  clang <!nocheck>,
  debhelper-compat (= 13),
  dh-sequence-rust,
- librust-bindgen-0.66+default-dev <!nocheck>,
+ librust-bindgen-0.70+default-dev <!nocheck>,
  librust-leptonica-sys-0.4+default-dev <!nocheck>,
  librust-pkg-config-0.3+default-dev <!nocheck>,
  libtesseract-dev <!nocheck>,
@@ -21,7 +21,7 @@ Package: librust-tesseract-sys-dev
 Architecture: all
 Multi-Arch: foreign
 Depends:
- librust-bindgen-0.66+default-dev,
+ librust-bindgen-0.70+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 58a1609..75b1fe0 100644
--- a/debian/patches/1001_bindgen.patch
+++ b/debian/patches/1001_bindgen.patch
@@ -11,7 +11,7 @@ This patch header follows DEP-3: 
http://dep.debian.net/deps/dep3/
  
  [build-dependencies]
 -bindgen = "0.64"
-+bindgen = ">= 0.64, <= 0.66"
++bindgen = ">= 0.64, <= 0.70"
  [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 4293bbe..0aef294 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.66"
+ bindgen = ">= 0.64, <= 0.70"
 -[target.'cfg(windows)'.build-dependencies]
 -vcpkg = "0.2.8"
  [target.'cfg(any(target_os="macos", target_os="linux", 
target_os="freebsd"))'.build-dependencies]
-- 
2.45.2

Reply via email to