[Pkg-rust-maintainers] Bug#1084376: rust-subversion: FTBFS: error: could not compile `subversion` (lib) due to 2 previous errors; 40 warnings emitted

Santiago Vila sanvila at debian.org
Mon Oct 7 09:42:00 BST 2024


Package: src:rust-subversion
Version: 0.0.4-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem cargo
    dh_update_autotools_config -O--buildsystem=cargo
    dh_autoreconf -O--buildsystem=cargo
    dh_auto_configure -O--buildsystem=cargo
debian cargo wrapper: options, profiles, parallel, lto: ['parallel=2'] [] ['-j2']
debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
debian cargo wrapper: linking /usr/share/cargo/registry/* into /<<PKGBUILDDIR>>/debian/cargo_registry/
    dh_auto_build -O--buildsystem=cargo
    dh_auto_test -O--buildsystem=cargo
debian cargo wrapper: options, profiles, parallel, lto: ['parallel=2'] [] ['-j2']
debian cargo wrapper: rust_type, gnu_type: x86_64-unknown-linux-gnu, x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', '-Zavoid-dev-deps', 'build', '--verbose', '--verbose', '-j2', '--target', 'x86_64-unknown-linux-gnu'],) {}
    Compiling proc-macro2 v1.0.86

[... snipped ...]

[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSROOT
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
[subversion 0.0.4] cargo:rerun-if-env-changed=HOST_PKG_CONFIG
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG
[subversion 0.0.4] cargo:rerun-if-env-changed=DEB_HOST_GNU_TYPE
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
[subversion 0.0.4] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_PATH
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
[subversion 0.0.4] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
[subversion 0.0.4] cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
[subversion 0.0.4] cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
[subversion 0.0.4] cargo:rustc-link-lib=svn_client-1
[subversion 0.0.4] cargo:rustc-link-lib=aprutil-1
[subversion 0.0.4] cargo:rustc-link-lib=ldap
[subversion 0.0.4] cargo:rustc-link-lib=lber
[subversion 0.0.4] cargo:rustc-link-lib=apr-1
[subversion 0.0.4] cargo:rustc-link-lib=svn_fs-1
[subversion 0.0.4] cargo:rustc-link-lib=aprutil-1
[subversion 0.0.4] cargo:rustc-link-lib=ldap
[subversion 0.0.4] cargo:rustc-link-lib=lber
[subversion 0.0.4] cargo:rustc-link-lib=apr-1
[subversion 0.0.4] cargo:rustc-link-lib=svn_ra-1
[subversion 0.0.4] cargo:rustc-link-lib=aprutil-1
[subversion 0.0.4] cargo:rustc-link-lib=ldap
[subversion 0.0.4] cargo:rustc-link-lib=lber
[subversion 0.0.4] cargo:rustc-link-lib=apr-1
[subversion 0.0.4] cargo:rustc-link-lib=svn_repos-1
[subversion 0.0.4] cargo:rustc-link-lib=apr-1
[subversion 0.0.4] cargo:rustc-link-lib=svn_subr-1
[subversion 0.0.4] cargo:rustc-link-lib=expat
[subversion 0.0.4] cargo:rustc-link-lib=z
[subversion 0.0.4] cargo:rustc-link-lib=lz4
[subversion 0.0.4] cargo:rustc-link-lib=utf8proc
[subversion 0.0.4] cargo:rustc-link-lib=aprutil-1
[subversion 0.0.4] cargo:rustc-link-lib=ldap
[subversion 0.0.4] cargo:rustc-link-lib=lber
[subversion 0.0.4] cargo:rustc-link-lib=apr-1
[subversion 0.0.4] cargo:rustc-link-lib=svn_wc-1
[subversion 0.0.4] cargo:rustc-link-lib=aprutil-1
[subversion 0.0.4] cargo:rustc-link-lib=ldap
[subversion 0.0.4] cargo:rustc-link-lib=lber
[subversion 0.0.4] cargo:rustc-link-lib=apr-1
[subversion 0.0.4] cargo:include=/usr/include/subversion-1:/usr/include/apr-1.0:/usr/include:/usr/include/subversion-1:/usr/include/apr-1.0:/usr/include:/usr/include/subversion-1:/usr/include/apr-1.0:/usr/include:/usr/include/subversion-1:/usr/include/apr-1.0:/usr/include:/usr/include/subversion-1:/usr/include/apr-1.0:/usr/include:/usr/include/subversion-1:/usr/include/apr-1.0:/usr/include
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_BUILD_INTERNAL
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LINK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_WC_LIB
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_WC_LIB_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_WC_SEARCH_NATIVE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_WC_SEARCH_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_WC_INCLUDE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_WC_LDFLAGS
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_WC_NO_PKG_CONFIG
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_WC_BUILD_INTERNAL
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_WC_LINK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_REPOS_LIB
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_REPOS_LIB_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_REPOS_SEARCH_NATIVE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_REPOS_SEARCH_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_REPOS_INCLUDE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_REPOS_LDFLAGS
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_REPOS_NO_PKG_CONFIG
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_REPOS_BUILD_INTERNAL
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_REPOS_LINK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_FS_LIB
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_FS_LIB_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_FS_SEARCH_NATIVE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_FS_SEARCH_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_FS_INCLUDE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_FS_LDFLAGS
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_FS_NO_PKG_CONFIG
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_FS_BUILD_INTERNAL
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_FS_LINK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_CLIENT_LIB
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_CLIENT_LIB_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_CLIENT_SEARCH_NATIVE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_CLIENT_SEARCH_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_CLIENT_INCLUDE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_CLIENT_LDFLAGS
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_CLIENT_NO_PKG_CONFIG
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_CLIENT_BUILD_INTERNAL
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_CLIENT_LINK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_SUBR_LIB
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_SUBR_LIB_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_SUBR_SEARCH_NATIVE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_SUBR_SEARCH_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_SUBR_INCLUDE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_SUBR_LDFLAGS
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_SUBR_NO_PKG_CONFIG
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_SUBR_BUILD_INTERNAL
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_SUBR_LINK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_RA_LIB
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_RA_LIB_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_RA_SEARCH_NATIVE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_RA_SEARCH_FRAMEWORK
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_RA_INCLUDE
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_RA_LDFLAGS
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_RA_NO_PKG_CONFIG
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_RA_BUILD_INTERNAL
[subversion 0.0.4] cargo:rerun-if-env-changed=SYSTEM_DEPS_LIBSVN_RA_LINK
[subversion 0.0.4]
[subversion 0.0.4] cargo:rustc-cfg=system_deps_have_libsvn_client
[subversion 0.0.4] cargo:rustc-cfg=system_deps_have_libsvn_fs
[subversion 0.0.4] cargo:rustc-cfg=system_deps_have_libsvn_ra
[subversion 0.0.4] cargo:rustc-cfg=system_deps_have_libsvn_repos
[subversion 0.0.4] cargo:rustc-cfg=system_deps_have_libsvn_subr
[subversion 0.0.4] cargo:rustc-cfg=system_deps_have_libsvn_wc
[apr 0.1.16] Failed to run rustfmt: cannot find binary path (non-fatal, continuing)
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=apr CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/apr-0.1.16 CARGO_PKG_AUTHORS='Jelmer Vernooij <jelmer at apache.org>' CARGO_PKG_DESCRIPTION='Rust bindings for Apache Portable Runtime' CARGO_PKG_HOMEPAGE='https://github.com/jelmer/apr-rs' CARGO_PKG_LICENSE=Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=apr CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/jelmer/apr-rs.git' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.16 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=16 CARGO_PKG_VERSION_PRE='' CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/apr-0.1.16 LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/apr-f76e68049cd6e5d3/out rustc --crate-name apr --edition=2021 /<<PKGBUILDDIR>>/debian/cargo_registry/apr-0.1.16/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("pool-debug", "url"))' -C metadata=cf00247914e492b4 -C extra-filename=-cf00247914e492b4 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern ctor=/<<PKGBUILDDIR>>/target/debug/deps/libctor-7199573e98dc16e7.so --cap-lints warn -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/subversion-0.0.4 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry -l apr-1 -l aprutil-1 -l ldap -l lber --cfg system_deps_have_apr_1 --cfg system_deps_have_apr_util_1`
[subversion 0.0.4] Failed to run rustfmt: cannot find binary path (non-fatal, continuing)
      Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=subversion CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Jelmer Vernooij <jelmer at apache.org>' CARGO_PKG_DESCRIPTION='Rust bindings for Subversion' CARGO_PKG_HOMEPAGE='https://github.com/jelmer/subversion-rs' CARGO_PKG_LICENSE=Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=subversion CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/jelmer/subversion-rs.git' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.4 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/subversion-8b86463c2de0ed01/out rustc --crate-name subversion --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("pyo3", "url"))' -C metadata=73de2c5dc01019b8 -C extra-filename=-73de2c5dc01019b8 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern apr=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libapr-cf00247914e492b4.rmeta --extern ctor=/<<PKGBUILDDIR>>/target/debug/deps/libctor-7199573e98dc16e7.so --extern lazy_static=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/liblazy_static-515d3ff70bd271c6.rmeta -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/subversion-0.0.4 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry -l svn_client-1 -l aprutil-1 -l ldap -l lber -l apr-1 -l svn_fs-1 -l aprutil-1 -l ldap -l lber -l apr-1 -l svn_ra-1 -l aprutil-1 -l ldap -l lber -l apr-1 -l svn_repos-1 -l apr-1 -l svn_subr-1 -l expat -l z -l lz4 -l utf8proc -l aprutil-1 -l ldap -l lber -l apr-1 -l svn_wc-1 -l aprutil-1 -l ldap -l lber -l apr-1 --cfg system_deps_have_libsvn_client --cfg system_deps_have_libsvn_fs --cfg system_deps_have_libsvn_ra --cfg system_deps_have_libsvn_repos --cfg system_deps_have_libsvn_subr --cfg system_deps_have_libsvn_wc`
error[E0308]: mismatched types
   --> src/dirent.rs:32:17
    |
31 |             Ok::<_, crate::Error>(Self(
    |                                   ---- arguments to this function are incorrect
32 |                 apr::strings::pstrdup(s, pool),
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const i8`, found `&str`
    |
    = note: expected raw pointer `*const i8`
                 found reference `&str`
note: tuple struct defined here
   --> src/dirent.rs:6:12
    |
6  | pub struct Dirent<'a>(*const i8, std::marker::PhantomData<&'a ()>);
    |            ^^^^^^

error[E0308]: mismatched types
   --> src/uri.rs:41:17
    |
40 |             Ok::<_, crate::Error>(Self(
    |                                   ---- arguments to this function are incorrect
41 |                 apr::strings::pstrdup(s, pool),
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const i8`, found `&str`
    |
    = note: expected raw pointer `*const i8`
                 found reference `&str`
note: tuple struct defined here
   --> src/uri.rs:6:12
    |
6  | pub struct Uri<'a>(*const i8, std::marker::PhantomData<&'a ()>);
    |            ^^^

warning: variable does not need to be mutable
   --> src/auth.rs:55:13
    |
55 |         let mut pool = apr::pool::Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` on by default

warning: variable does not need to be mutable
   --> src/auth.rs:79:13
    |
79 |         let mut pool = apr::pool::Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/auth.rs:130:13
     |
130 |         let mut pool = apr::pool::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/auth.rs:140:13
     |
140 |         let mut pool = apr::pool::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/client.rs:482:13
     |
482 |         let mut pool = Pool::default();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/client.rs:751:13
     |
751 |         let mut pool = apr::pool::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
     --> src/client.rs:1023:13
      |
1023 |         let mut pool = Pool::default();
      |             ----^^^^
      |             |
      |             help: remove this `mut`

warning: variable does not need to be mutable
     --> src/client.rs:1058:17
      |
1058 |             let mut scratch_pool = Pool::default();
      |                 ----^^^^^^^^^^^^
      |                 |
      |                 help: remove this `mut`

warning: variable does not need to be mutable
     --> src/client.rs:1086:13
      |
1086 |         let mut pool = Pool::default();
      |             ----^^^^
      |             |
      |             help: remove this `mut`

warning: variable does not need to be mutable
     --> src/client.rs:1167:13
      |
1167 |         let mut pool = apr::pool::Pool::new();
      |             ----^^^^
      |             |
      |             help: remove this `mut`

warning: variable does not need to be mutable
   --> src/dirent.rs:77:13
    |
77 |         let mut pool = apr::pool::Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/dirent.rs:150:13
     |
150 |         let mut pool = apr::pool::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
   --> src/fs.rs:44:17
    |
44 |             let mut pool = apr::pool::Pool::new();
    |                 ----^^^^
    |                 |
    |                 help: remove this `mut`

warning: variable does not need to be mutable
   --> src/fs.rs:55:17
    |
55 |             let mut pool = apr::pool::Pool::new();
    |                 ----^^^^
    |                 |
    |                 help: remove this `mut`

warning: variable does not need to be mutable
    --> src/fs.rs:107:13
     |
107 |         let mut pool = apr::pool::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
   --> src/ra.rs:10:13
    |
10 |         let mut pool = Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
   --> src/ra.rs:23:13
    |
23 |         let mut pool = Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
   --> src/ra.rs:39:13
    |
39 |         let mut pool = Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
   --> src/ra.rs:55:13
    |
55 |         let mut pool = Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
   --> src/ra.rs:69:13
    |
69 |         let mut pool = Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
   --> src/ra.rs:91:13
    |
91 |         let mut pool = Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/ra.rs:118:13
     |
118 |         let mut pool = Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/ra.rs:148:13
     |
148 |         let mut pool = Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
  --> src/repos.rs:7:9
   |
7 |     let mut pool = apr::Pool::new();
   |         ----^^^^
   |         |
   |         help: remove this `mut`

warning: variable does not need to be mutable
   --> src/repos.rs:57:21
    |
57 |                 let mut scratch_pool = apr::Pool::new();
    |                     ----^^^^^^^^^^^^
    |                     |
    |                     help: remove this `mut`

warning: variable does not need to be mutable
   --> src/repos.rs:78:13
    |
78 |         let mut pool = apr::Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:124:13
     |
124 |         let mut pool = apr::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:132:13
     |
132 |         let mut pool = apr::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:140:13
     |
140 |         let mut pool = apr::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:148:13
     |
148 |         let mut pool = apr::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:156:13
     |
156 |         let mut pool = apr::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:165:13
     |
165 |         let mut pool = apr::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:173:13
     |
173 |         let mut pool = apr::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:182:13
     |
182 |         let mut pool = apr::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:191:13
     |
191 |         let mut pool = apr::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:225:9
     |
225 |     let mut pool = apr::Pool::new();
     |         ----^^^^
     |         |
     |         help: remove this `mut`

warning: variable does not need to be mutable
    --> src/repos.rs:241:9
     |
241 |     let mut pool = apr::Pool::new();
     |         ----^^^^
     |         |
     |         help: remove this `mut`

warning: variable does not need to be mutable
   --> src/uri.rs:77:13
    |
77 |         let mut pool = apr::pool::Pool::new();
    |             ----^^^^
    |             |
    |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/uri.rs:118:13
     |
118 |         let mut pool = apr::pool::Pool::new();
     |             ----^^^^
     |             |
     |             help: remove this `mut`

warning: variable does not need to be mutable
    --> src/wc.rs:144:9
     |
144 |     let mut pool = apr::pool::Pool::new();
     |         ----^^^^
     |         |
     |         help: remove this `mut`

For more information about this error, try `rustc --explain E0308`.
warning: `subversion` (lib) generated 40 warnings
error: could not compile `subversion` (lib) due to 2 previous errors; 40 warnings emitted

Caused by:
   process didn't exit successfully: `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=subversion CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>> CARGO_PKG_AUTHORS='Jelmer Vernooij <jelmer at apache.org>' CARGO_PKG_DESCRIPTION='Rust bindings for Subversion' CARGO_PKG_HOMEPAGE='https://github.com/jelmer/subversion-rs' CARGO_PKG_LICENSE=Apache-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=subversion CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/jelmer/subversion-rs.git' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.0.4 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 CARGO_RUSTC_CURRENT_DIR=/<<PKGBUILDDIR>> LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/subversion-8b86463c2de0ed01/out rustc --crate-name subversion --edition=2021 src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("pyo3", "url"))' -C metadata=73de2c5dc01019b8 -C extra-filename=-73de2c5dc01019b8 --out-dir /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C incremental=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/incremental -L dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps -L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern apr=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libapr-cf00247914e492b4.rmeta --extern ctor=/<<PKGBUILDDIR>>/target/debug/deps/libctor-7199573e98dc16e7.so --extern lazy_static=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/liblazy_static-515d3ff70bd271c6.rmeta -C debuginfo=2 -C strip=none --cap-lints warn -C linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-z,relro --remap-path-prefix /<<PKGBUILDDIR>>=/usr/share/cargo/registry/subversion-0.0.4 --remap-path-prefix /<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry -l svn_client-1 -l aprutil-1 -l ldap -l lber -l apr-1 -l svn_fs-1 -l aprutil-1 -l ldap -l lber -l apr-1 -l svn_ra-1 -l aprutil-1 -l ldap -l lber -l apr-1 -l svn_repos-1 -l apr-1 -l svn_subr-1 -l expat -l z -l lz4 -l utf8proc -l aprutil-1 -l ldap -l lber -l apr-1 -l svn_wc-1 -l aprutil-1 -l ldap -l lber -l apr-1 --cfg system_deps_have_libsvn_client --cfg system_deps_have_libsvn_fs --cfg system_deps_have_libsvn_ra --cfg system_deps_have_libsvn_repos --cfg system_deps_have_libsvn_subr --cfg system_deps_have_libsvn_wc` (exit status: 1)
dh_auto_test: error: /usr/share/cargo/bin/cargo build returned exit code 101
make: *** [debian/rules:3: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.


More information about the Pkg-rust-maintainers mailing list