Package: rust-tesseract-sys
Version: 0.5.14-3

In the rust team we are working on upgrading rust-bindgen from 0.60 to
0.66, there are a few reasons for this. Firstly it's part of the dependency 
stack
for the new version of rust-cargo. Secondly the version currently in sid has a
compatibility issue with new versions of llvm. Thirdly Jonas has filed a bug 
report
requesting the new upstream version.

bindgen bumps semver on most releases, however the changes tend to be
relatively minor. You can read the changelog at
https://github.com/rust-lang/rust-bindgen/blob/main/CHANGELOG.md#0610
I don't see anything too scary in there.

The new version of rust-bindgen has been uploaded to experimental so people
can test against it. After bumping the dependencies your package built
successfully and the autopkgtests passed. I Checked upstream and it seems
they have bumped to 0.64 with a commit that did not contain any code changes.

The attatched debdiff, raises the upper limit for the bindgen dependency.
diff -Nru rust-tesseract-sys-0.5.14/debian/changelog 
rust-tesseract-sys-0.5.14/debian/changelog
--- rust-tesseract-sys-0.5.14/debian/changelog  2023-08-20 09:21:50.000000000 
+0000
+++ rust-tesseract-sys-0.5.14/debian/changelog  2023-09-05 00:09:36.000000000 
+0000
@@ -1,3 +1,10 @@
+rust-tesseract-sys (0.5.14-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Bump bindgen dependency to 0.66
+
+ -- Peter Michael Green <plugw...@debian.org>  Tue, 05 Sep 2023 00:09:36 +0000
+
 rust-tesseract-sys (0.5.14-3) unstable; urgency=medium
 
   * update DEP-3 patch headers
diff -Nru rust-tesseract-sys-0.5.14/debian/control 
rust-tesseract-sys-0.5.14/debian/control
--- rust-tesseract-sys-0.5.14/debian/control    2023-02-03 09:53:28.000000000 
+0000
+++ rust-tesseract-sys-0.5.14/debian/control    2023-09-05 00:09:36.000000000 
+0000
@@ -5,7 +5,7 @@
  clang <!nocheck>,
  debhelper-compat (= 13),
  dh-cargo (>= 25),
- librust-bindgen-0.60+default-dev <!nocheck>,
+ librust-bindgen-0.66+default-dev <!nocheck>,
  librust-leptonica-sys-0.4+default-dev <!nocheck>,
  librust-pkg-config-0.3+default-dev (>= 0.3.19) <!nocheck>,
  libstring-shellquote-perl,
@@ -22,7 +22,7 @@
 Architecture: all
 Multi-Arch: foreign
 Depends:
- librust-bindgen-0.60+default-dev,
+ librust-bindgen-0.66+default-dev,
  librust-leptonica-sys-0.4+default-dev,
  librust-pkg-config-0.3+default-dev (>= 0.3.19),
  libtesseract-dev,
diff -Nru rust-tesseract-sys-0.5.14/debian/patches/1001_bindgen.patch 
rust-tesseract-sys-0.5.14/debian/patches/1001_bindgen.patch
--- rust-tesseract-sys-0.5.14/debian/patches/1001_bindgen.patch 1970-01-01 
00:00:00.000000000 +0000
+++ rust-tesseract-sys-0.5.14/debian/patches/1001_bindgen.patch 2023-09-05 
00:09:32.000000000 +0000
@@ -0,0 +1,20 @@
+Description: update bindgen to 0.66
+ Upstream has already updated bindgen to 0.64, they did not seem to make
+ any code changes as part of the process
+Author: Peter Michael Green <plugw...@debian.org>
+Forwarded: no
+Last-Update: 2023-09-05
+
+Index: rust-tesseract-sys-0.5.14/Cargo.toml
+===================================================================
+--- rust-tesseract-sys-0.5.14.orig/Cargo.toml
++++ rust-tesseract-sys-0.5.14/Cargo.toml
+@@ -15,7 +15,7 @@ build = "build.rs"
+ leptonica-sys = "~0.4"
+ 
+ [build-dependencies]
+-bindgen = "0.60"
++bindgen = "0.66"
+ [target.'cfg(windows)'.build-dependencies]
+ vcpkg = "0.2.8"
+ [target.'cfg(any(target_os="macos", target_os="linux"))'.build-dependencies]
diff -Nru rust-tesseract-sys-0.5.14/debian/patches/2002_no_windows.patch 
rust-tesseract-sys-0.5.14/debian/patches/2002_no_windows.patch
--- rust-tesseract-sys-0.5.14/debian/patches/2002_no_windows.patch      
2023-08-14 10:19:32.000000000 +0000
+++ rust-tesseract-sys-0.5.14/debian/patches/2002_no_windows.patch      
2023-09-05 00:05:54.000000000 +0000
@@ -9,7 +9,7 @@
 @@ -16,7 +16,5 @@
  
  [build-dependencies]
- bindgen = "0.60"
+ bindgen = "0.66"
 -[target.'cfg(windows)'.build-dependencies]
 -vcpkg = "0.2.8"
  [target.'cfg(any(target_os="macos", target_os="linux"))'.build-dependencies]
diff -Nru rust-tesseract-sys-0.5.14/debian/patches/series 
rust-tesseract-sys-0.5.14/debian/patches/series
--- rust-tesseract-sys-0.5.14/debian/patches/series     2022-10-24 
15:06:57.000000000 +0000
+++ rust-tesseract-sys-0.5.14/debian/patches/series     2023-09-05 
00:08:00.000000000 +0000
@@ -1 +1,2 @@
+1001_bindgen.patch
 2002_no_windows.patch

Reply via email to