Package: rust-leptonica-sys Version: 0.4.6-2 In the rust team we are working on upgrading rust-bindgen from 0.60 to0.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. The attatched debdiff, raises the upper limit for the bindgen dependency.
diff -Nru rust-leptonica-sys-0.4.6/debian/changelog rust-leptonica-sys-0.4.6/debian/changelog --- rust-leptonica-sys-0.4.6/debian/changelog 2023-08-14 12:07:09.000000000 +0000 +++ rust-leptonica-sys-0.4.6/debian/changelog 2023-09-03 14:19:09.000000000 +0000 @@ -1,3 +1,10 @@ +rust-leptonica-sys (0.4.6-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Relax dependeny to allow bindgen 0.66. + + -- Peter Michael Green <plugw...@debian.org> Sun, 03 Sep 2023 14:19:09 +0000 + rust-leptonica-sys (0.4.6-2) unstable; urgency=medium * update DEP-3 patch headers diff -Nru rust-leptonica-sys-0.4.6/debian/control rust-leptonica-sys-0.4.6/debian/control --- rust-leptonica-sys-0.4.6/debian/control 2023-07-29 23:47:09.000000000 +0000 +++ rust-leptonica-sys-0.4.6/debian/control 2023-09-03 14:19:02.000000000 +0000 @@ -6,7 +6,7 @@ debhelper-compat (= 13), dh-cargo (>= 25), libleptonica-dev <!nocheck>, - librust-bindgen-0+default-dev (<< 0.65) <!nocheck>, + librust-bindgen-0+default-dev (<< 0.67) <!nocheck>, librust-bindgen-0+default-dev (>= 0.60) <!nocheck>, librust-pkg-config-0.3+default-dev (>= 0.3.25) <!nocheck>, libstring-shellquote-perl, @@ -22,7 +22,7 @@ Multi-Arch: foreign Depends: libleptonica-dev, - librust-bindgen-0+default-dev (<< 0.65), + librust-bindgen-0+default-dev (<< 0.67), librust-bindgen-0+default-dev (>= 0.60), librust-pkg-config-0.3+default-dev (>= 0.3.25), ${misc:Depends}, diff -Nru rust-leptonica-sys-0.4.6/debian/patches/2001_bindgen.patch rust-leptonica-sys-0.4.6/debian/patches/2001_bindgen.patch --- rust-leptonica-sys-0.4.6/debian/patches/2001_bindgen.patch 2023-08-14 09:55:41.000000000 +0000 +++ rust-leptonica-sys-0.4.6/debian/patches/2001_bindgen.patch 2023-09-03 14:18:19.000000000 +0000 @@ -1,7 +1,9 @@ Description: relax dependency to cover older crate bindgen 0.60.1 + and newer crate bindgen 0.66.1. Author: Jonas Smedegaard <d...@jones.dk> +Author: Peter Michael Green <plugw...@debian.org> Forwarded: not-needed -Last-Update: 2023-08-14 +Last-Update: 2023-09-03 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Cargo.toml @@ -11,7 +13,7 @@ [build-dependencies] -bindgen = "0.64.0" -+bindgen = ">= 0.60, < 0.65" ++bindgen = ">= 0.60, < 0.67" [target.'cfg(windows)'.build-dependencies] vcpkg = "0.2.15" diff -Nru rust-leptonica-sys-0.4.6/debian/patches/2002_no_windows.patch rust-leptonica-sys-0.4.6/debian/patches/2002_no_windows.patch --- rust-leptonica-sys-0.4.6/debian/patches/2002_no_windows.patch 2023-08-14 09:55:44.000000000 +0000 +++ rust-leptonica-sys-0.4.6/debian/patches/2002_no_windows.patch 2023-09-03 14:19:09.000000000 +0000 @@ -8,7 +8,7 @@ +++ b/Cargo.toml @@ -14,8 +14,5 @@ [build-dependencies] - bindgen = ">= 0.60, < 0.65" + bindgen = ">= 0.60, < 0.67" -[target.'cfg(windows)'.build-dependencies] -vcpkg = "0.2.15"