[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need help to build libchewing with Rust dependency



On 18.05.24 18:27, ChangZhuo Chen (陳昌倬) wrote:
Hi,

I am working on libchewing 0.8.1 [0] which uses Rust as dependencies.
However, despite having librust-env-logger-dev as Build-Depends, the
build still cannot get `env_logger` as a dependency. Please help to
check how to fix the issue.

The following is error log:

     [  7%] Built target testhelper
     warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
     warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
     error: failed to get `env_logger` as a dependency of package `chewing_capi v0.8.1 (/build/libchewing-0.8.1/capi)`
Caused by:
       failed to query replaced source registry `crates-io`
Caused by:
       download of config.json failed
Caused by:
       failed to download from `https://index.crates.io/config.json`
Caused by:
       [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
     make[3]: *** [CMakeFiles/_cargo-build_chewing-cli.dir/build.make:73: CMakeFiles/_cargo-build_chewing-cli] Error 101
     make[3]: Leaving directory '/build/libchewing-0.8.1/obj-x86_64-linux-gnu'
         Updating crates.io index
     make[2]: *** [CMakeFiles/Makefile2:519: CMakeFiles/_cargo-build_chewing-cli.dir/all] Error 2
     make[2]: *** Waiting for unfinished jobs....
     warning: spurious network error (3 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
     warning: spurious network error (2 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)
     warning: spurious network error (1 tries remaining): [6] Couldn't resolve host name (Could not resolve host: index.crates.io)


[0] https://salsa.debian.org/input-method-team/libchewing/-/tree/feature/0.8.1


Hi Chen,

you need to set up your source package to fully build offline. You can follow https://wiki.debian.org/Gnome/Rust_Packaging as rough guideline. Feel free to reach out on the list or on the #debian-rust IRC channel if you have any questions.

best,


--
Matthias Geiger <werdahias>
Debian Maintainer


Reply to: