I am running into issues trying to build pve-qemu. Specifically it is asking for a package:
dpkg-checkbuilddeps: error: Unmet build dependencies: check libproxmox-backup-qemu0-dev (>= 0.2.0-1)
Thinking the debian package can be built using the git repo proxmox-backup-qemu I checked that out and proceeded to try and make.
However I ran into an issue with cargo/rust.
In the readme it states:
However I am not sure how to proceed here. I see
So when I run cargo it will replace crate-io with the local registry. However my local registry is empty and does not even exist.
# ls -al /usr/share/cargo/registry
ls: cannot access '/usr/share/cargo/registry': No such file or directory
A make results in:
Which makes sense since it is trying to find the package `anyhow` in the local registry.
What's the best way to proceed in getting a proper environment up and running to build these debian packages?
dpkg-checkbuilddeps: error: Unmet build dependencies: check libproxmox-backup-qemu0-dev (>= 0.2.0-1)
Thinking the debian package can be built using the git repo proxmox-backup-qemu I checked that out and proceeded to try and make.
However I ran into an issue with cargo/rust.
In the readme it states:
Code:
Local cargo config
==================
This repository ships with a ``.cargo/config`` that replaces the crates.io
registry with packaged crates located in ``/usr/share/cargo/registry``.
A similar config is also applied building with dh_cargo. Cargo.lock needs to be
deleted when switching between packaged crates and crates.io, since the
checksums are not compatible.
To reference new dependencies (or updated versions) that are not yet packaged,
the dependency needs to point directly to a path or git source.
However I am not sure how to proceed here. I see
Code:
# cat .cargo/config
[source]
[source.debian-packages]
directory = "/usr/share/cargo/registry"
[source.crates-io]
replace-with = "debian-packages"
So when I run cargo it will replace crate-io with the local registry. However my local registry is empty and does not even exist.
# ls -al /usr/share/cargo/registry
ls: cannot access '/usr/share/cargo/registry': No such file or directory
A make results in:
Code:
# make
cargo test
error: failed to get `anyhow` as a dependency of package `proxmox v0.1.41 (/root/workspace/proxmox/proxmox)`
Caused by:
failed to load source for dependency `anyhow`
Caused by:
Unable to update registry `https://github.com/rust-lang/crates.io-index`
Caused by:
failed to update replaced source registry `https://github.com/rust-lang/crates.io-index`
Caused by:
failed to read root of directory source: /usr/share/cargo/registry
Caused by:
No such file or directory (os error 2)
Which makes sense since it is trying to find the package `anyhow` in the local registry.
What's the best way to proceed in getting a proper environment up and running to build these debian packages?